A quasi-Newton proximal splitting method
Stephen Becker, M. Jalal Fadili
Introduction
Convex optimization has proved to be extremely useful to all quantitative disciplines of science. A common trend in modern science is the increase in size of datasets, which drives the need for more efficient optimization schemes. For large-scale unconstrained smooth convex problems, two classes of methods have seen the most success: limited memory quasi-Newton methods and non-linear conjugate gradient (CG) methods. Both of these methods generally outperform simpler methods, such as gradient descent.
For problems with non-smooth terms and/or constraints, it is possible to generalize gradient descent with proximal gradient descent (which includes projected gradient descent as a sub-cases), which is just the application of the forward-backward algorithm .
Unlike gradient descent, it is not easy to adapt quasi-Newton and CG methods to problems involving constraints and non-smooth terms. Much work has been written on the topic, and approaches generally follow an active-set methodology. In the limit, as the active-set is correctly identified, the methods behave similar to their unconstrained counterparts. These methods have seen success, but are not as efficient or as elegant as the unconstrained versions. In particular, a sub-problem on the active-set must be solved, and the accuracy of this sub-iteration must be tuned with heuristics in order to obtain competitive results.
Our goal is the generic minimization of functions of the form
The class we consider covers non-smooth convex optimization problems, including those with convex constraints. Here are some examples in regression, machine learning and classification.
One would like to find a linear decision function which minimizes the objective
2 Contributions
This paper introduces a class of scaled norms for which we can compute a proximity operator; these results themselves are significant, for previous results only cover diagonal scaling (the diagonal scaling result is trivial). Then, motivated by the discrepancy between constrained and unconstrained performance, we define a class of limited-memory quasi-Newton methods to solve ( P ) and that extends naturally and elegantly from the unconstrained to the constrained case. Most well-known quasi-Newton methods for constrained problems, such as L-BFGS-B , are only applicable to box constraints . The power of our approach is that it applies to a wide-variety of useful non-smooth functionals (see §3.1.4 for a list) and that it does not rely on an active-set strategy. The approach uses the zero-memory SR1 algorithm, and we provide evidence that the non-diagonal term provides significant improvements over diagonal Hessians.
Quasi-Newton forward-backward splitting
In the following, define the quadratic approximation
The standard (non relaxed) version of the forward-backward splitting algorithm (also known as proximal or projected gradient descent) to solve ( P ) updates to a new iterate according to
Our diagonal+rank 1 quasi-Newton forward-backward splitting algorithm is listed in Algorithm 1 (with details for the quasi-Newton update in Algorithm 2, see §4 for details). These algorithms are listed as simply as possible to emphasize their important components; the actual software used for numerical tests is open-source and available at http://www.greyc.ensicaen.fr/~jfadili/software.html.
2 Relation to prior work
The algorithm in (5) is variously known as proximal descent or iterated shrinkage/thresholding algorithm (IST or ISTA). It has a grounded convergence theory, and also admits over-relaxation factors .
The spectral projected gradient (SPG) method was designed as an extension of the Barzilai-Borwein spectral step-length method to constrained problems. In , it was extended to non-smooth problems by allowing general proximity operators; we refer to this as SPG/SpaRSA (N.B. we do not use the SpaRSA implementation since we do not use warm-starts or restarts, in order to be fair to all algorithms). The Barzilai-Borwein method use a specific choice of step-length motivated by quasi-Newton methods. Numerical evidence suggests the SPG/SpaRSA method is highly effective, although convergence results are not as strong as for ISTA.
FISTA is a multi-step accelerated version of ISTA inspired by the work of Nesterov. The stepsize is chosen in a similar way to ISTA; in our implementation, we tweak the original approach by using a Barzilai-Borwein step size, a standard line search, and restart, since this led to improved performance. Nesterov acceleration can be viewed as an over-relaxed version of ISTA with a specific, non-constant over-relaxation parameter .
The above approaches assume is a constant diagonal. The general diagonal case was considered in several papers in the 1980s as a simple quasi-Newton method, but never widely adapted. More recent attempts include a static choice for a primal-dual method . A convergence rate analysis of forward-backward splitting with static and variable where one of the operators is maximal strongly monotone is given in .
By transforming the problem into a standard conic programming problem, the generic problem is amenable to interior-point methods (IPM). IPM requires solving a Newton-step equation, so first-order like “Hessian-free” variants of IPM solve the Newton-step approximately, either by approximately solving the equation or by subsampling the Hessian. The main issues are speed and robust stopping criteria for the approximations.
Yet another approach is to include the non-smooth term in the quadratic approximation. Yu et al. propose a non-smooth modification of BFGS and L-BFGS, and test on problems where is typically a hinge-loss or related function.
The projected quasi-Newton (PQN) algorithm is perhaps the most elegant and logical extension of quasi-Newton methods, but it involves solving a sub-iteration. PQN proposes the SPG algorithm for the subproblems, and finds that this is an efficient tradeoff whenever the cost function (which is not involved in the sub-iteration) is relatively much more expensive to evaluate than projecting onto the constraints. Again, the cost of the sub-problem solver (and a suitable stopping criteria for this inner solve) are issues. As discussed in , it is possible to generalize PQN to general non-smooth problems whenever the proximity operator is known (since, as mentioned above, it is possible to extend SPG to this case).
Proximity operators and proximal calculus
We only recall essential definitions. More notions and results from convex analysis can be found in §A.
Let . Then, for every , the function achieves its infimum at a unique point denoted by . The uniquely-valued operator thus defined is the proximity operator or proximal mapping of .
Let , then for any
where and is the unique root of
It is of course straightforward to compute from either using Theorem 7, or using this theorem together with Corollary 6 and the Sherman-Morrison inversion lemma.
1.2 Diagonal+rank-1: Separable case
The following corollary is key to our novel optimization algorithm.
where and is the unique root of
Let . Then can be obtained exactly by sorting at most the real values .
Recall that (10) has a unique solution. When is piecewise affine with segments, it is easy to see that in (12) is also piecewise affine with slopes and intercepts changing at the transition points . To get , it is sufficient to isolate the unique segment that intersects the abscissa axis. This can be achieved by sorting the values of the transition points which can cost in average complexity . ∎
Corollary 9 can be extended to the “block” separable (i.e. separable in subsets of coordinates) when is piecewise constant along the same block indices.
1.3 Semi-smooth Newton method
In many situations (see examples below), the root of can be found exactly in polynomial complexity. If no closed-form is available, one can appeal to some efficient iterative method to solve (10) (or (12)). As is Lipschitz-continuous, hence so-called Newton (slantly) differentiable, semi-smooth Newton are good such solvers, with the proviso that one can design a simple slanting function which can be algorithmically exploited.
The semi-smooth Newton method for the solution of (10) can be stated as the iteration
where is a generalized derivative of .
If is Newton differentiable with generalized derivative , then so is the mapping with a generalized derivative
This follows from linearity and the chain rule [23, Lemma 3.5]. The second statement follows strict increasing monotonicity of as established in Theorem 7. ∎
Thus, as is Newton differentiable with nonsingular generalized derivative whose inverse is also bounded, the general semi-smooth Newton convergence theorem implies that (13) converges super-linearly to the unique root of (10).
1.4 Examples
Many functions can be handled very efficiently using our results above. For instance, Table 1 summarizes a few of them where we can obtain either an exact answer by sorting when possible, or else by minimizing w.r.t. to a scalar variable (i.e. finding the unique root of (10)).
To put Proposition10 on a more concrete footing, we briefly cover the positivity constraint explicitly. Let and . We will calculate
Since we work with and not , we will not use but rather which will be used in a similar way to .
If is a primal-dual solution to (14), the KKT conditions must be satisfied:
Define the scalar . The key observation is that if is known, then the problem is solved since it becomes separable and the solution is
where . Let , so we search for a value of such that , or in other words, a root of .
Define to be the sorted values of , so we see that is linear in the regions and so it is trivial to check if has a root in this region. Thus the problem is reduced to finding the correct region , which can be done efficiently by a binary search over values of since is monotonic. To see that is monotonic, we write it as
where encodes the positivity constraint in the argument of and is thus either or , hence the slope is always positive.
A primal rank 1 SR1 algorithm
Following the conventional quasi-Newton notation, we let denote an approximation to the Hessian of and denote an approximation to the inverse Hessian. All quasi-Newton methods update an approximation to the (inverse) Hessian that satisfies the secant condition:
Algorithm 1 follows the SR1 method , which uses a rank-1 update to the inverse Hessian approximation at every step. The SR1 method is perhaps less well-known than BFGS, but it has the crucial property that updates are rank-1, rather than rank-2, and it is described “[SR1] has now taken its place alongside the BFGS method as the pre-eminent updating formula.” .
We propose two important modifications to SR1. The first is to use limited-memory, as is commonly done with BFGS. In particular, we use zero-memory, which means that at every iteration, a new diagonal plus rank-one matrix is formed. The other modification is to extend the SR1 method to the general setting of minimizing where is smooth but need not be smooth; this further generalizes the case when is an indicator function of a convex set. Every step of the algorithm replaces with a quadratic approximation, and keeps unchanged. Because is left unchanged, the subgradient of is used in an implicit manner, in comparison to methods such as that use an approximation to as well and therefore take an explicit subgradient step.
In our experience, the choice of is best if scaled with a Barzilai-Borwein spectral step length
(we call it to distinguish it from the other Barzilai-Borwein step size ).
In SR1 methods, the quantity must be positive in order to have a well-defined update for . The update is:
A value of works well in most situations. We have tested picking adaptively, as well as trying to be non-constant on the diagonal, but found no consistent improvements.
Numerical experiments and comparisons
Consider the unconstrained LASSO problem (1). Many codes, such as and L-BFGS-B , handle only non-negativity or box-constraints. Using the standard change of variables by introducing the positive and negative parts of , the LASSO can be recast as
Our second example uses a square operator with dimensions chosen as a 3D discrete differential operator. This example stems from a numerical analysis problem to solve a discretized PDE as suggested by . For this example, we set . For all the solvers, we use the same parameters as in the previous example. Unlike the previous example, Fig. 11(b) now shows that L-BFGS-B is very slow on this problem. The FPC-AS method, very slow on the earlier test, is now the fastest. However, just as before, our SR1 method is nearly as good as the best algorithm. This robustness is one benefit of our approach, since the method does not rely on active-set identifying parameters and inner iteration tolerances.
Conclusions
In this paper, we proposed a novel variable metric (quasi-Newton) forward-backward splitting algorithm, designed to efficiently solve non-smooth convex problems structured as the sum of a smooth term and a non-smooth one. We introduced a class of weighted norms induced by a diagonal+rank 1 symmetric positive definite matrices, and proposed a whole framework to compute a proximity operator in the weighted norm. The latter result is distinctly new and is of independent interest. We also provided clear evidence that the non-diagonal term provides significant acceleration over diagonal matrices.
The proposed method can be extended in several ways. Although we focused on forward-backward splitting, our approach can be easily extended to the new generalized forward-backward algorithm of . However, if we switch to a primal-dual setting, which is desirable because it can handle more complicated objective functionals, updating is non-obvious. Though one can think of non-diagonal pre-conditioning methods.
Another improvement would be to derive efficient calculation for rank-2 proximity terms, thus allowing a 0-memory BFGS method. We are able to extend (result not presented here) Theorem 7 to diagonal+rank matrices. However, in general, one must solve an -dimensional inner problem using the semismooth Newton method.
A final possible extension is to take to be diagonal plus rank-1 on diagonal blocks, since if is separable, this is still can be solved by our algorithm (see Remark 10). The challenge here is adapting this to a robust quasi-Newton update. For some matrices that are well-approximated by low-rank blocks, such as H-matrices , it may be possible to choose to be a fixed preconditioner.
SB would like to acknowledge the Fondation Sciences Mathématiques de Paris for his fellowship.
Appendix A Elements from convex analysis
We here collect some results from convex analysis that are key for our proof. Some lemmata are listed without proof and can be either easily proved or found in standard references such as .
Let a nonempty subset of . The indicator function of is
.
if is a linear invertible operator.
.
Separability: , where .
Conjugate of a sum: assume and the relative interiors of their domains have a nonempty intersection. Then
Let be a symmetric positive semi-definite matrix. Let be its Moore-Penrose pseudo-inverse. Then,
The subdifferential of a proper convex function at is the set-valued map
An element of is called a subgradient.
The subdifferential map is a maximal monotone operator from .
If is (Gâteaux) differentiable at , its only subgradient at is its gradient .
The duality formula to be stated shortly will be very useful throughout the rest of the paper.
with the relashionships between and , respectively the solutions of the primal and dual problems
A.2 Proximal calculus in ℋ\mathcal{H}
The function for is the Moreau envelope of index of .
is also the infimal convolution of with .
Translation: .
Scaling: .
Let . Then its Moreau envelope is convex and Fréchet-differentiable with -Lipschitz gradient
Let , then for any
Appendix B Proofs
B.2 Proof of Theorem 7
Let . Then, we have to solve
By virtue of Lemma 25, is continuously differentiable with 1-Lipschitz gradient. Together with Lemma 22(24), 20 and 26, this yields
where is the unique solution to the above dual problem (28). This problem amounts to minimizing a proper convex smooth continuously differentiable objective with a Lipschitz gradient over a linear set. The latter can be parametrized by a real scalar such that , and is then equivalent to solving the scalar strongly convex smooth optimization problem
whose solution is unique. This is equivalent to saying that is the unique root of
where we used again Lemma 25 and 26. Lipschitz continuity of follows from non-expansiveness of the proximal mapping, and the Lipschitz constant is straightforward from the triangle and Cauchy-Schwartz inequalities.
Let’s turn now to strict increasing monotonicity of . Let . Denote the operator . Then,
where the first inequality is a consequence of the fact that the proximal mapping is firmly non-expansive. ∎