Dual subgradient algorithms for large-scale nonsmooth learning problems
Bruce Cox, Anatoli Juditsky, Arkadi Nemirovski
Introduction
The problem of interest in this paper is a convex optimization problem in the form
where is a nonempty closed and bounded subset of Euclidean space , and is concave and Lipschitz continuous function on . We are interested in the situation where the sizes of the problem put it beyond the “practical grasp” of polynomial time interior point methods with their rather computationally expensive in the large scale case iterations. In this case the methods of choice are the First Order (FO) optimization techniques. The state of the art of these techniques can be briefly summarized as follows: The most standard FO approach to () requires to provide with proximal setup , that is to equip the space with a norm , and the domain of the problem – with a strongly convex, modulus 1, w.r.t. distance-generating function (d.-g.f.) with variation over bounded by some . After such a setup is fixed, generating an -solution to the problem (i.e., a point satisfying ) costs at most steps, where
in the nonsmooth case, where is Lipschitz continuous, with constant w.r.t. (Mirror Descent (MD) algorithm, see, e.g., [11, Chapter 5]), and
in the smooth case, where possesses Lipschitz continuous, with constant , gradient: , where is the norm conjugate to (Nesterov’s algorithm for smooth convex optimization, see, e.g., ). Here and in the sequel ’s stand for positive absolute constants. Note that in the large scale case, these convergence rates are the best allowed under circumstances by Information-Based Complexity Theory (for details, see, e.g., ).
A step of a FO method essentially reduces to computing , at a point and computing prox-mapping (“Bregman projection”) , construction originating from J.-J. Moreau and L. Bregman . A different way of processing () by FO methods, originating in the breakthrough paper of Nesterov , is to use Fenchel-type representation of :
where is a closed and bounded subset of Euclidean space , is a linear mapping, and is a convex function. Representations of this type are readily available for a wide family of “well-structured” nonsmooth objectives ; moreover, usually we can make to possess Lipschitz continuous gradient or even to be linear (for instructive examples, see, e.g., or [11, Chapter 6]). Whenever this is the case, and given proximal setups and for and for , proximal type algorithms like Nesterov’s smoothing and Dual Extrapolation , or Mirror Prox allow to find an -solution to () in proximal type iterations, the factors hidden in being explicitly given functions of the variations of and of and of the partial Lipschitz constants of w.r.t. and to .
Clearly, to be practical, methods of the outlined type should rely on “good” proximal setups – those resulting in “moderate” values of and and not too difficult to compute prox-mappings, associated with and . This is indeed the case for domains arising in numerous applications (for instructive examples, see, e.g., [11, Chapter 5]). The question addressed in this paper is what to do when one of the domains, namely, does not admit a “good” proximal setup. Here are two instructive examples:
is the unit ball of the nuclear norm in the space of matrices (from now on, for a matrix , denotes the vector comprised by singular values of taken in the non-ascending order). This domain arises in various low-rank-oriented problems of matrix recovery. In this case, does admit a proximal setup with . However, computing prox-mapping involves full singular value decomposition (SVD) of a matrix and becomes prohibitively time-consuming when are in the range of tens of thousand. Note that this hardly is a shortcoming of the existing proximal setups, since already computing the nuclear norm (that is, checking the inclusion ) requires computing the SVD of .
Note that whenever a prox-mapping associated with is “easy to compute,” it is equally easy to maximize over a linear form (since converges to the maximizer of over as ). In such a case, we have at our disposal an efficient Linear Optimization (LO) oracle – a routine which, given on input a linear form , returns a point . This conclusion, however, cannot be reversed – our abilities to maximize, at a reasonable cost, linear functionals over does not imply the possibility to compute a prox-mapping at a comparable cost. For example, when is the unit ball of the nuclear norm, maximizing a linear function over requires finding the largest singular value of a matrix and associated left singular vector. For large and , solving the latter problem is by orders of magnitude cheaper than computing full SVD of a matrix. This and similar examples motivate the interest, especially in Machine Learning community, in optimization techniques solving () via an LO oracle for . In particular, the only “classical” technique of this type – the Conditional Gradient (CG) algorithm going back to Frank and Wolfe – has attracted much attention recently. In the setting of CG method it is assumed that is smooth (with Hölder continuous gradient), and the standard result here (which is widely known, see, e.g., ) is the following.
Let be a closed and bounded convex set in a Euclidean space such that linearly spans . Assume that we are given an LO oracle for , and let be a concave continuously differentiable function on such that for some and one has
where is the norm on with the unit ball . Consider a recurrence of the form
where and . Then for all one has
Assuming an LO oracle for available, the major limitation in solving () by the Conditional Gradient method is the requirement for problem objective to be smooth (otherwise, there are no particular requirements to the problem geometry). What to do if this requirement is not satisfied? In this paper, we investigate two simple options for processing this case, based on Fenchel-type representation (1) of which we assume to be available. Fenchel-type representations are utilized in various ways by a wide spectrum of duality-based convex optimization algorithms (see, e.g., and references therein). Here we primarily focus on “nonsmooth” case, where the representation involves a Lipschitz continuous convex function given by a First Order oracle. Besides this, we assume that (but not !) does admit a proximal setup . In this case, we can pass from the problem of interest () to its dual
Clearly, the LO oracle for along with the FO oracle for provide a FO oracle for :
Since admits a proximal setup, this is enough to allow to get an -solution to in steps, being the Lipschitz constant of w.r.t. . Whatever slow the resulting rate of convergence could look, we shall see in the mean time that there are important applications where this rate seems to be the best known so far. When implementing the outlined scheme, the only nontrivial question is how to recover a good optimal solution to the problem of actual interest from a good approximate solution to its dual problem . The proposed answer to this question stems from the pretty simple at the first glance machinery of accuracy certificates proposed recently in , and closely related to the work . The summary of our approach is as follows. When solving by a FO method, we generate search points where the subgradients of are computed; as a byproduct of the latter computation, we have at our disposal the points . As a result, after steps we have at our disposal execution protocol . An accuracy certificate associated with this protocol is, by definition, a collection of nonnegative weights summing up to 1: . The resolution of the certificate is, by definition, the quantity
An immediate observation is (see section 2) that setting , , we get a pair of feasible solutions to and to such that
Thus, assuming that the FO method in question produces, in addition to search points, accuracy certificates for the resulting execution protocols and that the resolution of these certificates goes to 0 as at some rate, we can use the certificates to build feasible approximate solutions to and to with nonoptimalities, in terms of the objectives of the respective problems, going to 0, at the same rate, as .
The scope of the outlined approach depends on whether we are able to equip known methods of nonsmooth convex minimization with computationally cheap mechanisms for building “good” accuracy certificates. The meaning of “good” in this context is exactly that the rate of convergence of the corresponding resolution to 0 is identical to the standard efficiency estimates of the methods (e.g., for MD this would mean that ). provides a positive answer to this question for the most attractive academically polynomial time oracle-oriented algorithms for convex optimization, like the Ellipsoid method. These methods, however, usually are poorly suited for large-scale applications. In this paper, we provide a positive answer to the above question for the three most attractive oracle-oriented FO methods for large-scale nonsmooth convex optimization known to us. Specifically, we consider MD (where accuracy certificates are easy to obtain, see also ), Full Memory Mirror Descent Level (MDL) method (a Mirror Descent extension of the Bundle-Level method ; to the best of our knowledge, this extension was not yet described in the literature), and Non-Euclidean Restricted Memory Level method (NERML) originating from , which we believe is the most attractive tool for large-scale nonsmooth oracle-based convex optimization. To the best of our knowledge, equipping NERML with accuracy certificates is a novel development.
We also consider a different approach to non-smooth convex optimization over a domain given by LO oracle, approach mimicking Nesterov’s smoothing . Specifically, assuming, as above, that is given by Fenchel-type representation (1) with admitting a proximal setup, we use this setup, exactly in the same way as in , to approximate by a smooth function which then is minimized by the CG algorithm. Therefore, the only difference with is in replacing Nesterov’s optimal algorithm for smooth convex optimization (which requires a good proximal point setup for ) with although slower, but less demanding (just LO oracle for is enough) CG method. We shall see in the mean time that, unsurprisingly, the theoretical complexity of the two outlined approaches – “nonsmooth” and “smoothing” ones – are essentially the same.
The main body of the paper is organized as follows. In section 2, we develop the components of the approach related to duality and show how an accuracy certificate with small resolution yields a pair of good approximate solutions to and . In section 3, we show how to equip the MD, MDL and NERML algorithms with accuracy certificates. In section 4, we investigate the outlined smoothing approach. In section 5, we consider examples, primarily of Machine Learning origin, where we prone the usage of the proposed algorithms. Section 6 reports some preliminary numerical results. Some technical proofs are relegated to the appendix.
Duality and accuracy certificates
Let be a Euclidean space, be a nonempty closed and bounded convex set equipped with LO oracle – a procedure which, given on input , returns a maximizer of the linear form over . Let be a concave function given by Fenchel-type representation:
where is a convex compact subset of a Euclidean space and is a Lipschitz continuous convex function on given by a First Order oracle.
By the standard saddle point argument, we have .
2 Main observation
Observe that the First Order oracle for along with the LO oracle for provide a First Order oracle for ; specifically, the vector field
where is a subgradient field of .
Consider a collection along with a collection such that , and let us set
In the sequel, the components of will be the search points generated by a First Order minimization method as applied to at the steps . We call the associated execution protocol, call a collection of nonnegative weights summing up to 1 an accuracy certificate for this protocol, and refer to the quantity as to the resolution of the certificate at the protocol .
Our main observation (cf. ) is as follows:
Let , be as above. Then , are feasible solutions to problems , , respectively, and
Proof. Let and , so that . Observe that , where is a selection of the subdifferential of w.r.t. , that is, for all , . Setting , we have for all :
The inclusions , are evident. o
In the proof of Proposition 2.1, the linearity of w.r.t. was never used, so that in fact we have proved a more general statement: Given a concave in and convex in Lipschitz continuous function , let us associate with it a convex function , a concave function and problems and . Let be a vector field with , so that with , the vector is a subgradient of at . Assume that problem associated with is solved by a FO method using which produced execution protocol and accuracy certificate . Then setting
Moreover, let , and let be a -maximizer of in : for all ,
Proposition 2.1 says that whenever we can equip the subsequent execution protocols generated by a FO method, as applied to the dual problem , with accuracy certificates, we can generate solutions to the primal problem of inaccuracy going to 0 at the same rate as the certificate resolution. In the sequel, we shall point out some “good” accuracy certificates for several most attractive FO algorithms for nonsmooth convex minimization.
Accuracy certificates in oracle-oriented methods for large-scale nonsmooth convex optimization
As it was mentioned in the introduction, the Mirror Descent (MD) algorithm solving is given by a norm on and a distance-generating function (d.-g.f.) which should be continuous and convex on , should admit a continuous in selection of subdifferentials , and should be strongly convex, modulus 1, w.r.t. , that is,
A proximal setup for gives rise to several entities, namely,
Bregman distance (). Due to strong convexity of , we have
-center of and -diameter
which combines with the inequality to yield the relation
where and . This mapping takes its values in and satisfies the relation
1.2 Mirror Descent algorithm
which is oracle represented, meaning that we have access to an oracle which, given on input , returns . From now on we assume that this field is bounded:
where is the norm conjugate to . The algorithm is the recurrence
where are stepsizes. Let us equip this recurrence with accuracy certificates, setting
of on the execution protocol satisfies the standard MD efficiency estimate
In particular, if , for We assume here that for all . In the opposite case, the situation is trivial: when , for some , setting for and , we ensure that .,
The proof of the proposition follows the lines of the “classical” proof in the case when is the (sub)gradient field of the objective of a convex minimization problem (see, e.g., Proposition 5.1 of ), and is omitted.
In order to solve , we apply MD to the vector field . Assuming that
we can set . For this setup, Proposition 2.1 implies that the MD accuracy certificate , as defined in (15), taken together with the MD execution protocol , yield the primal-dual feasible approximate solutions
Combining this conclusion with Proposition 3.1, we arrive at the following result:
In the case of (18), for every the -step MD with the stepsize policyWe assume that , for ; otherwise, as we remember, the situation is trivial.
as applied to yields feasible approximate solutions , to , such that
In particular, given , it takes at most
2 Convex minimization with certificates, II: Mirror Descent with full memory
Algorithm MDL – Mirror Descent Level method – is a non-Euclidean version of (a variant of) the Bundle-Level method ; to the best of our knowledge, this extension was not presented in the literature. Another novelty in what follows is equipping the method with accuracy certificates.
MDL is a version of MD with “full memory”, meaning that the first order information on the objective being minimized is preserved and utilized at subsequent steps, rather than being “summarized” in the current iterate, as it is the case for MD. While the guaranteed accuracy bounds for MDL are similar to those for MD, the typical practical behavior of the algorithm is better than that of the “memoryless” MD.
MDL with certificates which we are about to describe is aimed at processing an oracle-represented vector field (13) satisfying (14), with the same assumptions on and the same proximal setup as in the case of MD.
We associate with the affine function
and with a finite set the family of affine functions on which are convex combinations of the functions , . In the sequel, the words “we have at our disposal a function ” mean that we know the functions , , and nonnegative weights , , summing up to 1, such that .
of the algorithm is, given a tolerance , to find a finite set and such that
Note that our target and are of the form , with nonnegative summing up to 1. In other words, our target is to build an execution protocol and an associated accuracy certificate such that .
2.2 Construction
As applied to (13), MDL at a step generates search point where the value of is computed; it provides us with the affine function . Besides this, the method generates finite sets and
Steps of the method are split into subsequent phases numbered , and every phase is associated with optimality gap .
To initialize the method, we set , (whence as well), .
given , we compute , thus getting , and set , ;
By the von Neumann lemma, an optimal solution to this (auxiliary) problem is associated with nonnegative and summing up to 1 weights , such that
and we assume that as a result of solving (24), both and become known. We set for all which are not in , thus getting an accuracy certificate for the execution protocol along with . Note that by construction
If , we terminate – satisfies (23). Otherwise we proceed as follows:
If (case A) , being method’s control parameter, we say that step starts phase (e.g., step starts phase 1), set
2.3 Efficiency estimate
Given on input a target tolerance , the MDL algorithm terminates after finitely many steps, with the output , , such that
The number of steps of the algorithm does not exceed
Assume that is continuously differentiable on the entire , so that the quantity
is finite. From the proof of Proposition 3.2 it follows immediately that one can substitute the rule “ when starts a phase and otherwise” with a simpler one “ for all ,” at the price of replacing in (28) with .
is completely similar to the case of MD: given a desired tolerance , one applies MDL to the vector field until the target (23) is satisfied. Assuming (18), we can set , so that by Proposition 3.2 our target will be achieved in
steps, with given by (18). Assuming that the target is attained at a step , we have at our disposal the execution protocol along with the accuracy certificate such that (by the same Proposition 3.2). Therefore, specifying , according to (19) and invoking Proposition 2.1, we ensure (22). Note that the complexity of finding these solutions, as given by (29), is completely similar to the complexity bound (21) of MD.
3 Convex minimization with certificates, III: restricted memory Mirror Descent
The fact that the number of linear functions involved into the auxiliary problems (24), (26) (and thus computational complexity of these problems) grows as the algorithm proceeds is a serious shortcoming of MDL from the computational viewpoint. NERML (Non-Euclidean Restricted Memory Level Method) algorithm, which originates from is a version of MD “with restricted memory”. In this algorithm the number of affine functions participating in (24), (26) never exceeds , where is a control parameter which can be set to any desired positive integer value. The original NERML algorithm, however, was not equipped with accuracy certificates, and our goal here is to correct this omission.
Same as MDL, NERML processes an oracle-represented vector field (13) satisfying the boundedness condition (14), with the ultimate goal to ensure (23). The setup for the algorithm is identical to that for MDL.
The algorithm builds search sequence along with the sets , according to the following rules: A. Initialization. We set , compute and set . We clearly have .
In the case of , we terminate and output , thus ensuring (23) with .
When , we proceed. Our subsequent actions are split into phases indexed with .
B. Phase At the beginning of phase , we have at our disposal
the set of already built search points, and
an affine function along with the real .
To save notation, we denote the search points generated at phase as , so that , . B.1. Initializing phase . We somehow choose collection of functions , , such that the set
B.2. Step of phase : B.2.1. At the beginning of step , we have at our disposal
the set of all previous search points;
a collection of functions such that the set
current search point such that
Note that this relation is trivially true when .
B.2.2. Our actions at step are as follows. B.2.2.1. We compute and set
and . We assume that when solving the auxiliary problem, we compute the above weights , and thus have at our disposal the function
due to . B.2.2.5. By optimality conditions for (31) (see Lemma A.1), for certain nonnegative , , such that
In the case of , we set
We then discard from the collection two (arbitrarily chosen) elements and add to the remaining elements of the collection, thus getting an -element collection of elements of .
In both cases (those of and of ), we have built the data required to start step of phase , and we proceed to this step. The description of the algorithm is completed.
Same as MDL, the outlined algorithm requires solving at every step two nontrivial auxiliary optimization problems – (30) and (31). It is explained in that these problems are relatively easy, provided that is moderate (note that this parameter is under our full control) and and are “simple and fit each other,” meaning that we can easily solve problems of the form
(that is, our proximal setup for results in easy-to-compute prox-mapping).
By construction, the presented algorithm produces upon termination (if any)
an execution protocol , where is the step where the algorithm terminates, and , , are the search points generated in course of the run; by construction, all these search points belong to ;
an accuracy certificate – a collection of nonnegative weights summing up to 1 – such that the affine function satisfies the relation where is the target tolerance, exactly as required in (23).
3.2 Efficiency estimate
Given on input a target tolerance , the NERML algorithm terminates after finitely many steps, with execution protocol and accuracy certificate , described in Remark 3.4. The number of steps of the algorithm does not exceed
Inspecting the proof of Proposition 3.3, it is immediately seen that when is continuously differentiable on the entire , one can replace the rule (31) with
where is an arbitrary point of . The cost of this modification is that of replacing in the efficiency estimate with , see Remark 3.1. Computational experience shows that a good choice of is the best, in terms of the objective, search point generated before the beginning of phase .
is completely similar to the case of MDL, with the bound
Observe that Propositions 3.1-3.3 do not impose restrictions of the vector field processed by the respective algorithms aside from the boundedness assumption (14). Invoking Remark 2.1, we arrive at the following conclusion:
in the situation of section 2.1 and given , let instead of exact maximizers , approximate maximizers such that for all be available. Let also
be the associated approximate subgradients of the objective of . Assuming
let MD/MDL/NERML be applied to the vector field . Then the number of steps of each method before termination remains bounded by the respective bound (17), (28) or (36), with in the role of . Besides this, defining the approximate solutions to , according to (19), with , we ensure the validity of -relaxed version of the accuracy guarantee (22), specifically, the relation
An alternative: Smoothing
An alternative to the approach we have presented so far is based on the use of the proximal setup for to smoothen and then to maximize the resulting smooth approximation of by the Conditional Gradient (CG) algorithm. This approach is completely similar to the one used by Nesterov in his breakthrough paper , with the only difference that since in our situation domain admits LO oracle rather than a good proximal setup, we are bounded to replace the -converging Nesterov’s method for smooth convex minimization with -converging CG.
Let us describe the CG implementation in our setting. Suppose that we are given a norm on , a representation (1) of , a proximal point setup for and a desired tolerance . We assume w.l.o.g. that and set, following Nesterov ,
From (1), the definition of and the relation it immediately follows that
and clearly is concave. It is well known (the proof goes back to J.-J. Moreau ) that strong convexity, modulus 1 w.r.t. , of implies smoothness of , specifically,
Observe also that under the assumption that an optimal solution of the right hand side minimization problem in (38) is available at a moderate computational cost, In typical applications, is just linear, so that computing is as easy as computing the value of the prox-mapping associated with , . we have at our disposal a FO oracle for :
We can now use this oracle, along with the LO oracle for , to solve by CG If our only goal were to approximate by a smooth concave function, we could use other options, most notably the famous Moreau-Yosida regularization . The advantage of the smoothing based on Fenchel-type representation (1) of and proximal setup for is that in many cases it indeed allows for computationally cheap approximations, which is usually not the case for Moreau-Yosida regularization.. In the sequel, we refer to the outlined algorithm as to SCG (Smoothed Conditional Gradient).
for SCG is readily given by Proposition 1.1. Indeed, assume from now on that is contained in -ball of radius of . It is immediately seen that under this assumption, (40) implies the validity of the condition (cf. (2) with )
In order to find an -maximizer of , it suffices, by (39), to find an -maximizer of ; by (4) (where one should set ), what takes
Let us assume, as above, that is contained in the centered at the origin -ball of radius , and let us compare the essentially identical to each otherprovided the parameters , in (29), (37) are treated as absolute constants. complexity bounds (21), (29), (37), with the bound (42). Under the natural assumption that the subgradients of we use satisfy the bounds , where is the Lipschitz constant of w.r.t. the norm , (18) implies that
Thus, the first three complexity bounds reduce to
while the conditional gradients based complexity bound is
We see that assuming (which indeed is the case in many applications, in particular, in the examples we are about to consider), the complexity bounds in question are essentially identical. This being said, we believe that the two approaches in question seem to have their own advantages and disadvantages. Let us name just a few:
Formally, the SCG has a more restricted area of applications than MD/MDL/NERML, since relative simplicity of the optimization problem in (38) is a more restrictive requirement than relative simplicity of computing prox-mapping associated with . At the same time, in most important applications known to us is just linear, and in this case the just outlined phenomenon disappears.
An argument in favor of SCG is its insensitivity to the Lipschitz constant of . Note, however, that in the case of linear (which, as we have mentioned, is the case of primary interest) the nonsmooth techniques admit simple modifications (not to be considered here) which make them equally insensitive to .
Our experience shows that the convergence pattern of nonsmooth methods utilizing memory (MDL and NERML) is, at least at the beginning of the solution process, much better than is predicted by their worst-case efficiency estimates. It should be added that in theory there exist situations where the nonsmooth approach “most probably,” or even provably, significantly outperforms the smooth one. This is the case when is of moderate dimension. A well-established experimental fact is that when solving by MDL, every iterations of the method reduce the inaccuracy by an absolute constant factor, something like 3. It follows that if is in the range of few hundreds, a couple of thousands of MDL steps can yield a solution of accuracy which is incomparably better than the one predicted by the theoretical worst-case oriented complexity bound of the algorithm. Moreover, in principle one can solve by the Ellipsoid method with certificates , building accuracy certificate of resolution in polynomial time . It follows that when is in the range of few tens, the nonsmooth approach allows to solve, in moderate time, problems and to high accuracy. Note that low dimensionality of by itself does not prevent to be high-dimensional and “difficult;” how frequent are these situations in actual applications, this is another story.
We believe that the choice of one, if any, of the outlined approaches to use, is the issue which should be resolved, on the case-by-case basis, by computational practice. We believe, however, that it makes sense to keep them both in mind.
Application examples
In this section we work out some application examples, with the goal to demonstrate that the approach we are proposing possesses certain application potential.
Our first example (for its statistical motivation, see ) is as follows: given a symmetric matrix and a positive real , we want to find the best entrywise approximation of by a positive semidefinite matrix of given trace , that is, to solve the problem
where is the space of symmetric matrices. Note that with our , computing prox-mappings associated with all known proximal setups needs eigenvalue decomposition of a symmetric matrix and thus becomes computationally demanding in the large scale case. On the other hand, to maximize a linear form over requires computing the maximal eigenvalue of along with corresponding eigenvector. In the large scale case this task is by orders of magnitude less demanding than computing full eigenvalue decomposition. Note that our admits a simple Fenchel-type representation:
Equipping with the norm , and with the d.-g.f.
where is an appropriately chosen constant of order of 1 (induced by the necessity to make strongly convex, modulus 1, w.r.t. ), we get a proximal setup for such that
We see that our problem of interest fits well the setup of methods developed in this paper. Invoking the bounds (44), (45), we conclude that (46) can be solved within accuracy in at most
steps by any of methods MD, MDL or NERML, and in at most steps by SCG.
It is worth to mention that in the case in question, the algorithms yielded by the nonsmooth approach admit a “sparsification” as follows. We are in the case of , and , so that , where is the leading eigenvector of a matrix normalized to have . Given a desired accuracy and a unit vector such that , and setting , we ensure that and that is an -maximizer of over . Invoking Remark 3.6, we conclude that when utilizing in the role of , we get -accurate solutions to , in no more than steps. Now, we can take as the normalized leading eigenvector of an arbitrary matrix such that . Assuming and given , let us sort the magnitudes of entries in and build by “thresholding” – by zeroing out as many smallest in magnitude entries as possible under the restriction that the remaining part of the matrix is symmetric, and the sum of squares of the entries we have replaced with zeros does not exceed . Since , the number of nonzero entries in is at most . On the other hand, by construction, the Frobenius norm of is , thus , and we can take as the normalized leading eigenvector of . When the size of is (otherwise the outlined sparsification does not make sense), this approach reduces the problem of computing the leading eigenvector to the case when the matrix is question is relatively sparse, thus reducing its computational cost.
2 Nuclear norm SVM
Our next example is as follows: we are given an -element sample of matrices (“images”) equipped with labels . We assume the images to be normalized by the restriction
We want to find a linear classifier of the form
which predicts well labels of images. We assume that there exist such right and left orthogonal transformations of the image, that the label can be predicted using only a small number of diagonal elements of the transformed image. This implies that the classifier we are looking for is sparse in the corresponding basis, or that the matrix is of low rank. We arrive at the “low-rank-oriented” SVM-based reformulation of this problem:
where is the nuclear norm, , and is a parameter.The restriction is quite natural. Indeed, with the optimal choice of , we want most of the terms to be ; assuming that the number of examples with and are of order of , this condition can be met only when are at least of order of 1 for most of ’s. The latter, in view of (48), implies that should be at least .
In this case the domain of problem () is the ball of the nuclear norm in the space of matrices and are large. As we have explained in the introduction, same as in the example of the previous section, in this case the computational complexity of LO oracle is typically much smaller than the complexity of computing prox-mapping. Thus, from practical viewpoint, in a meaningful range of values of the LO oracle is “affordable,” while the prox-mapping is not.
Observing that , and denoting , we get
from now on we assume that . When setting
and passing from minimizing to maximizing , problem (49) becomes
Let us equip with the standard Euclidean norm , and - with the Euclidean d.-g.f. . Observe that
(we are in the case of ), and, besides,
We conclude that for every , the number of MD steps needed to ensure (22) does not exceed
(see (21)), and similarly for MDL, NERML, and SCG.
3 Multi-class classification under ∞|2conditional2\infty|2 norm constraint
Our last example illustrates the potential of the proposed approach in the case when the domain of does not admit a proximal setup with “moderate” . Namely, let be the problem
where is the norm conjugate to a norm on . We are interested in the case of box-type , specifically,
As it was mentioned in Introduction, for every proximal setup for which is normalized by the requirement that simple “well behaved” on convex functions should have moderate Lipschitz constants w.r.t. (specifically, the coordinates of should have Lipschitz constants ), one has . As a result, the theoretical complexity of the FO methods as applied to (54) grows with at the rate at least , thus becoming prohibitively high for large . We are about to show that the approaches developed in this paper are free of this shortcoming. Specifically, we can easily build a Fenchel-type representation of :
Assume that admits a good proximal setup. We can augment with a d.-g.f. for such that form a proximal setup, and applying any of the methods we have developed in sections 3 and 4, the complexity of finding -solution to (54) by any of these methods becomes
Note that in this bound does not appear, at least explicitly.
we consider is as follows: we observe “feature vectors” , each belonging to one of non-overlapping classes, along with labels which are basic orths in ; the index of the (only) nonzero entry in is the number of class to which belongs. We want to build a multi-class analogy of the standard linear classifier as follows: a multi-class classifier is specified by a matrix and a vector . Given a feature vector , we compute the -dimensional vector , identify its maximal component, and treat the index of this component as our guess for the serial number of the class to which belongs.
The multi-class analogy of the usual approach to building binary classifiers by minimizing the empirical hinge loss is as follows . Let be the “complement” of .Given a feature vector and the corresponding label , let us set
Note that if is the index of the only nonzero entry in , then the -th entry in is zero (since ). Further, is nonpositive if and only if the classifier, given by and evaluated at , “recovers the class of with margin 1”, i.e., we have for . On the other hand, if the classifier fails to classify correctly (that is, for some ), then the maximal entry in is . Altogether, when setting
we get a nonnegative function which vanishes for the pairs which are “quite reliably” – with margin – classified by , and is for the pairs with not classified correctly. Thus the function
the expectation being taken over the distribution of examples , is an upper bound on the probability for classifier to misclassify a feature vector. What we would like to do now is to minimize over . To do this, since is not observable, we replace the expectation by its empirical counterpart
For the sake of simplicity (and, upon a close inspection, without much harm), we assume from now on that .To arrive at this situation, one can augment by additional entry, equal to 1, and to redefine : the new is the old . Imposing, as it is always the case in hinge loss optimization, an upper bound on some norm of , we arrive at the optimization problem
From now on we assume that ’s are normalized:
Under this constraint, a natural (although not the only meaningful) choice of the norm is the maximum of the -norms of the rows of . If we identify with the vector , becomes the set (55) with , and the norm becomes . The same argument as in the previous section allows us to assume that .
Noting that, (56) can be rewritten as
(here is the class of , i.e., the index of the only nonzero entry in ). Note that is a part of the standard simplex . Equipping with the norm (so that ), and – with the entropy d.-g.f.
(known to complete to a proximal setup for ), we get a proximal setup for with . Next, assuming , we have
so that . Furthermore, clearly is Lipschitz continuous with constant 1 w.r.t. . It follows that the complexity of finding an -solution to (58) by MD, MDL, NERML or SCG is bounded by (see (43), (44), (45) and take into account that , and that what is now called , was called in the notation used in those bounds, so that ). Note that the resulting complexity bound is independent of and is “nearly independent” of . Finally, prox-mapping for is given by a closed form expression and can be computed in linear time:
NERML: Numerical illustration
The goal of the numerical experiments to be reported is to illustrate how the performance of NERML scales up with the dimensions of and and the memory of the method. Below we consider a kind of matrix completion problem, specifically,
Here is a given matrix, is a linear mapping from into , and is the uniform norm on . In our experiments, is defined as follows. We select a set of cells in a matrix in such a way that every row and every column contains exactly of the selected cells. We then label at random the selected cells by indexes from , with the only restriction that every one of the indexes labels the same number (which with our choice of always is integer) of the cells. The -th, , entry in is the sum, over all cells from labeled by , of the entries of in the cells. With , is just the restriction of onto the cells from , and (59) is the standard matrix completion problem with uniform fit. Whatever simplistic and “academic,” our setup, in accordance with the goals of our numerical study, allows for full control of image dimension of (i.e., the design dimension of the problem actually solved by NERML) whatever large be the matrices and the set .
Our test instances were generated as follows: given , we generate at random the set along with its labeling (thus specifying ) and a vector with nonzero entries. Finally, we set
where the entries in “noise matrix” are the projections onto $$ of random reals sampled, independently of each other, from the standard Gaussian distribution.
Written in the form of , problem (59) reads
the Fenchel-type representation (1) of is
so that the dual problem to be solved by NERML is
Before passing to numerical results, we make the following important remark. Our description of NERML in section 3.3 is adjusted to the case when the accuracy to which (60) should be solved is given in advance. Note, however, that is used only in the termination rule B.2.2.3: we terminate when the optimal value in the current auxiliary problem (30) becomes . The optimal value in question is a certain “online observable” function of the “time” defined as the total number of steps performed so far. Moreover, at every time we have at our disposal a feasible solution to the problem of interest (in our current situation, to (60)) such that
– this is the solution which NERML, as defined in section 3.3, would return in the case of , where would be the termination step. It immediately follows that at time we have at our disposal the best found so far feasible solution to satisfying
(indeed, set and set when and otherwise). The bottom line is that instead of terminating NERML when a given in advance accuracy is attained, we can run the algorithm for as long as we want, generating in an online fashion the optimality gaps and feasible solutions to satisfying (62), For experimental purposes this execution mode is much more convenient than the original one (in a single run, we get the complete “time-accuracy” curve instead of just one point on this curve), and this is the mode used in the experiments we are about to report.
Recall that NERML is specified by a proximal setup, two control parameters and “memory depth” which should be a positive integer. In our experiments, we used the Euclidean setup (i.e., equipped the embedding space of with the standard Euclidean norm and the distance-generating function ) and .
We are about to report the results of three series of experiments (all implemented in MATLAB).
In the first series of experiments we consider “small” problems (, , ), which allows us to consider a “wide” range of memory depth In our straightforward software implementation of the algorithm, handling memory of depth requires storing in RAM up to matrices, which makes the implementation too space-consuming when and are large; this is why in our experiments the larger , the smaller is the allowed values of . Note that with a more sophisticated software implementation, handling memory would require storing just of rank 1 matrices, reducing dramatically the required space.. The results are presented in table 1, where is “physical” running time in sec and is the progress in accuracy in time for NERML with memory , defined as the ratio , being the number of steps performed in sec.
The structure of the data in the table is as follows. Given , and a value of , we generated the corresponding problem instance and then ran on this instance 1024 steps of NERML, the memory depth being set to 129, 65,…,1. As a result of these 8 runs, we got running times , , …, , which are the values of presented in the table, and overall progresses in accuracies displayed in the column “.” Then we ran NERML with the minimal memory 1 until the running time reached the value , and recorded the progress in accuracy observed at times , displayed in the column “.” For example, the data displayed in the table for the smallest instance () say that 1024 steps of NERML with memory 129 took sec, while the same number of steps with memory 1 took just sec, a times smaller time. However, the former “time-consuming” algorithm reduced the optimality gap by factor of about 8.2.e5, while the latter – by factor of just 153, thus exhibiting about 5000 times worse progress in accuracy. We see also that even when running NERML with memory 1 for the same 390 sec as taken by the 1024-step NERML with memory 129, the progress in accuracy was “only” 1187 – still by factor about 690 worse than the progress in accuracy achieved in the same time by NERML with memory 129. Thus, “long memory” can indeed be highly beneficial. This being said, we see from the table that the benefits of “long memory” reduce as the design dimension of the problem to which we apply NERML grows, and in order to get a “reasonable benefit”, the memory indeed should be “long;” e.g., in all experiments reported in the table, NERML with memory like is only marginally better than NERML with memory 1. The data in the table, same as the results to be reported below, taken along with the numerical experience with MDL (see the concluding comment in section 4) allow for a “qualified guess” stating that in order to be highly beneficial, the memory in NERML should be of order of the design dimension of the problem at hand. Remark: While the numerical results reported so far seem to justify, at a qualitative level, potential benefits of re-utilizing past information, quantification of these benefits heavily depends on “fine structure” and sizes of problems in question. For example, the structure of our instances make the first order oracle for (61) pretty cheap – on a close inspection, a call to the oracle requires finding the leading singular vectors of a highly sparse matrix. As a result, the computational effort per step is by far dominated by the effort of solving auxiliary problems arising in NERML, and thus influence of on the duration of a step is much stronger than it could be with a more expensive first order oracle.
Next we apply NERML to “medium-size” problems, restricting the range of to and keeping the design dimension of problems (61) at the level . The reported in table 2 CPU time corresponds to steps of NERML. The data in the table exhibit the same phenomena as those observed on small problems.
Finally, table 3 displays the results obtained with 1024-step NERML with on “large” problems ( up to 8196, up to 16392).
We believe that the numerical results we have presented are rather encouraging. Indeed, even in the worst, in terms of progress in accuracy, of our experiments (last problem in table 2) the optimality gap was reduced in 1024 iterations (2666 sec) by two orders of magnitude (from 0.166 to 0.002). To put this in proper perspective, note that on the same platform as the one underlying tables 2, 3, a single full SVD of a 81928192 matrix takes sec, meaning that a proximal point algorithm applied directly to the problem of interest (59) associated with the last line in table 2 would be able to carry out in the same 2666 sec just 6 iterations. Similarly, sec used by NERML to solve the largest instance we have considered (last problem in table 3, with and , progress in accuracy by factor ) allow for just 8 full SVD’s of matrices. And of course 6 or 8 iterations of a proximal type algorithm as applied to (59) typically are by far not enough to get comparable progress in accuracy.
References
Appendix A Appendix: Proofs
We need the following technical result originating from (for proof, see , or section 2.1 and Lemma A.2 of ).
. Let be a nonempty closed and bounded subset of a Euclidean space , and let , be the corresponding proximal setup. Let, further, be a closed convex subset of intersecting the relative interior of , and let . (i) The optimization problem
has a unique solution . This solution is fully characterized by the inclusion , , coupled with the relation
(ii) When is cut off by a system of linear inequalities , , there exist Lagrange multipliers such that , and
(iii) In the situation of (ii), assuming for some , we have
with some . When , we have , that is,
When starts a phase, we have , and clearly , whence for some (specifically, for ). When does not start a phase, we have and , so that here again for some . On the other hand, for all due to . Thus, when passing from to , at least one of grows by at least . Taking into account that is Lipschitz continuous with constant w.r.t. (by (14)), we conclude that . With this in mind, (66) combines with (8) to imply that
Let the algorithm perform phase , let be the first step of this phase, and be another step of the phase. We claim that all level sets , , have a point in common, specifically, (any) . Indeed, since belongs to phase , we have
and (see (25) and the definition of ). Besides this, belongs to phase , and within a phase, sets extend as grows, so that when , implying that . Thus, for we have
With the just defined , let us look at the quantities , . We have due to and (11), and
when (due to (67) combined with when ). We conclude that . Thus, the number of steps of phase admits the bound
where the concluding inequality follows from , see (11), combined with .
Assume that MDL does not terminate in course of first steps, and let be the index of the phase to which the step belongs. Then (otherwise we would terminate not later than at the first step of phase ); and besides this, by construction, whenever phase takes place. Therefore
A.2 Proof of Proposition 3.3
Observe that the algorithm can terminate only in the case A of B.2.2.3, and in this case the output is indeed as claimed in Proposition. Thus, all we need to prove is the upper bound (36) on the number of steps before termination.
10. Let us bound from above the number of steps at an arbitrary phase . Assume that phase did not terminate in course of the first steps, so that are well defined. We claim that then
Now let us look at what happens with the quantities as grows. By strong convexity of we have
(recall that and see (11)). Thus
for all such that -th phase exists. By construction, we have and , whence the method eventually terminates (since ). Assuming that the termination happens at phase , we have when , so that the total number of steps is bounded by