A Universal Primal-Dual Convex Optimization Framework
Alp Yurtsever, Quoc Tran-Dinh, Volkan Cevher
Introduction
This paper constructs an algorithmic framework for the following convex optimization template:
When the set is absent in (1), other methods can be preferable to primal-dual algorithms. For instance, if has Lipschitz gradient, then we can use the accelerated proximal gradient methods by applying the proximal operator for the indicator function of the set . However, as the problem dimensions become increasingly larger, the proximal tractability assumption can be restrictive. This fact increased the popularity of the generalized conditional gradient (GCG) methods (or Frank-Wolfe-type algorithms), which instead leverage the following Fenchel-type oracles
To this end, we propose a new primal-dual algorithmic framework that can exploit the sharp-operator of in lieu of its proximal operator. Our aim is to combine the flexibility of proximal primal-dual methods in addressing the general template (1) while leveraging the computational advantages of the GCG-type methods. As a result, we trade off the computational difficulty per iteration with the overall rate of convergence. While we obtain optimal rates based on the sharp-operator oracles, we note that the rates reduce to with the sharp operator vs. with the proximal operator when is completely non-smooth (cf. Definition 1.1). Intriguingly, the convergence rates are the same when is strongly convex. Unlike GCG-type methods, our approach can now handle nonsmooth objectives in addition to complex constraint structures as in (1).
Our algorithmic framework features a gradient method and its accelerated variant that operates on the dual formulation of (1). For the accelerated variant, we study an alternative to the universal accelerated method of based on FISTA since it requires less proximal operators in the dual. While the FISTA scheme is classical, our analysis of it with the Hölder continuous assumption is new. Given the dual iterates, we then use a new averaging scheme to construct the primal-iterates for the constrained template (1). In contrast to the non-adaptive weighting schemes of GCG-type algorithms, our weights explicitly depend on the local estimates of the Hölder constants at each iteration. Finally, we derive the worst-case complexity results. Our results are optimal since they match the computational lowerbounds in the sense of first-order black-box methods .
Section 2 briefly recalls primal-dual formulation of problem (1) with some standard assumptions. Section 3 defines the universal gradient mapping and its properties. Section 4 presents the primal-dual universal gradient methods (both the standard and accelerated variants), and analyzes their convergence. Section 5 provides numerical illustrations, followed by our conclusions. The supplementary material includes the technical proofs and additional implementation details.
Given an accuracy level , a point is said to be an -solution of (1) if
Primal-dual preliminaries
In this section, we briefly summarise the primal-dual formulation with some standard assumptions. For the ease of presentation, we reformulate (1) by introducing a slack variable as follows:
Let and . Then, we have as the feasible set of (3).
The Lagrange function associated with the linear constraint is defined as , and the dual function of (3) can be defined and decomposed as follows:
To characterize the primal-dual relation between (1) and (4), we require the following assumptions :
Universal gradient mappings
This section defines the universal gradient mapping and its properties.
We first adopt the composite convex minimization formulation of (4) in convex optimization for better interpretability as
where , and the correspondence between and is as follows:
Since and are generally non-smooth, FISTA and its proximal-based analysis are not directly applicable. Recall the sharp operator defined in (2), then can be expressed as
and we define the optimal solution to the subproblem above as follows:
The second term, , depends on the structure of . We consider three special cases:
2 Hölder continuity of the dual universal gradient
Let be a subgradient of , which can be computed as . Next, we define
where is the Hölder smoothness order. Note that the parameter explicitly depends on . We are interested in the case , and especially the two extremal cases, where we either have the Lipschitz gradient that corresponds to , or the bounded subgradient that corresponds to .
We require the following condition in the sequel:
.
Assumption A.2 is reasonable. We explain this claim with the following two examples. First, if is subdifferentiable and is bounded, then is also bounded. Indeed, we have
Hence, we can choose and .
3 The proximal-gradient step for the dual problem
as an approximate quadratic surrogate of . Then, we consider the following update rule:
For a given accuracy , we define
Universal primal-dual gradient methods
We apply the universal gradient mappings to the dual problem (5), and propose an averaging scheme to construct for approximating . Then, we develop an accelerated variant based on the FISTA scheme , and construct another primal sequence for approximating .
Our algorithm is shown in Algorithm 1. The dual steps are simply the universal gradient method in , while the new primal step allows to approximate the solution of (1).
Complexity-per-iteration: First, computing at Step 1 requires the solution . For many and , we can compute efficiently and often in a closed form. Second, in the line-search procedure, we require the solution at Step 3.a, and the evaluation of . The total computational cost depends on the proximal operator of and the evaluations of . We prove below that our algorithm requires two oracle queries of on average.
The primal sequence generated by the Algorithm 1 satisfies
where is defined by (10), is an arbitrary dual solution, and is the desired accuracy.
The worst-case analytical complexity: We establish the total number of iterations to achieve an -solution of (1). The supplementary material proves that
where . This complexity is optimal for , but not for .
At each iteration , the linesearch procedure at Step 3 requires the evaluations of . The supplementary material bounds the total number of oracle queries, including the function and its gradient evaluations, up to the th iteration as follows:
Hence, we have , i.e., we require approximately two oracle queries at each iteration on the average.
2 Accelerated universal primal-dual gradient method
Complexity per-iteration: The per-iteration complexity of Algorithm 2 remains essentially the same as that of Algorithm 1.
The primal sequence generated by the Algorithm 2 satisfies
where is defined by (10), is an arbitrary dual solution, and is the desired accuracy.
The worst-case analytical complexity: The supplementary material proves the following worst-case complexity of Algorithm 2 to achieve an -solution :
This worst-case complexity is optimal in the sense of first-order black box models .
The line-search procedure at Step 3 of Algorithm 2 also terminates after a finite number of iterations. Similar to Algorithm 1, Algorithm 2 requires gradient query and function evaluations of at each iteration. The supplementary material proves that the number of oracle queries in Algorithm 2 is upperbounded as follows:
Roughly speaking, Algorithm 2 requires approximately two oracle query per iteration on average.
Numerical experiments
This section illustrates the scalability and the flexibility of our primal-dual framework using some applications in the quantum tomography (QT) and the matrix completion (MC).
We consider the QT problem which aims to extract information from a physical quantum system. A -qubit quantum system is mathematically characterized by its density matrix, which is a complex positive semidefinite Hermitian matrix , where . Surprisingly, we can provably deduce the state from performing compressive linear measurements based on Pauli operators . While the size of the density matrix grows exponentially in , a significantly fewer compressive measurements (i.e., ) suffices to recover a pure state -qubit density matrix as a result of the following convex optimization problem:
where the constraint ensures that is a density matrix. The recovery is also robust to noise .
Since the objective function has Lipschitz gradient and the constraint (i.e., the Spectrahedron) is tuning-free, the QT problem provides an ideal scalability test for both our framework and GCG-type algorithms. To verify the performance of the algorithms with respect to the optimal solution in large-scale, we remain within the noiseless setting. However, the timing and the convergence behavior of the algorithms remain qualitatively the same under polarization and additive Gaussian noise.
To this end, we generate a random pure quantum state (e.g., rank-1 ), and we take random Pauli measurements. For qubits system, this corresponds to a dimensional problem with measurements. We recast (19) into (1) by introducing the slack variable .
We compare our algorithms vs. the Frank-Wolfe method, which has optimal convergence rate guarantees for this problem, and its line-search variant. Computing the sharp-operator requires a top-eigenvector of , while evaluating corresponds to just computing the top-eigenvalue of via a power method. All methods use the same power method subroutine, which is implemented in MATLAB’s eigs function. We set for our methods and have a wall-time s in order to stop the algorithms. However, our algorithms seems insensitive to the choice of for the QT problem.
Figure 1 illustrates the iteration and the timing complexities of the algorithms. UniPDGrad algorithm, with an average of line-search steps per iteration, has similar iteration and timing performance as compared to the standard Frank-Wolfe scheme with step-size . The line-search variant of Frank-Wolfe improves over the standard one; however, our accelerated variant, with an average of line-search steps, is the clear winner in terms of both iterations and time. We can empirically improve the performance of our algorithms even further by adapting a similar line-search strategy in the weighting step as Frank-Wolfe, i.e., by choosing the weights in a greedy fashion to minimize the objective function. The practical improvements due to line-search appear quite significant.
2 Matrix completion with MovieLens dataset
Convex formulations involving the nuclear norm have been shown to be quite effective in estimating low-rank matrices from limited number of measurements . For instance, we can solve
with Frank-Wolfe-type methods, where is a tuning parameter, which may not be available a priori. We can also solve the following parameter-free version
While the nonsmooth objective of (21) prevents the tuning parameter, it clearly burdens the computational efficiency of the convex optimization algorithms.
We apply our algorithms to (20) and (21) using the MovieLens 100K dataset. Frank-Wolfe algorithms cannot handle (21) and only solve (20). For this experiment, we did not pre-process the data and took the default ub test and training data partition. We start out algorithms form , we set the target accuracy , and we choose the tuning parameter as in . We use lansvd function (MATLAB version) from PROPACK to compute the top singular vectors, and a simple implementation of the power method to find the top singular value in the line-search, both with relative error tolerance.
The first two plots in Figure 2 show the performance of the algorithms for (20). Our metrics are the normalized objective residual and the root mean squared error (RMSE) calculated for the test data. Since we do not have access to the optimal solutions, we approximated the optimal values, and RMSE⋆, by iterations of AccUniPDGrad. Other two plots in Figure 2 compare the performance of the formulations (20) and (21) which are represented by the empty and the filled markers, respectively. Note that, the dashed line for AccUniPDGrad corresponds to the line-search variant, where the weights are chosen to minimize the feasibility gap. Additional details about the numerical experiments can be found in the supplementary material.
Conclusions
This paper proposes a new primal-dual algorithmic framework that combines the flexibility of proximal primal-dual methods in addressing the general template (1) while leveraging the computational advantages of the GCG-type methods. The algorithmic instances of our framework are universal since they can automatically adapt to the unknown Hölder continuity properties implied by the template. Our analysis technique unifies Nesterov’s universal gradient methods and GCG-type methods to address the more broadly applicable primal-dual setting. The hallmarks of our approach includes the optimal worst-case complexity and its flexibility to handle nonsmooth objectives and complex constraints, compared to existing primal-dual algorithm as well as GCG-type algorithms, while essentially preserving their low cost iteration complexity.
This work was supported in part by ERC Future Proof, SNF 200021-146750 and SNF CRSII2-147633. We would like to thank Dr. Stephen Becker of University of Colorado at Boulder for his support in preparing the numerical experiments.
References
References
Appendix A The key estimate of the proximal-gradient step
Lemma 2 in , which we present below as Lemma A.1, provides key properties for constructing universal gradient algorithms. We refer to for the proof of this lemma.
This lemma provides an approximate quadratic upper bound for . However, it depends on the choice of the inexactness parameter and the smoothness parameter . If , then can be set to the Lipschitz constant , and it becomes independent of .
The algorithms that we develop in this paper are based on the proximal-gradient step (9) on the dual objective function . This update rule guarantees the following estimate:
Let be the quadratic model of . If , which is defined by (9), satisfies
We note that the optimality condition of (9) is
which can be written as . Let be a subgradient of at . Then, we have
where the last inequality directly follows the convexity of . ∎
Clearly, (22) holds if , which is defined by (10), due to Lemma A.1, whenever .
If and are known, we can set , then the condition (22) is automatically satisfied. However, we do not know and a priori in general. In this case, can be determined via a line-search procedure on the condition (22).
The following lemma guarantees that the line-search procedure in Algorithms 1 and 2 terminates after a finite number of line-search iterations.
The line-search procedure in Algorithm 1 terminates after at most
Similarly, the line-search procedure in Algorithm 2 terminates after at most
Now, we show that the line-search procedure in Algorithm 2 is also finite. By the updating rule of , we have . By induction and , we have . Using the definition (10) of with and , we can show that
Next, we note that the condition (22) holds whenever . However, since , by using (24), it is sufficient to show that the following condition holds for a finite :
This condition leads to . Hence, at the th iteration, we require at most line-search iterations, which is finite. ∎
Appendix B Convergence analysis of the universal primal-dual gradient algorithm
In this section, we analyze the convergence of the Algorithm 1 (UniPDGrad). We first provide the convergence guarantee of the dual function in Theorem B.1. Then, we prove the convergence rate and the worst-case complexity given in Theorem 4.1.
Let be the sequence generated by UniPDGrad. Then,
For defined by (10), since the line-search is successful as shown in Lemma A.1, the condition (22) is satisfied at iteration with . The following inequality directly follows Lemma A.2 considering the convexity of :
Taking the weighted sum of this inequality over , we get
B.2 The proof of Theorem 4.1: Convergence rate of the primal sequence
We use the following three expressions to relate the convergence in the dual sequence to the convergence in the primal sequence:
Taking the weighted sum of this inequality over and considering the convexity of , we get
Setting , we get the bound on the right hand side of (15),
The inequality on the left hand side of (11) follows the following saddle point formulation:
and , where the last inequality holds due to Cauchy-Schwarz inequality. The proof of the convergence rate in the objective residual (11) follows by setting in (32).
Next, we prove the convergence rate of the feasibility gap (12). We start from the following saddle point formulation:
Substituting this estimate with into (31), we get the following inequality:
Using Cauchy-Schwarz inequality, this implies
Solving this inequality for , we get
We note that , and this completes the proof. ∎
Hence, the worst-case complexity to obtain an -solution of (1) in the sense of Definition 1.1 is
Next, we estimate the total number of oracle quires in UniPDGrad, as in . The total number of oracle quires up to the iteration is given by . However, since , we have
It remains to use to obtain (14).
Appendix C Convergence analysis of the accelerated universal primal-dual algorithm
We now analyze the convergence of AccUniPDGrad (Algorithm 2) in terms of the objective residual and the feasibility gap.
The parameter is determined based on the following line-search condition:
Next, we simplify the scheme (33) in the following lemma:
The scheme (33) can be restated as follows:
where and , and is determined based on the line-search condition (35).
This dual scheme is of the FISTA form , except for the line-search step.
Hence , which is the third step of (36).
Next, from the condition (34), we have . Hence, , which is exactly the second step of (36). ∎
and we set in (38), and then subtract from the both sides, that results in the following inequality:
We obtain the following estimate by summing the two inequalities that we get by multiplying (39) by and (40) by , and then dividing the resulting estimate by :
Next, we sum this inequality over as follows:
where the second inequality follows and for , which holds since . This implies the followings:
Now, we use the following expressions to map this estimate into the primal sequence:
Then, considering the convexity of , we get
where we obtain the second inequality by setting .
We can reformulate (34) as . Using this relation, and for , we can show that
We get the bound on the right hand side of (15) by substituting (43) into (42). The inequality on the left hand side of (15) follows the saddle point formulation (32) by setting .
Finally, we prove the convergence rate in the feasibility gap (16). By the same arguments as in the proof of Theorem 4.1, we have
We complete the proof by substituting (43) into this estimate. ∎
C.2 The worst-case complexity analysis
We analyze the worst-case complexity of AccUniPDGrad algorithm to achieve an -solution . For simplicity, we consider the case without loss of generality. Then, we require
due to the Theorem 4.2, where . By solving this inequality, we get
Using the definition (10) of and considering the fact that for , we find the maximum number of iterations that satisfies the above inequality as follows:
Hence, the worst-case complexity to obtain an -solution of (1) in the sense of Definition 1.1 is
which is optimal in the sense of first-order black box models .
Next, we consider the number of oracle quires in AccUniPDGrad. At iteration , the algorithm requires function evaluations of , as we need in the line-search and one for . Hence, the total number of oracle quires up to the iteration is . Since , we have
Using the same argument as in the proof of Lemma A.3, we have . Hence, we obtain (18) as
Appendix D The implementation details
In this section, we specify key steps of UniPDGrad and AccUniPDGrad for two important applications that we used in Section 5. We also provide an analytic step-size that guarantees the line-search condition without function evaluation.
We performed the experiments in MATLAB, using a computational resource with 4 CPUs of 2.40 GHz and 16 GB memory space for the matrix completion, and 16 CPUs of 2.40 GHz and 512 GB memory space for the quantum tomography problem.
In both quantum tomography and the matrix completion problems, we consider some problem formulations from the following convex optimization template that involves a quadratic cost:
Evaluation of the sharp-operator corresponding to the objective function requires a significant computational effort. Yet, by introducing the slack variable , we can write an equivalent problem as
We can write the Lagrange function associated with the linear constraint as
from which we can derive the (negation of the) dual function
where .
For the special case, is a norm ball, i.e., , we can simplify (44) as follows:
Computing an analytical step-size: Now, we consider the line-search procedure in UniPDGrad and AccUniPDGrad. Since term is absent in these problems, the line-search condition (22) can be simplified as
where we use the notational convention and for UniPDGrad, and for AccUniPDGrad. Using the definition (45), we can upper bound by
The condition (46) holds if . Solving this second order equation, we obtain explicitly as
where . Note that, we can use this method to find a good estimate for the initial smoothness constant in the initialization step.
D.2 Constrained convex optimization involving a norm cost
Now, we consider the second application, which is reformulated as
Clearly, the dual components and defined in (6) can be expressed as:
where represents the Euclidean norm for vectors and the spectral norm for matrices. In (21), we consider a special case where , hence .
Clearly, , where is the top singular value of and is the associated left singular vector. Hence, we can write the (sub)gradient of g as
We can compute both and efficiently by using the power method or the Lanczos algorithm.