• Aucun résultat trouvé

Convex and Network Flow Optimization for Structured Sparsity

N/A
N/A
Protected

Academic year: 2021

Partager "Convex and Network Flow Optimization for Structured Sparsity"

Copied!
41
0
0

Texte intégral

(1)

HAL Id: inria-00584817

https://hal.inria.fr/inria-00584817v3

Submitted on 15 Sep 2011

HAL is a multi-disciplinary open access archive for the deposit and dissemination of sci- entific research documents, whether they are pub- lished or not. The documents may come from teaching and research institutions in France or

L’archive ouverte pluridisciplinaire HAL, est destinée au dépôt et à la diffusion de documents scientifiques de niveau recherche, publiés ou non, émanant des établissements d’enseignement et de recherche français ou étrangers, des laboratoires

Julien Mairal, Rodolphe Jenatton, Guillaume Obozinski, Francis Bach

To cite this version:

Julien Mairal, Rodolphe Jenatton, Guillaume Obozinski, Francis Bach. Convex and Network Flow

Optimization for Structured Sparsity. Journal of Machine Learning Research, Microtome Publishing,

2011, 12, pp.2681–2720. �inria-00584817v3�

(2)

Convex and Network Flow Optimization for Structured Sparsity

Julien Mairal

JULIEN@STAT.BERKELEY.EDU

Department of Statistics University of California Berkeley, CA 94720-1776, USA

Rodolphe Jenatton

RODOLPHE.JENATTON@INRIA.FR

Guillaume Obozinski

GUILLAUME.OBOZINSKI@INRIA.FR

Francis Bach

FRANCIS.BACH@INRIA.FR

INRIA - SIERRA Project-Team

Laboratoire d’Informatique de l’Ecole Normale Sup´erieure (INRIA/ENS/CNRS UMR 8548) 23, avenue d’Italie 75214 Paris CEDEX 13, France.

Abstract

We consider a class of learning problems regularized by a structured sparsity-inducing norm de- fined as the sum ofℓ2- orℓ-norms over groups of variables. Whereas much effort has been put in developing fast optimization techniques when the groups are disjoint or embedded in a hierar- chy, we address here the case of general overlapping groups. To this end, we present two different strategies: On the one hand, we show that the proximal operator associated with a sum ofℓ- norms can be computed exactly in polynomial time by solving a quadratic min-cost flow problem, allowing the use of accelerated proximal gradient methods. On the other hand, we use proximal splitting techniques, and address an equivalent formulation with non-overlapping groups, but in higher dimension and with additional constraints. We propose efficient and scalable algorithms exploiting these two strategies, which are significantly faster than alternative approaches. We illus- trate these methods with several problems such as CUR matrix factorization, multi-task learning of tree-structured dictionaries, background subtraction in video sequences, image denoising with wavelets, and topographic dictionary learning of natural image patches.

Keywords: Convex optimization, proximal methods, sparse coding, structured sparsity, matrix factorization, network flow optimization, alternating direction method of multipliers.

1. Introduction

Sparse linear models have become a popular framework for dealing with various unsupervised and supervised tasks in machine learning and signal processing. In such models, linear combinations of small sets of variables are selected to describe the data. Regularization by the ℓ

1

-norm has emerged as a powerful tool for addressing this variable selection problem, relying on both a well-developed theory (see Tibshirani, 1996; Chen et al., 1999; Mallat, 1999; Bickel et al., 2009; Wainwright, 2009, and references therein) and efficient algorithms (Efron et al., 2004; Nesterov, 2007; Beck and Teboulle, 2009; Needell and Tropp, 2009; Combettes and Pesquet, 2010).

∗. These authors contributed equally.

†. When most of this work was conducted, all authors were affiliated to INRIA, WILLOW Project-Team.

(3)

The ℓ

1

-norm primarily encourages sparse solutions, regardless of the potential structural rela- tionships (e.g., spatial, temporal or hierarchical) existing between the variables. Much effort has recently been devoted to designing sparsity-inducing regularizations capable of encoding higher- order information about the patterns of non-zero coefficients (Cehver et al., 2008; Jenatton et al., 2009; Jacob et al., 2009; Zhao et al., 2009; He and Carin, 2009; Huang et al., 2009; Baraniuk et al., 2010; Micchelli et al., 2010), with successful applications in bioinformatics (Jacob et al., 2009; Kim and Xing, 2010), topic modeling (Jenatton et al., 2010a, 2011) and computer vision (Cehver et al., 2008; Huang et al., 2009; Jenatton et al., 2010b). By considering sums of norms of appropriate subsets, or groups, of variables, these regularizations control the sparsity patterns of the solutions.

The underlying optimization is usually difficult, in part because it involves nonsmooth components.

Our first strategy uses proximal gradient methods, which have proven to be effective in this context, essentially because of their fast convergence rates and their ability to deal with large prob- lems (Nesterov, 2007; Beck and Teboulle, 2009). They can handle differentiable loss functions with Lipschitz-continuous gradient, and we show in this paper how to use them with a regularization term composed of a sum of ℓ

-norms. The second strategy we consider exploits proximal splitting methods (see Combettes and Pesquet, 2008, 2010; Goldfarg and Ma, 2009; Tomioka et al., 2011;

Qin and Goldfarb, 2011; Boyd et al., 2011, and references therein), which builds upon an equivalent formulation with non-overlapping groups, but in a higher dimensional space and with additional constraints.

1

More precisely, we make four main contributions:

• We show that the proximal operator associated with the sum of

-norms with overlapping groups can be computed efficiently and exactly by solving a quadratic min-cost flow problem, thereby establishing a connection with the network flow optimization literature.

2

This is the main contribution of the paper, which allows us to use proximal gradient methods in the context of structured sparsity.

• We prove that the dual norm of the sum of ℓ

-norms can also be evaluated efficiently, which enables us to compute duality gaps for the corresponding optimization problems.

• We present proximal splitting methods for solving structured sparse regularized problems.

• We demonstrate that our methods are relevant for various applications whose practical suc- cess is made possible by our algorithmic tools and efficient implementations. First, we in- troduce a new CUR matrix factorization technique exploiting structured sparse regulariza- tion, built upon the links drawn by Bien et al. (2010) between CUR decomposition (Ma- honey and Drineas, 2009) and sparse regularization. Then, we illustrate our algorithms with different tasks: video background subtraction, estimation of hierarchical structures for dic- tionary learning of natural image patches (Jenatton et al., 2010a, 2011), wavelet image de-

1. The idea of using this class of algorithms for solving structured sparse problems was first suggested to us by Jean- Christophe Pesquet and Patrick-Louis Combettes. It was also suggested to us later by Ryota Tomioka, who briefly mentioned this possibility in (Tomioka et al., 2011). It can also briefly be found in (Boyd et al., 2011), and in details in the work of Qin and Goldfarb (2011) which was conducted as the same time as ours. It was also used in a related context by Sprechmann et al. (2010) for solving optimization problems with hierarchical norms.

2. Interestingly, this is not the first time that network flow optimization tools have been used to solve sparse regularized problems with proximal methods. Such a connection was recently established by Chambolle and Darbon (2009) in the context of total variation regularization, and similarly by Hoefling (2010) for the fused Lasso. One can also find the use of maximum flow problems for non-convex penalties in the work of Cehver et al. (2008) which combines Markov random fields and sparsity.

(4)

noising with a structured sparse prior, and topographic dictionary learning of natural image patches (Hyv¨arinen 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 Process- ing 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.

1.1 Notation

Vectors are denoted by bold lower case letters and matrices by upper case ones. We define for q ≥ 1 the ℓ

q

-norm of a vector x in R

m

as k x k

q

, ( ∑

mi=1

| x

i

|

q

)

1/q

, where x

i

denotes the i-th coordinate of x, and k x k

, max

i=1,...,m

| x

i

| = lim

q

k x k

q

. We also define the ℓ

0

-pseudo-norm as the number of nonzero elements in a vector:

3

k x k

0

, # { i s.t. x

i

6 = 0 } = lim

q0+

( ∑

mi=1

| x

i

|

q

). We consider the Frobenius norm of a matrix X in R

m×n

: k X k

F

, ( ∑

mi=1

nj=1

X

2i j

)

1/2

, where X

i j

denotes the entry of X at row i and column j. Finally, for a scalar y, we denote (y)

+

, max(y, 0). For an integer p > 0, we denote by 2

{1,...,p}

the powerset composed of the 2

p

subsets of { 1, . . . , p } .

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 proxi- mal splitting methods. Section 5 presents several experiments and applications demonstrating the effectiveness of our approach and Section 6 concludes the paper.

2. 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 regu- larization 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, 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.

2.1 Nonconvex Approaches

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 G 2

{1,...,p}

. Given this a priori knowledge, a greedy algorithm (Needell and Tropp, 2009) is used

3. Note that it would be more proper to writekxk00instead ofkxk0to be consistent with the traditional notationkxkq. However, for the sake of simplicity, we will keep this notation unchanged in the rest of the paper.

(5)

to address the following nonconvex structured sparse decomposition problem

w

min

Rp

1

2 k yXw k

22

s.t. Supp(w) ∈ G and k w k

0

s,

where s is a specified sparsity level (number of nonzeros coefficients), y in R

m

is an observed signal, X is a design matrix in R

m×p

and Supp(w) is the support of w (set of non-zero entries).

In a different approach motivated by the minimum description length principle (see Barron et al., 1998), Huang et al. (2009) consider a collection of groups G 2

{1,...,p}

, and define a “coding length”

for every group in G , which in turn is used to define a coding length for every pattern in 2

{1,...,p}

. Using this tool, they propose a regularization function cl : R

p

→ R such that for a vector w in R

p

, cl(w) represents the number of bits that are used for encoding w. The corresponding optimization problem is also addressed with a greedy procedure:

w

min

Rp

1

2 k yXw k

22

s.t. cl(w) ≤ s,

Intuitively, this formulation encourages solutions w 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 G 2

{1,...,p}

of such groups of variables, the following penalty can naturally be used as a regularization to induce the desired property

ψ(w) , ∑

gG

η

g

δ

g

(w), with δ

g

(w) ,

( 1 if there exists jg such that w

j

6 = 0,

0 otherwise, (1)

where the η

g

’s are positive weights. This penalty was considered by Bach (2010), who showed that the convex envelope of such nonconvex functions (more precisely strictly positive, non-increasing submodular functions of Supp(w), see Fujishige, 2005) when restricted on the unit ℓ

-ball, are in fact types of structured sparsity-inducing norms which are the topic of the next section.

2.2 Convex Approaches with Sparsity-Inducing Norms

In this paper, we are interested in convex regularizations which induce structured sparsity. Gener- ally, we consider the following optimization problem

w

min

Rp

f (w) + λΩ(w), (2)

where f : R

p

→ R is a convex function (usually an empirical risk in machine learning and a data- fitting term in signal processing), and Ω : R

p

→ R is a structured sparsity-inducing norm, defined as

Ω(w) , ∑

gG

η

g

k w

g

k , (3)

where G 2

{1,...,p}

is a set of groups of variables, the vector w

g

in R

|g|

represents the coefficients

of w indexed by g in G , the scalars η

g

are positive weights, and k . k denotes the ℓ

2

- or ℓ

-norm. We

now consider different cases:

(6)

• When G is the set of singletons—that is G , {{ 1 } , { 2 } , . . . , { p }} , and all the η

g

are equal to one, Ω is the ℓ

1

-norm, which is well known to induce sparsity. This leads for instance to the Lasso (Tibshirani, 1996) or equivalently to basis pursuit (Chen et al., 1999).

• If G is a partition of { 1, . . . , p } , 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 (Je- natton 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, 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

(w) , min

ξ=(ξg)gGRp×|G|

gG

η

g

k ξ

g

k s.t. w = ∑

gG

ξ

g

and ∀ g, Supp(ξ

g

) ⊆ g.

This penalty, which is also a norm, can be seen as a convex relaxation of the regularization intro- duced 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 algorith- mic 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.

2.3 Convex Optimization Methods Proposed in the Literature

Generic approaches to solve Eq. (2) mostly rely on subgradient descent schemes (see Bertsekas, 1999), 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.

To the best of our knowledge, only a few recent papers have addressed problem Eq. (2) with

dedicated optimization procedures, and in fact, only when Ω is a linear combination of ℓ

2

-norms. In

this setting, a first line of work deals with the non-smoothness of Ω by expressing the norm as the

minimum over a set of smooth functions. At the cost of adding new variables (to describe the set of

smooth functions), the problem becomes more amenable to optimization. In particular, reweighted-

2

schemes consist of approximating the norm Ω by successive quadratic upper bounds (Argyriou

et al., 2008; Rakotomamonjy et al., 2008; Jenatton et al., 2010b; Micchelli et al., 2010). It is possible

(7)

to show for instance that

Ω(w) = min

(zg)gGR|G|

+

1 2

gG

η

2g

k w

g

k

22

z

g

+ z

g

.

Plugging the previous relationship into Eq. (2), the optimization can then be performed by alternat- ing between the updates of w and the additional variables (z

g

)

gG

.

4

When the norm Ω is defined as a linear combination of ℓ

-norms, we are not aware of the existence of such variational formulations.

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 (for more details, see Bach et al., 2011).

The last approach we would like to mention is that of Chen et al. (2010), who used a smoothing technique introduced by Nesterov (2005). A smooth approximation Ω

µ

of Ω is used, when Ω is a sum of ℓ

2

-norms, and µ is a parameter controlling the trade-off between smoothness of

µ

and quality of the approximation. Then, Eq. (2) is solved with accelerated gradient techniques (Beck and Teboulle, 2009; Nesterov, 2007) but Ω

µ

is substituted to the regularization Ω. Depending on the required precision for solving the original problem, this method provides a natural choice for the parameter µ, with a known convergence rate. A drawback is that it requires to choose the precision of the optimization beforehand. Moreover, since a ℓ

1

-norm is added to the smoothed Ω

µ

, the solutions returned by the algorithm might be sparse but possibly without respecting the structure encoded by Ω. This should be contrasted with other smoothing techniques, e.g., the reweighted-ℓ

2

scheme we mentioned above, where the solutions are only approximately sparse.

3. Optimization with Proximal Gradient Methods

We address in this section the problem of solving Eq. (2) under the following assumptions:

• f is differentiable with Lipschitz-continuous gradient. For machine learning problems, this hypothesis holds when f is for example the square, logistic or multi-class logistic loss (see Shawe-Taylor and Cristianini, 2004).

• Ω is a sum of

-norms. Even though the

2

-norm is sometimes used in the literature (Jenatton et al., 2009), and is in fact used later in Section 4, the ℓ

-norm is piecewise linear, and we take advantage of this property in this work.

To the best of our knowledge, no dedicated optimization method has been developed for this setting.

Following Jenatton et al. (2010a, 2011) who tackled the particular case of hierarchical norms, we propose to use proximal gradient methods, which we now introduce.

4. Note that such a scheme is interesting only if the optimization with respect to w is simple, which is typically the case with the square loss function (Bach et al., 2011). Moreover, for this alternating scheme to be provably convergent, the variables(zg)gG have to be bounded away from zero, resulting in solutions whose entries may have small values, but not “true” zeros.

(8)

3.1 Proximal Gradient Methods

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 learn- ing communities (e.g., Bach et al., 2011, and references therein), especially because of their con- vergence rates (optimal for the class of first-order techniques) and their ability to deal with large nonsmooth convex problems (e.g., Nesterov, 2007; Beck and Teboulle, 2009).

These methods are iterative procedures that can be seen as an extension of gradient-based tech- niques when the objective function to minimize has a nonsmooth part. The simplest version of this class of methods linearizes at each iteration the function f around the current estimate ˜ w, and this estimate is updated as the (unique by strong convexity) solution of the proximal problem, defined as:

w

min

Rp

f ( w) + (w ˜w) ˜

f ( w) + ˜ λΩ(w) + L

2 k ww ˜ k

22

.

The quadratic term keeps the update in a neighborhood where f is close to its linear approximation, and L >0 is a parameter which is a upper bound on the Lipschitz constant of ∇ f . This problem can be equivalently rewritten as:

w

min

Rp

1 2 w ˜ − 1

Lf ( w) ˜w

2 2

+ λ

L Ω(w),

Solving efficiently and exactly this problem allows to attain the fast convergence rates of proximal methods, i.e., reaching a precision of O(

kL2

) in k iterations.

5

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:

Definition 1 (Proximal Operator)

The proximal operator associated with our regularization term λΩ, which we denote by Prox

λΩ

, is the function that maps a vector u ∈ R

p

to the unique solution of

w

min

Rp

1

2 k uw k

22

+ λΩ(w). (4) 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,

• When Ω is the ℓ

1

-norm—that is Ω(w) = k w k

1

— the proximal operator is the well-known elementwise soft-thresholding operator,

j ∈ { 1, . . . , p } , u

j

7→ sign(u

j

)( | u

j

| − λ)

+

=

( 0 if | u

j

| ≤ λ sign(u

j

)( | u

j

| − λ) otherwise.

• When Ω is a group-Lasso penalty with ℓ

2

-norms—that is, Ω(u) = ∑

gG

k u

g

k

2

, with G being a partition of { 1, . . . , p } , the proximal problem is separable in every group, and the solution is a generalization of the soft-thresholding operator to groups of variables:

gG ,u

g

7→ u

g

− Π

k.k2λ

[u

g

] =

( 0 if k u

g

k

2

≤ λ

kugk2−λ

kugk2

u

g

otherwise,

5. Note, however, that fast convergence rates can also be achieved while solving approximately the proximal prob- lem (see Schmidt et al., 2011, for more details).

(9)

where Π

k.k2≤λ

denotes the orthogonal projection onto the ball of the ℓ

2

-norm of radius λ.

• When Ω is a group-Lasso penalty with ℓ

-norms—that is, Ω(u) = ∑

gG

k u

g

k

, with G being a partition of { 1, . . . , p } , the solution is a different group-thresholding operator:

gG , u

g

7→ u

g

− Π

k.k1λ

[u

g

],

where Π

k.k1≤λ

denotes the orthogonal projection onto the ℓ

1

-ball of radius λ, which can be solved in O(p) operations (Brucker, 1984; Maculan and de Paula, 1989). Note that when k u

g

k

1

≤ λ, we have a group-thresholding effect, with u

g

− Π

k.k1≤λ

[u

g

] = 0.

• When Ω is a tree-structured sum of ℓ

2

- or ℓ

-norms as introduced by Zhao et al. (2009)—

meaning that two groups are either disjoint or one is included in the other, the solution admits a closed form. Let be a total order on G such that for g

1

,g

2

in G , g

1

g

2

if and only if either g

1

g

2

or g

1

g

2

= /0.

6

Then, if g

1

. . . g

|G|

, and if we define Prox

g

as (a) the proximal operator u

g

7→ Prox

ληgk·k

(u

g

) on the subspace corresponding to group g and (b) the identity on the orthogonal, Jenatton et al. (2010a, 2011) showed that:

Prox

λΩ

= Prox

gm

◦ . . . ◦ Prox

g1

, (5)

which can be computed in O( p) operations. It also includes the sparse group Lasso (sum of group-Lasso penalty and ℓ

1

-norm) of Friedman et al. (2010) and Sprechmann et al. (2010).

The first contribution of our paper is to address the case of general overlapping groups with ℓ

-norm.

3.2 Dual of the Proximal Operator

We now show that, for a set G 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, 2011):

Lemma 1 (Dual of the proximal problem, Jenatton et al., 2010a, 2011) Given u in R

p

, consider the problem

ξ∈

min

Rp×|G|

1

2 k u − ∑

gG

ξ

g

k

22

s.t.gG , k ξ

g

k

1

≤ λη

g

and ξ

gj

= 0 if j ∈ / g, (6) where ξ = (ξ

g

)

gG

is in R

p×|G|

, and ξ

gj

denotes the j-th coordinate of the vector ξ

g

. Then, every solution ξ

= (ξ

⋆g

)

gG

of Eq. (6) satisfies w

= u −∑

gG

ξ

⋆g

, where w

is the solution of Eq. (4) whenis a weighted sum of

-norms.

Without loss of generality,

7

we assume from now on that the scalars u

j

are all non-negative, and we constrain the entries of ξ to be so. Such a formulation introduces p | G | dual variables which can be much greater than p, 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 ξ

gj

, for g in G and j in g, can be interpreted as measuring the components of a flow.

6. For a tree-structured setG, such an order exists.

7. Letξdenote a solution of Eq. (6). Optimality conditions of Eq. (6) derived in Jenatton et al. (2010a, 2011) show that for all j in{1, . . . ,p}, the signs of the non-zero coefficientsξ⋆gj for g inG are the same as the signs of the entries uj. To solve Eq. (6), one can therefore flip the signs of the negative variables uj, then solve the modified dual formulation (with non-negative variables), which gives the magnitude of the entriesξ⋆gj (the signs of these being known).

(10)

3.3 Graph Model

Let G be a directed graph G = (V,E, s,t), where V is a set of vertices, EV × V a set of arcs, s a source, and t a sink. For all arcs in E, 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 e in E, we also define a real-valued cost function, which depends on the value of the flow on e. We now introduce the canonical graph G associated with our optimization problem:

Definition 2 (Canonical Graph)

Let G ⊆ { 1, . . . , p } be a set of groups, and

g

)

gG

be positive weights. The canonical graph G = (V,E ,s,t) is the unique graph defined as follows:

1. V = V

u

V

gr

, where V

u

is a vertex set of size p, one vertex being associated to each index j in { 1, . . . , p } , and V

gr

is a vertex set of size | G | , one vertex per group g in G . We thus have | V | = | G | + p. For simplicity, we identify groups g in G and indices j in { 1, . . . , p } with vertices of the graph, such that one can from now on refer to “vertex j” or “vertex g”.

2. For every group g in G , E contains an arc (s,g). These arcs have capacity λη

g

and zero cost.

3. For every group g in G , and every index j in g, E contains an arc (g, j) with zero cost and infinite capacity. We denote by ξ

gj

the flow on this arc.

4. For every index j in { 1, . . . , p } , E contains an arc ( j,t) with infinite capacity and a cost

1

2

(u

j

− ξ

j

)

2

, where ξ

j

is the flow on ( j,t).

Examples of canonical graphs are given in Figures 1a-c for three simple group structures. The flows ξ

gj

associated with G can now be identified with the variables of problem (6). Since we have assumed the entries of u to be non-negative, we can now reformulate Eq. (6) as

min

ξ∈R+p×|G|,ξ∈Rp

p j=1

1

2 (u

j

− ξ

j

)

2

s.t. ξ = ∑

gG

ξ

g

and ∀ gG , (

jg

ξ

gj

≤ λη

g

and Supp(ξ

g

) ⊆ g )

. (7) Indeed,

• the only arcs with a cost are those leading to the sink, which have the form ( j,t), where j is the index of a variable in { 1, . . . , p } . The sum of these costs is ∑

pj=112

(u

j

− ξ

j

)

2

, which is the objective function minimized in Eq. (7);

• by flow conservation, we necessarily have ξ

j

= ∑

gG

ξ

gj

in the canonical graph;

• the only arcs with a capacity constraints are those coming out of the source, which have the form (s, g), where g is a group in G . By flow conservation, the flow on an arc (s,g) is ∑

jg

ξ

gj

which should be less than λη

g

by capacity constraints;

• all other arcs have the form (g, j), where g is in G and j is in g. Thus, Supp(ξ

g

) ⊆ g.

(11)

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 h and g are groups with hg, the edges (g, j) for jh carrying a flow ξ

gj

can be removed and replaced by a single edge (g, h) of infinite capacity and zero cost, carrying the flow ∑

jh

ξ

gj

. 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 w

. 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.

3.4 Computation of the Proximal Operator

Quadratic min-cost flow problems have been well studied in the operations research literature (Hochbaum and Hong, 1995). One of the simplest cases, where G contains a single group as in Figure 1a, is solved by an orthogonal projection on the ℓ

1

-ball of radius λη

g

. It has been shown, both in machine learning (Duchi et al., 2008) and operations research (Hochbaum and Hong, 1995;

Brucker, 1984), that such a projection can be computed in O(p) operations. When the group struc- ture is a tree as in Figure 1d, strategies developed in the two communities are also similar (Jenatton et al., 2010a; Hochbaum and Hong, 1995),

8

and solve the problem in O( pd) operations, where d is the depth of the tree.

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).

9

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 ξ =

gG

ξ

g

is the only value of interest to compute the solution of the proximal operator w = u − ξ, the first step looks for a candidate value γ for ξ by solving the following relaxed version of problem (7):

arg min

γ∈Rp

jVu

1

2 (u

j

− γ

j

)

2

s.t. ∑

jVu

γ

j

≤ λ ∑

gVgr

η

g

. (8)

The cost function here is the same as in problem (7), but the constraints are weaker: Any feasi- ble 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 k u − γ k

22

/2 for the optimal cost of problem (7).

8. Note however that, while Hochbaum and Hong (1995) only consider a tree-structured sum ofℓ-norms, the results from Jenatton et al. (2010a) also apply for a sum ofℓ2-norms.

9. 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.

(12)

s

g ξ

g1

g2

g3

≤ λη

g

u

2

ξ

g2

u

1

ξ

g1

u

3

ξ

g3

t

ξ

1

,c

1

ξ

2

,c

2

ξ

3

,c

3

(a)G={g={1,2,3}}.

s

g ξ

g1

g2

≤ λη

g

h

ξ

h2

h3

≤ λη

h

u

2

ξ

h2

ξ

g2

u

1

ξ

g1

u

3

ξ

h3

t

ξ

1

,c

1

ξ

2

,c

2

ξ

3

, c

3

(b)G={g={1,2},h={2,3}}.

s

g ξ

g1

g2

g3

≤ λη

g

h ξ

h2

h3

≤ λη

h

u

2

ξ

h2

ξ

g2

u

1

ξ

g1

u

3

ξ

g3

ξ

h3

t

ξ

1

, c

1

ξ

2

,c

2

ξ

3

,c

3

(c)G={g={1,2,3},h={2,3}}.

s

g ξ

g1

g2

g3

≤ λη

g

h ξ

h2

h3

≤ λη

h

ξ

g2

g3

u

2

ξ

g2

h2

u

1

ξ

g1

u

3

ξ

g3

h3

t

ξ

1

, c

1

ξ

2

,c

2

ξ

3

,c

3

(d)G={g={1} ∪h,h={2,3}}.

Figure 1: Graph representation of simple proximal problems with different group structures G . The

three indices 1,2,3 are represented as grey squares, and the groups g,h in G as red discs. The

source is linked to every group g,h with respective maximum capacity λη

g

,λη

h

and zero cost. Each

variable u

j

is linked to the sink t, with an infinite capacity, and with a cost c

j

,

12

(u

j

− ξ

j

)

2

. All other

arcs in the graph have zero cost and infinite capacity. They represent inclusion relations in-between

groups, and between groups and variables. The graphs (c) and (d) correspond to a special case of

tree-structured hierarchy in the sense of Jenatton et al. (2010a). Their min-cost flow problems are

equivalent.

(13)

Algorithm 1 Computation of the proximal operator for overlapping groups.

input u ∈ R

p

, a set of groups G , positive weights (η

g

)

gG

, and λ (regularization parameter).

1:

Build the initial graph G

0

= (V

0

,E

0

,s,t) as explained in Section 3.4.

2:

Compute the optimal flow: ξ ← computeFlow(V

0

, E

0

).

3:

Return: w = u − ξ (optimal solution of the proximal problem).

Function computeFlow(V = V

u

V

gr

,E)

1:

Projection step: γ ← arg min

γ

jVu

1

2

(u

j

− γ

j

)

2

s.t. ∑

jVu

γ

j

≤ λ∑

gVgr

η

g

.

2:

For all nodes j in V

u

, set γ

j

to be the capacity of the arc ( j,t).

3:

Max-flow step: Update (ξ

j

)

jVu

by computing a max-flow on the graph (V, E,s,t).

4:

ifjV

u

s.t. ξ

j

6 = γ

j

then

5:

Denote by (s,V

+

) and (V

,t) the two disjoint subsets of (V,s,t) separated by the minimum (s,t)-cut of the graph, and remove the arcs between V

+

and V

. Call E

+

and E

the two remaining disjoint subsets of E corresponding to V

+

and V

.

6:

j

)

jV+

u

← computeFlow(V

+

, E

+

).

7:

j

)

jV

u

← computeFlow(V

, E

).

8:

end if

9:

Return:

j

)

jVu

.

The second step tries to construct a feasible flow (ξ,ξ), satisfying additional capacity constraints equal to γ

j

on arc ( j,t), 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 ξ 6 = γ, the lower bound is not achievable, and we build a minimum (s,t)-cut of the graph (Ford and Fulkerson, 1956) defining two disjoints sets of nodes V

+

and V

; V

+

is the part of the graph which is reachable from the source (for every node j in V

+

, there exists a non- saturated path from s to j), whereas all paths going from s to nodes in V

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 V

+

and V

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(V

+

,E

+

) and computeFlow(V

,E

). 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 com- plexity 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 | V | ), it is more adapted to the structure of our graphs and has proven to be much faster in our experiments (see Appendix D).

10

Some implementation details are also crucial to the efficiency of the algorithm:

10. The best theoretical worst-case complexity of a max-flow is achieved by Goldberg and Tarjan (1986) and is O|V||E|log(|V|2/|E|)

. Our algorithm achieves the same worst-case complexity when the cuts are well balanced—

(14)

• Exploiting maximal connected components: When there exists no arc between two sub- sets of V , the solution can be obtained by solving two smaller optimization problems cor- responding to the two disjoint subgraphs. It is indeed possible to process them indepen- dently to solve the global min-cost flow problem. To that effect, before calling the function computeFlow(V, E), we look for maximal connected components (V

1

,E

1

), . . . , (V

N

,E

N

) and call sequentially the procedure computeFlow(V

i

,E

i

) for i in { 1, . . . , N } .

• Efficient max-flow algorithm: We have implemented the “push-relabel” algorithm of Gold- berg and Tarjan (1986) to solve our max-flow problems, using classical heuristics that signif- icantly 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 heuris- tics” (Goldberg and Tarjan, 1986; Cherkassky and Goldberg, 1997), which has a worst-case complexity of O( | V |

2

| E |

1/2

) for a graph (V,E ,s,t). 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 γ ← arg min

γ

jVu

1

2

(u

j

− γ

j

)

2

s.t. ∑

jVu

γ

j

≤ λ∑

gVgr

η

g

and | γ

j

| ≤ λ∑

gj

η

g

. 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 ξ

j

to be greater than λ∑

gj

η

g

after the max-flow step. This modified projection step can still be computed in linear time (Brucker, 1984), and leads to better performance.

3.5 Computation of the Dual Norm

The dual norm Ω

of Ω, defined for any vector κ in R

p

by Ω

(κ) , max

Ω(z)1

z

κ,

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 (see Section 5.5, Boyd and Van- denberghe, 2004). 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 (see Section 5.5, Boyd and Vandenberghe, 2004). A description of the algorithm we use in the experi- ments (Beck and Teboulle, 2009) along with the integration of the computation of the duality gap is given in Appendix C.

that is|V+| ≈ |V| ≈ |V|/2, but we lose a factor|V|when it is not the case. The practical speed of such algorithms is however significantly different than their theoretical worst-case complexities (see Boykov and Kolmogorov, 2004).

(15)

We now denote by f

the Fenchel conjugate of f (Borwein and Lewis, 2006), defined by f

(κ) , sup

z

[z

κ − f(z)]. The duality gap for problem (2) can be derived from standard Fenchel duality arguments (Borwein and Lewis, 2006) and it is equal to

f (w) + λΩ(w) + f

( − κ) for w, κ in R

p

with Ω

(κ) ≤ λ.

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:

(κ) = min

ξ∈Rp×|G

τ

|

s.t. ∑

gG

ξ

g

= κ, and ∀ gG , k ξ

g

k

1

≤ τη

g

with ξ

gj

= 0 if j ∈ / g. (9)

In the network problem associated with (9), the capacities on the arcs (s,g), g ∈ G , are set to τη

g

, and the capacities on the arcs ( j,t), j in { 1, . . . , p } , are fixed to κ

j

. Solving problem (9) amounts to finding the smallest value of τ, such that there exists a flow saturating all the capacities κ

j

on the arcs leading to the sink t. Equation (9) and Algorithm 2 are proven to be correct in Appendix B.

Algorithm 2 Computation of the dual norm.

input κ ∈ R

p

, a set of groups G , positive weights (η

g

)

gG

.

1:

Build the initial graph G

0

= (V

0

,E

0

,s,t) as explained in Section 3.5.

2:

τ ← dualNorm(V

0

,E

0

).

3:

Return: τ (value of the dual norm).

Function dualNorm(V = V

u

V

gr

,E)

1:

τ ← ( ∑

jVu

κ

j

)/( ∑

gVgr

η

g

) and set the capacities of arcs (s,g) to τη

g

for all g in V

gr

.

2:

Max-flow step: Update (ξ

j

)

jVu

by computing a max-flow on the graph (V, E,s,t).

3:

ifjV

u

s.t. ξ

j

6 = κ

j

then

4:

Define (V

+

,E

+

) and (V

,E

) as in Algorithm 1, and set τ ← dualNorm(V

, E

).

5:

end if

6:

Return: τ.

4. Optimization with Proximal Splitting Methods

We now present proximal splitting algorithms (see Combettes and Pesquet, 2008, 2010; Tomioka et al., 2011; Boyd et al., 2011, and references therein) for solving Eq. (2). Differentiability of f is not required here and the regularization function can either be a sum of ℓ

2

- or ℓ

-norms. However, we assume that:

(A) either f can be written f (w) = ∑

ni=1

˜f

i

(w), where the functions ˜f

i

are such that prox

γf˜i

can be obtained in closed form for all γ > 0 and all i—that is, for all u in R

m

, the following problems admit closed form solutions: min

vRm1

2

k uv k

22

+ γ f ˜

i

(v).

(B) or f can be written f (w) = f ˜ (Xw) for all w in R

p

, where X in R

n×p

is a design matrix, and

one knows how to efficiently compute prox

γf˜

for all γ > 0.

Références

Documents relatifs

In this chapter, we consider a probabilistic model of sparse signals, and show that, with high probability, sparse coding admits a local minimum along some curves passing through

In particular, we discuss the case of overlap count Lasso norms in Section 7.1, the case of norms for hierarchical sparsity in Section 7.2 and the case of symmetric norms associated

− By selecting specific submodular functions in Section 4, we recover and give a new interpretation to known norms, such as those based on rank-statistics or grouped norms

We review efficient opti- mization methods to deal with the corresponding inverse problems, 11–13 and their application to the problem of learning dictionaries of natural image

Our model follows the pattern of sparse Bayesian models (Palmer et al., 2006; Seeger and Nickisch, 2011, among others), that we take two steps further: First, we propose a more

Figure 9: Examples of generating patterns (the zero variables are represented in black, while the nonzero ones are in white): (Left column, in white) generating patterns that are

The corresponding penalty was first used by Zhao, Rocha and Yu (2009); one of it simplest instance in the context of regression is the sparse group Lasso (Sprechmann et al.,

A byproduct of standard compressed sensing results [CP11] implies that variable density sampling [PVW11, CCW13, KW14] allows perfect reconstruction with a limited (but usually too