Accelerated Stochastic Algorithms for Nonconvex Finite-sum and Multi-block Optimization
Guanghui Lan, Yu Yang
Introduction
Nonconvex optimization plays a fundamental role in modern statistics and machine learning, e.g., for empirical risk minimization with either nonconvex loss () or regularization (), as well as the training of deep neural networks (). In this paper, we consider two classes of nonconvex optimization problems that are widely used in statistical learning. The first class of problems intends to minimize the summation of many terms:
Moreover, we assume that there exists such that (s.t.)
Clearly, (1.2) implies (1.3) (with ). While in the classical nonlinear programming setting one only assumes (1.2), by using both conditions (1.2) and (1.3) we can explore more structural information for the design of solution methods of problem (1.1). In particular, we intend to develop more efficient algorithms to solve problems where the condition number associated with problem (1.1) is large. As an example, consider the nonconvex composite problem arising from variable selection in statistics : where ’s are smooth convex functions, is a nonconvex function, and is a relatively small penalty parameter. Note that some examples of the nonconvex penalties are given by minimax concave penalty (MCP) or smoothly clipped absolute deviation (SCAD) (see ). It can be shown that the condition number for these problems is usually larger than (see Section 4 for more details).
In addition to (1.1), we consider an important class of nonconvex multi-block optimization problems with linearly coupled constraints, i.e.,
A different line of research aims to incorporate Nesterov’s acceleration (momentum) into nonconvex optimization. Ghaidmi and Lan first established the convergence of the accelerated gradient method for nonconvex optimization and show that it can improve the complexity of GD if the problem has a large condition number (i.e., is large). Their results were further improved in , , and . Currently the best complexity result, in terms of total gradient computations, for these methods is given by for unconstrained problems . However, it remains unknown if the complexity of such accelerated algorithms can be further improved in terms of the dependence on , especially when one needs to maintain the complexity bound on gradient computations. Note that some nonconvex stochastic accelerated gradient methods have been discussed in but they all exhibit a worse complexity bounds.
While stochastic and randomized methods are being intensively explored for solving problem (1.1), most existing studies for the nonconvex multi-block problem in (1) have been mainly focused on deterministic batch methods only. Many of these studies aim at the generalization of the alternating direction method of multipliers (ADMM) method for nonconvex optimization. For example, In , Hong et al. established the complexity for a variant of ADMM for nonconvex multi-block problems, see also and for some previous work on the asymptotic analysis of ADMM for nonconvex optimization. In , Melo and Monteiro presented a linearized proximal multiblock ADMM with complexity to attain a nearly feasible -stationary solution, but all the blocks have to be updated in each iteration. Later, they proposed a Jacobi-type ADMM in with similar complexity bound, which shows benefits if parallel computing is available. While the idea of randomly selecting blocks in nonconvex ADMM has been explored recently, these studies focus on the asymptotical convergence of these schemes (e.g., in ). To the best of our knowledge, there does not exist any complexity analysis regarding randomized methods for solving the nonconvex multi-block problem in (1) in the literature and as a consequence, it remains unclear whether stochastic or randomized methods are more advantageous over batch ones or not.
Our contribution in this paper mainly exists in the following several aspects. Firstly, we develop a new randomized algorithm, namely the randomized accelerated proximal gradient (RapGrad) method for solving problem (1.1) and show that it can significantly improve the complexity of existing algorithms especially for problems with a large condition number. More specifically, we show that RapGrad requires totally gradient computations in order to find a stochastic -stationary point. For problems with , this bound reduces to , which dominates the best-known batch accelerated gradient methods by a factor of , and outperforms those variance-reduced stochastic algorithms by a factor of (at least ). In fact, our complexity bound will be better than the latter algorithms as long as . Therefore, we provide some affirmative answers regarding whether the complexity bounds of variance reduced algorithms and accelerated gradient methods for nonconvex optimization can be further improved, especially in terms of their dependence on . To the best of our knowledge, all these complexity results seem to be new in the literature for nonconvex finite-sum optimization. It is worth noting that some improvement over variance-reduced stochastic algorithms under the region (i.e., is small) has been presented recently in . RapGrad is a proximal-point type method which iteratively transforms the original nonconvex problem into a series of convex subproblems. In RapGrad, we incorporate a modified optimal randomized incremental gradient method, namely the randomized primal-dual gradient (see ) to solve these convex subproblems, and as a consequence, each iteration of RapGrad requires gradient computation for only one randomly selected component function. In comparison with existing nonconvex proximal-point type methods, the design and analysis of RapGrad appear to be more complicated. In particular, RapGrad does not require the computation of full gradients throughout its entire procedure by properly initializing a few intertwined search points and gradients using information obtained from the previous subproblems. This comes with the price of requiring additional storage (memory) for maintaining variables (e.g., ). Moreover, the analysis of RapGrad requires us to show the convergence for some auxiliary sequences where the gradients are computed, which has not been established for the original randomized primal-dual gradient method.
primal block updates, where , , and . Moreover, we demonstrate that the total number primal block updates that RapGrad requires can be much smaller, up to a factor of , than its batch counterpart. To the best of our knowledge, this is the first time that the complexity of randomized methods for solving this special class of nonconvex multi-block optimization has been established and their possible advantages over batch methods are quantified in the literature.
Thirdly, we perform some numerical experiments on both RapGrad and RapDual for solving nonconvex finite-sum and multi-block problems in (1.1) and (1) and demonstrate their potential advantages over some existing algorithms.
This paper is organized as follows. In Section 2, we present our algorithm RapGrad, and its convergence properties for solvinwg the nonconvex finite-sum problem in (1.1). RapDual for nonconvex finite-sum optimization with linear constraints (1) and its convergence analysis are included in Section 3. Section 4 is devoted to some numerical experiments of our algorithms for the above two types of problems. Finally some concluding remarks are made in Section 5.
Nonconvex finite-sum optimization
In this section, we develop a randomized accelerated proximal gradient (RapGrad) method for solving the nonconvex finite-sum optimization problem in (1.1) and demonstrate that it can significantly improve the existing rates of convergence for solving these problems, especially when their objective functions have large condition numbers. We will describe this algorithm and establish its convergence in Subsections 2.1 and 2.2, respectively.
Before establishing the convergence of the RapGrad method, we first need to define an approximate stationary point for problem (1.1). A point is called an approximate stationary point if it sits within a small neighborhood of a point which approximately satisfies the first-order optimality condition.
A point is called an -solution of (1.1) if there exists some such that
A stochastic -solution of (1.1) is one such that
Moreover, if is a compact set and is an -solution, we can bound strong gap as follows:
where . In comparison with the two well-known criterions in (2.18) and (2.19), the criterion given in Definition 1 seems to be applicable to a wider class of problems and is particularly suitable for proximal-point type methods (see for a related notion).
We are now ready to state the main convergence properties for RapGrad.
In view of Theorem 2, we can bound the total number of gradient evaluations required by RapGrad to yield a stochastic -solution of (1.1). Indeed, observe that the full gradient is computed only once in the first outer loop, and that for each subproblem (1.1), we only need to compute gradients with
Hence, the total number of gradient evaluations performed by RapGrad can be bounded by
where . As a comparison, the batch version of this algorithm, obtained by viewing as a single component, would update all the and for , in (2.12) and (2.15) at each iteration, and hence would require
gradient evaluations to compute an -solution of (1.1).
It is worth noting that both complexity bounds and will go to as tends to . This indicates that the proximal-point method should not be applied to the situation when is too small, no matter whether the randomized or batch version is used. However, if is indeed small, say , we can see that the assumption in (1.3) also holds for . Therefore, we can assume that when applying RapGrad. A closer examination to this issue reveals that the algorithm (i.e., RaGrad) that we used to solve the strongly convex subproblems is not optimal if the strongly convex modulus is too small. Hence, a different remedy would be to apply an optimal randomized incremental gradient method which can yield the best possible complexity bound even if is small. Using this latter approach, we possibly do not need to fix a priori as in the former one. However, this type of optimal randomized incremental gradient method has not been developed until recently (see ), about one year later after our paper was initially released.
Theorem 2 only shows the convergence of RapGrad in expectation. Similarly to the nonconvex SGD methods in , we can establish and then further improve the convergence of RapGrad with overwhelming probability by using a two-phase procedure, where one computes a short list of candidate solutions in the optimization phase by either taking a few independent runs of RapGrad or randomly selecting a few solutions from the trajectory of RapGrad, and then chooses the best solution, e.g., in terms of either (2.18) and (2.19), in the post-optimization phase.
2 Convergence analysis for RapGrad
In this section, we will first develop the convergence results for Algorithm 2 applied to the convex finite-sum subproblem (2.8), and then using them to establish the convergence of RapGrad. Observe that the component functions and in (2.8) satisfy:
We first state some simple relations about the iterations generated by Algorithm 2.
Lemma 4 below describes an important result about Algorithm 2, which improves Lemma 7 of by showing the convergence of . The proof of this result is more involved and will be deferred in Appendix A.
Let the iterates and , for , be generated by Algorithm 2 and be an optimal solution of (2.8). If the parameters in Algorithm 2 satisfy for all ,
With the help of Lemma 4, we now establish the main convergence properties of Algorithm 2.
Let be an optimal solution of (2.8), and suppose that the parameters , , and are set as in (2.20) and (2.21). If , for some , then, for any , we have
It is easy to check that (2.20) and (2.21) satisfy conditions (2.24), (2.25), (2.26) (2.27), (2.28), and (2.29). Then by Lemma 4, we have
Since , we have , and . Plugging into (2.30), we obtain the following two relations:
In view of the above two relations, we have
In view of Theorem 5, Algorithm 2 applied to subproblem (2.8) exhibits a fast linear rate of convergence. Actually, as shown below we do not need to solve the subproblem too accurately, and a constant number of iteration of Algorithm 2 for each subproblem is enough to guarantee the convergence of Algorithm 1.
By induction on (2.32) and noting , , we have
Using (2.2), (2.2) and the condition on , we have
Now we are ready to prove Theorem 2 using all the previous results we have developed.
From the optimality condition of (2.17), we obtain
Using the above relation and Lemma 6, we have
Nonconvex multi-block optimization with linear constraints
In this section, we present a randomized accelerated proximal dual (RapDual) algorithm for solving the nonconvex multi-block optimization problem in (1) and show the potential advantages in terms of the total number of block updates.
As mentioned in Section 1, we assume the inverse of the last block of the constraint matrix is easily computable. Hence, denoting , and , we can reformulate problem (1) as
where , , , and . It should be noted that except for some special cases, the computation of requires up to arithmetic operations, which will be a one-time computational cost added on top of the overall computational cost of our algorithm (see Remark 9 below for more discussions).
One may also reformulate problem (3) in the form of (1.1) and directly apply Algorithm 1 to solve it. More specifically, substituting with in the objective function of (3), we obtain
where with the -th block given a identity matrix and hence . However, this method will be inefficient since we enlarge the dimension of each from to and as a result, every block has to be updated in each iteration. One may also try to apply a nonconvex randomized block coordinate descent method to solve the above reformulation. However, such methods do not apply to the case when are both nonconex and nonsmooth. This motivates us to design the new RapDual method which requires to update only a single block at a time, applies to the case when is nonsmooth and achieves an accelerated rate of convergence when is smooth.
RaDual (c.f. Algorithm 4) can be viewed as a randomized primal-dual type method. Indeed, by the method of multipliers and Fenchel conjugate duality, we have
Each iteration of Algorithm 4 updates only a randomly selected block in (3.49), making it especially favorable when the number of blocks is large. However, similar difficulty as mentioned in Section 2.1 also appears when we integrate this algorithm with proximal-point type method to yield the final RapDual method in Algorithm 3. Firstly, Algorithm 4 also keeps a few intertwined primal and dual sequences, thus we need to carefully decide the input and output of Algorithm 4 so that information from previous iterations of RapDual is fully used. Secondly, the number of iterations performed by Algorithm 4 to solve each subproblem plays a vital role in the convergence rate of RapDual, which should be carefully predetermined.
We first define an approximate stationary point for problem (1) before establishing the convergence of RapDual.
A stochastic counterpart is one that satisfies
Let . It can be seen that the total number of primal block updates required to obtain a stochastic -solution can be bounded by
As a comparison, the batch version of this algorithm would update all the for , in (3.49), and thus would require
primal block updates to obtain an -solution of (1). Therefore, the benefit of randomization comes from the difference between and . Obviously we always have , and the relative gap between and can be large when all the matrix blocks have close norms. In the case when all the blocks are identical, i.e. , we immediately have , which means that RapDual can potentially save the number of primal block updates by a factor of than its batch counterpart.
In this paper, we assume that is easily computable. One natural question is whether we can avoid the computation of by directly solving (1) instead of its reformulation (3). To do so, we can iteratively solve the following saddle-point subproblems in place of the ones in (3.1):
2 Convergence analysis for RapDual
In this section, we first show the convergence of Algorithm 4 for solving the convex multi-block subproblem (5) with
Some simple relations about the iterations generated by the Algorithm 4 are characterized in the following lemma, and the proof follows directly from the definition of in (3.54), thus has been omitted.
Let and for be defined as follows:
where and are obtained from (3.46)-(3.49), then we have
The following lemma 11 builds some connections between the input and output of Algorithm 4 in terms of both primal and dual variables, and the proof can be found in Appendix B.
Let the iterates and for be generated by Algorithm 4 and be a saddle point of (3.1). Assume that the parameters in Algorithm 4 satisfy for all
where . Then we have
Now we present the main convergence result of Algorithm 4 in Theorem 12, which eliminates the dependence on dual variables and relates directly the successive searching points of RapDual.
It is easy to check that (3.50) and (3.51) satisfy conditions (3.57), (3.58), (3.59) (3.60), and (3.61) when . Then we have
Therefore, by plugging in those values in (3.50) and (3.51), we have
Since has -Lipschitz continuous gradients and is -strongly convex, we obtain
Combining (3.63), (3.64) and (3.65), we have
The above theorem shows that subproblem (5) can be solved efficiently by Algorithm 4 with a linear rate of convergence. In fact, we need not solve it too accurately. With a fixed and relatively small number of iterations Algorithm 4 can still converge, as shown by the following lemma.
Combining (3.66) and (3.2) and noticing that = , we have
Now we are ready to prove the results in Theorem 8 with all the results proved above.
Similarly, due to (3.71) and Lemma 13, we have
Numerical experiments
In this section, we report some preliminary numerical results for both RapGrad and RapDual and demonstrate their potential advantages in Subsection 4.1 and 4.2, respectively.
We consider the least square problem with the smoothly clipped absolute deviation (SCAD) penalty as a testing problem. SCAD has been proved in to be efficient in variable selection. While the original SCAD defined below does not have smooth gradient at , we can bypass this potential problem by using a small positive number to obtain a smooth approximation :
where , , and are given. Using , our problem of interest is given by
which can be viewed as a special case of problem (1.1) with . Here denotes the -th row of . It is easy to see that assumptions (1.2) and (1.3) are satisfied with and . Thus the condition number usually dominates .
We test Algorithm 1 (RapGrad), both randomized and deterministic batch versions, on some randomly generated data sets with dimension , . Note all entries of matrix and uniformly chosen components of are i.i.d from N(0,1). The remaining variables of are set to and is computed by . The parameters used in are {10}^{-3}$\lambda=2\gamma=4\rho0.01xm1/m1$ pass. As is shown by Figure 1, randomized version can reduce both objective value and norm of gradient faster than its batch counterpart in terms of number of gradient evaluations. We also observe that there are some zig-zag pattern for the batch algorithm in Figure 1.b), which might have been related some numerical stability issue.
We also compare our RapGrad with the full SVRG in non-convex setting (Algorithm 2 in ) and Accelerated Gradient method (AG) in . Notice that, both RapGrad and SVRG are randomized algorithms, while AG is a deterministic batch method. For the sake of fairness in comparison, all the parameters in the three algorithms mentioned above are set to their theoretical values without any tuning in our experiments. Figure 2 shows our Algorithm 1 not only reduces the function value as well as gradient norm faster than both SVRG and AG.
In fact, our estimate on seems to be too pessimistic, and the subproblems are solved to unnecessarily high accuracy. As a result, some spikes show in Figure 1, which correspond to the occasions when an inner loop for solving the subproblem completes and a new search point is obtained to update the subproblem. Early termination of the inner loops may help to remove those spikes. Reducing the number of inner iterations may not guarantee above mentioned convergence rate theoretically, but may improve the practical performance of RapGrad for this problems in our experiments. From Figure 3 and Figure 4, we can conclude that, by using smaller , our randomized algorithm is able to reduce and much faster, whereas the batch version converges faster in terms of the gradient norm.
Inspired by the above experiments, we have an efficient way to tune RapGrad to yield better performance. We first run RapGrad with several different numbers of inner iterations , for instance , , , for a fixed number, say , of passes through the dataset, then we use the best corresponding to the smallest norm of gradient as the actual for the tuned RapGrad. In the following table, we compare the RapGrad without tuning, tuned RapGrad, SVRG as well as AG on testing problems of different sizes, with stoping criteria {10}^{-10}$3\text{\times}{10}^{4}nm$.
2 Nonconvex multi-block optimization
We consider the following compressed sensing problem to test the performance of RapDual:
The numerical experiments is performed on some randomly generated data sets of size , . The first coefficient matrices , , are of size and the last block is an identity matrix. , are sparse matrices with sparsity level , and all nonzero elements of and uniformly chosen components of are i.i.d from . The remaining variables of are set to and . The parameters used in are exactly the same as the first problem, i.e., {10}^{-3}$\lambda=2\gamma=4\rho=L^{2},L^{2}/10,L^{2}/20\rho=L^{2}A_{m}^{-1}s1020$, we obtain results in Figure 7 and Figure 8. As we can see, the total number of primal block updates needed to yield a good solution, in terms of both objective value and feasibility, can be much smaller when inner loops are terminated early.
Concluding remarks
In this paper, we propose a new randomized accelerated proximal-gradient (RapGrad) method for solving nonconvex finite-sum problems (1.1) and a new randomized primal-dual gradient (RapGrad) method for nonconvex multi-block problems (1), respectively. We demonstrate that for problem (1.1) with large condition number, our RapGrad has much better convergence rate, in terms of dependence on the large number , than the state-of-art nonconvex SVRG or SAGA, as well as accelerated gradient method for nonconvex optimization. Moreover, we show that our RapDual method incorporated with randomization techniques can significantly save the number of primal block updates up to a factor of than the deterministic batch methods for solving problems (1). The potential advantages of RapGrad and RapDual are also demonstrated through our preliminary numerical experiments.
We observe that the main ideas of this RapDual, i.e., using proximal point method to tranform the nonconvex multi-block problem into a series of convex subproblems, and using randomized dual method to them, can be applied for solving much more general multi-block optimization problems for which there does not exist an invertible block. In this more general case, the saddle-point subproblems will only be strongly convex in the primal space, but not in the dual space. Therefore, the complexity of solving the subproblem will only be sublinear, and as a consequence, the overall complexity will be much worse than . It will be interesting to study how much benefit one can obtain by using randomized algorithms in this more general case. We leave this as an interesting topic for future research. It is also worth noting that the proposed RapGrad and RapDual implicitly assume that the parameter is known, or a (tight) upper bound of it can be obtained. While the values of for the problems considered in our numerical experiments can be tightly estimated, it will be interesting to see if we can adaptively estimate the value of in these algorithms applied to solve more general problems.
References
Appendix A Proof of Lemma 4
By convexity of and optimality of , we have
For notation convenience, let ,
Multiplying each by a non-negative and summing them up, we obtain
the first inequality follows from (A.73), (A.74), (2.38), (A) and Lemma 3, and the second inequality is implied by (2.25) and (2.26).
From the relation (2.28) and the fact , we have
Now we are ready to bound the last term in (A) as follows:
where (a) follows from the definition in (A), (b) follows relations (A) and (A) and (c) follows from the fact that , .
By properly regrouping the terms on the right hand side of (LABEL:break), we have
where (a) follows from the simple relation that , and (b) follows from (2.24), (2.27) and (2.28). By using the above inequality, (A) and (A), we obtain
where (a) follows from ; (b) follows from the simple relation that , and (c) follows from (2.29), strong convexity of and Lipschitz continuity of . This completes the proof. ∎
Appendix B Proof of Lemma 11
For any , since is a saddle point of (3.1), we have
For nonnegative , we further obtain
According to optimality conditions of (3.54) and (3.46) respectively, and strongly convexity of and we obtain
Combining the above two inequalities with relation (B.82), we have
Applying this and the results (3.55), (3.56) in Lemma 10, we further have
and the second inequality follows from (3.59) and (3.60).
where the second equality follows from (3.58) and the fact that .
Since and , from (B.84) we have
where (a) follows from regrouping the terms; (b) follows from the definition and the simple relation that , ; and (c) follows from (3.58) and (3.61).
By combining the relation above with (B), we obtain
In view of (B) and (B.86), we complete the proof. ∎