Convex and Network Flow Optimization for Structured Sparsity
Julien Mairal, Rodolphe Jenatton, Guillaume Obozinski, Francis Bach
Introduction
We present proximal splitting methods for solving structured sparse regularized problems.
We demonstrate that our methods are relevant for various applications whose practical success is made possible by our algorithmic tools and efficient implementations. First, we introduce a new CUR matrix factorization technique exploiting structured sparse regularization, built upon the links drawn by Bien et al. 2010 between CUR decomposition (Mahoney and Drineas 2009) and sparse regularization. Then, we illustrate our algorithms with different tasks: video background subtraction, estimation of hierarchical structures for dictionary learning of natural image patches (Jenatton et al. 2010a; Jenatton et al. 2011), wavelet image denoising with a structured sparse prior, and topographic dictionary learning of natural image patches (Hyvärinen et al. 2001; Kavukcuoglu et al. 2009; Garrigues and Olshausen 2010).
Note that this paper extends a shorter version published in Advances in Neural Information Processing Systems (Mairal et al. 2010b), by adding new experiments (CUR matrix factorization, wavelet image denoising and topographic dictionary learning), presenting the proximal splitting methods, providing the full proofs of the optimization results, and adding numerous discussions.
The rest of this paper is organized as follows: Section 2 presents structured sparse models and related work. Section 3 is devoted to proximal gradient algorithms, and Section 4 to proximal splitting methods. Section 5 presents several experiments and applications demonstrating the effectiveness of our approach and Section 6 concludes the paper.
Structured Sparse Models
We are interested in machine learning problems where the solution is not only known beforehand to be sparse—that is, the solution has only a few non-zero coefficients, but also to form non-zero patterns with a specific structure. It is indeed possible to encode additional knowledge in the regularization other than just sparsity. For instance, one may want the non-zero patterns to be structured in the form of non-overlapping groups (Turlach et al. 2005; Yuan and Lin 2006; Stojnic et al. 2009; Obozinski et al. 2010), in a tree (Zhao et al. 2009; Bach 2009; Jenatton et al. 2010a; Jenatton et al. 2011), or in overlapping groups (Jenatton et al. 2009; Jacob et al. 2009; Huang et al. 2009; Baraniuk et al. 2010; Cehver et al. 2008; He and Carin 2009), which is the setting we are interested in here.
As for classical non-structured sparse models, there are basically two lines of research, that either (A) deal with nonconvex and combinatorial formulations that are in general computationally intractable and addressed with greedy algorithms or (B) concentrate on convex relaxations solved with convex programming methods.
A first approach introduced by Baraniuk et al. 2010 consists in imposing that the sparsity pattern of a solution (i.e., its set of non-zero coefficients) is in a predefined subset of groups of variables . Given this a priori knowledge, a greedy algorithm (Needell and Tropp 2009) is used to address the following nonconvex structured sparse decomposition problem
Intuitively, this formulation encourages solutions whose sparsity patterns have a small coding length, meaning in practice that they can be represented by a union of a small number of groups. Even though they are related, this model is different from the one of Baraniuk et al. 2010.
These two approaches are encoding a priori knowledge on the shape of non-zero patterns that the solution of a regularized problem should have. A different point of view consists of modelling the zero patterns of the solution—that is, define groups of variables that should be encouraged to be set to zero together. After defining a set of such groups of variables, the following penalty can naturally be used as a regularization to induce the desired property
2 Convex Approaches with Sparsity-Inducing Norms
In this paper, we are interested in convex regularizations which induce structured sparsity. Generally, we consider the following optimization problem
If is a partition of , i.e. the groups do not overlap, variables are selected in groups rather than individually. When the coefficients of the solution are known to be organized in such a way, explicitly encoding the a priori group structure in the regularization can improve the prediction performance and/or interpretability of the learned models (Turlach et al. 2005; Yuan and Lin 2006; Roth and Fischer 2008; Stojnic et al. 2009; Huang and Zhang 2010; Obozinski et al. 2010). Such a penalty is commonly called group-Lasso penalty.
When the groups overlap, is still a norm and sets groups of variables to zero together Jenatton et al. 2009. The latter setting has first been considered for hierarchies Zhao et al. 2009; Kim and Xing 2010; Bach 2009; Jenatton et al. 2010a; Jenatton et al. 2011, and then extended to general group structures Jenatton et al. 2009. Solving Eq. (2) in this context is a challenging problem which is the topic of this paper.
Note that other types of structured-sparsity inducing norms have also been introduced, notably the approach of Jacob et al. 2009, which penalizes the following quantity
This penalty, which is also a norm, can be seen as a convex relaxation of the regularization introduced by Huang et al. 2009, and encourages the sparsity pattern of the solution to be a union of a small number of groups. Even though both and appear under the terminology of “structured sparsity with overlapping groups”, they have in fact significantly different purposes and algorithmic treatments. For example, Jacob et al. 2009 consider the problem of selecting genes in a gene network which can be represented as the union of a few predefined pathways in the graph (groups of genes), which overlap. In this case, it is natural to use the norm instead of . On the other hand, we present a matrix factorization task in Section 5.3, where the set of zero-patterns should be a union of groups, naturally leading to the use of . Dealing with is therefore relevant, but out of the scope of this paper.
3 Convex Optimization Methods Proposed in the Literature
Generic approaches to solve Eq. (2) mostly rely on subgradient descent schemes (Bertsekas 1999, see), and interior-point methods Boyd and Vandenberghe 2004. These generic tools do not scale well to large problems and/or do not naturally handle sparsity (the solutions they return may have small values but no “true” zeros). These two points prompt the need for dedicated methods.
Problem (2) has also been addressed with working-set algorithms (Bach 2009; Jenatton et al. 2009; Schmidt and Murphy 2010). The main idea of these methods is to solve a sequence of increasingly larger subproblems of (2). Each subproblem consists of an instance of Eq. (2) reduced to a specific subset of variables known as the working set. As long as some predefined optimality conditions are not satisfied, the working set is augmented with selected inactive variables (Bach et al. 2011, for more details, see).
Optimization with Proximal Gradient Methods
We address in this section the problem of solving Eq. (2) under the following assumptions:
is differentiable with Lipschitz-continuous gradient. For machine learning problems, this hypothesis holds when is for example the square, logistic or multi-class logistic loss (Shawe-Taylor and Cristianini 2004, see).
To the best of our knowledge, no dedicated optimization method has been developed for this setting. Following Jenatton et al. 2010a; Jenatton et al. 2011 who tackled the particular case of hierarchical norms, we propose to use proximal gradient methods, which we now introduce.
Proximal methods have drawn increasing attention in the signal processing (e.g., Wright et al. 2009b; Combettes and Pesquet 2010, and numerous references therein) and the machine learning communities (e.g., Bach et al. 2011, and references therein), especially because of their convergence rates (optimal for the class of first-order techniques) and their ability to deal with large nonsmooth convex problems (Nesterov 2007; Beck and Teboulle 2009, e.g.,).
The quadratic term keeps the update in a neighborhood where is close to its linear approximation, and is a parameter which is a upper bound on the Lipschitz constant of . This problem can be equivalently rewritten as:
Solving efficiently and exactly this problem allows to attain the fast convergence rates of proximal methods, i.e., reaching a precision of in iterations. Note, however, that fast convergence rates can also be achieved while solving approximately the proximal problem (see Schmidt et al. 2011, for more details). In addition, when the nonsmooth term is not present, the previous proximal problem exactly leads to the standard gradient update rule. More generally, we define the proximal operator:
This operator was initially introduced by Moreau 1962 to generalize the projection operator onto a convex set. What makes proximal methods appealing to solve sparse decomposition problems is that this operator can often be computed in closed form. For instance,
2 Dual of the Proximal Operator
We now show that, for a set of general overlapping groups, a convex dual of the proximal problem (4) can be reformulated as a quadratic min-cost flow problem. We then propose an efficient algorithm to solve it exactly, as well as a related algorithm to compute the dual norm of . We start by considering the dual formulation to problem (4) introduced by Jenatton et al. 2010a; Jenatton et al. 2011:
Without loss of generality, Let denote a solution of Eq. (6). Optimality conditions of Eq. (6) derived in Jenatton et al. 2010a; Jenatton et al. 2011 show that for all in , the signs of the non-zero coefficients for in are the same as the signs of the entries . To solve Eq. (6), one can therefore flip the signs of the negative variables , then solve the modified dual formulation (with non-negative variables), which gives the magnitude of the entries (the signs of these being known). we assume from now on that the scalars are all non-negative, and we constrain the entries of to be so. Such a formulation introduces dual variables which can be much greater than , the number of primal variables, but it removes the issue of overlapping regularization. We now associate a graph with problem (6), on which the variables , for in and in , can be interpreted as measuring the components of a flow.
3 Graph Model
Let be a directed graph , where is a set of vertices, a set of arcs, a source, and a sink. For all arcs in , we define a non-negative capacity constant, and as done classically in the network flow literature (Ahuja et al. 1993; Bertsekas 1998), we define a flow as a non-negative function on arcs that satisfies capacity constraints on all arcs (the value of the flow on an arc is less than or equal to the arc capacity) and conservation constraints on all vertices (the sum of incoming flows at a vertex is equal to the sum of outgoing flows) except for the source and the sink. For every arc in , we also define a real-valued cost function, which depends on the value of the flow on . We now introduce the canonical graph associated with our optimization problem:
Let be a set of groups, and be positive weights. The canonical graph is the unique graph defined as follows:
, where is a vertex set of size , one vertex being associated to each index in , and is a vertex set of size , one vertex per group in . We thus have . For simplicity, we identify groups in and indices in with vertices of the graph, such that one can from now on refer to “vertex ” or “vertex ”.
For every group in , contains an arc . These arcs have capacity and zero cost.
For every group in , and every index in , contains an arc with zero cost and infinite capacity. We denote by the flow on this arc.
For every index in , contains an arc with infinite capacity and a cost , where is the flow on .
Examples of canonical graphs are given in Figures 1a- for three simple group structures. The flows associated with can now be identified with the variables of problem (6). Since we have assumed the entries of to be non-negative, we can now reformulate Eq. (6) as
the only arcs with a cost are those leading to the sink, which have the form , where is the index of a variable in . The sum of these costs is , which is the objective function minimized in Eq. (7);
by flow conservation, we necessarily have in the canonical graph;
the only arcs with a capacity constraints are those coming out of the source, which have the form , where is a group in . By flow conservation, the flow on an arc is which should be less than by capacity constraints;
all other arcs have the form , where is in and is in . Thus, .
Therefore we have shown that finding a flow minimizing the sum of the costs on such a graph is equivalent to solving problem (6). When some groups are included in others, the canonical graph can be simplified to yield a graph with a smaller number of edges. Specifically, if and are groups with , the edges for carrying a flow can be removed and replaced by a single edge of infinite capacity and zero cost, carrying the flow . This simplification is illustrated in Figure 1d, with a graph equivalent to the one of Figure 1c. This does not change the optimal value of , which is the quantity of interest for computing the optimal primal variable . We present in Appendix A a formal definition of equivalent graphs. These simplifications are useful in practice, since they reduce the number of edges in the graph and improve the speed of our algorithms.
4 Computation of the Proximal Operator
The general case of overlapping groups is more difficult. Hochbaum and Hong 1995 have shown that quadratic min-cost flow problems can be reduced to a specific parametric max-flow problem, for which an efficient algorithm exists (Gallo et al. 1989). By definition, a parametric max-flow problem consists in solving, for every value of a parameter, a max-flow problem on a graph whose arc capacities depend on this parameter. While this generic approach could be used to solve Eq. (6), we propose to use Algorithm 1 that also exploits the fact that our graphs have non-zero costs only on edges leading to the sink. As shown in Appendix D, it it has a significantly better performance in practice. This algorithm clearly shares some similarities with existing approaches in network flow optimization such as the simplified version of Gallo et al. 1989 presented by Babenko and Goldberg 2006 that uses a divide and conquer strategy. Moreover, an equivalent algorithm exists for minimizing convex functions over polymatroid sets (Groenevelt 1991). This equivalence, a priori non trivial, is uncovered through a representation of structured sparsity-inducing norms via submodular functions, which was recently proposed by Bach 2010.
The intuition behind our algorithm, computeFlow (see Algorithm 1), is the following: since is the only value of interest to compute the solution of the proximal operator , the first step looks for a candidate value for by solving the following relaxed version of problem (7):
The cost function here is the same as in problem (7), but the constraints are weaker: Any feasible point of problem (7) is also feasible for problem (8). This problem can be solved in linear time Brucker 1984. Its solution, which we denote for simplicity, provides the lower bound for the optimal cost of problem (7).
The second step tries to construct a feasible flow , satisfying additional capacity constraints equal to on arc , and whose cost matches this lower bound; this latter problem can be cast as a max-flow problem (Goldberg and Tarjan 1986). If such a flow exists, the algorithm returns , the cost of the flow reaches the lower bound, and is therefore optimal. If such a flow does not exist, we have , the lower bound is not achievable, and we build a minimum -cut of the graph Ford and Fulkerson 1956 defining two disjoints sets of nodes and ; is the part of the graph which is reachable from the source (for every node in , there exists a non-saturated path from to ), whereas all paths going from to nodes in are saturated. More details about these properties can be found at the beginning of Appendix B. At this point, it is possible to show that the value of the optimal min-cost flow on all arcs between and is necessary zero. Thus, removing them yields an equivalent optimization problem, which can be decomposed into two independent problems of smaller sizes and solved recursively by the calls to computeFlow and computeFlow. A formal proof of correctness of Algorithm 1 and further details are relegated to Appendix B.
The approach of Hochbaum and Hong 1995; Gallo et al. 1989 which recasts the quadratic min-cost flow problem as a parametric max-flow is guaranteed to have the same worst-case complexity as a single max-flow algorithm. However, we have experimentally observed a significant discrepancy between the worst case and empirical complexities for these flow problems, essentially because the empirical cost of each max-flow is significantly smaller than its theoretical cost. Despite the fact that the worst-case guarantees for our algorithm is weaker than theirs (up to a factor ), it is more adapted to the structure of our graphs and has proven to be much faster in our experiments (see Appendix D). The best theoretical worst-case complexity of a max-flow is achieved by Goldberg and Tarjan 1986 and is . Our algorithm achieves the same worst-case complexity when the cuts are well balanced—that is , but we lose a factor when it is not the case. The practical speed of such algorithms is however significantly different than their theoretical worst-case complexities (Boykov and Kolmogorov 2004, see). Some implementation details are also crucial to the efficiency of the algorithm:
Exploiting maximal connected components: When there exists no arc between two subsets of , the solution can be obtained by solving two smaller optimization problems corresponding to the two disjoint subgraphs. It is indeed possible to process them independently to solve the global min-cost flow problem. To that effect, before calling the function computeFlow(), we look for maximal connected components and call sequentially the procedure computeFlow() for in .
Efficient max-flow algorithm: We have implemented the “push-relabel” algorithm of Goldberg and Tarjan 1986 to solve our max-flow problems, using classical heuristics that significantly speed it up in practice; see Goldberg and Tarjan 1986 and Cherkassky and Goldberg 1997. We use the so-called “highest-active vertex selection rule, global and gap heuristics” (Goldberg and Tarjan 1986; Cherkassky and Goldberg 1997), which has a worst-case complexity of for a graph . This algorithm leverages the concept of pre-flow that relaxes the definition of flow and allows vertices to have a positive excess.
Using flow warm-restarts: The max-flow steps in our algorithm can be initialized with any valid pre-flow, enabling warm-restarts. This is also a key concept in the parametric max-flow algorithm of Gallo et al. 1989.
Improved projection step: The first line of the procedure computeFlow can be replaced by The idea is to build a relaxation of Eq. (7) which is closer to the original problem than the one of Eq. (8), but that still can be solved in linear time. The structure of the graph will indeed not allow to be greater than after the max-flow step. This modified projection step can still be computed in linear time (Brucker 1984), and leads to better performance.
5 Computation of the Dual Norm
is a key quantity to study sparsity-inducing regularizations in many respects. For instance, dual norms are central in working-set algorithms (Jenatton et al. 2009; Bach et al. 2011), and arise as well when proving theoretical estimation or prediction guarantees (Negahban et al. 2009).
In our context, we use it to monitor the convergence of the proximal method through a duality gap, hence defining a proper optimality criterion for problem (2). As a brief reminder, the duality gap of a minimization problem is defined as the difference between the primal and dual objective functions, evaluated for a feasible pair of primal/dual variables (Boyd and Vandenberghe 2004, see Section 5.5,). This gap serves as a certificate of (sub)optimality: if it is equal to zero, then the optimum is reached, and provided that strong duality holds, the converse is true as well (Boyd and Vandenberghe 2004, see Section 5.5,). A description of the algorithm we use in the experiments (Beck and Teboulle 2009) along with the integration of the computation of the duality gap is given in Appendix C.
We now denote by the Fenchel conjugate of (Borwein and Lewis 2006), defined by . The duality gap for problem (2) can be derived from standard Fenchel duality arguments (Borwein and Lewis 2006) and it is equal to
Therefore, evaluating the duality gap requires to compute efficiently in order to find a feasible dual variable (the gap is otherwise equal to and becomes non-informative). This is equivalent to solving another network flow problem, based on the following variational formulation:
In the network problem associated with (9), the capacities on the arcs , , are set to , and the capacities on the arcs , in , are fixed to . Solving problem (9) amounts to finding the smallest value of , such that there exists a flow saturating all the capacities on the arcs leading to the sink . Equation (9) and Algorithm 2 are proven to be correct in Appendix B.
Optimization with Proximal Splitting Methods
The issue of overlapping groups is removed, but new constraints are added, and as in Section 3, the method introduces additional variables which induce a memory cost of .
Minimize with respect to , keeping the other variables fixed.
Minimize with respect to the ’s, keeping the other variables fixed. The solution can be obtained in closed form: for all in , .
Take a gradient ascent step on with respect to the ’s: .
Such a procedure is guaranteed to converge to the desired solution for all value of (however, tuning can greatly influence the convergence speed), but solving efficiently step 1 can be difficult. To cope with this issue, we propose two variations exploiting assumptions (A) and (B).
1.2 Dealing with the Design Matrix
Applications and Experiments
In this section, we present various experiments demonstrating the applicability and the benefits of our methods for solving large-scale sparse and structured regularized problems.
In our experiments, the regularization parameter is chosen to achieve the same level of sparsity (). For SG, ADMM and Lin-ADMM, some parameters are optimized to provide the lowest value of the objective function after iterations of the respective algorithms. For SG, we take the step size to be equal to , where is the iteration number, and are the pair of parameters selected in . Note that a step size of the form is also commonly used in subgradient descent algorithms. In the context of hierarchical norms, both choices have led to similar results (Jenatton et al. 2011). The parameter for ADMM is selected in . The parameters for Lin-ADMM are selected in . For interior point methods, since problem (2) can be cast either as a quadratic (QP) or as a conic program (CP), we show in Figure 2 the results for both formulations. On three problems of different sizes, with , our algorithms ProxFlow, ADMM and Lin-ADMM compare favorably with the other methods, (see Figure 2), except for ADMM in the large-scale setting which yields an objective function value similar to that of SG after seconds. Among ProxFlow, ADMM and Lin-ADMM, ProxFlow is consistently better than Lin-ADMM, which is itself better than ADMM. Note that for the small scale problem, the performance of ProxFlow and Lin-ADMM is similar. In addition, note that QP, CP, SG, ADMM and Lin-ADMM do not obtain sparse solutions, whereas ProxFlow does. To reduce the computational cost of this experiment, the curves reported are the results of one single run. Similar types of experiments with several runs have shown very small variability (Bach et al. 2011).
2 Wavelet Denoising with Structured Sparsity
We consider Daubechies3 wavelets (Mallat 1999, see) for the matrix , use classical standard test images, These images are used in classical image denoising benchmarks. See Mairal et al. 2009. and generate noisy versions of them corrupted by a white Gaussian noise of variance . For each image, we test several values of , with taken in the range . We then keep the parameter giving the best reconstruction error on average on the images. The factor is a classical heuristic for choosing a reasonable regularization parameter (Mallat 1999, see). We provide reconstruction results in terms of PSNR in Table 1. Denoting by MSE the mean-squared-error for images whose intensities are between and , the PSNR is defined as and is measured in dB. A gain of dB reduces the MSE by approximately . Unlike Jenatton et al. 2011, who set all the weights in equal to one, we tried exponential weights of the form , with being the depth of the group in the wavelet tree, and is taken in . As for , the value providing the best reconstruction is kept. The wavelet transforms in our experiments are computed with the matlabPyrTools software. http://www.cns.nyu.edu/eero/steerpyr/. Interestingly, we observe in Table 1 that the results obtained with are significantly better than those obtained with , meaning that encouraging spatial consistency in wavelet coefficients is more effective than using a hierarchical coding.
We also note that our approach is relatively fast, despite the high dimension of the problem. Solving exactly the proximal problem with for an image with pixels (and therefore approximately the same number of groups) takes approximately seconds on a single core of a 3.07GHz CPU.
3 CUR-like Matrix Factorization
In Mahoney and Drineas 2009, CUR decompositions are computed by a sampling procedure based on the singular value decomposition of . In a recent work, Bien et al. 2010 have shown that partial CUR decompositions, i.e., the selection of either rows or columns of , can be obtained by solving a convex program with a group-Lasso penalty. We propose to extend this approach to the simultaneous selection of both rows and columns of , with the following convex problem:
Problem (12) has a smooth convex data-fitting term and brings into play a sparsity-inducing norm with overlapping groups of variables (the rows and the columns of ). As a result, it is a particular instance of problem (2) that can therefore be handled with the optimization tools introduced in this paper. We now compare the performance of the sampling procedure from Mahoney and Drineas 2009 with our proposed sparsity-based approach. To this end, we consider the four gene-expression datasets 9_Tumors, Brain_Tumors1, Leukemia1 and SRBCT, with respective dimensions . The datasets are freely available at http://www.gems-system.org/. In the sequel, the matrix is normalized to have unit Frobenius-norm while each of its columns is centered. To begin with, we run our approach More precisely, since the penalties in problem (12) shrink the coefficients of , we follow a two-step procedure: We first run our approach to determine the sets of nonzero rows and columns, and then compute . over a grid of values for and in order to obtain solutions with different sparsity levels, i.e., ranging from and down to . For each pair of values , we then apply the sampling procedure from Mahoney and Drineas 2009. Finally, the variance explained by the CUR decompositions is reported in Figure 3 for both methods. Since the sampling approach involves some randomness, we show the average and standard deviation of the results based on five initializations. The conclusions we can draw from the experiments match the ones already reported in Bien et al. 2010 for the partial CUR decomposition. We can indeed see that both schemes perform similarly. However, our approach has the advantage not to be randomized, which can be less disconcerting in the practical perspective of analyzing a single run of the algorithm. It is finally worth being mentioned that the convex approach we develop here is flexible and can be extended in different ways. For instance, we can imagine to add further low-rank/sparsity constraints on thanks to sparsity-promoting convex regularizations.
4 Background Subtraction
5 Topographic Dictionary Learning
6 Multi-Task Learning of Hierarchical Structures
As mentioned in the previous section, Jenatton et al. 2010a have recently proposed to use a hierarchical structured norm to learn dictionaries of natural image patches. In Jenatton et al. 2010a, the dictionary elements are embedded in a predefined tree , via a particular instance of the structured norm , which we refer to it as , and call the underlying set of groups. In this case, using the same notation as in Section 5.5, each signal admits a sparse decomposition in the form of a subtree of dictionary elements.
Inspired by ideas from multi-task learning Obozinski et al. 2010, we propose to learn the tree structure by pruning irrelevant parts of a larger initial tree . We achieve this by using an additional regularization term across the different decompositions, so that subtrees of will simultaneously be removed for all signals . With the notation from Section 5.5, the approach of Jenatton et al. 2010a is then extended by the following formulation:
Conclusion
In addition to making it possible to resort to accelerated gradient methods, an efficient computation of the proximal operator offers more generally a certain modularity, in that it can be used as a building-block for other optimization problems. A case in point is dictionary learning where proximal problems come up and have to be solved repeatedly in an inner-loop. Interesting future work includes the computation of other structured norms such as the one introduced in Jacob et al. 2009, or total-variation based penalties, whose proximal operators are also based on minimum cost flow problems (Chambolle and Darbon 2009). Several experiments demonstrate that our algorithm can be applied to a wide class of learning problems, which have not been addressed before with convex sparse methods.
Appendix A Equivalence to Canonical Graphs
Formally, the notion of equivalence between graphs can be summarized by the following lemma:
Let be the canonical graph corresponding to a group structure . Let be a graph sharing the same set of vertices, source and sink as , but with a different arc set . We say that is equivalent to if and only if the following conditions hold:
Arcs of outgoing from the source are the same as in , with the same costs and capacities.
Arcs of going to the sink are the same as in , with the same costs and capacities.
For every arc in , with in , there exists a unique path in from to with zero costs and infinite capacities on every arc of the path.
Conversely, if there exists a path in between a vertex in and a vertex in , then there exists an arc in .
Then, the cost of the optimal min-cost flow on and are the same. Moreover, the values of the optimal flow on the arcs , in , are the same on and .
We first notice that on both and , the cost of a flow on the graph only depends on the flow on the arcs , in , which we have denoted by in .
We will prove that finding a feasible flow on with a cost is equivalent to finding a feasible flow on with the same cost . We now use the concept of path flow, which is a flow vector in carrying the same positive value on every arc of a directed path between two nodes of . It intuitively corresponds to sending a positive amount of flow along a path of the graph.
According to the definition of graph equivalence introduced in the Lemma, it is easy to show that there is a bijection between the arcs in , and the paths in with positive capacities on every arc. Given now a feasible flow in , we build a feasible flow on which is a sum of path flows. More precisely, for every arc in , we consider its equivalent path in , with a path flow carrying the same amount of flow as . Therefore, each arc in has a total amount of flow that is equal to the sum of the flows carried by the path flows going over . It is also easy to show that this construction builds a flow on (capacity and conservation constraints are satisfied) and that this flow has the same cost as , that is, .
Conversely, given a flow on , we use a classical path flow decomposition (see Bertsekas 1998, Proposition 1.1), saying that there exists a decomposition of as a sum of path flows in . Using the bijection described above, we know that each path in the previous sums corresponds to a unique arc in . We now build a flow in , by associating to each path flow in the decomposition of , an arc in carrying the same amount of flow. The flow of every other arc in is set to zero. It is also easy to show that this builds a valid flow in that has the same cost as . ∎
Appendix B Convergence Analysis
We show in this section the correctness of Algorithm 1 for computing the proximal operator, and of Algorithm 2 for computing the dual norm .
We first prove that our algorithm converges and that it finds the optimal solution of the proximal problem. This requires that we introduce the optimality conditions for problem (6) derived from Jenatton et al. 2010a; Jenatton et al. 2011 since our convergence proof essentially checks that these conditions are satisfied upon termination of the algorithm.
The primal-dual variables are respectively solutions of the primal (4) and dual problems (6) if and only if the dual variable is feasible for the problem (6) and
Before proving the convergence and correctness of our algorithm, we also recall classical properties of the min capacity cuts, which we intensively use in the proofs of this paper. The procedure computeFlow of our algorithm finds a minimum -cut of a graph , dividing the set into two disjoint parts and . is by construction the sets of nodes in such that there exists a non-saturating path from to , while all the paths from to are saturated. Conversely, arcs from to are all saturated, whereas there can be non-saturated arcs from to . Moreover, the following properties, which are illustrated on Figure 7, hold
There is no arc going from to . Otherwise the value of the cut would be infinite (arcs inside have infinite capacity by construction of our graph).
There is no flow going from to (Bertsekas 1998, see).
The cut goes through all arcs going from to , and all arcs going from to .
Recall that we assume (cf. Section 3.3) that the scalars are all non negative, and that we add non-negativity constraints on . With the optimality conditions of Lemma 5 in hand, we can show our first convergence result.
Algorithm 1 converges in a finite and polynomial number of operations.
Suppose for instance that . In this case, the capacity of the min-cut is equal to , and the value of the max-flow is . Using the classical max-flow/min-cut theorem Ford and Fulkerson 1956, we have equality between these two terms. Since, by definition of both and , we have for all in , , we obtain a contradiction with the existence of in such that .
Conversely, suppose now that . Then, the value of the max-flow is still , and the value of the min-cut is . Using again the max-flow/min-cut theorem, we have that . Moreover, by definition of , we also have , leading to a contradiction with the existence of in satisfying . We remind the reader of the fact that such a exists since the cut is only computed when the current estimate is not optimal yet. This proof holds for any graph that is equivalent to the canonical one. ∎
After proving the convergence, we prove that the algorithm is correct with the next proposition.
Algorithm 1 solves the proximal problem of Eq. (4).
For a group structure , we first prove the correctness of our algorithm if the graph used is its associated canonical graph that we denote . We proceed by induction on the number of nodes of the graph. The induction hypothesis is the following:
For all canonical graphs associated with a group structure with weights such that , computeFlow solves the following optimization problem:
Since , it is sufficient to show that to prove the proposition.
We initialize the induction by , corresponding to the simplest canonical graph, for which ). Simple algebra shows that is indeed correct.
The algorithm then computes a max-flow, using the scalars as capacities, and we now have two possible situations:
If for all in , the algorithm stops; we write for in , and using Eq. (17), we obtain
Since all the quantities in the previous sum are positive, this can only hold if for all ,
Moreover, by definition of the max flow and the optimality conditions, we have
By Lemma 5, we have shown that the problem (16) is solved.
Let us now consider the case where there exists in such that . The algorithm splits the vertex set into two parts and , which we have proven to be non-empty in the proof of Proposition 6. The next step of the algorithm removes all edges between and (see Figure 7). Processing and independently, it updates the value of the flow matrix , and the corresponding flow vector . As for , we denote by , and , .
Then, we notice that and are respective canonical graphs for the group structures , and .
Writing for in , and using the induction hypotheses and , we now have the following optimality conditions deriving from Lemma 5 applied on Eq. (16) respectively for the graphs and :
We will now combine Eq. (19) and Eq. (20) into optimality conditions for Eq. (16). We first notice that since there are no arcs between and in (see the properties of the cuts discussed before this proposition). It is therefore possible to replace by in Eq. (19). We will show that it is possible to do the same in Eq. (20), so that combining these two equations yield the optimality conditions of Eq. (16).
More precisely, we will show that for all and , , in which case can be replaced by in Eq. (20). This result is relatively intuitive: and being an -cut, all arcs between and are saturated, while there are unsaturated arcs between and ; one therefore expects the residuals to decrease on the side, while increasing on the side. The proof is nonetheless a bit technical.
Let us show first that for all in , . We split the set into disjoint parts:
As previously, we denote and . We want to show that is necessarily empty. We reason by contradiction and assume that .
According to the definition of the different sets above, we observe that no arcs are going from to , that is, for all in , . We observe as well that the flow from to is the null flow, because optimality conditions (19) imply that for a group only nodes such that receive some flow, which excludes nodes in provided ; Combining this fact and the inequality (which is a direct consequence of the minimum -cut), we have as well
Let , if then for some such that receives some flow from , which from the optimality conditions (19) implies ; by definition of , . But since at the optimum, , this implies that , and in turn that . Finally,
We now have that for all in , . The proof showing that for all in , uses the same kind of decomposition for , and follows along similar arguments. We will therefore not detail it.
To summarize, we have shown that for all and , . Since there is no flow from to , i.e., for in and in , we can now replace the definition of in Eq. (20) by , the combination of Eq. (19) and Eq. (20) gives us optimality conditions for Eq. (16).
The proposition being proved for the canonical graph, we extend it now for an equivalent graph in the sense of Lemma 4. First, we observe that the algorithm gives the same values of for two equivalent graphs. Then, it is easy to see that the value given by the max-flow, and the chosen -cut is the same, which is enough to conclude that the algorithm performs the same steps for two equivalent graphs. ∎
B.2 Computation of the Dual Norm Ω⋆\Omega^{\star}
As for the proximal operator, the computation of dual norm can itself be shown to solve another network flow problem, based on the following variational formulation, which extends a previous result from Jenatton et al. 2009:
By definition of , we have
with the additional conic constraints . This primal problem is convex and satisfies Slater’s conditions for generalized conic inequalities, which implies that strong duality holds (Boyd and Vandenberghe 2004). We now consider the Lagrangian defined as
After simplifying the Lagrangian and flipping the sign of , the dual problem then reduces to
We now prove that Algorithm 2 is correct.
Algorithm 2 computes the value of the dual norm of Eq. (9) in a finite and polynomial number of operations.
The convergence of the algorithm only requires to show that the cardinality of in the different calls of the function computeFlow strictly decreases. Similar arguments to those used in the proof of Proposition 6 can show that each part of the cuts are both non-empty. The algorithm thus requires a finite number of calls to a max-flow algorithm and converges in a finite and polynomial number of operations.
Let us now prove that the algorithm is correct for a canonical graph. We proceed again by induction on the number of nodes of the graph. More precisely, we consider the induction hypothesis defined as:
for all canonical graphs associated with a group structure and such that , dualNormAux solves the following optimization problem:
We first initialize the induction by (i.e., with the simplest canonical graph, such that ). Simple algebra shows that is indeed correct.
We next consider a canonical graph such that , and suppose that is true. After the max-flow step, we have two possible cases to discuss:
If for all in , the algorithm stops. We know that any scalar such that the constraints of Eq. (21) are all satisfied necessarily verifies . We have indeed that is the value of an -cut in the graph, and is the value of the max-flow, and the inequality follows from the max-flow/min-cut theorem Ford and Fulkerson 1956. This gives a lower-bound on . Since this bound is reached, is necessarily optimal.
We now consider the case where there exists in such that , meaning that for the given value of , the constraint set of Eq. (21) is not feasible for , and that the value of should necessarily increase. The algorithm splits the vertex set into two non-empty parts and and we remark that there are no arcs going from to , and no flow going from to . Since the arcs going from to are saturated, we have that . Let us now consider the solution of Eq. (21). Using the induction hypothesis , the algorithm computes a new value that solves Eq. (21) when replacing by and this new value satisfies the following inequality . The value of has therefore increased and the updated flow now satisfies the constraints of Eq. (21) and therefore . Since there are no arcs going from to , is feasible for Eq. (21) when replacing by and we have that and then .
To prove that the result holds for any equivalent graph, similar arguments to those used in the proof of Proposition 6 can be exploited, showing that the algorithm computes the same values of and same -cuts at each step. ∎
Appendix C Algorithm FISTA with duality gap
In this section, we describe in details the algorithm FISTA Beck and Teboulle 2009 when applied to solve problem (2), with a duality gap as the stopping criterion. The algorithm, as implemented in the experiments, is summarized in Algorithm 3.
in place of problem (2). Based on Fenchel duality arguments Borwein and Lewis 2006,
is a duality gap for problem (22), where is the Fenchel conjugate of (Borwein and Lewis 2006). Given a primal variable , a good dual candidate can be obtained by looking at the conditions that have to be satisfied by the pair at optimality Borwein and Lewis 2006. In particular, the dual variable is chosen to be
In our experiment, we choose the line-search parameter to be equal to .
Appendix D Speed comparison of Algorithm 1 with parametric max-flow algorithms
As shown by Hochbaum and Hong 1995, min-cost flow problems, and in particular, the dual problem of (4), can be reduced to a specific parametric max-flow problem. We thus compare our approach (ProxFlow) with the efficient parametric max-flow algorithm proposed by Gallo et al. 1989 and a simplified version of the latter proposed by Babenko and Goldberg 2006. We refer to these two algorithms as GGT and SIMP respectively. The benchmark is established on the same datasets as those already used in the experimental section of the paper, namely: (1) three datasets built from overcomplete bases of discrete cosine transforms (DCT), with respectively and variables, and (2) images used for the background subtraction task, composed of 57600 pixels. For GGT and SIMP, we use the paraF software which is a C++ parametric max-flow implementation available at http://www.avglab.com/andrew/soft.html. Experiments were conducted on a single-core 2.33 Ghz. We report in the following table the average execution time in seconds of each algorithm for runs, as well as the statistics of the corresponding problems:
Although we provide the speed comparison for a single value of (the one used in the corresponding experiments of the paper), we observed that our approach consistently outperforms GGT and SIMP for values of corresponding to different regularization regimes.