Learning with Submodular Functions: A Convex Optimization Perspective
Francis Bach
Chapter 1 Introduction
Many combinatorial optimization problems may be cast as the minimization of a set-function, that is a function defined on the set of subsets of a given base set . Equivalently, they may be defined as functions on the vertices of the hyper-cube, i.e, where is the cardinality of the base set —they are then often referred to as pseudo-boolean functions . Among these set-functions, submodular functions play an important role, similar to convex functions on vector spaces, as many functions that occur in practical problems turn out to be submodular functions or slight modifications thereof, with applications in many areas areas of computer science and applied mathematics, such as machine learning , computer vision , operations research , electrical networks or economics . Since submodular functions may be minimized exactly, and maximized approximately with some guarantees, in polynomial time, they readily lead to efficient algorithms for all the numerous problems they apply to. They are also appear in several areas of theoretical computer science, such as matroid theory .
However, the interest for submodular functions is not limited to discrete optimization problems. Indeed, the rich structure of submodular functions and their link with convex analysis through the Lovász extension and the various associated polytopes makes them particularly adapted to problems beyond combinatorial optimization, namely as regularizers in signal processing and machine learning problems . Indeed, many continuous optimization problems exhibit an underlying discrete structure (e.g., based on chains, trees or more general graphs), and submodular functions provide an efficient and versatile tool to capture such combinatorial structures.
In this monograph, the theory of submodular functions is presented in a self-contained way, with all results proved from first principles of convex analysis common in machine learning, rather than relying on combinatorial optimization and traditional theoretical computer science concepts such as matroids or flows (see, e.g., for a reference book on such approaches). Moreover, the algorithms that we present are based on traditional convex optimization algorithms such as the simplex method for linear programming, active set method for quadratic programming, ellipsoid method, cutting planes, and conditional gradient. These will be presented in details, in particular in the context of submodular function minimization and its various continuous extensions. A good knowledge of convex analysis is assumed (see, e.g., ) and a short review of important concepts is presented in Appendix A—for more details, see, e.g., .
The monograph is organized in several chapters, which are summarized below (in the table of contents, sections that can be skipped in a first reading are marked with a star∗):
Definitions: In Chapter 2, we give the different definitions of submodular functions and of the associated polyhedra, in particular, the base polyhedron and the submodular polyhedron. They are crucial in submodular analysis as many algorithms and models may be expressed naturally using these polyhedra.
Polyhedra: Associated polyhedra are further studied in Chapter 4, where support functions and the associated maximizers of linear functions are computed. We also detail the facial structure of such polyhedra, which will be useful when related to the sparsity-inducing properties of the Lovász extension in Chapter 5.
Convex relaxation of submodular penalties: While submodular functions may be used directly (for minimization of maximization of set-functions), we show in Chapter 5 how they may be used to penalize supports or level sets of vectors. The resulting mixed combinatorial/continuous optimization problems may be naturally relaxed into convex optimization problems using the Lovász extension.
Examples: In Chapter 6, we present classical examples of submodular functions, together with several applications in machine learning, in particular, cuts, set covers, network flows, entropies, spectral functions and matroids.
Non-smooth convex optimization: In Chapter 7, we review classical iterative algorithms adapted to the minimization of non-smooth polyhedral functions, such as subgradient, ellipsoid, simplicial, cutting-planes, active-set, and conditional gradient methods. A particular attention is put on providing when applicable primal/dual interpretations to these algorithms.
Separable optimization - Algorithms: In Chapter 9, we present two sets of algorithms for separable optimization problems. The first algorithm is an exact algorithm which relies on the availability of an efficient submodular function minimization algorithm, while the second set of algorithms are based on existing iterative algorithms for convex optimization, some of which come with online and offline theoretical guarantees. We consider active-set methods (“min-norm-point” algorithm) and conditional gradient methods.
Submodular function minimization: In Chapter 10, we present various approaches to submodular function minimization. We present briefly the combinatorial algorithms for exact submodular function minimization, and focus in more depth on the use of specific convex optimization problems, which can be solved iteratively to obtain approximate or exact solutions for submodular function minimization, with sometimes theoretical guarantees and approximate optimality certificates. We consider the subgradient method, the ellipsoid method, the simplex algorithm and analytic center cutting planes. We also show how the separable optimization problems from Chapters 8 and 9 may be used for submodular function minimization. These methods are then empirically compared in Chapter 12.
Submodular optimization problems: In Chapter 11, we present other combinatorial optimization problems which can be partially solved using submodular analysis, such as submodular function maximization and the optimization of differences of submodular functions, and relate these to non-convex optimization problems on the submodular polyhedra. While these problems typically cannot be solved in polynomial time, many algorithms come with approximation guarantees based on submodularity.
Experiments: In Chapter 12, we provide illustrations of the optimization algorithms described earlier, for submodular function minimization, as well as for convex optimization problems (separable or not). The Matlab code for all these experiments may be found at http://www.di.ens.fr/~fbach/submodular/.
In Appendix A, we review relevant notions from convex analysis (such as Fenchel duality, dual norms, gauge functions, and polar sets), while in Appendix B, we present several results related to submodular functions, such as operations that preserve submodularity.
Several books and monograph articles already exist on the same topic and the material presented in this monograph rely on those . However, in order to present the material in the simplest way, ideas from related research papers have also been used, and a stronger emphasis is put on convex analysis and optimization.
Chapter 2 Definitions
The field of submodular analysis takes its roots in matroid theory, and submodular functions were first seen as extensions of rank functions of matroids (see and §6.8) and their analysis strongly linked with special convex polyhedra which we define in §2.2. After the links with convex analysis were established , submodularity appeared as a central concept in combinatorial optimization. Like convexity, many models in science and engineering and in particular in machine learning involve submodularity (see Chapter 6 for many examples). Like convexity, submodularity is usually enough to derive general theories and generic algorithms (but of course some special cases are still of importance, such as min-cut/max-flow problems), which have attractive theoretical and practical properties. Finally, like convexity, there are many areas where submodular functions play a central but somewhat hidden role in combinatorial and convex optimization. For example, in Chapter 5, we show how many problems in convex optimization involving discrete structured turns out be cast as submodular optimization problems, which then immediately lead to efficient algorithms.
In §2.1, we provide the definition of submodularity and its equivalent characterizations. While submodularity may appear rather abstract, it turns out it come up naturally in many examples. In this chapter, we will only review a few classical examples which will help illustrate our various results. For an extensive list of examples, see Chapter 6. In §2.2, we define two polyhedra traditionally associated with a submodular function, while in §2.3, we consider non-decreasing submodular functions, often referred to as polymatroid rank functions.
Submodular functions may be defined through several equivalent properties, which we now present. Additive measures are the first examples of set-functions, the cardinality being the simplest example. A well known property of the cardinality is that for any two sets , then , which extends to all additive measures. A function is submodular if and only if the previous equality is only an inequality for all subsets and of :
Note that if a function is submodular and such that (which we will always assume), for any two disjoint sets , then , i.e., submodularity implies sub-additivity (but the converse is not true).
As seen earlier, the simplest example of a submodular function is the cardinality (i.e., where is the number of elements of ), which is both submodular and supermodular (i.e., its opposite is submodular). It turns out that only additive measures have this property of being modular.
From Def. 2.1, it is clear that the set of submodular functions is closed under linear combination and multiplication by a positive scalar (like convex functions).
Moreover, like convex functions, several notions of restrictions and extensions may be defined for submodular functions (proofs immediately follow from Def. 2.1):
More operations that preserve submodularity are defined in Appendix B, in particular partial minimization (like for convex functions). Note however, that in general the pointwise minimum or pointwise maximum of submodular functions are not submodular (properties which would be true for respectively concave and convex functions).
Checking the condition in Def. 2.1 is not always easy in practice; it turns out that it can be restricted to only certain sets and , which we now present.
The following proposition shows that a submodular has the “diminishing return” property, and that this is sufficient to be submodular. Thus, submodular functions may be seen as a discrete analog to concave functions. However, as shown in Chapter 3, in terms of optimization they behave more like convex functions (e.g., efficient minimization, duality theory, links with the convex Lovász extension).
(Definition with first-order differences) The set-function is submodular if and only if for all and , such that and , we have
Proof Let , and ; we have with and , which shows that the condition is necessary. To prove the opposite, we assume that the first-order difference condition is satisfied; one can first show that if and , then (this can be obtained by summing the inequalities where ).
Then, for any , take , and (which implies and ) to obtain , which shows that the condition is sufficient.
The following proposition gives the tightest condition for submodularity (easiest to show in practice).
(Definition with second-order differences) The set-function is submodular if and only if for all and , we have .
Proof This condition is weaker than the one from the previous proposition (as it corresponds to taking ). To prove that it is still sufficient, consider , , and . We can apply the second-order difference condition to subsets , , and sum the inequalities , for , to obtain the condition in Prop. 2.2.
Note that the set of submodular functions is itself a conic polyhedron with the facets defined in Prop. 2.3. In order to show that a given set-function is submodular, there are several possibilities: (a) use Prop. 2.3 directly, (b) use the Lovász extension (see Chapter 3) and show that it is convex, (c) cast the function as a special case from Chapter 6 (typically a cut or a flow), or (d) use known operations on submodular functions presented in Appendix B.
Beyond modular functions, we will consider as running examples for the first chapters of this monograph the following submodular functions (which will be studied further in Chapter 6):
Counting elements in a partitions: Given a partition of into sets , then the function that counts for a set the number of elements in the partition which intersects is submodular. It may be written as (submodularity is then immediate from the previous example and the restriction properties outlined previously). Generalizations to all set covers will be studied in §6.3.
Cuts: given an undirected graph with vertex set , then the cut function for the set is defined as the number of edges between vertices in and vertices in , i.e., . For each , then the function is submodular (because of operations that preserve submodularity), thus as a sum of submodular functions, it is submodular.
2 Associated polyhedra
(Submodular and base polyhedra) Let be a submodular function such that . The submodular polyhedron and the base polyhedron are defined as:
Proof The first part is trivial, since implies that for all , . For the second part, given the previous property, we only need to show that is non-empty, which is true since the constant vector equal to belongs to .
3 Polymatroids (non-decreasing submodular functions)
When the submodular function is also non-decreasing, i.e., when for , , then the function is often referred to as a polymatroid rank function (see related matroid rank functions in §6.8). For these functions, as shown in Chapter 4, the base polyhedron happens to be included in the positive orthant (the submodular function from Figure 2.1 is thus non-decreasing).
Although, the study of polymatroids may seem too restrictive as many submodular functions of interest are not non-decreasing (such as cuts), polymatroids were historically introduced as the generalization of matroids (which we study in §6.8). Moreover, any submodular function may be transformed to a non-decreasing function by adding a modular function:
Proof Submodularity is immediate since is submodular and adding two submodular functions preserves submodularity. Let and . We have:
which is non-negative since (because of Prop. 2.2). This implies that is non-decreasing.
The joint properties of submodularity and monotonicity gives rise to a compact characterization of polymatroids , which we now describe:
(Characterization of polymatroids) Let by a set-function such that . For any , define for , the gain of adding element to the set . The function is a polymatroid rank function (i.e., submodular and non-decreasing) if and only if for all ,
Proof If Eq. (2.1) is true, then, if , , and thus , which implies monotonicity. We can then apply Eq. (2.1) to and to obtain the condition in Prop. 2.3, hence the submodularity.
We now assume that is non-decreasing and submodular. For any two subsets and of , if we enumerate the set as , we have
which is exactly Eq. (2.1). The last proposition notably shows that each submodular function is upper-bounded by a constant plus a modular function, and these upper-bounds may be enforced to be tight at any given . This will be contrasted in §5.1 to the other property shown later that modular lower-bounds also exist (Prop. 3.2).
For polymatroids, we will consider in this monograph two other polyhedra: the positive submodular polyhedron, which we now define by considering the positive part of the submodular polyhedron (sometimes called the independence polyhedron), and then its symmetrized version, which we refer to as the symmetric submodular polyhedron. See examples in two and three dimensions in Figure 2.2 and Figure 2.3.
(Positive submodular polyhedron) Let be a non-decreasing submodular function such that . The positive submodular polyhedron is defined as:
The positive submodular polyhedron is the intersection of the submodular polyhedron with the positive orthant (see Figure 2.2). Note that if is not non-decreasing, we may still define the positive submodular polyhedron, which is then equal to the submodular polyhedron associated with the monotone version of , i.e., (see Appendix B for more details).
(Symmetric submodular polyhedron) Let be a non-decreasing submodular function such that . The submodular polyhedron is defined as:
Chapter 3 Lovász Extension
We first consider a set-function such that , which may not be submodular. Every element of the power set may be associated to a vertex of the hypercube . Namely, a set may be uniquely identified to the indicator vector (see Figure 3.1 and Figure 3.2).
The Lovász extension, which we define in §3.1, allows to draw links between submodular set-functions and regular convex functions, and transfer known results from convex analysis, such as duality. In particular, we prove in this chapter, two key results of submodular analysis and its relationship to convex analysis, namely, (a) that the Lovász extension is the support function of the base polyhedron, with a direct relationship through the “greedy algorithm” (§3.2), and (b) that a set-function is submodular if and only if its Lovász extension is convex (§3.3), with additional links between convex optimization and submodular function minimization.
While there are many additional results relating submodularity and convexity through the analysis of properties of the polyhedra defined in §2.2, these two results are the main building blocks of all the results presented in this monograph (for additional results, see Chapter 4 and ). In particular, in Chapter 5, we show how the Lovász extension may be used in convex continuous problems arising as convex relaxations of problems having mixed combinatorial/discrete structures.
We now define the Lovász extension of any set-function (not necessarily submodular). For several alternative representations and first properties, see Prop. 3.1.
Proof To prove that we actually define a function, one needs to prove that the definitions are independent of the potentially non unique ordering , which is trivial from the last formulations in Eq. (3.3) and Eq. (3.4). The first and second formulations in Eq. (3.1) and Eq. (3.2) are equivalent (by integration by parts, or Abel summation formula). To show equivalence with Eq. (3.3), one may notice that is piecewise constant, with value zero for , and equal to for , , and equal to for . What happens at break points is irrelevant for integration. Note that in Eq. (3.3), we may replace the integral by .
To prove Eq. (3.4) from Eq. (3.3), notice that for , Eq. (3.3) leads to
and we get the result by letting tend to . Note also that in Eq. (3.4) the integrands are equal to zero for large enough.
For , we may give several representations of the Lovász extension of a set-function . Indeed, from Eq. (3.1), we obtain
which can be written compactly into two different forms:
This allows an illustration of various propositions in this section (in particular Prop. 3.1). See also Figure 3.3 for an illustration. Note that for the cut in the complete graph with two nodes, we have and , leading to .
We have seen that for modular functions , then . For the function , then from Eq. (3.1), we have . For the function , that counts elements in a partition, we have , which can be obtained directly from Eq. (3.1), or by combining Lovász extensions of sums of set-functions (see property (a) in Prop. 3.1). For cuts, by combining the results for two-dimensional functions, we obtain .
The following proposition details classical properties of the Choquet integral/Lovász extension. In particular, property (f) below implies that the Lovász extension is equal to the original set-function on (which can canonically be identified to ), and hence is indeed an extension of . See an illustration in Figure 3.3 for .
Proof Properties (a), (b) and (c) are immediate from Eq. (3.4) and Eq. (3.2). Properties (d), (e) and (f) are straightforward from Eq. (3.2). If is symmetric, then , and thus (because we may replace strict inequalities by weak inequalities without changing the integral), i.e., is even. In addition, property (h) is a direct consequence of Eq. (3.2).
Finally, to prove property (i), we simply use property (b) and notice that since all components of are less than one, then , which leads to the desired result.
Note that when the function is a cut function (see §6.2), then the Lovász extension is related to the total variation and property (c) is often referred to as the co-area formula (see and references therein, as well as §6.2).
One may view the definition in Def. 3.1 in a geometric way. We can cut the set in polytopes, as shown in Figure 3.1 and the the bottom plot of Figure 3.2. These small polytopes are parameterized by one of the permutations of elements, i.e., one of the orderings , and are defined as the set of such that . For a given ordering, the corresponding convex set is the convex hull of the indicator vectors of sets , for (with the convention that ), and any in this polytope may be written as (which is indeed a convex combination), and thus, the definition of in Eq. (3.2) corresponds exactly to a linear interpolation of the values at the vertices of the polytope .
2 Greedy algorithm
The next result relates the Lovász extension with the support functionThe support function of a convex set is obtained by maximizing linear functions over , which leads to a convex function of ; see definition in Appendix A. of the submodular polyhedron or the base polyhedron , which are defined in Def. 2.2. This is the basis for many of the theoretical results and algorithms related to submodular functions. Using convex duality, it shows that maximizing a linear function with non-negative coefficients on the submodular polyhedron may be obtained in closed form, by the so-called “greedy algorithm” (see and §6.8 for an intuitive explanation of this denomination in the context of matroids), and the optimal value is equal to the value of the Lovász extension. Note that otherwise, solving a linear programming problem with constraints would then be required. This applies to the submodular polyhedron and to the base polyhedron ; note the different assumption regarding the positivity of the components of . See also Prop. 4.2 for a characterization of all maximizers and Prop. 3.4 for similar results for the positive submodular polyhedron and Prop. 3.5 for the symmetric submodular polyhedron .
Moreover, we can define dual variables for and with all other ’s equal to zero. Then they are all non negative (notably because ), and satisfy the constraint . Finally, the dual cost function has also value (from Eq. (3.2)). Thus by strong duality (which holds, because has a non-empty interior), is an optimal solution, hence property (a). Note that the maximizer is not unique in general (see Prop. 4.2 for a description of the set of solutions).
Given the previous proposition that provides a maximizer of linear functions over , we obtain a list of all extreme points of . Note that this also shows that is a polytope (i.e., it is a compact polyhedron).
(Extreme points of ) The set of extreme points is the set of vectors obtained as the result of the greedy algorithm from Prop. 3.2, for all possible orderings of components of .
We end this section, by simply stating the greedy algorithm for the symmetric and positive submodular polyhedron, whose proofs are similar to the proof of Prop. 3.2 (we define the sign of as if , and if , and zero otherwise; denotes the vector composed of the absolute values of the components of ). See also Prop. 4.9 and Prop. 4.10 for a characterization of all maximizers of linear functions.
3 Links between submodularity and convexity
The next proposition draws precise links between convexity and submodularity, by showing that a set-function is submodular if and only if its Lovász extension is convex . This is further developed in Prop. 3.7 where it is shown that, when is submodular, minimizing on (which is equivalent to minimizing on since is an extension of ) and minimizing on are equivalent.
(Convexity and submodularity) A set-function is submodular if and only if its Lovász extension is convex.
Proof We first assume that is convex. Let . The vector has components equal to (on ), (on ) and (on ). Therefore, from property (b) of Prop. 3.1, . Since is convex, then by homogeneity, , which is equal to , and thus is submodular.
The next proposition completes Prop. 3.6 by showing that minimizing the Lovász extension on is equivalent to minimizing it on , and hence to minimizing the set-function on (when is submodular).
(Minimization of submodular functions) Let be a submodular function and its Lovász extension; then . Moreover, the set of minimizers of on is the convex hull of minimizers of on .
Proof Because is an extension from to (property (f) from Prop. 3.1), we must have . To prove the reverse inequality, we may represent uniquely through its constant sets and their corresponding values; that is, there exists a unique partition of where is constant on each (equal to and is a strictly decreasing sequence (i.e., ). From property (h) of Prop. 3.1, we have
where the last inequality is obtained from and . This implies that .
There is equality in the previous sequence of inequalities, if and only if (a) for all , , (b) , and (c) . Moreover, we have
Thus, is the convex hull of the indicator vectors of the sets , for , of (if , i.e., from (b), if is a minimizer of ), and of (if , i.e., from (c), if is a minimizer of ). Therefore, any minimizer is in the convex hull of indicator vectors of minimizers of . The converse is true by the convexity of the Lovász extension .
See Chapter 10 for more details on submodular function minimization and the structure of minimizers.
Given that the Lovász extension of a submodular function is convex, it is natural to study its behavior when used within a convex estimation framework. In Chapter 5, we show that it corresponds to the convex relaxation of imposing some structure on supports or level sets of the vector to be estimated.
Chapter 4 Properties of Associated Polyhedra
We now study in more details submodular and base polyhedra defined in §2.2, as well as the symmetric and positive submodular polyhedra defined in §2.3 for non-decreasing functions. We first review in §4.1 that the support functions may be computed by the greedy algorithm, but now characterize the set of maximizers of linear functions, from which we deduce a detailed facial structure of the base polytope in §4.2. We then study the positive submodular polyhedron and the symmetric submodular polyhedron in §4.3.
The results presented in this chapter are key to understanding precisely the sparsity-inducing effect of the Lovász extension, which we present in details in Chapter 5. Note that §4.2 and §4.3 may be skipped in a first reading.
Proof The only statement left to prove beyond Prop. 3.2 is (c): we just need to notice that, for such that , we can define for and and that .
The next proposition shows necessary and sufficient conditions for optimality in the definition of support functions. Note that Prop. 3.2 gave one example obtained from the greedy algorithm, and that we can now characterize all maximizers. Moreover, note that the maximizer is unique only when has distinct values, and otherwise, the ordering of the components of is not unique, and hence, the greedy algorithm may have multiple outputs (and all convex combinations of these are also solutions, and are in fact exactly all solutions, as discussed below the proof of Prop. 4.2). The following proposition essentially shows what is exactly needed for to be a maximizer. In particular, this is done by showing that for some sets , we must have ; such sets are often said tight for . This proposition is key to deriving optimality conditions for the separable optimization problems that we consider in Chapter 8 and Chapter 9.
Proof We first prove (a). Let , for . From the optimization problems defined in the proof of Prop. 3.2, let , and for , with all other ’s, , equal to zero. Such is optimal because the dual function is equal to the primal objective .
The last inequality is made possible by the conditions and . Thus is optimal, if and only if the primal objective value is equal to the optimal dual objective value , and thus, if and only if there is equality in all above inequalities, that is, if and only if for all .
The proof for (b) follows the same arguments, except that we do not need to ensure that , since . Similarly, for (c), where is always satisfied for , hence we do not need .
Given with constant sets , then the greedy algorithm may be run with possible orderings, as the only constraint is that the elements of are considered before the elements of leaving possibilities within each set , . This leads to as most as many extreme points (note that the corresponding extreme points of may be equal). Since, by Prop. 3.3, all extreme points of are obtained by the greedy algorithm, the set of maximizers defined above is the convex hull of the potential bases defined by the greedy algorithm, i.e., these are extreme points of the corresponding face of (see §4.2 for a detailed analysis of the facial structure of ).
2 Facial structure∗
In this section, we describe the facial structure of the base polyhedron. We first review the relevant concepts for convex polytopes.
We quickly review the main concepts related to convex polytopes. For more details, see . A convex polytope is the convex hull of a finite number of points. It may be also seen as the intersection of finitely many half-spaces (such intersections are referred to as polyhedra and are called polytopes if they are bounded).
In order to study the facial structure, the notion of separable sets is needed; when a set is separable, then the submodular function will decompose a the sum of two submodular functions defined on disjoint subsets. Moreover, any subset of may be decomposed uniquely as the disjoint union of inseparable subsets.
(Inseparable set) Let be a submodular function such that . A set is said separable if and only there is a set , such that , and . If is not separable, is said inseparable.
(Inseparable sets and function decomposition) Assume is a separable set for the submodular function , i.e., such that for a non-trivial subset of . Then for all , .
Proof If , then we have . This implies that and thus that can be factorized as where is the restriction of to and the contraction of on (see definition and properties in Appendix B). Indeed, if , then because , and , because for , . Similarly, if , then for all set , by submodularity, and . This shows that .
Given , we apply the last statement to and , to get and . We obtain the desired result by taking the difference between the last two equalities.
(Decomposition into inseparable sets) Let be a submodular function such that . may be decomposed uniquely as the disjoint union of non-empty inseparable subsets , , such that for all , .
Proof The existence of such a decomposition is straightforward while the decomposition of may be obtained from recursive applications of Prop. 4.3. Given two such decompositions of , then from Prop. 4.3, we have for all , , which implies that the inseparable set has to be exactly one of the set , . This implies the unicity. Note that by applying the previous proposition to the restriction of on any set , any set may be decomposed uniquely as the disjoint union of inseparable sets.
Among the submodular functions we have considered so far, modular functions of course lead to the decomposition of into a union of singletons. Moreover, for a partition , and the function that counts elements in a partitions, i.e., , the decomposition of is, as expected, .
Finally, the notion of inseparable sets allows to give a representation of the submodular polyhedron as the intersection of a potentially smaller number of half-hyperplanes.
Given the Prop. 4.2 that provides the maximizers of , we may now give necessary and sufficient conditions for characterizing faces of the base polyhedron. We first characterize when the base polyhedron has non-empty interior within the subspace .
(Full-dimensional base polyhedron) Let be a submodular function such that . The base polyhedron has non-empty interior in if and only if is inseparable.
Proof If is separable into and , then, by submodularity of , for all , we have , which impies that (and also ). Therefore the base polyhedron is included in the intersection of two distinct affine hyperplanes, i.e., does not have non-empty interior in .
To prove the opposite statement, we proceed by contradiction. Since is defined through supporting hyperplanes, it has non-empty interior in if it is not contained in any of the supporting hyperplanes. We thus now assume that is included in , for a non-empty strict subset of . Then, following the same reasoning than in the proof of Prop. 4.3, can be factorized as where is the restriction of to and the contraction of on (see definition and properties in Appendix B).
This implies that , which implies that , when applied to , i.e., is separable.
Since the facial structure is invariant by translation, as done at the end of §3.1, we may translate by a certain vector , so that may be taken to be non-negative and such that , which we now assume.
(Faces of the base polyhedron) Let be a partition of , such that for all , is inseparable for the function defined on subsets of . The set of bases such that for all , is a face of with non-empty interior in the intersection of the hyperplanes (i.e., the affine hull of the face is exactly the intersection of these hyperplanes). Moreover, all faces of may be obtained this way.
Proof From Prop. 4.2, all faces may be obtained with supporting hyperplanes of the form , , for a certain partition . Hovever, among these partitions, only some of them will lead to an affine hull of full dimension . From Prop. 4.6 applied to the submodular function , this only happens if has no separable sets. Note that the corresponding face is then exactly equal to the product of base polyhedra . Note that in the previous proposition, several ordered partitions may lead to the exact same face. The maximal number of full-dimensional faces of is always less than (number of non-trivial subsets of ), but this number may be reduced in general (see examples in Figure 3.4 for the cut function). Moreover, the number of extreme points may also be large, e.g., for the submodular function (leading to the permutohedron ).
The faces of are obtained from the faces of through the relationship defined in Prop. 4.2: that is, given a face of , and all the partitions of Prop. 4.7 which lead to it, the corresponding face of is the closure of the union of all that satisfies the level set constraints imposed by the different ordered partitions. As shown in , the different ordered partitions all share the same elements but with a different order, thus inducing a set of partial constraints between the ordering of the values is allowed to take.
An important aspect is that the separability criterion in Prop. 4.7 forbids some level sets from being characteristic of a face. For example, for cuts in an undirected graph, we will show in §5.5 that all level sets within a face must be connected components of the graph. When the Lovász extension is used as a constraint for a smooth optimization problem, the solution has to be in one of the faces. Moreover, within this face, all other affine constraints are very unlikely to happen, unless the smooth function has some specific directions of zero gradient (unlikely with random data, for some sharper statements, see ). Thus, when using the Lovász extension as a regularizer, only certain level sets are likely to happen, and in the context of cut functions, only connected sets are allowed, which is one of the justifications behind using the total variation (see more details in §5.5).
3 Positive and symmetric submodular polyhedra∗
In this section, we extend the previous results to the positive and symmetric submodular polyhedra, which were defined in §2.3 for non-decreasing submodular functions. We start with a characterization of such non-decreasing function through the inclusion of the base polyhedron to the postive orthant.
We now assume that the function is non-decreasing, and consider the positive and symmetric submodular polyhedra and . These two polyhedra are compact and are thus polytopes. Moreover, is the unit ball of the dual norm defined in §5.2. This polytope is polar to the unit ball of , and it it thus of interest to characterize the facial structure of the symmetric submodular polyhedronThe facial structure of the positive submodular polyhedron will not be covered in this monograph but results are similar to . We will only provide maximizers of linear functions in Prop. 4.9. .
Proof The proof follows the same arguments than for Prop. 4.2. Let be the largest integer such that . We have, with :
We have equality if and only if the components of are zero as soon as the corresponding component of is strictly negative (condition (b)), and for all (condition (a)). This proves the desired result.
Before describing the facial structure of , we need the notion of stable sets, which are sets which cannot be augmented without strictly increasing the values of .
(Stable sets) A set is said stable for a submodular function , if and implies that .
We can now derive a characterization of the faces of (a similar proposition holds for ).
(Faces of the symmetric submodular polyhedron) Let be a stable set and let be a partition of , such that for all , is inseparable for the function defined on subsets of , and . The set of such that for all , is a face of with non-empty interior in the intersection of the hyperplanes. Moreover, all faces of may be obtained this way.
The last proposition will have interesting consequences for the use of submodular functions for defining sparsity-inducing norms in §5.3. Indeed, the faces of the unit-ball of are dual to the ones of the dual ball of (which is exactly ). As a consequence of Prop. 4.10, the set in Prop. 4.11 corresponds to the non-zero elements of in a face of the unit-ball of . This implies that all faces of the unit ball of will only impose non-zero patterns which are stable sets. See a more precise statement in §5.2.
We end the description of the structure of by noting that among the constraints of the form defining it, we may restrict the sets to be stable and inseparable. Indeed, if for all stable and inseparable sets , then if a set is not stable, then we may consider the smallest enclosing stable set (these are stable by intersection, hence the possibility of defining such a smallest enclosing stable set) , and we have , and , which implies . We thus need to show that only for stable sets . If the set is separable into , where all , are separable (from Prop. 4.4), they must all be stable (otherwise would not be), and thus we have .
Chapter 5 Convex Relaxation of Submodular Penalties
In this chapter, we show how submodular functions and their Lovász extensions are intimately related to various relaxations of combinatorial optimization problems, or problems with a joint discrete and continuous structure.
In particular, we present in §5.1 the theory of convex and concave closures of set-functions: these can be defined for any set-functions and allow convex reformulations of the minimization and maximization of set-functions. It turns out that for submodular functions, the convex closure is exactly the Lovász extension, which can be computed in closed form, which is typically not the case for non-submodular set-functions.
In §5.2, we introduce the concept of structured sparsity, which corresponds to situations where a vector has to be estimated, typically a signal or the linear representation of a prediction, and structural assumptions are imposed on . In §5.3 and §5.4, we consider imposing that has many zero components, but with the additional constraint that some supports are favored. A submodular function will encode that desired behavior. In §5.5, we consider a similar approach, but on the level sets of .
In this section, given a non-convex function , we will consider several times the task of computing its convex envelope , i.e., its largest convex lower-bound. As explained in Appendix A, a systematic way to obtain is to compute the Fenchel bi-conjugate.
This implies that the domain of is (i.e., for ). Moreover, since the vectors , for are extreme points of , for any , the only way to express as a combination of indicator vectors is by having and all other values equal to zero. Thus . That is, the convex closure is always tight at each , and is an extension of from to . This property is independent from submodularity.
We may relate the minimization of to the minimization of its convex closure:
which implies that minimizing the convex closure of on is equivalent to minimizing on . See an illustration in Figure 5.1.
For submodular functions, it simply turns out that the convex closure is equal to the Lovász extension. Hence, it is computable in closed form and amenable to optimization. This fact is in fact exactly shown in the proof of Prop. 3.2.
The concave closure is defined in a similar way, and can be seen to be the opposite of the convex closure of . Note that it cannot be computed in general as this would mean that there are polynomial-time algorithms for submodular function maximization . However, following Prop. 2.6 and its discussion in §2.3, one can always find “constant plus modular” upper-bounds which are tight at any given vertex of the hypercube (but this cannot be done at any interior point in general).
2 Structured sparsity
The concept of parsimony is central in many scientific domains. In the context of statistics, signal processing or machine learning, it takes the form of variable or feature selection problems.
Sparse models are commonly used in two situations: First, to make the model or the prediction more interpretable or cheaper to use, i.e., even if the underlying problem might not admit sparse solutions, one looks for the best sparse approximation. Second, sparsity can also be used given prior knowledge that the model should be sparse. In these two situations, reducing parsimony to finding models with low cardinality of their support turns out to be limiting, and structured parsimony has emerged as a fruitful practical extension, with applications to image processing, text processing, bioinformatics or audio processing (see, e.g., , a review in and Chapter 6 for various examples).
3 Convex relaxation of combinatorial penalty
We are thus interested in an optimization problem of the form
By definition of the Fenchel conjugacy and of , we have :
Note that the assumption of submodularity is key to applying Prop. 3.7 (i.e., equivalence between maximization on the vertices and on the full hypercube).
Thus, for all such that ,
By strong convex duality (which applies because Slater’s condition is satisfied), we can invert the “min” and “max” operations and get:
Since is assumed non-decreasing, the Lovász extension is non-decreasing with respect to each of its components, which implies that , which leads to the desired result. Note that an alternative proof may be found in §5.4. The previous proposition provides a relationship between combinatorial optimization problems—involving functions of the form —and convex optimization problems involving the Lovász extension. A desirable behavior of a convex relaxation is that some of the properties of the original problem are preserved. In this monograph, we will focus mostly on the allowed set of sparsity patterns (see below). For more details about theroretical guarantees and applications of submodular functions to structured sparsity, see . In Chapter 6, we consider several examples of submodular functions and present when appropriate how they translate to sparsity-inducing norms.
For the function , then we have and thus . This norm is not sparsity-promoting and this is intuively natural since the set-function it corresponds to is constant for all non-empty sets.
We now study in more details the properties of the function defined above through a relaxation argument. We first give conditions under which it is a norm, and derive the dual norm.
(Norm and dual norm) Let be a submodular function such that and is non-decreasing. The function is a norm if and only if the values of on all singletons is strictly positive. Then, the dual norm is equal to .
We now study and characterize which supports can be obtained when regularizing with the norm . Ideally, we would like the same behavior than , that is, when this function is used to regularize a continuous objective function, then a stable set is always a solution of the problem, as augmenting unstable sets does not increase the value of , but can only increase the minimal value of the continuous objective function because of an extra variable to optimize upon. It turns out that the same property holds for for certain optimization problems.
The optimality condition for our optimization problem is the existence of such that and is a maximizer of over . Thus, if the unique solution has support , and ordered constant sets and sign vector , then, from Prop. 4.10, there exists , such that , and
Proof We first show that defined in Eq. (5.2) is a norm. It is immediately finite, positively homogeneous and convex; if , then , and thus ; thus is a norm. We denote by its dual norm.
Minimizing with respect to may be done by setting to zero the derivative of this convex function of , leading to , i.e., \lambda=\big{(}\frac{\frac{1}{r}F({\rm Supp}(w))}{\frac{1}{q}\|w\|_{q}^{q}(q-1)}\big{)}^{1/q}, and an optimal value of
Thus if and otherwise. Thus the Fenchel-conjugate of is the indicator function of the ball of the norm (which is a norm as shown above); this implies that (and hence it is a norm). Note that for a submodular function, as detailed at the end of §4.3, only stable inseparable sets may be kept in the definition of in Eq. (5.2). Moreover, by taking a limit when tends to , we recover the norm from §5.3.
using the usual convention that that is equal to zero as soon as , and equal to if and .
using the change of variable . We can now use the identity (with solution ), to get \displaystyle\Omega_{q}(w)=\sup_{t\in P_{+}(F)}\inf_{\eta\geqslant 0}\sum_{k\in V}\bigg{\{}\frac{\eta_{k}t_{k}}{r}+\frac{|w_{k}|^{q}}{q\eta_{k}^{q-1}}\bigg{\}}, which is equal to using Prop. 3.2.
For the function , then we have and thus . For , this norm is not sparsity-promoting and this is intuively natural since the set-function it corresponds to is constant for all non-empty sets.
We now consider the set-function counting elements in a partitions, i.e., we assume that is partitioned into sets , the function that counts for a set the number of elements in the partition which intersects may be written as and the norm as , which was our original goal.
This in turn implies that the unit ball of is the convex hull of the union of all sets . This provides an additional way of constructing the unit primal balls. See illustrations in Figure 5.4 for and , and in Figure 5.5 for and .
where and . This implies that
i.e., we have a general instance of a latent group Lasso (for more details, see ).
While may be computed in closed form, this is not the case for . In §9.4, we present a divide-and-conquer algorithms for computing . We also show in that section, how the proximal operator may be computed from a sequence of submodular function minimizations, thus allowing the use of proximal methods presented in Chapter 8.
5 Shaping level sets∗
For a non-decreasing submodular function , we have defined in §5.3 a norm , that essentially allows the definition of a prior knowledge on supports of predictors . Since this norm was creating extra-behavior (i.e., clustering of the components of ), we designed a new norm in §5.4 which does not have these problems. In this section, we take the opposite approach and leverage the fact that when using the Lovász extension as a regularizer, then some of the components of will be equal.
We now consider a submodular function such that . This includes (a) cuts in graphs and (b) functions of the cardinality for concave such that . We now show that using the Lovász extension as a regularizer corresponds to a convex relaxation of a function of all level sets of . Note that from property (d) of Prop. 3.1, , and it is thus natural to consider in the next proposition a convex set invariant by translation by constants times .
In order to compute the convex envelope, as already done in the proofs of Prop. 5.1 and Prop. 5.4, we simply need to compute twice the Fenchel conjugate of the function we want to find the envelope of.
By integration by parts, is then equal to
where is the indicator function of the set (with values or ). Note that because .
Let . We clearly have , because we take a maximum over a larger set (consider and the partition ). Moreover, for all partitions , if , \max_{j\in\{1,\dots,m-1\}}s(A_{1}\cup\cdots\cup A_{j})\leqslant\max_{j\in\{1,\dots,m-1\}}\big{\{}h(s)+F(A_{1}\cup\cdots\cup A_{j})\big{\}}=h(s)+\max_{j\in\{1,\dots,m-1\}}F(A_{1}\cup\cdots\cup A_{j}), which implies that . Thus .
Moreover, we have, since is invariant by adding constants (property (d) of Prop. 3.1) and is submodular,
where we have used the fact that minimizing a submodular function is equivalent to minimizing its Lovász extension on the unit hypercube. Thus and have the same Fenchel conjugates. The result follows from the convexity of , using the fact the convex envelope is the Fenchel bi-conjugate .
Alternatively, to end the proof, we could have computed
Thus, when using the Lovász extension directly for symmetric submodular functions, then the effect is on all sub-level sets and not only on the support .
While the facial structure of the symmetric submodular polyhedron was key to analyzing the regularization properties for shaping supports, the base polyhedron is the proper polyhedron to consider.
When is the cut in an undirected graph, then a necessary condition for to be inseparable for the function defined on subsets of , is that is a connected set in the original graphSince cuts are second-order polynomial functions of indicator vectors, contractions are also of this form, and the quadratic part is the same than for the cut in the corresponding subgraph.. Thus, the regularization by the Lovász extension (often referred to as the total variation) only allows constant sets which are connected in the graph, which is the traditional reason behind using such penalties. In §6.2, we also consider the cases of directed graphs, leading to isotonic regression problems.
The Lovász extension depends on the order statistics of , i.e., if , then . While these examples do not provide significantly different behaviors for the non-decreasing submodular functions explored by (i.e., in terms of support), they lead to interesting behaviors here in terms of level sets, i.e., they will make the components cluster together in specific ways (by constraining the sizes of the clusters). Indeed, allowed constant sets are such that is inseparable for the function (where is the set of components with higher values than the ones in ). As can be shown from a simple convexity argument, this imposes that the concave function is not linear on . We consider the following examples; in Figure 5.6, we show regularization paths, i.e., the set of minimizers of when varies.
, leading to . This function can thus be also seen as the cut in the fully connected graph. All patterns of level sets are allowed as the function is strongly concave (see left plot of Figure 5.6). This function has been extended in by considering situations where each is a vector, instead of a scalar, and replacing the absolute value by any norm , leading to convex formulations for clustering.
if and , and otherwise, leading to . Here, the function is linear between and , and thus between the level sets with smallest and largest values, no constant sets are allowed; hence, there are two large level sets at the top and bottom, all the rest of the variables are in-between and separated (Figure 5.6, middle plot).
. This function is piecewise affine, with only one kink, thus only one level set of cardinality greater than one (in the middle) is possible, which is observed in Figure 5.6 (right plot). This may have applications to multivariate outlier detection by considering extensions similar to .
Chapter 6 Examples and Applications of Submodularity
We now present classical examples of submodular functions. For each of these, we also describe the corresponding Lovász extensions, and, when appropriate, the associated submodular polyhedra. We also present applications to machine learning, either through formulations as combinatorial optimization problems of through the regularization properties of the Lovász extension—in Chapter 5, we have defined several sparsity-inducing norms based on the Lovász extension, namely and , for . We are by no means exhaustive and other applications may be found in facility location , game theory , document summarization , social networks , or clustering .
Note that in Appendix B, we present several operations that preserve submodularity (such as symmetrization and partial minimization), which can be applied to any of the functions presented in this chapter, thus defining new functions.
Proof The function is submodular if and only if for all and : . If is concave and , is non-increasing, hence the first result. Moreover, if is non-increasing for all , then is concave, hence the second result.
If , i.e., , then .
Thus, for functions of the cardinality (for which ), the Lovász extension is thus a linear combination of order statistics (i.e., -th largest component of , for ).
When minimizing set-functions, considering instead of does not make a significant difference. However, it does in terms of the Lovász extension as outlined at the end of §5.5: using the Lovász extension for regularization encourages components of to be equal, and hence provides a convex prior for clustering or outlier detection, depending on the choice of the concave function (see more details in ).
2 Cut functions
where we denote for any two sets . We give several proofs of submodularity for cut functions.
For a cut function and disjoint subsets , we always have (see for more details):
where we denote . This implies that is sub-additive. We then have, for any sets :
By expanding all terms, we obtain that is equal to
The cut function is equal to F(A)=\sum_{k\in V,\ j\in V}d(k,j)(1_{A})_{k}\big{[}1-(1_{A})_{j}\big{]} and it is thus the positive linear combination of the functions G_{kj}:A\mapsto(1_{A})_{k}\big{[}1-(1_{A})_{j}\big{]}. The function is the extension to of a function defined only on the power set of , where and all other values are equal to zero. Thus from Eq. (3.1) in Chapter 3, . Thus, the Lovász extension of is equal to
(which is convex and thus provides an alternative proof of submodularity owing to Prop. 3.6).
If the weight function is symmetric, then the submodular function is also symmetric, i.e., for all , , and the Lovász extension is even (from Prop. 3.1). When takes values in then we obtain the cut function in an undirected graph and the Lovász extension is often referred to as the total variation (see below).
Given an undirected graph , the total variation is the Lovász extension associated to the cut-function corresponding to this graph. For example for the chain graph (left plot in Figure 6.1), we have .
As shown in §5.5, used as a regularizer, it leads to vectors which are piecewise constant with respect to the graph, i.e., the constant sets are almost surely connected subsets of the graph. This property is the main reason for its wide-spread use in signal processing (see, e.g., ), machine learning and statistics . For example, for a chain graph, the total variation is commonly used to perform change-point detection, i.e., to approximate a one-dimensional signal by a piecewise constant one (see, e.g., ). We perform experiments with this example in §12.4, where we relate it to related concepts. In Figure 6.5, we show an example of application of total variation denoising in two dimensions.
Isotonic regression has several applications in machine learning and statistics, where these monotonic constraints are relevant, for example in genetics , biology , medicine , statistics and multidimensional scaling for psychology applications . See an example for the linear ordering in Figure 6.2.
The set of constraints may be put into a directed graph. For general sets of constraints, several algorithms that run in have been designed. In this section, we show how it can be reformulated through the regularization by the Lovász extension of a submodular function, thus bringing to bear the submodular machinery (in particular algorithms from Chapter 9).
Note that cut functions can be extended to cuts in hypergraphs, which may have interesting applications in computer vision . Moreover, directed cuts (i.e., when and may be different) may be interesting to favor increasing or decreasing jumps along the edges of the graph (such as for isotonic regression).
For undirected graphs (i.e., for which the function is symmetric), we may rewrite the cut as follows:
because . This leads to
with the square matrix of size defined as ( is the Laplacian of the graph ); see §12.4 for experiments relating total variation to the quadratic function defined from the graph Laplacian. It turns out that a sum of linear and quadratic functions of is submodular only in this situation.
Proof Since cuts are submodular, the previous developments show that the condition is sufficient. It is necessary by simply considering the inequality .
By partial minimization, we obtain so-called regular functions . Given our base set , some extra vertices (in a set disjoint from ) are added and a (potentially weighted) graph is defined on the vertex set , and the cut in this graph is denoted by . We then define a set-function on as , which is submodular because partial minimization preserves submodularity (Prop. B.3). Such regular functions are useful for two reasons: (a) they define new set-functions, as done below, and (b) they lead to efficient reformulations of existing functions through cuts, with efficient dedicated algorithms for minimization.
In terms of running-time complexity, several algorithmic frameworks lead to polynomial-time algorithm: for example, with vertices and edges, “push-relabel” algorithms may reach a worst-case complexity of . See also .
For proximal methods (i.e., the total variation denoising problem), such as defined in Eq. (8.4) (Chapter 8), we have and we need to solve an instance of a parametric max-flow problem, which may be done using efficient dedicated algorithms with worst-case complexity which is only a constant factor greater than a single max-flow problem . See also §10.2 for generic algorithms based on a sequence of submodular function minimizations.
Finding minimum cuts in undirected graphs such as two-dimensional grids or extensions thereof in more than two dimensions has become an important tool in computer vision for image segmentation, where it is commonly referred to as graph cut techniques (see an example in Figure 6.4 and, e.g., and references therein). In this context, several extensions have been considered, such as multi-way cuts, where exact optimization is in general not possible anymore, and a sequence of binary graph cuts is used to find an approximate minimum (note that in certain cases where labels are ordered, an exact formulation is possible ). See also for a specific multi-way extension based on different submodular functions.
The Lovász extension of cuts in an undirected graph, often referred to as the total variation, has now become a classical regularizer in signal processing and machine learning: given a graph, it will encourages solutions to be piecewise-constant according to the graph . See §5.5 for a formal description of the sparsity-inducing properties of the Lovász extension; for chain graphs, we obtain usual piecewise constant vectors, and the have many applications in sequential problems (see, e.g., and references therein). Note that in this context, separable optimization problems considered in Chapter 8 are heavily used and that algorithms presented in Chapter 9 provide unified and efficient algorithms for all these situations.
The sparsity-inducing behavior is to be contrasted with a penalty of the form , a quantity often referred to as the graph Laplacian , which enforces that the weight vector is smooth with respect to the graph (as opposed to piecewise constant). See §12.4 for empirical comparisons.
3 Set covers
with Lovász extension.
However, for , then, as discussed in , the norm is not equal to , unless the groups such that form a partition. As shown in where the two norms are compared, the norm avoids the overcounting effect of the overlapping group Lasso formulations, which tends to penalize too much the amplitude of variables present in multiple groups.
Note that any set-function may be written as
for a certain set-function , which is not usually non-negative. Indeed, by the Möbius inversion formulaIf and are any set functions such that , , then , . (see, e.g., ), we have:
Thus, functions for which is non-negative form a specific subset of submodular functions (note that for all submodular functions, the function is non-negative for all pairs , for , as a consequence of Prop. 2.3). Moreover, these functions are always non-decreasing. For further links, see , where it is notably shown that for all sets of cardinality greater or equal to three for cut functions (which are second-order polynomials in the indicator vector).
Let be any “base” measurable set, and an additive measure on . We assume that for each , a measurable set is given; we define the cover associated with , as the set-function equal to the measure of the union of sets , , i.e., F(A)=\mu\Big{(}\bigcup_{k\in A}S_{k}\Big{)}. See Figure 6.6 for an illustration. Then, is submodular (as a consequence of the equivalence with the previously defined functions, which we now prove).
Moreover, for a certain set cover defined by a mesurable set (with measure ), and sets , , we may define for any , the set of elements of such that , i.e., . We then have:
Thus, with D(G)=\mu\big{(}\{x\in W,\ G_{x}=G\}\big{)}, we obtain a set-function expressed in terms of groups and non-negative weight functions.
Submodular set-functions which can be expressed as set covers (or equivalently as a sum of maximum of certain components) have several applications, mostly as regular set-covers or through their use in sparsity-inducing norms.
When considered directly as set-functions, submodular functions are traditionally used because algorithms for maximization with theoretical guarantees may be used (see Chapter 11). See for several applications, in particular to sensor placement, where the goal is to maximize coverage while bounding the number of sensors.
When considered through their Lovász extensions, we obtain structured sparsity-inducing norms which can be used to impose specific prior knowledge into learning problems: indeed, as shown in §5.3, they correspond to a convex relaxation to the set-function applied to the support of the predictor. Morever, as shown in and Prop. 5.3, they lead to specific sparsity patterns (i.e., supports), which are stable for the submodular function, i.e., such that they cannot be increased without increasing the set-function. For this particular example, stable sets are exactly intersections of complements of groups such that (see more details in ), that is, some of the groups with non-zero weights carve out the set to obtain the support of the predictor. Note that following , all of these may be interpreted in terms of network flows (see §6.4) in order to obtain fast algorithms to solve the proximal problems.
By choosing certain set of groups such that , we can model several interesting behaviors (see more details in ):
Line segments: Given variables organized in a sequence, using the set of groups of Figure 6.7, it is only possible to select contiguous nonzero patterns. In this case, we have groups with non-zero weights, and the submodular function is equal to plus the length of the range of (i.e., the distance beween the rightmost element of and the leftmost element of ), if (and zero otherwise). This function is often used together with the cardinality function to avoid selecting long sequences (see an example in §12.4).
Two-dimensional convex supports: Similarly, assume now that the variables are organized on a two-dimensional grid. To constrain the allowed supports to be the set of all rectangles on this grid, a possible set of groups to consider may be composed of half planes with specific orientations: if only vertical and horizontal orientations are used, the set of allowed patterns is the set of rectangles, while with more general orientations, more general convex patterns may be obtained. These can be applied for images, and in particular in structured sparse component analysis where the dictionary elements can be assumed to be localized in space .
Two-dimensional block structures on a grid: Using sparsity-inducing regularizations built upon groups which are composed of variables together with their spatial neighbors (see Figure 6.7 in one-dimension) leads to good performances for background subtraction , topographic dictionary learning , wavelet-based denoising . This norm typically prevents isolated variables from being selected.
Hierarchical structures: here we assume that the variables are organized in a hierarchy. Precisely, we assume that the variables can be assigned to the nodes of a tree (or a forest of trees), and that a given variable may be selected only if all its ancestors in the tree have already been selected. This corresponds to a set-function which counts the number of ancestors of a given set (note that the stable sets of this set-function are exactly the ones described above).
This hierarchical rule is exactly respected when using the family of groups displayed on Figure 6.9. The corresponding penalty was first used in ; one of it simplest instance in the context of regression is the sparse group Lasso ; it has found numerous applications, for instance, wavelet-based denoising , hierarchical dictionary learning for both topic modelling and image restoration , log-linear models for the selection of potential orders , bioinformatics, to exploit the tree structure of gene networks for multi-task regression , and multi-scale mining of fMRI data for the prediction of simple cognitive tasks . See also §12.3 for an application to non-parametric estimation with a wavelet basis.
Extensions: Possible choices for the sets of groups (and thus the set functions) are not limited to the aforementioned examples; more complicated topologies can be considered, for example three-dimensional spaces discretized in cubes or spherical volumes discretized in slices (see an application to neuroimaging by ), and more complicated hierarchical structures based on directed acyclic graphs can be encoded as further developed in to perform non-linear variable selection.
Set covers also classically occur in the context of submodular function maximization, where the goal is, given certain subsets of , to find the least number of these that completely cover . Note that the main difference is that in the context of set covers considered here, the cover is considered on a potentially different set than , and each element of indexes a subset of .
4 Flows
capacity constaints: for all arcs,
flow conservation: for all , the net-flow at , i.e., , is zero,
positive incoming flow: for all sources , the net-flow at is non-positive, i.e., ,
positive outcoming flow: for all sinks , the net-flow at is non-negative, i.e., .
For (the set of sinks), we define
which is the maximal net-flow getting out of . From the max-flow/min-cut theorem (see, e.g., and Appendix A.2), we have immediately that
Similarly to other cut-derived functions from §6.2, there are dedicated algorithms for proximal methods and submodular minimization . See also §9.1 for a general divide-and-conquer strategy for solving separable optimization problems based on a sequence of submodular function minimization problems (here, min cut/max flow problems).
We give examples of such networks in Figure 6.8 and Figure 6.7. This reinterpretation allows the use of fast algorithms for proximal problems (as there exists fast algorithms for maximum flow problems). The number of nodes in the network flow is the number of groups such that , but this number may be reduced in some situations (for example, when a group is included in another, see an example of a reduced graph in Figure 6.9). See for more details on such graph constructions (in particular in how to reduce the number of edges in many situations).
Applications to sparsity-inducing norms (as decribed in §6.3) lead to applications to hierarchical dictionary learning and topic models , structured priors for image denoising , background subtraction , and bioinformatics . Moreover, many submodular functions may be interpreted in terms of flows, allowing the use of fast algorithms (see, e.g., for more details).
5 Entropies
Given random variables which all take a finite number of values, we define as the joint entropy of the variables (see, e.g., ). This function is submodular because, if and , (because conditioning reduces the entropy ). Moreover, its symmetrizationFor any submodular function , one may defined its symmetrized version as , which is submodular and symmetric. See further details in §10.3 and Appendix B. leads to the mutual information between variables indexed by and variables indexed by .
Entropies of discrete variables are non-decreasing, non-negative submodular set-functions. However, they are more restricted than this, i.e., they satisfy other properties which are not satisfied by all submodular functions . Note also that it is not known if their special structure can be fruitfully exploited to speed up certain of the algorithms presented in Chapter 10.
In the context of probabilistic graphical models, entropies occur in particular in algorithms for structure learning: indeed, for directed graphical models, given the directed acyclic graph, the minimum Kullback-Leibler divergence between a given distribution and a distribution that factorizes into the graphical model may be expressed in closed form through entropies . Applications of submodular function optimization may be found in this context, with both minimization for learning bounded-treewidth graphical model and maximization for learning naive Bayes models , or both (i.e., minimizing differences of submodular functions, as shown in Chapter 11) for discriminative learning of structure . In particular, for undirected graphical models, finding which subsets of vertices are well-separated by a given subset corresponds to minimizing over all non-trivial subsets of the symmetric submodular function , which may be done in polynomial time (see §10.3).
The joint distribution of is normally distributed with mean zero and covariance matrix \sigma^{2}\lambda^{-1}\left(\begin{array}[]{cc}I&X^{\top}\\ X&XX^{\top}+\lambda I\end{array}\right). The posterior distribution of given is thus normal with mean and covariance matrix
where we have used the matrix inversion lemma . The posterior entropy of given is thus equal (up to constants) to . If only the observations in are observed, then the posterior entropy of given is equal to , where is the submatrix of composed of rows of indexed by . We have moreover , and thus is supermodular because the entropy of a Gaussian random variable is the logarithm of its determinant. In experimental design, the goal is to select the set of observations so that the posterior entropy of given is minimal (see, e.g., ), and is thus equivalent to maximizing a submodular function (for which forward selection has theoretical guarantees, see §11.1). Note the difference with subset selection (§6.7) where the goal is to select columns of the design matrix instead of rows.
Given data points in a certain set , we assume that we are given a Gaussian process . For any subset , then is normally distributed with mean zero and covariance matrix where is the kernel matrix of the data points, i.e., where is the kernel function associated with the Gaussian process (see, e.g., ). We assume an independent prior distribution on subsets of the form (i.e., each element has a certain prior probability of being present, with all decisions being statistically independent).
Once a set is selected, we only assume that we want to model the two parts, and as two independent Gaussian processes with covariance matrices and . In order to maximize the likelihood under the joint Gaussian process, the best estimates are and . This leads to the following negative log-likelihood
where is the mutual information between two Gaussian processes (see similar reasoning in the context of independent component analysis ).
In order to estimate , we thus need to minimize a modular function plus a mutual information between the variables indexed by and the ones indexed by , which is submodular and symmetric. Thus in this Gaussian process interpretation, clustering may be cast as submodular function minimization. This probabilistic interpretation extends the minimum description length interpretation of to semi-supervised clustering.
In a graphical model, the entropy of the joint distribution decomposes as a sum of marginal entropies of subsets of variables; moreover, for any distribution, the entropy of the closest distribution factorizing in the graphical model provides an bound on the entropy. For directed graphical models, this last property turns out to be a direct consequence of the submodularity of the entropy function, and allows the generalization of graphical-model-based upper bounds to any submodular functions. In , these bounds are defined and used within a variational inference framework for the maximization of submodular functions.
6 Spectral functions of submatrices
The concavity of is not sufficient however in general to ensure the submodularity of , as can be seen by generating random examples with .
Nevertheless, we know that the functions for lead to submodular functions since they correspond to the entropy of a Gaussian random variable with joint covariance matrix . Thus, since for , (see, e.g., ), for is a positive linear combination of functions that lead to non-decreasing submodular set-functions. We thus obtain a non-decreasing submodular function.
This can be generalized to functions of the singular values of submatrices of where is a rectangular matrix, by considering the fact that singular values of a matrix are related to the non-zero eigenvalues of \left(\begin{array}[]{cc}0&X\\ X^{\top}&0\end{array}\right) (see, e.g., ).
Indeed, the marginal likelihood is obtained by the best log-likelihood when maximizing with respect to plus the entropy of the covariance matrix .
Thus, in a Bayesian model selection setting, in order to find the best subset , it is necessary to minimize with respect to :
which, in the framework outlined in §5.4, leads to the submodular function
Note that a traditional frequentist criterion is to penalize larger subsets by the Mallow’s criterion , which is equal to , which is not a submodular function.
7 Best subset selection
Following , we consider random variables (covariates) , and a random response with unit variance, i.e., . We consider predicting linearly from . We consider . The function is a non-decreasing function (the conditional variance of decreases as we observed more variables). In order to show the submodularity of using Prop. 2.3, we compute, for all , and distinct elements in , the following quantity:
using standard arguments for conditioning variances (see more details in ). Thus, the function is submodular if and only if the last quantity is always non-positive, i.e., , which is often referred to as the fact that the variables is not a suppressor for the variable given .
Thus greedy algorithms for maximization have theoretical guarantees (see Chapter 11) if the assumption is met. Note however that the condition on suppressors is rather strong, although it can be appropriately relaxed in order to obtain more widely applicable guarantees for subset selection .
We may also consider the linear model from the end of §6.6, where a Bayesian approach is taken for model selection, where the parameters are marginalized out. We can now also maximize the marginal likelihood with respect to the noise variance , instead of considering it as a fixed hyperparameter. This corresponds to minimizing Eq. (6.3) with respect to and , with optimal values and , leading to the following cost function in (up to constant additive terms):
which is a difference of two submodular functions (see §11.3 for related optimization schemes). Note the difference between this formulation (aiming at minimizing a set-function directly by marginalizing out or maximizing out ) and the one from §6.6 which provides a convex relaxation of the maximum likelihood problem by maximizing the likelihood with respect to .
8 Matroids
Matroids have emerged as combinatorial structures that generalize the notion of linear independence betweens columns of a matrix. Given a set , we consider a family of subsets of with the following properties:
“hereditary property”: ,
“exchange property”: for all , .
The pair is then referred to as a matroid, with its family of independent sets. Given any set , then a base of is any independent subset of which is maximal for the inclusion order (i.e., no other independent set contained in contains it). An immediate consequence of property (c) is that all bases of have the same cardinalities, which is defined as the rank of . The following proposition shows that the set-function thus defined is a submodular function.
(Matroid rank function) The rank function of a matroid, defined as , is submodular. Moreover, for any set and , .
Proof We first prove the second assertion. Since has integer values and is non-decreasing (because of the hereditary property (b)), we only need to show that . Let be a base of and be a base of . If , then, by applying the exchange property (c) twice, there exists two distincts elements of such that is a base. One of these elements cannot be and thus has to belong to which contradicts the maximality of as an independent subset of ; this proves by contradiction that , and thus .
To show the submodularity of , we consider Prop. 2.3 and a set and . Given the property shown above, we only need to show that if , then . This will immediately imply that (and thus is submodular). Assume by contradiction that . If , then we have , and thus by the exchange property, we must have , which is a contradiction. If , then , and we must have (because the increments of are in ), which is also a contradiction. Note that matroid rank functions are exactly the ones for which all extreme points are in . They are also exactly the submodular functions for which is integer and .
A classical example is the graphic matroid; it corresponds to being the edge set of a certain graph, and being the set of subsets of edges leading to a subgraph that does not contain any cycle. The rank function is then equal to minus the number of connected components of the subgraph induced by . Beyond the historical importance of this matroid (since, as shown later, this leads to a nice proof of exactness for Kruskal’s greedy algorithm for maximum weight spanning tree problems), the base polyhedron, often referred to as the spanning tree polytope, has interesting applications in machine learning, in particular for variational inference in probabilistic graphical models .
The other classical example is the linear matroid. Given a matrix with columns, then a set is independent if and only if the columns indexed by are linearly independent. The rank function is then the rank of the set of columns indexed by (this is also an instance of functions from §6.6 because the rank is the number of non-zero eigenvalues, and when , then ). For more details on matroids, see, e.g., .
For matroid rank functions, extreme points of the base polyhedron have components equal to zero or one (because for any and ), and are incidence vectors of the maximal independent sets. Indeed, the extreme points are such that and is an independent set because, when running the greedy algorithm, the set of non-zero elements of the already determined elements of is always independent. Moreover, it is maximal, because and thus .
The greedy algorithm for maximizing linear functions on the base polyhedron may be used to find maximum weight maximal independent sets, where a certain weight is given to all elements of , that is, it finds a maximal independent set , such that is maximum. In this situation, the greedy algorithm is actually greedy, i.e., it first orders the weights of each element of in decreasing order and select elements of following this order and skipping the elements which lead to non-independent sets.
For the graphic matroid, the base polyhedron is thus the convex hull of the incidence vectors of sets of edges which form a spanning tree, and is often referred to as the spanning tree polytopeNote that algorithms presented in Chapter 9 lead to algorithms for several operations on this spanning tree polytopes, such as line searches and orthogonal projections. . The greedy algorithm is then exactly Kruskal’s algorithm to find maximum weight spanning trees .
General submodular functions may be minimized in polynomial time (see Chapter 10). For functions which are equal to the rank function of a matroid minus a modular function, then dedicated algorithms have better running-time complexities, i.e., .
Chapter 7 Non-smooth Convex Optimization
In this chapter, we consider optimization problems of the form
where both functions and are convex. In this section, we always assume that is non-smooth and positively homogeneous; hence we consider only algorithms adapted to non-smooth optimization problems. Problems of this type appear many times when dealing with submodular functions (submodular function minimization in Chapter 10, separable convex optimization in Chapters 8 and 9, sparsity-based problems in §5.3); however, they are typically applicable much more widely, in particular to all polytopes where maximizing linear functions may be done efficiently, which is the case for the various polytopes defined from submodular functions.
Our first three algorithms deal with generic problems where few assumptions are made beyond convexity, namely the subgradient method in §7.2, the ellipsoid method in §7.3, Kelley’s method (an instance of cutting planes) in §7.4, and analytic center cutting planes in §7.5.
The next algorithms we present rely on the strong convexity of the function and have natural dual intepretations: in §7.6, we consider mirror descent techniques whose dual interpretations are conditional gradient algorithms, which are both iterative methods with cheap iterations. In §7.7, we consider bundle methods, whose dual corresponding algorithms are simplicial methods. They share the same principle than the previous iterative techniques, but the memory of all past information is explicitly kept and used at each iteration.
The next two algorithms require additional efficient operations related to the function (beyong being able to compute function values and subgradients). In §7.8, we present dual simplicial methods, which use explicitly the fact that is a gauge function (i.e., convex homogeneous and non-negative), which leads to iterative methods with no memory and algorithms that keep and use explicitly all past information. This requires to be able to maximize with respect to under the constraint that .
We finally present in §7.9 proximal methods, which are adapted to situations where is differentiable, under the condition that problems with being an isotropic quadratic function, i.e., , are easy to solve. These methods are empirically the most useful for problems with sparsity-inducing norms and are one of the motivations behind the focus on solving separable problems in Chapters 8 and 9.
This is equivalent to , where is the indicator function of set , equal to zero on , and to otherwise. In this monograph, will typically be:
the base polyhedron with being the Lovász extension of ,
the symmetric submodular polyhedron with being the norm defined in §5.3,
the dual unit ball of the norm with being the norm defined in §5.4, for .
The most important assumption which we are using is that the maximization defining in Eq. (7.2) may be performed efficiently, i.e., a maximizer of the linear function may be efficiently obtained. For the first two examples above, it may be done using the greedy algorithm. Another property that will be important is the polyhedral nature of . This is true for and . Since is bounded, this implies that there exists a finite number of extreme points , and thus that is the convex hull of these points. Typically, the cardinality of may be exponential in , but any solution may be expressed with at most such points (by Carathéodory’s theorem for cones ).
Lipschitz-continuity: is Lipschitz-continuous on a closed convex set with Lipschitz-constant if and only if
Strong convexity: is said strongly convex if and only if the function is convex for some . This is equivalent to:
Representations as convex quadratic programs: The function is then of the form , for a positive semi-definite matrix. Such programs may be efficiently solved by active-set methods or interior point methods . Active-set methods will be reviewed in §7.11.
and is equal to zero if and only if (a) is a maximizer of , and (b) the pair is dual for . The primal minimizer is always unique only when is strictly convex (and thus is smooth), and we then have , i.e., we may obtain a primal solution directly from any dual solution . When both and are differentiable, then we may go from to as and . However, in general it is not possible to naturally go from a primal candidate to a dual candidate in closed form. In this chapter, we only consider optimization algorithms which exhibit primal-dual guarantees, i.e., generate both primal candidates and dual candidates .
2 Projected subgradient descent
When no smoothness assumptions are added to , we may consider without loss of generality that , which we do in this section (like in the next three sections). Thus, we only assume that is Lipschitz-continuous on a compact set , with Lipschitz-constant . Starting from any point in , the subgradient method is an iterative algorithm that goes down the direction of negative subgradient. More precisely:
Iteration: for , compute a subgradient of at and compute
where is the orthogonal projection onto .
This algorithm is not a descent algorithm, i.e., it is possible that . There are several strategies to select the constants . If the diameter of is known, then by selecting , if we denote , then we have for all , the following convergence rate (see proof in ):
Note that this convergence rate is independent of the dimension (at least not explicitly, as constants and would typically grow with ), and that it is optimal for methods that look only at subgradients at certain points and linearly combine them [171, Section 3.2.1]. Moreover, the iteration cost is limited, i.e., , beyond the computation of a subgradient. Other strategies exist for the choice of the step size, in particular Polyak’s rule: , where is any lower bound on the optimal value (which may usually obtained from any dual candidate).
If one can compute efficiently, the average of all subgradients, i.e., , provides a certificate of suboptimality with offline guarantees, i.e., if ,
See and a detailed proof in . In the context of this monograph, we will apply the projected subgradient method to the problem of minimizing on , leading to algorithms with small iteration complexity but slow convergence (though a decent solution is found quite rapidly in applications).
Note that when is obtained by composition by a linear map , then similar certificates of optimality may be obtained .
3 Ellipsoid method
The ellipsoid method builds a sequence of ellipsoids that contain all minimizers of on . At every iteration, the volume of the ellipsoid is cut by a fixed multiplicative constant. Starting from an ellipsoid containing , we consider its center. If it is in , then a subgradient of will divide the space in two, and the global minima have to be in a known half. Similarly, if the center not in , then a separating hyperplane between the center and plays the same role. We can then iterate the process. The precise algorithm is as follows:
Initialization: ellipsoid that contains the optimization set .
Compute new ellipsoid with
Thus, the ellipsoid has a volume decreasing at an exponential rate. This allows to obtain an exponential rate of convergence for the minimization problem. Indeed, following , let 1>\varepsilon>\min\{1,\big{(}\frac{{\rm vol}(\mathcal{E}_{t})}{{\rm vol}(\mathcal{E}_{K})}\big{)}^{1/p}\} and a minimizer of on . We define . We have . The two sets and have at least the point in common; given the volume inequality, there must be at least one element . Since , , and hence . Since it is not in , it must have been removed in one of the steps of the ellipsoid method, hence its value is greater than . Moreover, by convexity, , which implies
This implies that there exists , such that and
The convergence rate is exponential, but there is a direct and strong dependence on the dimension of the problem . Note that dual certificates may be obtained at limited additional computational cost, with no extra information . This algorithm is typically slow in practice since it has a running-time of per iteration. Moreover, it makes slow progress and cannot take advantage of additional properties of the function as the approximation of the reduction in volume has a tight dependence on : that is, it cannot really converge faster than the bound.
This algorithm has an important historical importance, as it implies that most convex optimization problems may be solved in polynomial-time, which implies polynomial-time algorithms for many combinatorial problems that may be expressed as convex programs; this includes the problem of minimizing submodular functions . See §10.4 for a detailed convergence rate when applied to this problem.
4 Kelley’s method
Like in the previous section, we assume that and that is Lipschitz-continuous on a compact set . In the subgradient and ellipsoid methods, only a vector (for the subgradient method) or a pair of a vector and a matrix (for the ellipsoid method) are kept at each iteration, and the values of the function and of one of its subgradients , for , are discarded.
Bundle methods aim at keeping and using exactly the bundle of information obtained from past iterations. This is done by noticing that for each , the function is lower bounded by
The function is a piecewise-affine function and we present an illustration in Figure 7.2.
Kelley’s method (see, e.g., ) simply minimizes this lower bound at every iteration, leading to the following algorithm:
Iteration: for , compute a subgradient of at and compute any minimizer
The main iteration of Kelley’s method (which can be seen in particular as an instance of a cutting-plane method ) thus requires to be able to solve a subproblem which may be complicated. When is a polytope, then it may be cast a linear programming problem and then solved by interior-point methods or the simplex algorithm. The number of iterations to reach a given accuracy may be very large (see lower bounds in ), and the method is typically quite unstable, in particular when they are multiple minimizers in the local optimization problems.
However, the method may take advantage of certain properties of and , in particular the representability of and through linear programs. In this situation, the algorithm terminates after a finite number of iterations with an exact minimizer . Note that although Kelley’s method is more complex than subgradient descent, the best known convergence rate is still of the order after iterations .
In the context of this monograph, we will apply Kelley’s method to the problem of minimizing the Lovász extenstion on , and, when the simplex algorithm is used to minimize this will be strongly related to the simplex algorithm applied directly to a linear program with exponentially many constraints (see §10.5).
In our simulations in §12.1, we have observed that when an interior point method is used to minimize (this is essentially what the weighted analytic center cutting plane method from §7.5 and §10.6 does), then the minimizer leads to a better new subgradient than with an extreme point (see §10.6).
5 Analytic center cutting planes
We consider a similar situation than the previous sections, i.e., we assume that and that is Lipschitz-continuous on a compact set . The ellipsoid method is iteratively reducing a candidate set which has to contain all optimal solutions. This is done with a provable (but small) constant reduction in volume. If the center of the smallest ellipsoid containing the new candidate set is replaced by its center of gravity, then an improved bound holds (with replaced by in the complexity bound); however, this algorithm is not implemented in practice as there is no known efficient algorithm to find the center of gravity of a polytope. An alternative strategy is to replace the center of gravity of the polytope by its analytic center .
The analytic center of a polytope with non-empty interior defined as the intersection of half-planes , , is the unique minimizer of
The analytic center may be found with arbitrary precision using Newton’s method . For the original problem of minimizing , there is a non-exponential complexity bound that decay as but no bound similar to the ellipsoid method; however, its empirical behavior is often much improved, and this was confirmed in our simulations in §12.1.
In this tutorial, we consider the epigraph version of the problem, where we minimize with respect to such that and . For simplicity, we assume that is a polytope with non-empty interior, which is defined through the set of half-planes , . The algorithm is as follows:
Initialization: set of half-planes , with analytic center , .
Compute function and gradient and : add hyperplane , it , add the plane , if , replace by ,
Compute analytic center of the new polytope.
Note that when computing the analytic center, if we put a large weight for the logarithm of the constraint , then we recover an instance of Kelley’s method, since the value of will be close to the piecewise affine lower bound defined in §7.4. Note the difference with the simplex method: here, the candidate is a center of the set of minimizers, rather than an extreme point, which makes considerable difference in practice (see experiments in §12.1).
6 Mirror descent/conditional gradient
We are thus faced with the optimization of a smooth function on a compact convex set on which linear functions may be maximized efficiently. This is exactly the situation where conditional gradient algorithms are useful (they are also often referred to as “Frank-Wolfe” algorithms ). The algorithm is as follows:
Iteration: for , find a maximizer of w.r.t. , and set , for some .
There are two typical choices for :
Line search (adaptive schedule): we either maximize on the segment , or a quadratic lower bound (traditionally obtained from the smoothness of ), which is tight at , i.e.,
Fixed schedule: .
It may be shown that, if we denote , then, for obtained by line search, we have for all , the following convergence rate:
where is the diameter of . Moreover, the natural choice of primal variable leads to a duality gap of the same order. See an illustration in Figure 9.2 for (i.e., the dual problem is equivalent to an orthogonal projection of onto ). For the fixed-schedule, a similar bound holds; moreover, the relationship with a known primal algorithm will lead to a further interpretation.
We denote by the Bregman divergence associated with the strongly convex function , i.e., . See Figure 7.3 for an illustration and further properties in . The previous iteration may be seen as the one of minimizing with respect to a certain function, i.e.,
which is an instance of mirror-descent . Indeed, the solution of the previous optimization problem is characterized by \Psi^{\prime}(w_{t})-\Psi^{\prime}(w_{t-1})-\rho_{t}\big{[}\Psi^{\prime}(w_{t-1})+h^{\prime}(w_{t-1})\big{]}=0.
For example, when , we obtain regular subgradient descent with step-size . In , a convergence rates of order is provided for the averaged primal iterate when , using the traditional proof technique from mirror descent, but also a convergence rate of for the dual variable , and for one of the primal iterates. Moreover, when is obtained by composition by a linear map , then similar certificates of optimality may be obtained. See more details in .
Note finally, that if is also strongly convex (i.e., when is smooth) and the global optimum is in the interior of , then the convergence rate is exponential .
7 Bundle and simplicial methods
In §7.4, we have considered the minimization of a function over a compact set and kept the entire information regarding the function values and subgradients encountered so far. In this section, we extend the same framework to the type of problems considered in the previous section. Again, primal and dual interpretations will emerge.
We consider the minimization of the function , where is non-smooth, but may have in general any additional assumptions such as strong-convexity, representability as quadratic or linear programs. The algorithm is similar to Kelley’s method in that we keep all information regarding the subgradients of (i.e., elements of , but each step performs optimization where is not approximated (see Figure 7.2 for an illustration of the piecewise linear approximation of ):
Iteration: for , compute a subgradient of at and compute
Like Kelley’s method, the practicality of the algorithm depends on how the minimization problem at each iteration is performed. In the common situation where each of the subproblems is solved with high accuracy, the algorithm is only practical for functions which can be represented as linear programs or quadratic programs. Moreover, the method may take advantage of certain properties of and , in particular the representability of and through linear programs. In this situation, the algorithm terminates after a finite number of iterations with an exact minimizer . In practice, like most methods considered in this monograph, using the dual interpretation described below, one may monitor convergence using primal-dual pairs.
We first may see as the maximizer of over . Moreover, we have, by Fenchel duality:
This means that when is differentiable (i.e., strictly convex) we may interpret the algorithm as iteratively building inner approximations of the compact convex set as the convex hull of the point (see illustration in Figure 7.4). The function is then maximized over this convex-hull. Given the optimum , then it is globally optimum if and only if , i.e., denoting , .
Note the difference with the conditional gradient algorithm from §7.6. Both algorithms are considering extreme points of ; however, conditional gradient algorithms only make a step towards the newly found extreme point, while simplicial methods defined in this section will optimize over the entire convex hull of all extreme points generated so far, leading to better function values at the expense of extra computation.
8 Dual simplicial method
and let . If , is the optimal solution.
Like Kelley’s method or bundle methods, the practicality of the algorithm depends on how the minimization problem at each iteration is performed. In the common situation where each of the subproblems is solved with high accuracy, the algorithm is only practical for functions which can be represented as linear programs or quadratic programs.
Moreover, the method may also take advantage of certain properties of and , in particular the representability of and through linear programs. In this situation, the algorithm terminates after a finite number of iterations with an exact minimizer. This can be checked by testing if , i.e, (in which case, the outer approximation is tight enough).
The iteration may be given a primal interpretation. Indeed, we have:
That is, the iteration first consists in replacing by a certain (convex) upper-bound. This upper-bound may be given a special interpretation using gauge functions. Indeed, if we consider the polar set and the (potentially infinite set) of its extreme points, then is the gauge function of the set , and also of the set , that is:
Moreover, the second part of the iteration is , which is exactly equivalent to testing , which happens to be the optimality condition for the problem with respect to .
Like Kelley’s method or bundle methods, the dual simplicial method is finitely convergent when is a polytope. However, no bound is known regarding the number of iterations. Like the simplicial method, a simpler method which does not require to fully optimize the subproblem comes with a convergence rate in . It replaces the full minimization with respect to in the conic hull of all by a simple line-search over one or two parameters .
9 Proximal methods
When is smooth, then the particular form on non-smoothness of the objective function may be taken advantage of. Proximal methods essentially allow to solve the problem regularized with a new regularizer at low implementation and computational costs. For a more complete presentation of optimization techniques adapted to sparsity-inducing norms, see, e.g., and references therein. Proximal-gradient methods constitute a class of first-order techniques typically designed to solve problems of the following form :
Proximal methods have become increasingly popular over the past few years, both in the signal processing (see, e.g., and numerous references therein) and in the machine learning communities (see, e.g., and references therein). In a broad sense, these methods can be described as providing a natural extension of gradient-based techniques when the objective function to minimize has a non-smooth part. Proximal methods are iterative procedures. Their basic principle is to linearize, at each iteration, the function around the current estimate , and to update this estimate as the (unique, by strong convexity) solution of the following proximal problem:
The role of the added quadratic term is to keep the update in a neighborhood of where stays close to its current linear approximation; is a parameter which is an upper bound on the Lipschitz constant of the gradient .
Provided that we can solve efficiently the proximal problem in Eq. (7.4), this first iterative scheme constitutes a simple way of solving problem in Eq. (7.3). It appears under various names in the literature: proximal-gradient techniques , forward-backward splitting methods , and iterative shrinkage-thresholding algorithm . Furthermore, it is possible to guarantee convergence rates for the function values , and after iterations, the precision be shown to be of order , which should contrasted with rates for the subgradient case, that are rather .
This first iterative scheme can actually be extended to “accelerated” versions . In that case, the update is not taken to be exactly the result from Eq. (7.4); instead, it is obtained as the solution of the proximal problem applied to a well-chosen linear combination of the previous estimates. In that case, the function values converge to the optimum with a rate of , where is the iteration number. From , we know that this rate is optimal within the class of first-order techniques; in other words, accelerated proximal-gradient methods can be as fast as without non-smooth component.
We have so far given an overview of proximal methods, without specifying how we precisely handle its core part, namely the computation of the proximal problem, as defined in Eq. (7.4).
Under this form, we can readily observe that when , the solution of the proximal problem is identical to the standard gradient update rule. The problem above can be more generally viewed as an instance of the proximal operator associated with :
10 Simplex algorithm for linear programming
and optimality conditions: (a) , (b) , (c) . We assume that and that the rows of are linearly independent.
Intuitively, if , there is no possible descent direction and should be optimal. Indeed, is then a primal-dual optimal pair (since the optimality conditions are then satisfied), otherwise, since is assumed non-degenerate, the direction for a such that is a strict descent direction. This direction may be followed as long as . If has only nonnegative components, then the problem is unbounded. Otherwise, the largest positive is . We then replace by in and obtain a new basic feasible solution.
For non-degenerate problems, the iteration described above leads to a strict decrease of the primal objective, and since the number of basic feasible solution is finite, the algorithm terminates in finitely many steps; note however that there exists problem instances for which exponentially many basic feasible solutions are visited, although the average-case complexity is polynomial (see, e.g., and references therein). When the parameters , and come from data with absolutely continuous densities, the problem is non-degenerate with probability one. However, linear programs coming from combinatorial optimization (like the ones we consider in this monograph) do exhibit degenerate solutions. Several strategies for the choice of basic feasible solutions may be used in order to avoid cycling of the iterations. See for further details, in particular in terms of efficient associated numerical linear algebra.
In this monograph, the simplex method will be used for submodular function minimization, which will be cast a linear program with exponentially many variables (i.e., is large), but for which every step has a polynomial-time complexity owing to the greedy algorithm (see §10.5 for details).
11 Active-set methods for quadratic programming
and the optimality conditions are (a) stationarity: , (b) feasibility: and and (c) complementary slackness: .
Active-set methods rely on the following fact: if the indices of the non-zero components of are known, then the optimal may be obtained as . This is a problem with linear equality constraints but no inequality constraints. Its minimum may be found through a primal-dual formulation:
with optimality conditions: (a) and (b) . Primal-dual pairs for Eq. (7.8) may thus be obtained as the solution of the following linear system:
The solution is globally optimal if and only if and .
If and , then is globally optimal
If and there exists such that , then is added to , and replaced by .
If such that . Then let be the largest positive scalar so that and be an index so that . The set is replaced by and by .
The unique solution (since we have assumed that is invertible) of the quadratic problem may have more than non-zero components for (as opposed to the simplex method).
It is possible to deal with exponentially many components of , i.e., very large, as long as it is possible to compute efficiently.
In terms of numerical stability, care has to be taken to deal with approximation solutions of the linear system in Eq. (7.9), which may be ill-conditioned. See more practical details in .
Active sets methods may also be used when the matrix is not positive definite . In this monograph, we will always consider adding an extra ridge penalty proportional to for a small . It in this section, we assume for simplicity that is finite, but it can be extended easily to infinite uncountable sets using gauge functions.
Classical examples that will be covered in this monograph are (then obtaining the minimum-norm-point algorithm described in §9.2), or least-squares problems , for a polyhedral function, which may be represented either as with being a polytope (or only its extreme points), or as , for a certain family . See next section for more details.
12 Active set algorithms for least-squares problems∗
for a certain non-negative polyhedral convex function , which may be represented either as with being a polytope (or only its extreme points), or as , for a certain family . We will assume for simplicity that is invertible. In practice, one may add a ridge penalty .
The active-set algorithm starts from and , and perform the following iteration:
If and , then is globally optimal.
If and , , then replace by and by .
If , , then let be the largest positive scalar so that and be an index so that , i.e., . The set is replaced by and by .
Note that this algorithm is close to a specific instantiation of the dual simplicial method of §7.8. Indeed, every time we are in the situation where we add a new index to (i.e., and , ), then we have the solution of the original problem (with positivity constraints) on the reduced set of variables . Note that when a variable is removed in the last step, it may re-enter the active set later on (this appears very unfrequently in practice, see a counter-example in Figure 7.5 for the minimum-norm-point algorithm, which is a dual active set algorithm for a least-square problem with no design), and thus we only have a partial instantiation of the dual simplicial method.
Starting from the first break-point, , the solution and the set composed of the index maximizing (so that for all ), the following iterations are performed:
For , compute the smallest such that (a) and (b) Z_{J^{\sf c}}^{\top}\big{(}Z_{J}(Z_{J}^{\top}Z_{J})^{-1}Z_{J}^{\top}-I\big{)}y+n\lambda\big{(}1_{J^{\sf c}}-Z_{J^{\sf c}}^{\top}(Z_{J}^{\top}Z_{J})^{-1}\big{)}\geqslant 0.
On the interval , the optimal set of and , set .
If , the algorithm terminates.
If the constraint (a) is the limiting one, with corresponding index , then set .
If the constraint (b) is the limiting one, with corresponding index , then set .
The algorithm stops with a sequence of break-points , and corresponding vectors . The number of break-points is typically of order but it may be exponential in the worst-case . Note that typically, the algorithm may be stopped after a certain maximal size of active set is attained. Then, beyond the linear system with size less than that need to be solved, the columns of are accessed to satisfy constraint (b) above, which requires more than simply maximizing for some (but can be solved by binary search using such tests).
where the optimal is obtained from as . The problem above is a quadratic program in the variables and . The active set algorithm described in §7.11 may thus be applied, and starting from feasible dual variables (which are easy to find with , since is in the convex hull of all ), and a subset , the following iteration is performed:
Compute a maximizer of subjet to and . This problem is may be put in variational form as follows:
with the following optimality conditions (a) stationarity: , (b) feasibility: , and . These may be put in a single symmetric linear system:
If and , then the pair is globally optimal.
If and , then the set is replaced by with the corresponding maximizer in , and by .
If such that , then then let be the largest positive scalar so that and be an index so that , i.e., . The set is replaced by and by .
Note that the full family of vectors is only accessed through the maximization of a linear function for a certain . This is thus well adapted to our situation where are the extreme points of the the base polytope (or of a polyhedral dual ball). Moreover, this algorithm is close to a particular instantiation of the simplicial algorithm from §7.7, and, like in the primal active-set method, once a variable is removed, it may re-enter the active set (this is not frequent in practice, see a counter-example in Figure 7.5).
In our context, where may be a sparsity-inducing norm, then the potential sparsity in is not used (as opposed to the primal active-set method). This leads in practice to large active sets and potential instability problems (see Chapter 12). Finally, regularization paths may be derived using the same principles as before, since the local solution with a known active set has an affine dependence in .
Chapter 8 Separable Optimization Problems: Analysis
In this chapter, we consider separable convex functions and the minimization of such functions penalized by the Lovász extension of a submodular function. When the separable functions are all quadratic functions, those problems are often referred to as proximal problems and are often used as inner loops in convex optimization problems regularized by the Lovász extension (see a brief introduction in §7.9 and, e.g., and references therein). Beyond their use for convex optimization problems, we show in this chapter that they are also intimately related to submodular function minimization, and can thus be also useful to solve discrete optimization problems.
We first study the separable optimization problem and derive its dual—which corresponds to maximizing a separable function on the base polyhedron —and associated optimality conditions in §8.1. We then consider in §8.2 the equivalence between separable optimization problems and a sequence of submodular minimization problems. In §8.3, we focus on quadratic functions, with intimate links with submodular function minimization and orthogonal projections on . Finally, in §8.4, we consider optimization problems on the other polyhedra we have defined, i.e., , and and show how solutions may be obtained from solutions of the separable problems on . For related algorithm see Chapter 9.
Throughout this chapter, we make the simplifying assumption that the problem is strictly convex and differentiable (but not necessarily quadratic) and such that the derivatives are unbounded, but sharp statements could also be made in the general case. The next proposition shows that by convex strong duality (see Appendix A), it is equivalent to the maximization of a separable concave function over the base polyhedron.
The pair is optimal if and only if (a) for all , and (b) is optimal for the maximization of over (see Prop. 4.2 for optimality conditions).
We have (since strong duality applies because of Fenchel duality, see Appendix A.1 and ):
where is the Fenchel-conjugate of . Thus the separably penalized problem defined in Eq. (8.1) is equivalent to a separable maximization over the base polyhedron (i.e., Eq. (8.2)). Moreover, the unique optimal for Eq. (8.2) and the unique optimal for Eq. (8.1) are related through for all .
Note that is always non-negative, is the sum of the non-negative terms (by Fenchel-Young inequality, see Appendix A): and , for ; this gap is thus equal to zero if and only these two terms are equal to zero.
2 Equivalence with submodular function minimization
(Monotonicity of solutions) Under the same assumptions than in Prop. 8.1, if , then any solutions and of Eq. (8.4) for and satisfy .
Proof We have, by optimality of and :
and by summing the two inequalities and using the submodularity of ,
which is equivalent to \sum_{j\in A^{\beta}\backslash A^{\alpha}}\big{[}\psi_{j}^{\prime}(\beta)-\psi_{j}^{\prime}(\alpha)\big{]}\leqslant 0, which implies, since for all , (because of strict convexity), that .
The next proposition shows that we can obtain the unique solution of Eq. (8.1) from all solutions of Eq. (8.4).
Then is the unique solution of the convex optimization problem in Eq. (8.1).
If , then, by definition of , . This implies that . Moreover, if , there exists such that . By the monotonicity property of Prop. 8.2, is included in . This implies .
because is optimal for and (and what happens when is equal to one of the components of is irrelevant for integration). By performing the same sequence of steps on the last equation, we get:
This shows that is indeed the unique optimum of the problem in Eq. (8.1).
From the previous proposition, we also get the following corollary, i.e., all solutions of the submodular function minimization problems in Eq. (8.4) may be obtained from the unique solution of the convex optimization problem in Eq. (8.1). Note that we immediately get the maximal and minimal minimizers, but that there is no general characterization of the set of minimizers (see more details in §10.1).
Proof From the definition of the supremum in Prop. 8.3, then we immediately obtain that for any minimizer . Moreover, if is not a value taken by some , , then this defines uniquely . If not, then we simply need to show that and are indeed maximizers, which can be obtained by taking limits of when tends to from below and above.
The previous proposition relates the optimal solutions of different optimization problems. The next proposition shows that approximate solutions also have a link, as the duality gap for Eq. (8.1) is the integral over of the duality gaps for Eq. (8.4).
Proof From Eq. (3.4) in Prop. 3.1, for large enough,
Finally, since , we have:
the last equality stemming from equality in Fenchel-Young inequality (see Appendix A.1). By combining the last three equations, we obtain (using ):
Since the integrand is equal to zero for , the result follows. Thus, the duality gap of the separable optimization problem in Prop. 8.1, may be written as the integral of a function of . It turns out that, as a consequence of Prop. 10.3 (Chapter 10), this function of is the duality gap for the minimization of the submodular function . Thus, we obtain another direct proof of the previous propositions. Eq. (8.5) will be particularly useful when relating an approximate solution of the convex optimization problem to an approximate solution of the combinatorial optimization problem of minimizing a submodular function (see §10.8).
3 Quadratic optimization problems
One of the consequences of the last proposition is that some of the solutions to the problem of minimizing a submodular function subject to cardinality constraints may be obtained directly from the solution of the quadratic separable optimization problems (see more details in ).
Another crucial consequence is obtained for : a minimizer of the submodular function may be obtained by thresholding the orthogonal projection of onto the base polyhedroon . See more details in Chapter 10.
4 Separable problems on other polyhedra∗
(Separable optimization on the submodular polyhedron) With the same conditions than for Prop. 8.1, let be a primal-dual optimal pair for the problem
For , let be a maximizer of on . Define . Then is a primal-dual optimal pair for the problem
Proof The pair is optimal for Eq. (8.7) if and only if (a) , i.e., is a Fenchel-dual pair for , and (b) .
For each , there are two possibilities, or . The equality occurs when the function has positive derivative at , i.e., . Since by optimality for Eq. (8.6), this occurs when , and thus and the pair is Fenchel-dual. The inequality occurs when , i.e., . In this situation, by optimality of , , and thus the pair is optimal. This shows that condition (a) is met.
For the second condition (b), notice that is obtained from by keeping the components of corresponding to strictly positive values of (let denote that subset), and lowering the ones for . For , the level sets are equal to . Thus, by Prop. 4.2, all of these are tight for (i.e., for these sets , ) and hence for because these sets are included in , and . This shows, by Prop. 4.2, that is optimal for .
Note that we can go from the solutions of separable problems on to the ones on , but not vice-versa. Moreover, Prop. 8.7 involves primal-dual pairs and , but that we can define from only, and define from only; thus, primal-only views and dual-only views are possible. This also applies to Prop. 8.9 and Prop. 8.8, which extends Prop. 8.7 to the symmetric and positive submodular polyhedra (we denote by the pointwise product between two vectors of same dimension).
(Separable optimization on the positive submodular polyhedron) Assume is submodular and non-decreasing. With the same conditions than for Prop. 8.1, let be a primal-dual optimal pair for the problem
Let be the minimizer of on and be the positive part of the maximizer of on . Then is a primal-dual optimal pair for the problem
Proof Let be the primal-dual pair obtained from Prop. 8.7, itself obtained from . The pair is obtained from , as and be the minimizer of on for all . We use a similar argument than in the proof of Prop. 8.7, to show that (a) the pair is a Fenchel dual pair for and (b) maximizes .
If , then we have , moreover this means that and thus (as the minimizer defining is attained on the boundary of the interval). This implies from Prop. 8.7 that is a Fenchel-dual pair. If , then , moreover, since , then the optimization problem defining has a solution away from the boundary, which implies that , and thus the pair is optimal for . This implies condition (a).
Let and be times a maximizer of on . Then is a primal-dual optimal pair for the problem
Proof Without loss of generality we may assume that , by the change of variables ; note that since , the Fenchel conjugate of is .
Because is non-decreasing with respect to each of its component, the global minimizer of must have non-negative components (indeed, if one them has a strictly negative component , then with respect to the -th variable, around , is non-increasing and is strictly decreasing, which implies that cannot be optimal, which leads to a contradiction).
We may then apply Prop. 8.7 to , which has Fenchel conjugate (because ), to get the desired result.
Prop. 8.8 is particularly adapted to sparsity-inducing norms defined in §5.2, as it describes how to solve the proximal problem for the norm . For a quadratic function, i.e., and . Then is the sign of , and we thus have to minimize
which is the classical quadratic separable problem on the base polyhedron, and select . Thus, proximal operators for the norm may be obtained from the proximal operator for the Lovász extension. See §9.4 for the proximal operator for the norms , .
Chapter 9 Separable Optimization Problems: Algorithms
The next two sets of algorithms are iterative methods for convex optimization on convex sets for which the support function can be computed, and are often referred to as “Frank-Wolfe” algorithms. This only assumes the availability of an efficient algorithm for maximizing linear functions on the base polyhedron (greedy algorithm from Prop. 3.2). The min-norm-point algorithm that we present in §9.2 is an active-set algorithm dedicated to quadratic functions and converges after finitely many operations (but with no complexity bounds), while the conditional gradient algorithms that we consider in §9.3 do not exhibit finite convergence but have known convergence rates. Finally, in §9.4. we consider extensions of proximal problems, normally line-search in the base polyhedron and the proximal problem for the norms , defined in §5.4.
We now consider an algorithm for proximal problems, which is based on a sequence of submodular function minimizations. It is based on a divide-and-conquer strategy. We adapt the algorithm of and the algorithm presented here is the dual version of the one presented in [72, Sec. 8.2]. Also, as shown at the end of the section, it can be slightly modified for problems with non-decreasing submodular functions (otherwise, Prop. 8.8 and Prop. 8.9 may be used).
Minimize the submodular function , i.e., find a set that minimizes .
If , then is optimal. Exit.
Find a minimizer of over in the base polyhedron associated to , the restriction of to .
Find the unique minimizer of over in the base polyhedron associated to the contraction of on A, defined as , for .
Concatenate and . Exit.
The algorithm must stop after at most iterations. Indeed, if in step (3), then we must have and since by construction . Thus we actually split into two non-trivial parts and . Step (1) is a separable optimization problem with one linear constraint. When is a quadratic polynomial, it may be obtained in closed form; more precisely, one may minimize subject to by taking .
The algorithm may also be interpreted in the primal, i.e., for minimizing . The information given by simply allows to reduce the search space to all such that , so that decouples into the sum of a Lovász extension of the restriction to and the one of the contraction to .
Let be the output of the recursive algorithm. If the algorithm stops at step (3), then we indeed have an optimal solution. Otherwise, we first show that . We have for any :
Thus is indeed in the submodular polyhedron . Moreover, we have , i.e., is in the base polyhedron .
Note finally that similar algorithms may be applied when we restrict to have integer values (see, e.g., ).
In this chapter, we have considered the minimization of separable functions on the base polyhedron . In order to minimize over the submodular polyhedron , we may use Prop. 8.7 that shows how to obtain the solution in from the solution on . Similarly, for a non-decreasing submodular function, when minimizing with respect to the symmetric submodular polyhedron or , we may use Prop. 8.8 or Prop. 8.9. Alternatively, we may use a slightly different algorithm that is dedicated to these situations. For , this is exactly the algorithm of .
In the divide-and-conquer algorithm described above, at every step, the problem in dimension is divided into two problems with dimensions and summing to . Unfortunately, in practice, the splitting may be rather unbalanced, and the total complexity of the algorithm may then be times the complexity of a single submodular function minimization (instead of for binary splits). Following the algorithm of which applies to cut problems, an algorithm is described in which reaches a -approximate solution by using a slightly different splitting strategy, with an overall complexity which is only times the complexity of a single submodular function minimization problem.
2 Iterative algorithms - Exact minimization
In this section, we focus on quadratic separable problems. Note that modifying the submodular function by adding a modular termIndeed, we have , which corresponds (up to the irrelevant constant term ) to the proximal problem for the Lovász extension of ., we can consider . As shown in Prop. 8.1, minimizing is equivalent to minimizing such that .
In our situation, the vectors will be the extreme points of , i.e., outputs of the greedy algorithm, but they will always be used implicitly through the maximization of linear functions over . We will apply the primal active set strategy outlined in Section 16.4 of and in §7.11, which is exactly the algorithm of . The active set strategy hinges on the fact that if the set of indices for which is known, the solution may be obtained in closed form by computing the affine projection on the set of points indexed by (which can be implemented by solving a positive definite linear system, see step 2 in the algorithm below). Two cases occur: (a) If the affine projection happens to have non-negative components, i.e., (step (3)), then we obtain in fact the projection onto the convex hull of the points indexed by , and we simply need to check optimality conditions and make sure that no other point needs to enter the hull (step 5), and potentially add it to go back to step (2). (b) If the projection is not in the convex hull, then we make a move towards this point until we exit the convex hull (step (4)) and start again at step (2). We describe in Figure 9.1 an example of several iterations.
Projection onto affine hull: Compute the unique minimizer \frac{1}{2}\big{\|}\sum_{j\in J}\eta_{j}x_{j}\big{\|}_{2}^{2} such that , i.e., the orthogonal projection of onto the affine hull of the points .
Test membership in convex hull: If (we in fact have an element of the convex hull), go to step (5).
Line search: Let be the largest such that . Let the sets of such that . Replace by and by , and go to step (2).
Check optimality: Let . Compute a minimizer of . If , then is optimal. Otherwise, replace by , and go to step (2).
The previous algorithm terminates in a finite number of iterations because it strictly decreases the quadratic cost function at each iteration; however, there is no known bounds regarding the number of iterations (see more details in ). Note that in pratice, the algorithm is stopped after either (a) a certain duality gap has been achieved—given the candidate , the duality gap for is equal to , where (in the context of application to orthogonal projection on , following §8.3, one may get an improved duality gap by solving an isotonic regression problem); or (b), the affine projection cannot be performed reliably because of bad condition number (for more details regarding stopping criteria, see ).
𝐹P_{+}(F). When projecting onto the symmetric submodular polyhedron, one may either use the algorithm defined above which projects onto and use Prop. 8.9. It is also possible to apply the min-norm-point algorithm directly to this problem, since we can also maximize linear functions on or efficiently, by the greedy algorithm presented in Prop. 3.5. In our experiments in §12.3, we show that the number of iterations required for the minimum-norm-point algorithm applied directly to is lower; however, in practice, warm restart strategies, that start the min-norm-point algorithm from a set of already computed extreme points, are not as effective.
3 Iterative algorithms - Approximate minimization
In this section, we describe an algorithm strongly related to the minimum-norm point algorithm presented in §9.2. As shown in §7.6, this “conditional gradient” algorithm is dedicated to minimization of any convex smooth functions on the base polyhedron. Following the same argument than for the proof of Prop. 8.1, this is equivalent to the minimization of any strictly convex separable function regularized by the Lovász extension. As opposed to the mininum-norm point algorithm, it is not convergent in finitely many iterations; however, as explained in §7.6, it comes with approximation guarantees.
There are several strategies for computing . The first is to take , while the second one is to perform a line search on the quadratic upper-bound on obtained from the -Lipschitz continuity of (see §7.6 for details). They both exhibit the same upper bound on the sub-optimality of the iterate , together with playing the role of a certificate of optimality. More precisely, the base polyhedron is included in the hyper-rectangle (as a consequence of the greedy algorithm applied to and ). We denote by the length of the interval for variable , i.e., . Using results from §7.6, we have for the two methods:
and the computable quantity provides a certificate of optimality, that is, we always have that , and the latter quantity has (up to constants) the same convergence rate. Note that while this certificate comes with an offline approximation guarantee, it can be significantly improved, following §8.3, by solving an appropriate isotonic regression problem (see simulations in Chapter 12).
In Figure 9.2, we consider the conditional gradient algorithm (with line search) for the quadratic problem considered in §9.2. These two algorithms are very similar as they both consider a sequence of extreme points of obtained from the greedy algorithm, but they differ in the following way: the min-norm-point algorithm is finitely convergent but with no convergence rate, while the conditional gradient algorithm is not finitely convergent, but with a convergence rate. Moreover, the cost per iteration for the min-norm-point algorithm is much higher as it requires linear system inversions. In context where the function is cheap to evaluate, this may become a computational bottleneck; however, in our simulations in Chapter 12, we have focused on situations where the bottleneck is evaluation of functions (i.e., we compare algorithms using number of function calls or number of applications of the greedy algorithm).
4 Extensions
In this section, we consider extensions of the algorithms presented above, with application to the computation of dual norms and proximal operators for the norms presented in §5.4. These are key to providing either efficient algorithms or efficient ways of providing approximate optimality certificates (see more details in ).
The number of iterations is typically much smaller than (see sufficient conditions in ). Moreover, if all components of are strictly positive, then the number of iterations is in fact less than . In this situation, and thus the line search problem allows computation of the dual norms defined in Chapter 5, as already done by for the special case of the flow-based norms described in §6.4. We now present a certain proximal problem which provides interesting new insights into the algorithm above.
Initialization: , and .
Perform the following iterations until termination (which must happens after at most iterations): let be any minimizer of on . If , then output and stop. Otherwise, Let and .
While we have shown the validity of the previous algorithm for having strictly positive components, the same result also holds for having potentially zero values (because it corresponds to a reduced problem with strictly positive values, defined on a restriction of ). Moreover, it turns out that the divide-and-conquer algorithm of §9.1 applied to the minimization of , i.e., the maximization of over , can be shown to lead to the exact same algorithm.
over the positive submodular polyhedron . We can apply the divide-and-conquer algorithm (note that we have only shown its optimality for smooth functions, but it holds more generally, and in particular here). The only different element is the minimization of the previous cost function subject to and . This can be obtained in closed form as . The divide-and-conquer algorithm may also be used to compute the norm , by maximizing over , the first step now becoming . See additional details in .
In all the extensions that were presented in this section, faster dedicated algorithms exist for special cases, namely for cardinality-based functions and cuts in chain graphs .
Chapter 10 Submodular Function Minimization
Several generic algorithms may be used for the minimization of a submodular function. In this chapter, we present algorithms that are all based on a sequence of evaluations of for certain subsets . For specific functions, such as the ones defined from cuts or matroids, faster algorithms exist (see, e.g., , §6.2 and §6.8). For other special cases, such as functions obtained as the sum of simple functions, faster algorithms also exist and are reviewed in §10.9.
Submodular function minimization algorithms may be divided in two main categories: exact algorithms aim at obtaining a global minimizer, while approximate algorithms only aim at obtaining an approximate solution, that is, a set such that , where is as small as possible. Note that if is less than the minimal absolute difference between non-equal values of , then this leads to an exact solution, but that in many cases, this difference may be arbitrarily small.
An important practical aspect of submodular function minimization is that most algorithms come with online approximation guarantees; indeed, because of a duality relationship detailed in §10.1, in a very similar way to convex optimization, a base may serve as a certificate for optimality. Note that many algorithms (the simplex algorithm is notably not one of them) come with offline approximation guarantees.
In §10.2, we review “combinatorial algorithms” for submodular function minimization that come with complexity bounds and are not explicitly based on convex optimization. Those are however not used in practice in particular due to their high theoretical complexity (i.e., ), except for the particular class of posimodular functions, where algorithms scale as (see §10.3). In §10.4, we show how the ellipsoid algorithm may be applied with a well-defined complexity bounds. While this provided the first polynomial-time algorithms for the submodular function minimization problem, it is too slow in practice.
In §10.5, we show how a certain “column-generating” version of the simplex algorithm may be considered for this problem, while in §10.6, the analytic center cutting-plane method center is considered. We show in particular that these methods are closely related to Kelley’s method from §7.4, which sequentially optimizes piecewise affine lower-bounds to the Lovász extension.
In §10.7 a formulation based on quadratic separable problem on the base polyhedron, but using the minimum-norm-point algorithm described in §9.2. These last two algorithms come with no complexity bounds.
All the algorithms mentioned above have the potential to find the global minimum of the submodular function if enough iterations are used. They come however with a cost of typically per iteration. The following algorithms have cost per iteration, but have slow convergence rate, that makes them useful to obtain quickly approximate results (this is confirmed in simulations in §12.1): in §10.8, we describe optimization algorithms based on separable optimization problems regularized by the Lovász extension. Using directly the equivalence presented in Prop. 3.7, we can minimize the Lovász extension on the hypercube using subgradient descent with approximate optimality for submodular function minimization of after iterations. Using quadratic separable problems, we can use the algorithms of §9.3 to obtain new submodular function minimization algorithms with convergence of the convex optimization problem at rate , which translates through the analysis of Chapter 8 to the same convergence rate of for submodular function minimization, although with improved behavior and better empirical performance (see §10.8 and §12.1).
Most algorithms presented in this chapter are generic, i.e., they apply to any submodular functions and only access them through the greedy algorithm; in §10.9, we consider submodular function minimization problems with additional structure, that may lead to more efficient algorithms.
Note that maximizing submodular functions is a hard combinatorial problem in general, with many applications and many recent developments with approximation guarantees. For example, when maximizing a non-decreasing submodular function under a cardinality constraint, the simple greedy method allows to obtain a -approximation while recent local search methods lead to -approximation guarantees (see more details in Chapter 11).
In this section, we review some relevant results for submodular function minimization (for which algorithms are presented in next sections).
(Lattice of minimizers of submodular functions) Let be a submodular function such that . The set of minimizers of is a lattice, i.e., if and are minimizers, so are and .
Proof Given minimizers and of , then, by submodularity, we have , hence equality in the first inequality, which leads to the desired result.
The following proposition shows that some form of local optimality implies global optimality.
Proof The set of two conditions is clearly necessary. To show that it is sufficient, we let , we have: , by using the submodularity of and then the set of two conditions. This implies that , for all , hence the desired result.
The following proposition provides a useful step towards submodular function minimization. In fact, it is the starting point of most polynomial-time algorithms presented in §10.2. Note that submodular function minimization may also be obtained from minimizing over in the base polyhedron (see Chapter 8 and §8.3).
(Dual of minimization of submodular functions) Let be a submodular function such that . We have:
where for . Moreover, given and , we always have with equality if and only if and is tight for , i.e., .
Moreover, given and such that , we always have with equality if and only if and is tight for , i.e., .
Proof We have, by strong convex duality, and Props. 3.7 and 4.1:
Strong duality indeed holds because of Slater’s condition ( has non-empty interior). Since for all , we have , hence the second equality.
Moreover, we have, for all and :
with equality if there is equality in the three inequalities. The first one leads to . The second one leads to , and the last one leads to . Moreover,
Finally, given such that and , we have:
with equality if and only if is tight and .
2 Combinatorial algorithms
Most algorithms are based on Prop. 10.3, i.e., on the identity . Combinatorial algorithms will usually output the subset and a base such that is tight for and , as a certificate of optimality.
Most algorithms, will also output the largest minimizer of , or sometimes describe the entire lattice of minimizers. Best algorithms have polynomial complexity , but still have high complexity (typically or more). Most algorithms update a sequence of convex combination of vertices of obtained from the greedy algorithm using a specific order (see a survey of existing approaches in ). Recent algorithms consider reformulations in terms of generalized graph cuts, which can be approximately solved efficiently.
Note here the difference between the combinatorial algorithm which maximizes and the ones based on the minimum-norm point algorithm which maximizes over the base polyhedron . In both cases, the submodular function minimizer is obtained by taking the negative values of . In fact, the unique minimizer of is also a maximizer of , but not vice-versa.
3 Minimizing symmetric posimodular functions
A submodular function is said symmetric if for all , . By applying submodularity, we get that , which implies that is non-negative. Hence its global minimum is attained at and . Undirected cuts (see §6.2) are the main classical examples of such functions.
Such functions can be minimized in time over all non-trivial (i.e., different from and ) subsets of through a simple algorithm of Queyranne . Moreover, the algorithm is valid for the regular minimization of posimodular functions , i.e., of functions that satisfies
These include symmetric submodular functions as well as non-decreasing modular functions, and hence the sum of any of those (in particular, cuts with sinks and sources, as presented in §6.2). Note however that this does not include general modular functions (i.e., with potentially negative values); worse, minimization of functions of the form is provably as hard as general submodular function minimization . Therefore this algorithm is quite specific and may not be used for solving proximal problems with symmetric functions.
4 Ellipsoid method
Following , we may apply the ellipsoid method described in §7.3 to the problem . The minimum volume ellipsoid that contains is the ball of center and radius . Starting from this ellipsoid, the complexity bound from §7.3 leads to, after iterations
This implies that in order to reach a precision of \varepsilon\big{[}\max_{A\subseteq V}F(A)-\min_{A\subseteq V}F(A)\big{]}, at most iterations are needed. Given that every iteration has complexity , we obtain an algorithm with complexity , with similar complexity than the currently best-known combinatorial algorithms from §10.2. Note here the difference between weakly polynomial algorithms such as the ellipsoid with a polynomial dependence on , and strongly polynomial algorithms which have a bounded complexity when tends to zero.
5 Simplex method for submodular function minimization
It is thus exactly a linear program in standard form (as considered in §7.10) with:
This linear program have many variables and a certain version of simplex method may be seen as a column decomposition approach , as we now describe.
A basic feasible solution is defined by a subset of , which can be decomposed into a subset and two disjoint subsets and of (they have to be disjoint so that the corresponding columns of are linearly independent). We denote by . Since , then .
In order to compute the basic feasible solution (i.e., ), we denote by the square matrix T=\bigg{(}\begin{array}[]{c}1_{|I|}^{\top}\\ S_{IK}^{\top}\end{array}\bigg{)}. The basic feasible solution corresponds to defined as , i.e., such that and (as many equations as unknowns). Then, , . All of these have to be non-negative, while all others are set to zero.
If , we recover optimality conditions for the original problem. There are several possibilities for lack of optimality. Indeed, we need to check which elements of is violating the constraint. It could be such that , or such that . In our algorithm, we may choose which violated constraints to treat first. We will always check first (since it does not require to run the greedy algorithm), then, in cases where we indeed have , we run the greedy algorithm to obtain such that . We thus consider the following situations:
If there exists such that . The descent direction is thus equal to \Bigg{(}\begin{array}[]{c}-T^{-1}(0,\delta_{i}^{\top})^{\top}\\ -S_{II_{\alpha}}^{\top}T^{-1}(0,\delta_{i}^{\top})^{\top}\\ +S_{II_{\beta}}^{\top}T^{-1}(0,\delta_{i}^{\top})^{\top}\end{array}\Bigg{)}, and by keeping only the negative component, we find the largest such that hits a zero, and remove the corresponding index.
Similarly, if there exists such that , we have the same situation.
If there exists such that , the descent direction is \Bigg{(}\begin{array}[]{c}-T^{-1}(1,(s_{j})_{K})^{\top}\\ -S_{II_{\alpha}}^{\top}T^{-1}(1,(s_{j})_{K})^{\top}\\ +S_{II_{\beta}}^{\top}T^{-1}(1,(s_{j})_{K})^{\top}\end{array}\Bigg{)}, then we add a new index to and remove one from or . Note that if we assume , then we have an optimal solution of the problem constrained to vectors for .
Using the proper linear algebra tools common in simplex methods , each iteration has complexity .
In summary, if we consider a pivot selection strategy such that we always consider first the violation of the constraints and , then, every time these two constraints are satisfied, is a global minimum of over , that is a piecewise affine lower-bound obtained from subgradients of the Lovász extension are certain points. Thus, we are actually “almost” using Kelley’s method described in §7.7 (almost, because, like for active-set methods for quadratic programming in §7.12, extreme points may come in and out of the set ). Moreover, the global minimum mentioned above is not unique, and the simplex method selects an extreme point of the polytope of solutions. This is to be contrasted with the next section, where interior-point will be considered, leading to much improved performance in our experiments.
6 Analytic center cutting planes
In this section, we consider the application of the method presented in §7.5 to the problem . Given the set of already observed points (and the corresponding outcomes of the greedy algorithm at these points ), and the best function values for obtained so far, then the next point is obtained by finding a weighted analytic center, i.e., by minimizing
Using strong convex duality, this is equivalent to
with . The minimization may be done using Newton’s method , since a feasible start is easy to find from previous iterations.
The generic cutting-plane method considers . When tends to infinity, then every analytic center subproblem is equivalent to minimizing such that and selecting among all minimizers the analytic center of the polytope of solutions. Thus, we obtain an instance of Kelley’s method. The selection of an interior-point leads in practice to a choice of the next subgradient which is much better than with an extreme point (which the simplex method described above would give).
7 Minimum-norm point algorithm
From Eq. (8.4) or Prop. 8.4, we obtain that if we know how to minimize , or equivalently, minimize such that , then we get all minimizers of from the negative components of .
We can then apply the minimum-norm point algorithm detailed in §9.2 to the vertices of , and notice that step (5) does not require to list all extreme points, but simply to maximize (or minimize) a linear function, which we can do owing to the greedy algorithm. The complexity of each step of the algorithm is essentially function evaluations and operations of order . However, there are no known upper bounds on the number of iterations. Finally, we obtain as a convex combination of extreme points.
Note that once we know which values of the optimal vector (or ) should be equal, greater or smaller, then, we obtain in closed form all values. Indeed, let the different values taken by , and the corresponding sets such that for . Since we can express f(w)+\frac{1}{2}\|w\|_{2}^{2}=\sum_{j=1}^{m}\big{\{}v_{j}[F(A_{1}\cup\cdots\cup A_{j})-F(A_{1}\cup\cdots\cup A_{j-1})]+\frac{|A_{j}|}{2}c_{j}^{2}\big{\}}, we then have:
which allows to compute the values knowing only the sets (i.e., the ordered partition of constant sets of the solution). This shows in particular that minimizing may be seen as a certain search problem over ordered partitions.
8 Approximate minimization through convex optimization
In this section, we consider two approaches to submodular function minimization based on iterative algorithms for convex optimization: a direct approach, which is based on minimizing the Lovász extension directly on (and thus using Prop. 3.7), and an indirect approach, which is based on quadratic separable optimization problems (and thus using Prop. 8.6). All these algorithms will access the submodular function through the greedy algorithm, once per iteration, with minor operations inbetween.
Given a submodular function , if , then must be in any minimizer of , since, because of submodularity, if it is not, then adding it would reduce the value of . Similarly, if , then must be in the complement of any minimizer of . Thus, if we denote the set of such that and the complement of the set of such that , then we may restrict the minimization of to subset such that . This is equivalent to minimizing the submodular function on .
From now on, (mostly for the convergence rate described below) we assume that we have done this restriction and that we are now minimizing a function so that for all , and . We denote by , which is non-negative by submodularity. Note that in practice, this restriction can be seamlessly done by starting regular iterative methods from specific starting points.
From Prop. 3.7, we can use any convex optimization algorithm to minimize on . Following , we consider subgradient descent with step-size (where ), i.e., (a) starting from any , we iterate (a) the computation of a maximiser of over , and (b) the update w_{t}=\Pi_{^{p}}\big{[}w_{t-1}-\frac{D\sqrt{2}}{\sqrt{pt}}s_{t-1}\big{]}, where is the orthogonal projection onto the set (which may done by thresholding the components independently).
The following proposition shows that in order to obtain a certified -approximate set , we need at most iterations of subgradient descent (whose complexity is that of the greedy algorithm to find a base ).
(Submodular function minimization by subgradient descent) After steps of projected subgradient descent, among the sup-level sets of , there is a set such that . Moreover, we have a certificate of optimality , so that , with .
Proof Given an approximate solution so that , with , we can sort the elements of in decreasing order, i.e., . We then have, with ,
Thus, as the sum of positive numbers, there must be at least one such that . Therefore, given such that , there is at least on the sup-level set of which has values for which is -approximate.
Finally, if we replace the subgradient iteration by w_{t}=\Pi_{^{p}}\big{[}w_{t-1}-\mathop{\rm Diag}(\alpha)^{-1}\frac{\sqrt{2}}{\sqrt{t}}s_{t-1}\big{]}, then this corresponds to a subgradient descent algorithm on the function on the set , for which the diameter of the domain and the Lipschitz constant are equal to \big{(}\sum_{k\in V}\alpha_{k}\big{)}^{1/2}. We would obtain the improved convergence rate of , but with few empirical differences.
The previous proposition relies on one of the most simple algorithms for convex optimization, subgradient descent, which is applicable in most situations; however, its use is appropriate because the Lovász extension is not differentiable, and the dual problem is also not differentiable. We have considered a non-adaptive steps-size in order to obtain a complexity bound. Another common strategy is to use an approximation Polyak’s rule : given the function value , the gradient norm and the current best dual value , the step-size is . See §12.1 for an experimental comparison.
We now consider separable quadratic optimization problems whose duals are the maximization of a concave quadratic function on , which is smooth. We can thus use the conditional gradient algorithm described in §7.6, with a better convergence rate; however, as we show below, when we threshold the solution to obtain a set , we get the same scaling as before (i.e., ), with nevertheless an improved empirical behavior. See below and experimental comparisons in Chapter 12. We first derive a bound bonding the duality gap for submodular function minimization when thresholding the iterates from the minimization of .
Proof From Eq. (8.5), if we assume that for all , then we obtain:
which is a contradiction. Thus, there exists such that . This leads to
The last inequality may be derived using monotonicity arguments and considering two cases for the sign of . By choosing , we obtain the desired bound.
We now consider the set-up of Chapter 8 with , and thus . That is, e consider the conditional gradient algorithm studied in §9.3 and §7.6, with the smooth function : (a) starting from any base , iterate (b) the greedy algorithm to obtain a minimizer of with respect to , and (c) perform a line search to minimize with respect to , .
Let , , be the widths of the hyper-rectangle enclosing ). The following proposition shows how to obtain an approximate minimizer of .
(Submodular function minimization by conditional gradient descent) After steps of the conditional gradient method described above, among the sub-level sets of , there is a set such that . Moreover, acts as a certificate of optimality, so that .
Proof The convergence rate analysis of the conditional gradient method leads to an -approximate solution with . From Prop. 10.5, then we obtain by thresholding the desired gap for submodular function minimization.
Here the convergence rate is the same as for subgradient descent. See Chapter 12 for an empirical comparison, showing a better behavior for the conditional gradient method. As for subgradient descent, this algorithm provides certificates of optimality. Moreover, when offline (or online) certificates of optimality ensures that we an approximate solution, because the problem is strongly convex, we obtain also a bound on where is the optimal solution. This in turn allows us to ensure that all indices such that cannot be in a minimizer of , while those indices such that have to be in a minimizer, which can allow efficient reduction of the search space (although these have not been implemented in the simulations in Chapter 12).
Alternative algorithms for the same separable optimization problems may be used, i.e., conditional gradient without line search , with similar convergence rates and behavior, but sometimes worse empirical peformance. Another alternative is to consider projected subgradient descent in , with the same convergence rate (because the objective function is then strongly convex). Note that as shown before (§9.3), it is equivalent to a conditional gradient algorithm with no line search.
9 Using special structure
For some specific submodular functions, it is possible to use alternative optimization algorithms with either improved complexity bounds or numerical efficiency. The most classical structure is decomposability: the submodular function is assumed to be a sum of simple submodular functions , , i.e., , . There are several notions of simplicity that may be considered and are compared empirically in . All included functions of cardinality and restrictions thereof, as well as cuts in chain or tree-structured graphs.
In , it is assumed that one may compute a convex smooth (with bounded Lipschitz-constant of the gradient) approximation of the Lovász extension with uniform approximation error. In this situation, the Lovász extension of may be approximated by a smooth function on which an accelerated gradient technique such as described in §7.9 may be used with convergence rate after iterations. When choosing a well-defined amount of smoothnees, this leads to an approximation guarantee for submodular function minimization of the form , instead of in the general case.
Chapter 11 Other Submodular Optimization Problems
While submodular function minimization may be solved in polynomial time (see Chapter 10), submodular function maximization (which includes the maximum cut problem) is NP-hard. However, for many situations, local search algorithms exhibit theoretical guarantees and the design and analysis of such algorithms is an active area of research, in particular due to the many applications where the goal is to maximize submodular functions (see, e.g., sensor placement in §6.3 and experimental design in §6.5). Interestingly, the techniques used for maximization and minimization are rather different, in particular with less use of convex analysis for maximization. In this chapter, we review some classical and recent results for the maximization of submodular (§11.1 and §11.2), before presenting the problem of differences of submodular functions in §11.3.
In this section, we first consider the classical instance of a submodular maximization problem, for which the greedy algorithm leads to the optimal approximation guarantee.
Submodular function maximization provides a classical example where greedy algorithms do have performance guarantees. We now consider a non-decreasing submodular function and the problem of minimizing subject to the constraint , for a certain . The greedy algorithm will start with the empty set and iteratively add the element such that is maximal. As we show below, it has an -performance guarantee . Note that this guarantee cannot be improved in general, as it cannot for Max -cover (assuming , no polynomial algorithm can provide better approximation guarantees; see more details in ).
(Performance guarantee for submodular function maximization) Let be a non-decreasing submodular function. The greedy algorithm for maximizing subset to outputs a set such that
Proof We follow the proof of . Let be a maximizer of with elements, and the -th element selected during the greedy algorithm. We consider . For a given , we denote by the elements of (we must have ). We then have:
Since is lower triangular, we may compute the vector iteratively and easily show by induction that . Similarly, is upper-triangular and we may compute as .
Since these two vectors happen to be non-negative, they are respectively primal and dual feasible. Since they respectively lead to the same primal and dual objective, this shows that the optimal value of the linear program is equal to , hence the desired result since .
Given the previous result on cardinality constraints, several extensions have been considered, such as knapsack constraints or matroid constraints (see and references therein). Moreover, fast algorithms and improved online data-dependent bounds can be further derived .
2 General submodular function maximization
In this section, we consider a submodular function and the maximization problem:
This problem is known to be NP-hard (note that it includes the maximum cut problem) . In this section, we present general local optimality results as well as a review of existing approximation guarantees available for non-negative functions.
Given any set , simple local search algorithms simply consider all sets of the form and and select the one with largest value of . If this value is lower than , then the algorithm stops and we are by definition at a local minimum. While these local minima do not lead to any global guarantees in general, there is an interesting added guarantee based on submodularity, which we now prove (see more details in ).
(Local maxima for submodular function maximization) Let be a submodular function and such that for all , and for all , . Then for all and all , .
Proof If , then
which leads to the first result. The second one may be obtained from the first one applied to . Note that branch-and-bound algorithms (with worst-case exponential time complexity) may be designed that specifically take advantage of the property above .
Given and its Lovász extension , we have (the first equality is true since maximization of convex function leads to an extreme point ):
When the function is known to be non-negative (i.e., with non-negative values for all ), then simple local search algorithm have led to theoretical guarantees . It has first been shown in that a relative bound could not be improved in general if a polynomial number of queries of the submodular function is used. Recently, has shown that a simple strategy that maintains two solutions, one starting from the empty set and one starting from the full set, and updates them using local moves, achieves a ratio of 1/3, while a randomized local move leads to the optimal approximation ratio of 1/2.
However, such theoretical guarantees should be considered with caution, since in this similar setting of maximizing a non-negative submodular function, selecting a random subset already achieves at least of the optimal value (see the simple argument outlined by that simply uses the convexity of the Lovász extension and conditioning): having theoretical guarantees do not necessarily imply that an algorithm is doing anything subtle.
Interestingly, in the analysis of submodular function maximization, a new extension from to has emerged, the multi-linear extension , which is equal to
It is equal to the expectation of where is a random subset where the -th element is selected with probability (note that this interpretation allows the computation of the extension through sampling), and this is to be contrasted with the Lovász extension, which is equal to the expectation of for a random variable with uniform distribution in $$. The multi-linear extension is neither convex nor concave but has marginal convexity properties that may be used for the design and analysis of algorithms for maximization problems .
3 Difference of submodular functions∗
In regular continuous optimization, differences of convex functions play an important role, and appear in various disguises, such as DC-programming , concave-convex procedures , or majorization-minimization algorithms . They allow the expression of any continuous optimization problem with natural descent algorithms based on upper-bounding a concave function by its tangents.
In the context of combinatorial optimization, has shown that a similar situation holds for differences of submodular functions. We now review these properties.
A typical example would be , where . If
is non-negative, then is submodular (see Prop. 2.3). If , then is submodular, and thus, we have , which is a difference of two submodular functions. Thus any combinatorial optimization problem may be seen as a difference of submodular functions (with of course non-unique decomposition). However, some problems, such as subset selection in §6.7, or more generally discriminative learning of graphical model structure may naturally be seen as such .
Given two submodular set-functions and , we consider the following iterative algorithm, starting from a subset :
Compute modular lower-bound , of which is tight at : this might be done by using the greedy algorithm of Prop. 3.2 with . Several orderings of components of may be used (see for more details).
Take as any minimizer of , using any algorithm of Chapter 10.
It converges to a local minimum, in the sense that at convergence to a set , all sets and have smaller function values.
We can give a similar geometric interpretation than for submodular function maximization; given and their Lovász extensions , , we have:
Thus optimization of the difference of submodular functions is related to the Hausdorff distance between and : this distance is equal to \max\big{\{}\min_{s\in B(G)}\max_{t\in B(F)}\|t-s\|_{1},\min_{s\in B(G)}\max_{t\in B(F)}\|t-s\|_{1}\big{\}} (see, e.g., ). See also an illustration in Figure 11.1.
Chapter 12 Experiments
In this chapter, we provide illustrations of the optimization algorithms described earlier, for submodular function minimization (§12.1), as well as for convex optimization problems: quadratic separable ones such as the ones used for proximal methods or within submodular function minimization (§12.2), an application of sparsity-inducing norms to wavelet-based estimators (§12.3), and some simple illustrative experiments of recovery of one-dimensional signals using structured regularizers (§12.4). The Matlab code for all these experiments may be found at http://www.di.ens.fr/~fbach/submodular/.
We compare several approaches to submodular function minimization described in Chapter 10, namely:
MNP: the minimum-norm-point algorithm to maximize over , described in §10.7.
Simplex: the simplex algorithm described in §10.5.
ACCPM: the analytic center cutting plane technique from §10.6.
ACCPM-Kelley: the analytic center cutting plane technique presented in §10.6, with a large weight , which emulates the simplicial method from §7.7.
Ellipsoid: the ellipsoid algorithm described in §10.4.
SG: the projected gradient descent algorithm to minimize over , described in §10.8, with two variants, a step-size proportional to (denoted “SG-1/”) and using the approximation of Polyak’s rule (“SG-Polyak”) described in §10.8.
CG-LS: the conditional gradient algorithm to maximize over , with line search, described in §10.8.
CG-2/(t+1): the conditional gradient algorithm to maximize over , with step size , described in §10.8.
From all these algorithms, we may obtain sets and dual certificates ; the quantity (see Prop. 10.3) then serves as a certificate of optimality. In order to distinguish primal and dual approximate optimality we report and , where is the optimal value of the problem.
We test these algorithms on five data sets:
Two-moons (clustering with mutual information criterion): we generated data from a standard synthetic examples in semi-supervised learning (see Figure 12.1) with data points, and 16 labelled data points, using the method presented in §6.5, based on the mutual information between two Gaussian processes (with a Gaussian-RBF kernel).
Genrmf-wide and Genrmf-long (min-cut/max-flow standard benchmark): following , we generated cut problem using the generator GENRMF available from DIMACS challenge The First DIMACS international algorithm implementation challenge: The core experiments (1990), available at ftp://dimacs.rutgers.edu/pub/netow/generalinfo/core.tex.. Two types of network were generated, “long” and “wide”, with respectively vertices and 2390 edges, and and 1872 edges (see for more details).
Speech: we consider a dataset used by , in order to solve the problem of finding a maximum size speech corpus with bounded vocabulary (). The submodular function is of the form , where is a set-cover function from §6.3 (this function is submodular because of Prop. B.6).
Image segmentation: we consider the minimum-cut problem used in Figure 6.4 for segmenting a image, i.e., .
Since all algorithms perform a sequence of greedy algorithms (for finding maximum weight bases), we measure performance in numbers of iterations in order to have an implementation-independent measure. Among the tested methods, some algorithms (subgradient and conditional gradient) have no extra cost, while others involved solving linear systems.
On all datasets, the achieved primal function values are in fact much lower than the certified values (i.e., primal suboptimality converges to zero much faster than dual suboptimality). In other words, primal values are quickly very good and iterations are just needed to sharpen the certificate of optimality.
Among the algorithms, only ACCPM has been able to obtain both close to optimal primal and dual solutions in all cases, while the minimum-norm-point does so in most cases, though more slowly. Among methods that may find the global optimum, the simplex exhibit poor performance. The simpler methods (subgradient and conditional gradient) perform worse, with an advantage for the conditional gradient with line search, which is able to get good primal values quicker (while dual certificates converge slowly).
2 Separable optimization problems
3 Regularized least-squares estimation
In this section, we illustrate the use of the Lovász extension in the context of sparsity-inducing norms detailed in §5.2, with the submodular function defined in Figure 6.9, which is based on a tree structure among the variables, and encourages variables to be selected after their ancestors. We do not use any weights, and thus is equal to the cardinality of the union of all ancestors of nodes indexed by elements of .
We consider random inputs , , from a uniform distribution and compute , where is Gaussian with mean zero and standard deviation . We consider the optimization problem
where is a constant term and is a regularization function. In Figure 12.10, we compare several regularization terms, namely (ridge regression), (Lasso) and defined from the hierarchical submodular function . For all of these, we select such that the generalization performance is maximized, and compare the estimated functions. The hierarchical prior leads to a lower estimation error with fewer artefacts.
In this section, our goal is also to compare several optimization schemes to minimize Eq. (12.1) for this particular example (for more simulations on larger-scale examples with similar conclusions, see ). We compare in Figure 12.11 several ways of solving the regularized least-squares problem:
Prox. hierarchical: we use a dedicated proximal operator based on the composition of local proximal operators . This strategy is only applicable for this submodular function.
Prox. decomposition: we use the algorithm of §9.1 which uses the fact that for any vector , may be minimized by dynamic programming . We also consider a modification (“abs”), where the divide-and-conquer strategy is used directly on the symmetric submodular polyhedron.
Prox-MNP: we use the generic method which does not use any of the structure, with the modification (“abs”) that operates directly on and not on . For these two algorithms, since the min-norm-point algorithm is used many times for similar inputs, we use warm restarts to speed up the algorithm. We also report results without such warm restarts (the algorithm is then much slower).
subgrad-descent: we use a generic method which does not use any of the structure, and minimize directly Eq. (12.1) by subgdradient descent, using the best possible (in hindsight) step-size sequence proportional to .
Active-primal: primal active-set method presented in §7.12, which require to be able to minimize the submodular function efficiently (possible here). When is the cardinality function, this corresponds to the traditional active-set algorithm for the Lasso.
Active-dual: dual active-set method presented in §7.12, which simply requires to access the submodular function through the greedy algorithm. Since our implementation is unstable (due to the large linear ill-conditioned systems that are approximately solved), it is only used for the small problem where .
As expected, in Figure 12.11, we see that the most efficient algorithm is the dedicated proximal algorithm (which is usually not available except in particular cases like the tree-structured norm), while the methods based on submodular functions fare correctly, with an advantage for methods using the structure (i.e., the decomposition method, which is only applicable when submodular function minimization is efficient) over the generic method based on the min-norm-point algorithm (which is always applicable). Note that the primal active-set method (which is only applicable when minimizing is efficient) is competitive while the dual active-set method takes many iterations to make some progress and then converge quickly.
Interestingly,applying the divide-and-conquer strategies directly to and not through is more efficient while this is the opposite when the min-norm-point algorithm is used.
4 Graph-based structured sparsity
In this monograph, we have considered several sparsity-inducing norms related to graph topologies. In this section, we consider a chain graph, i.e., we are looking for sparsity-inducing terms that take into account the specific ordering of the components of our vector . We consider the following regularizers :
Chapter 13 Conclusion
In this monograph, we have explored various properties and applications of submodular functions. We have emphasized primarily on a convex perspective, where the key concepts are the Lovász extension and the associated submodular and base polyhedra.
Given the numerous examples involving such functions, the analysis and algorithms presented in this monograph allow the unification of several results in convex optimization, in particular in situations where combinatorial structures are considered.
In this monograph, we have focused primarily on the relationships between convex optimization and submodular functions. However, submodularity is an active area of research in computer science, and more generally in algorithms and machine learning, which goes beyond such links:
Online optimization: In this monograph, we have focused on offline methods for the optimization problem: at any given iteration, the submodular function is accessed through the value oracle. In certain situations common in machine learning, the submodular function is a sum of often simple submodular functions, and online learning techniques can be brought to bear to either speed up the optimization or provide online solutions. This can be done both for the maximization of submodular functions or their minimization
Learning submodular functions: We have assumed that the set-functions we were working with were given, and hence manually built for each given application. It is of clear interest to learn the submodular functions directly from data. See, e.g., for several approaches.
Discrete convex analysis: We have presented a link between combinatorial optimization and convex optimization based on submodular functions. The theory of discrete convex analysis goes beyond submodularity and the minimization or maximization of submodular functions. See, e.g., .
Beyond submodular minimization or maximization: concepts related to submodularity may also be used for sequential decision problems, in particular through the development of adaptive submodularity (see and references therein).
Several questions related to submodular analysis are worth exploring, such as:
Improved complexity bounds and practical performance for submodular function minimization: the currently best-performing algorithms (min-norm-point and analytic center cutting-planes) do not come with convergence bounds. Designing efficient optimization algorithms for submodular function minimization, with both good computational complexity bounds and practical performance, remains a challenge. On a related note, active-set methods such that the simplex and min-norm-point algorithms may in general take exponentially many steps . Are submodular polyhedra special enough so that the complexity of these algorithms (or variations thereof) is polynomial for submodular function minimization?
Lower bounds: We have presented algorithms for approximate submodular function minimization with convergence rate of the form where is the number of calls to the greedy algorithm; it would be interesting to obtain better rates or show that this rate is optimal, like in non-smooth convex optimization (see, e.g., ).
Multi-way partitions: Computer vision applications have focused also on multi-way partitions, where an image has to be segmented in more than two regions . The problem cannot then be solved in polynomial-time , and it would be interesting to derive frameworks with good practical performance on large graphs with millions of nodes and attractive approximation guarantees.
Semi-definite programming: The current theory of submodular functions essentially considers links between combinatorial optimization problems and linear programming, or linearly constrained quadratic programming; it would be interesting to extend submodular analysis using more modern convex optimization tools such as semidefinite programming.
Convex relaxation of submodular maximization: while submodular function minimization may be seen naturally as a convex problem, this is not the case of maximization; being able to provide convex relaxation would notably allow a unified treatment of differences of submodular functions, which then include all set-functions.
Appendix A Review of Convex Analysis and Optimization
In this appendix, we review relevant concepts from convex analysis in Appendix A.1. For more details, see . We also consider a detailed convexity-based proofs for the max-flow min-cut theorem in Appendix A.2, and a derivation of the pool-adjacent-violators algorithm in Appendix A.3.
In this section, we review extended-value convex functions, Fenchel conjugates, Fenchel duality, dual norms, gauge functions and polar sets.
In Figure A.1, we provide an illustration of the representation of as the maximum of affine functions.
When is convex and closed, many properties of may be seen from and vice-versa:
is strictly convex if and only if is differentiable in the interior of its domain,
is -strongly convex (i.e., the function is convex) if and only if has Lipschitz-continuous gradients (with constant ) in the interior of its domain.
There is equality above, if and only if is a Fenchel-dual pair for , i.e., if and only if is maximizer of , which is itself equivalent to is maximizer of . When both and are differentiable, this corresponds to and .
which defines two convex optimization problems dual to each other. Moreover, given any candidate pair , the following difference between primal and dual objectives provides certificate of optimality:
By Fenchel-Young inequality, the is always non-negative (as the sum of two non-negative parts), and is equal to zero if and only the two parts are equal to zero, i.e., is a Fenchel dual pair for and is a Fenchel dual pair for .
Given a convex closed set , the support function of is the Fenchel conjugate of , defined as:
It is always a positively homogeneous proper closed convex function. Moreover, if is a positively homogeneous proper closed convex function, then is the indicator function of a closed convex set.
In this monograph, we will consider minimization problems of the form
where is a positively homogeneous proper closed convex function (with being a convex closed set such that ). We then have
Given any set (not necessarily convex), the polar of is the set defined as
It is always closed and convex. Moreover, the polar of is equal to the polar of the closure of .
If is a closed convex set containing the origin, then —more generally, for any set , is the closure of . The polarity is a one-to-one mapping from closed convex sets containing the origin to themselves.
Given a compact set and its compact convex hull (for example, might be the set of extreme points of ), we have since maxima of linear functions on or are equal. An alternative definition of is then
Moreover, in the definition above, by Caratheodory’s theorem for cones, we may restrict the cardinality of to be less than or equal to .
A.2 Max-flow min-cut theorem
capacity constaints: for all arcs,
flow conservation: for all , the net-flow at , i.e., , is zero,
positive incoming flow: for all sources , the net-flow at is non-positive, i.e., ,
positive outcoming flow: for all sinks , the net-flow at is non-negative, i.e., .
For (the set of sinks), we define
which is the maximal net-flow getting out of . We now prove the max-flow/min-cut theorem, namely that
The maximum-flow is the optimal value of a linear program. We therefore introduce Lagrange multipliers for the constraints in (b), (c) and (d)—note that we do not dualize constraint (a). These corresponds to for , with the constraint that for and for . We obtain the dual problem as follows (strong duality holds because of the Slater condition):
For any set such that and , then we may define as the indicator vector of . The cut is then equal to . Given our constraints on , we have and , defined as is such that for , and for , because . Thus is a dual-feasible vector and thus the cut is larger than .
A.3 Pool-adjacent-violators algorithm
We have, with (with the convention ), by summation by parts,
This implies that the maximum value of such that is a non-increasing sequence is equal to zero, if for all , and , and equal to otherwise. Thus we obtain the dual optimization problem:
We now consider an active-set method such as described in §7.11 for the problem in Eq. (A.3), starting from all constraints saturated, i.e., , for all , leading to , this corresponds to a primal candidate and the active set .
As shown in §7.11, in an active-set method, given a new candidate active set, there are two types of steps: (a) when the corresponding optimal value obtained from this active-set is feasible, we need to check dual-feasibility (i.e., here that the sequence is non-increasing). If it is not, then the active set is augmented and here this exactly corresponds to taking any violating adjacent pair , and merge the corresponding sets and , i.e., add to . The other type of steps is (b) when the corresponding optimal value is not feasible: this never occurs in this situation .
Appendix B Operations that Preserve Submodularity
In this appendix, we present several ways of building submodular functions from existing ones. For all of these, we describe how the Lovász extensions and the submodular polyhedra are affected. Note that in many cases, operations are simpler in terms of submodular and base polyhedra. Many operations such as projections onto subspaces may be interpreted in terms of polyhedra corresponding to other submodular functions.
We have seen in §6.5 that given any submodular function , we may define . Then is always submodular and symmetric (and thus non-negative, see §10.3). This symmetrization can be applied to any submodular function and in the example of Chapter 6, they often lead to interesting new functions. We now present other operations that preserve submodularity.
(Restriction of a submodular function) let be a submodular function such that and . The restriction of on , denoted is a set-function on defined as for . The function is submodular. Moreover, if we can write the Lovász extension of as , then the Lovász extension of is . Moreover, the submodular polyhedron is simply the projection of on the components indexed by , i.e., if and only if such that .
Proof Submodularity and the form of the Lovász extension are straightforward from definitions. To obtain the submodular polyhedron, notice that we have , which implies the desired result.
(Contraction of a submodular function) let be a submodular function such that and . The contraction of on , denoted is a set-function on defined as for . The function is submodular. Moreover, if we can write the Lovász extension of as , then the Lovász extension of is . Moreover, the submodular polyhedron is simply the projection of on the components indexed by , i.e., if and only if , such that .
The next proposition shows how to build a new submodular function from an existing one, by partial minimization. Note the similarity (and the difference) between the submodular polyhedra for a partial minimum (Prop. B.3) and for the restriction defined in Prop. B.1.
Note also that contrary to convex functions, the pointwise maximum of two submodular functions is not in general submodular (as can be seen by considering functions of the cardinality from §6.1).
Proof Define , which is independent of . We have, for , and any , by definition of :
Note that the second equality is true because and are disjoint. Minimizing with respect to and leads to the submodularity of .
Proof Let , and the corresponding minimizers defining and . We have:
hence the submodularity of . If , then , . Taking , we get that ; from , we get , and hence . If , for all , ; by minimizing with respect to , we get that .
We get by taking in the definition of , and we get by taking .
(Monotonization of a submodular function) Let be a submodular function such that . Define . Then is submodular such that , and the base polyhedron is equal to . Moreover, is non-decreasing, and for all , .
Proof Let . Let , and the corresponding minimizers defining and . We have:
The final result that we present in this appendix is due to and resembles the usual compositional properties of convex functions .
Proof Let and two disjoints elements and of . We have from the submodularity of and Prop. 2.3, . We thus get by monotonicity of :
because , and is concave (using the property used in the proof of Prop. 6.1).
This monograph was partially supported by the European Research Council (SIERRA Project). The author would like to thank Rodolphe Jenatton, Armand Joulin, Simon Lacoste-Julien, Julien Mairal and Guillaume Obozinski for discussions related to submodular functions and convex optimization. The suggestions of the reviewers were greatly appreciated and have significantly helped improve the manuscript.