An optimal first order method based on optimal quadratic averaging

Dmitriy Drusvyatskiy, Maryam Fazel, Scott Roy

Introduction

Classically, one step of the steepest descent algorithm decreases the squared distance of the iterate to the minimizer of ff by the fraction 1−α/β1-\alpha/\beta. This linear convergence rate is suboptimal from a computational complexity viewpoint. Optimal first-order methods, originating in Nesterov’s work achieve the superior (and the best possible) linear rate 1−α/β1-\sqrt{\alpha/\beta}; see also the discussion in [10, Section 2.2]. Such accelerated schemes, on the other hand, are notoriously difficult to analyze. Numerous recent papers (e.g. ) have aimed to shed new light on optimal algorithms.

This manuscript is motivated by the novel geometric descent algorithm of Bubeck, Lee, and Singh . Their scheme is highly geometric, sharing some aspects with the ellipsoid method, and it achieves the optimal linear rate of convergence. Moreover, the geometric descent algorithm often has much better practical performance than accelerated gradient methods; see the discussion in . Motivated by their work, in this paper we propose an intuitive method that maintains a quadratic lower model of the objective function, whose minimal value converges to the true minimum at an optimal linear rate. We will show that the two methods are indeed equivalent in the sense that they produce the same iterate sequence. The quadratic averaging viewpoint, however, has important advantages. First, it immediately yields a comparison with the original accelerated gradient method and cutting plane techniques. Secondly, quadratic averaging motivates a simple strategy for significantly accelerating the method in practice by utilizing accumulated information – a limited memory version of the scheme.

The outline of the paper is as follows. In Section 2, we describe the optimal quadratic averaging framework (Algorithm 1) – the focal point of the manuscript. In Section 3, we propose a limited memory version of Algorithm 1, based on iteratively solving small dimensional quadratic programs. In Section 4, we show that our Algorithm 1 and the geometric descent method of produce the same iterate sequence. Section 5 is devoted to numerical illustrations, in particular showing that the optimal quadratic averaging algorithm with memory can be competitive with L-BFGS. We finish the paper with Section 6, where we discuss the challenges that must be overcome in order to derive proximal extensions. In the final stages of revising this paper, a new manuscript appeared explaining how to overcome exactly these challenges.

Setting y=x+y=x^{+} in the quadratic bound f(y)≤Q(y;x)f(y)\leq Q(y;x) yields the standard inequality

Optimal quadratic averaging

The starting point for our development is the elementary observation that every point xˉ\bar{x} provides a quadratic under-estimator of the objective function, having a canonical form. Indeed, completing the square in the strong convexity inequality f(x)≥q(x;xˉ)f(x)\geq q(x;\bar{x}) yields

Suppose we have now available two quadratic lower-estimators:

Clearly, the minimal values of QAQ_{A} and of QBQ_{B} lower-bound the minimal value of ff. For any λ∈\lambda\in, the average Qλ:=λQA+(1−λ)QBQ_{\lambda}:=\lambda Q_{A}+(1-\lambda)Q_{B} is again a quadratic lower-estimator of ff. Thus we are led to the question:

What choice of λ\lambda yields the tightest lower-bound on the minimal value of ff?

To answer this question, observe the equality

In particular, the average QλQ_{\lambda} has the same canonical form as QAQ_{A} and QBQ_{B}. A quick computation now shows that vλv_{\lambda} (the minimum of QλQ_{\lambda}) is maximized by setting

With this choice of λ\lambda, we call the quadratic function Q‾=vˉ+α2∥⋅−cˉ∥2\overline{Q}=\bar{v}+\frac{\alpha}{2}\|\cdot-\bar{c}\|^{2} the optimal averaging of QAQ_{A} and QBQ_{B}. See Figure 1 for an illustration.

An algorithmic idea emerges. Given a current iterate xkx_{k}, form the quadratic lower-model Q(⋅)Q(\cdot) in (2) with xˉ=xk\bar{x}=x_{k}. Then let QkQ_{k} be the optimal averaging of QQ and the quadratic lower model Qk−1Q_{k-1} from the previous step. Finally define xk+1x_{k+1} to be the minimizer of QkQ_{k}, and repeat. Though attractive, the scheme does not converge at an optimal rate. Indeed, this algorithm is closely related to the suboptimal method in ; see Section 4.1 for a discussion. The main idea behind acceleration, natural in retrospect, is a separation of roles: one must maintain two sequences of points xkx_{k} and ckc_{k}. The points xkx_{k} will generate quadratic lower models as above, while ckc_{k} will be the minimizers of the quadratics. We summarize the proposed method in Algorithm 1. The rule for determining the iterate xkx_{k} by a line search is entirely motivated by the geometric descent method in .

When implementing Algorithm 1, we set xk+=line_search(xk,xk−∇f(xk))x_{k}^{+}=\texttt{line\_search}\left(x_{k},x_{k}-\nabla f(x_{k})\right). This does not impact the analysis as xk+x_{k}^{+} still satisfies the key inequality (1). With this modification, the algorithm does not require β\beta as part of the input, and we have observed that the algorithm performs better numerically.

To aid in the analysis of the scheme, we record the following easy observation.

Suppose that Q‾=vˉ+α2∥⋅−cˉ∥2\overline{Q}=\bar{v}+\frac{\alpha}{2}\|\cdot-\bar{c}\|^{2} is the optimal averaging of the quadratics QA=vA+α2∥⋅−xA∥2Q_{A}=v_{A}+\frac{\alpha}{2}\|\cdot-x_{A}\|^{2} and QB=vB+α2∥⋅−xB∥2Q_{B}=v_{B}+\frac{\alpha}{2}\|\cdot-x_{B}\|^{2}. Then the quantity vˉ\bar{v} is nondecreasing in both vAv_{A} and vBv_{B}. Moreover, whenever the inequality ∣vA−vB∣≤α2∥xA−xB∥2|v_{A}-v_{B}|\leq\frac{\alpha}{2}\|x_{A}-x_{B}\|^{2} holds, we have

Define λ^:=12+vA−vBα∥xA−xB∥2\hat{\lambda}:=\frac{1}{2}+\frac{v_{A}-v_{B}}{\alpha\left\|x_{A}-x_{B}\right\|^{2}}. Notice that we have

If λ^\hat{\lambda} lies in $,equality, equality\bar{\lambda}=\hat{\lambda}$ holds, and then from (3) we deduce

If λ^\hat{\lambda} does not lie in $,thenaneasyargumentshowsthat, then an easy argument shows that\bar{v}islinearinis linear inv_{A}eitherwithslopeoneorzero.Ifeither with slope one or zero. If\hat{\lambda}liesinlies in(0,1)$, then we compute

which is nonnegative because ∣vA−vB∣α∥xA−xB∥2≤12\frac{|v_{A}-v_{B}|}{\alpha\left\|x_{A}-x_{B}\right\|^{2}}\leq\frac{1}{2}. Since vˉ\bar{v} is clearly continuous, it follows that vˉ\bar{v} is nondecreasing in vAv_{A}, and by symmetry also in vBv_{B}. ∎

We now show that Algorithm 1 achieves the optimal linear rate of convergence.

In Algorithm 1, for every index k≥0k\geq 0, the inequalities vk≤f∗≤f(xk+)v_{k}\leq f^{*}\leq f(x_{k}^{+}) hold and we have

Since in each iteration, the algorithm only averages quadratic minorants of ff, the inequalities vk≤f∗≤f(xk+)v_{k}\leq f^{*}\leq f(x_{k}^{+}) hold for every index kk. Set r0=2α(f(x0+)−v0)r_{0}=\frac{2}{\alpha}(f(x_{0}^{+})-v_{0}) and define the quantities rk:=(1−1κ)kr0r_{k}:=\left(1-\frac{1}{\sqrt{\kappa}}\right)^{k}r_{0}. We will show by induction that the inequality vk≥f(xk+)−α2rkv_{k}\geq f(x_{k}^{+})-\frac{\alpha}{2}r_{k} holds for all k≥0k\geq 0. The base case k=0k=0 is immediate, and so assume we have

for some index k−1k-1. Next set vA:=f(xk)−∥∇f(xk)∥22αv_{A}:=f(x_{k})-\frac{\left\|\nabla f(x_{k})\right\|^{2}}{2\alpha} and vB:=vk−1v_{B}:=v_{k-1}. Then the function

is the optimal averaging of QA(x)=vA+α2∥x−xk++∥2Q_{A}(x)=v_{A}+\frac{\alpha}{2}\left\|x-x_{k}^{++}\right\|^{2} and QB(x)=vB+α2∥x−ck−1∥2Q_{B}(x)=v_{B}+\frac{\alpha}{2}\left\|x-c_{k-1}\right\|^{2}. An application of (1) yields the lower bound v^A\hat{v}_{A} on vAv_{A}:

The induction hypothesis and the choice of xkx_{k} yield a lower bound v^B\hat{v}_{B} on vBv_{B}:

Define the quantities d:=∥xk++−ck−1∥d:=\left\|x_{k}^{++}-c_{k-1}\right\| and h:=∥∇f(xk)∥αh:=\frac{\left\|\nabla f(x_{k})\right\|}{\alpha}. We now split the proof into two cases. First assume h2≤rk−12h^{2}\leq\frac{r_{k-1}}{2}. Then we deduce

where the third line follows since 2/κ≤1+1/κ2/\sqrt{\kappa}\leq 1+1/\kappa holds. Hence in this case, the proof is complete.

Next suppose h2>rk−12h^{2}>\frac{r_{k-1}}{2} and let v+α2∥⋅−c∥2v+\frac{\alpha}{2}\|\cdot-c\|^{2} be the optimal average of the two quadratics v^A+α2∥⋅−xk++∥2\hat{v}_{A}+\frac{\alpha}{2}\|\cdot-x_{k}^{++}\|^{2} and v^B+α2∥⋅−ck−1∥2\hat{v}_{B}+\frac{\alpha}{2}\|\cdot-c_{k-1}\|^{2}. By Lemma 2.2, the inequality vk≥vv_{k}\geq v holds. We claim that equality

This follows immediately from Lemma 2.2, once we show 12≥∣v^A−v^B∣αd2\frac{1}{2}\geq\frac{|\hat{v}_{A}-\hat{v}_{B}|}{\alpha d^{2}}. To this end, note first the equality ∣v^A−v^B∣αd2=∣rk−1−h2∣2d2\frac{|\hat{v}_{A}-\hat{v}_{B}|}{\alpha d^{2}}=\frac{|r_{k-1}-h^{2}|}{2d^{2}}. The choice xk=line_search(ck−1,xk−1+)x_{k}=\texttt{line\_search}\left(c_{k-1},x_{k-1}^{+}\right) ensures:

Thus we have h2−rk−1<h2≤d2h^{2}-r_{k-1}<h^{2}\leq d^{2}. Finally, the assumption h2>rk−12h^{2}>\frac{r_{k-1}}{2} implies

Hence we can be sure that (4) holds. Plugging in v^A\hat{v}_{A} and v^B\hat{v}_{B} yields

Hence the proof is complete once we show the inequality

After rearranging, our task simplifies to showing the inequality

Taking derivatives and using inequality (5), one can readily verify that the right-hand-side is nondecreasing in d2d^{2} on the interval d2∈[h2,+∞)d^{2}\in[h^{2},+\infty). Thus plugging in the endpoint d2=h2d^{2}=h^{2} we deduce

Minimizing the right-hand-side over all hh satisfying h2≥rk−12h^{2}\geq\frac{r_{k-1}}{2} yields the inequality

It is instructive to compare optimal averaging (Algorithm 1) with Nesterov’s optimal methods in . For convenience, we record the optimal gradient method following , in Algorithm 2.

Comparing Algorithms 1 and 2, we see that

xkx_{k} is some point on the line between ck−1c_{k-1} and xk−1+x_{k-1}^{+}, and

QkQ_{k} is an average of the previous quadratic Qk−1Q_{k-1} and the strong convexity quadratic lower bound QQ based at xkx_{k}.

As we discuss in Appendix A, we can modify Nesterov’s method so that like in optimal quadratic averaging, we set xk=line_search(ck−1,xk−1+)x_{k}=\texttt{line\_search}\left(c_{k-1},x_{k-1}^{+}\right) in each iteration. After this change, only two differences remain between the schemes:

the initial quadratic Q0Q_{0} is different, and

the averaging parameter is computed differently.

These differences, however, are fundamental. In Algorithm 1, the quadratic Q0Q_{0} lower bounds ff and therefore optimal averaging makes sense; in the accelerated gradient method, Q0Q_{0} does not lower bound ff, and the idea of optimal averaging does not apply.

Optimal quadratic averaging with memory

Each iteration of Algorithm 1 forms an optimal average of the current lower quadratic model with the one from the previous iteration; that is, as stated the scheme has a memory size of one. We next show how the scheme easily adapts to maintaining limited memory, i.e. by averaging multiple quadratics in each iteration. We mention in passing that the authors of left open the question of efficiently speeding up their geometric descent algorithm in practice. One approach of this flavor has recently appeared in [4, Section 4]. The optimal averaging viewpoint, developed here, provides a direct and satisfying alternative. Indeed, computing the optimal average of several quadratics is easy, and amounts to solving a small dimensional quadratic optimization problem.

maintains the same canonical form as each QiQ_{i}.

Define the matrix C=[c1c2…ct]C=\begin{bmatrix}c_{1}&c_{2}&\ldots&c_{t}\end{bmatrix} and vector v=[v1v2…vt]Tv=\begin{bmatrix}v_{1}&v_{2}&\ldots&v_{t}\end{bmatrix}^{T}. Then we have

The Hessian of QλQ_{\lambda} is simply α2I\frac{\alpha}{2}I, and therefore the quadratic Qλ(x)Q_{\lambda}(x) has the form

for some vλv_{\lambda} and cλc_{\lambda}. Notice that cλc_{\lambda} is the minimizer of QλQ_{\lambda}, and by differentiating, we determine that cλ=∑i=1tλici=Cλc_{\lambda}=\sum_{i=1}^{t}\lambda_{i}c_{i}=C\lambda. We then compute

Naturally, we define the optimal averaging of the quadratics QiQ_{i}, with i∈{1,2,…,t}i\in\{1,2,\ldots,t\}, to be QλˉQ_{\bar{\lambda}}, where λˉ\bar{\lambda} is the maximizer of the concave quadratic over the simplex:

There is no closed form expression for λˉ\bar{\lambda}, but one can quickly find it by solving a quadratic program in tt variables, for example by an active set method. Moreover, some thought shows that the matrix CTCC^{T}C can be efficiently updated if one of the centers changes; we omit the details.

We propose an optimal averaging scheme with memory in Algorithm 3. As we see in Section 5, the method performs well numerically. Moreover, the scheme enjoys the same convergence guarantees as Algorithm 1; that is, Theorem 2.3 applies to Algorithm 3, with nearly the same proof (which we omit).

In other words, the scheme iteratively minimizes the (piecewise linear) lower-models fkf_{k} of ff. Coming back to the optimal averaging viewpoint, suppose that QλˉQ_{\bar{\lambda}} is an optimal average of the lower-bounding quadratics QiQ_{i}, for i=1,…,ki=1,\ldots,k. Then we may write

Thus vλˉv_{\bar{\lambda}} is the minimal value of the now different lower-model, max⁡i=1,…,k Qi\max_{i=1,\ldots,k}\,Q_{i}, of ff. Kelley’s method is known to have poor numerical performance and convergence guarantees (e.g. [10, Section 3.3.2]), while Algorithm 3 achieves the optimal linear convergence rate. This disparity is of course based on the two key distinctions: (1) using quadratic lower-models coming from strong convexity instead of linear functions, and (2) maintaining two separate sequences ckc_{k} (centers) and xkx_{k} (sources of lower model updates).

Equivalence to geometric descent

Algorithm 1 is largely motivated by the geometric descent method introduced by Bubeck, Lee, and Singh . In this section, we show the two methods (Algorithm 1 and Algorithm 4) indeed generate an identical iterate sequence.

In turn, taking into account (1) yields the guarantee

A crude upper estimate of the radius above is obtained simply by ignoring the nonnegative term 2α(f(x+)−f∗)\frac{2}{\alpha}\left(f(x^{+})-f^{*}\right). The suboptimal geometric descent method proceeds as follows. Suppose we have available some ball B(c0,R02)B\left(c_{0},R_{0}^{2}\right) containing x∗x^{*}. As discussed, the quadratic lower bound at the center c0c_{0}, namely f∗≥q(x∗,c0)f^{*}\geq q(x^{*},c_{0}), yields another ball B(c0++,(1−1κ)∥∇f(c0)∥2α2)B\left(c_{0}^{++},\left(1-\frac{1}{\kappa}\right)\frac{\left\|\nabla f(c_{0})\right\|^{2}}{\alpha^{2}}\right) containing x∗x^{*}. Geometrically it is clear that the intersection of these two balls must be significantly smaller than either of the individual balls. The following lemma from makes this observation precise; see Figure 2 for an illustration.

An application of Lemma 4.1 yields a new center c1c_{1} with

Repeating the procedure with the new ball B(c1,(1−1κ)R02)B\left(c_{1},\left(1-\frac{1}{\kappa}\right)R_{0}^{2}\right) yields a sequence of centers ckc_{k} satisfying

We note that the centers ckc_{k} and R02R_{0}^{2} of the minimal enclosing balls in Lemma 4.1 are easy to compute; see Algorithm 1 in .

There is a very close connection between finding the minimal enclosing ball of the intersection of two balls and of optimally averaging quadratics. To see this, consider again two quadratics

Let Q‾\overline{Q} be the optimal average of QAQ_{A} and QBQ_{B}. Notice that since QAQ_{A}, QBQ_{B}, and Q‾\overline{Q} lower bound ff, the minimizer x∗x^{*} of ff is guaranteed to lie in the three balls:

where f^\hat{f} is any upper bound on f∗f^{*}. We observe the following elementary fact.

The ball B(cˉ,R2)B\left(\bar{c},R^{2}\right) is precisely the minimal enclosing ball of the intersection B(xA,RA2)∩B(xB,RB2)B\left(x_{A},R_{A}^{2}\right)\cap B\left(x_{B},R_{B}^{2}\right).

Define the quantity λ^=12+vA−vBα∥xA−xB∥2\hat{\lambda}=\frac{1}{2}+\frac{v_{A}-v_{B}}{\alpha\left\|x_{A}-x_{B}\right\|^{2}}. If λ^\hat{\lambda} lies in the unit interval $$, then a quick computation using Lemma 2.2 shows the expressions

Comparing with the recipe [5, Algorithm 1] for computing the minimal enclosing ball, we see that B(cˉ,R2)B\left(\bar{c},R^{2}\right) is the minimal enclosing ball of the intersection B(xA,RA2)∩B(xB,RB2)B\left(x_{A},R_{A}^{2}\right)\cap B\left(x_{B},R_{B}^{2}\right). ∎

2 Optimal geometric descent method

To obtain an optimal method, the authors of observe that the term 2α(f(x+)−f∗)\frac{2}{\alpha}\left(f(x^{+})-f^{*}\right) in the inclusion (6) cannot be ignored. Exploiting this term will require maintaining two sequences ckc_{k} (the centers of the balls) and xkx_{k} (points for generating new balls). Suppose in iteration kk, we know that x∗x^{*} lies in the ball

Consider now an arbitrary point, denoted suggestively by xk+1x_{k+1}. Then (6) implies the inclusion

If we choose xk+1x_{k+1} to satisfy f(xk+1)≤f(xk+)f(x_{k+1})\leq f(x_{k}^{+}) and apply inequality (1) with x=xk+1x=x_{k+1}, we can get a new upper estimate of the initial ball,

It seems clear that if the centers ckc_{k} and xk+1++x_{k+1}^{++} of the two balls in (7) and (8) are “sufficiently far apart”, then their intersection is contained in an even smaller ball. This is the content of following lemma from .

A quick application of this result shows that provided

holds, there exists a new center ck+1c_{k+1} with

One way to ensure that xk+1x_{k+1} satisfies the two key conditions, f(xk+1)≤f(xk+)f(x_{k+1})\leq f(x_{k}^{+}) and inequality (9), is to simply let xk+1x_{k+1} be the minimizer of ff along the line between ckc_{k} and xk+x_{k}^{+}. Trivially this guarantees the inequality f(xk+1)≤f(xk+)f(x_{k+1})\leq f(x_{k}^{+}), while the univariate optimality condition ∇f(xk+1)⊥(ck−xk+1)\nabla f(x_{k+1})\perp(c_{k}-x_{k+1}) means the triangle with vertices xk+1x_{k+1}, xk+1++x_{k+1}^{++}, and ckc_{k} is a right triangle and inequality (9) becomes “the hypotenuse is longer than a leg.” This is exactly the motivation for the line-search procedure in Algorithm 1. Repeating the process yields iterates ckc_{k} that satisfy the optimal linear rate of convergence

The precise method is described in Algorithm 4.

When applying an iterative method to compute xk+1=line_search(ck,xk+)x_{k+1}=\texttt{line\_search}\left(c_{k},x_{k}^{+}\right), one can use the following termination criterion. Check if ckc_{k} satisfies f(ck)≤f(xk+)f(c_{k})\leq f(x_{k}^{+}), then stop and set xk+1:=ckx_{k+1}:=c_{k}. Notice (9) holds trivially with this choice of xk+1x_{k+1}. Else stop with a trial point zz on the line joining ckc_{k} and xk+x_{k}^{+} satisfying f(z)≤f(xk+)f(z)\leq f(x_{k}^{+}) and

We claim that the line search will terminate in finite time, unless line_search(ck,xk+)\texttt{line\_search}\left(c_{k},x_{k}^{+}\right) is the true minimizer of ff. Indeed, since ck≠line_search(ck,xk+)c_{k}\neq\texttt{line\_search}\left(c_{k},x_{k}^{+}\right) (otherwise we would have terminated in the if clause), one can easily check that z=line_search(ck,xk+)z=\texttt{line\_search}\left(c_{k},x_{k}^{+}\right) satisfies the above inequality strictly.

The following theorem shows that Algorithm 1 and Algorithm 4 indeed produce the same iterate sequence.

Given the same initial point x0x_{0}, Algorithm 1 and Algorithm 4 produce the same iterates xkx_{k} and ckc_{k}. Moreover, we have vk=f(xk+)−α2Rk2v_{k}=f(x_{k}^{+})-\frac{\alpha}{2}R_{k}^{2}, where vkv_{k} is the minimum value of the quadratic QkQ_{k} in Algorithm 1 and RkR_{k} is the radius of the ball in Algorithm 4.

Let xkx_{k} and ckc_{k} denote the iterates in Algorithm 1, and let x^k\hat{x}_{k} and c^k\hat{c}_{k} be the iterates in Algorithm 4. We proceed by induction on kk. It follows immediately from the definition of the algorithms that x0=x^0x_{0}=\hat{x}_{0}, c0=c^0c_{0}=\hat{c}_{0}, and v0=f(x0+)−α2R02v_{0}=f(x_{0}^{+})-\frac{\alpha}{2}R_{0}^{2}. Now suppose, as an inductive assumption, xk−1=x^k−1x_{k-1}=\hat{x}_{k-1}, ck−1=c^k−1c_{k-1}=\hat{c}_{k-1}, and vk−1=f(xk−1+)−α2Rk−12v_{k-1}=f(x_{k-1}^{+})-\frac{\alpha}{2}R_{k-1}^{2}. To see the equality xk=x^kx_{k}=\hat{x}_{k}, observe

Let xA=xk++x_{A}=x_{k}^{++}, xB=ck−1x_{B}=c_{k-1}, d=∥xA−xB∥d=\left\|x_{A}-x_{B}\right\|, and define the quantities

Notice that Qk(x)=vk+α2∥x−ck∥2Q_{k}(x)=v_{k}+\frac{\alpha}{2}\left\|x-c_{k}\right\|^{2} is the optimal averaging of QA(x):=vA+α2∥x−xA∥2Q_{A}(x):=v_{A}+\frac{\alpha}{2}\left\|x-x_{A}\right\|^{2} and QB(x):=vB+α2∥x−xB∥2Q_{B}(x):=v_{B}+\frac{\alpha}{2}\left\|x-x_{B}\right\|^{2}, and that B(c^k,Rk2)B(\hat{c}_{k},R_{k}^{2}) is the minimum enclosing ball of the intersection of B(xA,RA2)B(x_{A},R_{A}^{2}) and B(xB,RB2)B(x_{B},R_{B}^{2}). Simple algebra shows the relation

and from the inductive assumption vk−1=f(xk−1+)−α2Rk−12v_{k-1}=f(x_{k-1}^{+})-\frac{\alpha}{2}R_{k-1}^{2}, we also have

Thus, by Proposition 4.2 and the discussion preceding it, we have ck=c^kc_{k}=\hat{c}_{k} and vk=f(xk+)−α2Rk2v_{k}=f(x_{k}^{+})-\frac{\alpha}{2}R_{k}^{2}. This completes the induction. ∎

As we saw in Section 3, computing the optimal averaging of several quadratic functions is simple. On the other hand, it is far from clear how to find the minimum radius ball that encloses the intersection of more than two balls. Indeed, instead the authors of Algorithm 4 in the follow-up work considered a “relaxation” that involves minimizing a self-concordant barrier for the intersection. While revising the current manuscript, we became aware that Beck in [3, Theorem 3.2] proved that the minimum enclosing ball of the intersection of finitely many balls can be computed by solving a convex quadratic program (QP). Namely, Beck showed that the squared radius of the minimal ball enclosing the intersection ⋂i=1tB(ci,ri2)\bigcap^{t}_{i=1}B(c_{i},r_{i}^{2}) is exactly equal to

provided t≤n−1t\leq n-1 and the intersection of the balls has nonempty interior. This QP is exactly the one we derived in Section 3 for the optimal quadratic averaging method with memory. Note that our derivation of the QP in Section 3 was completely elementary; the proof of [3, Theorem 3.2], on the other hand, is much more sophisticated relying on an S-lemma-type result.

Let Q(x)=v+α2∥x−c∥2Q(x)=v+\frac{\alpha}{2}\left\|x-c\right\|^{2} be the optimal averaging of quadratics Qi(x)=vi+α2∥x−ci∥2Q_{i}(x)=v_{i}+\frac{\alpha}{2}\left\|x-c_{i}\right\|^{2} for i=1,…,ti=1,\ldots,t with t<nt<n. Fix a real number s≥vis\geq v_{i} for all i=1…,ti=1\ldots,t and define the balls Bi:={Qi≤s}B_{i}:=\{Q_{i}\leq s\}. Then provided that the intersection ⋂i=1tBi\bigcap_{i=1}^{t}B_{i} has a nonempty interior, the ball B:={Q≤s}B:=\{Q\leq s\} is the minimal enclosing ball of the intersection ⋂i=1tBi\bigcap_{i=1}^{t}B_{i}.

Let R2R^{2} be the square radius of BB and let Ri2R_{i}^{2} be the square radius of BiB_{i}, for i=1,…,ti=1,\ldots,t. Using Proposition 3.1, we deduce

The center of BB is c=∑i=1tλicic=\sum_{i=1}^{t}\lambda_{i}c_{i} where λ\lambda is the minimizer of the expression above. Comparing with [3, Theorem 3.2], we see that BB is exactly the minimum radius ball enclosing the intersection ⋂i=1tBi\bigcap_{i=1}^{t}B_{i}. ∎

Numerical examples

In this section, we numerically illustrate optimality gap convergence in Algorithm 1, and explore how Algorithm 3, the variant of Algorithm 1 with memory, aids performance. To this end, we focus on minimizing two functions: the regularized logistic loss function

(see [10, Section 2.1.2 and Section 2.1.4]). For the logistic regression examples, we use the LIBSVM data sets a1a (N=1605N=1605, n=123n=123) and colon-cancer (N=62N=62, n=2000n=2000).

From inequality (2), we get the well-known optimality gap estimate for strongly convex functions

How does this estimate compare with the gaps gk:=f(xk+)−vkg_{k}:=f(x_{k}^{+})-v_{k} generated by Algorithm 1? Obviously the answer depends on the point where we evaluate the gap estimate in (10). Nonetheless, we can say that the gaps gkg_{k} are tighter than the gaps Gk:=∥∇f(xk)∥22αG_{k}:=\frac{\left\|\nabla f(x_{k})\right\|^{2}}{2\alpha}. Indeed, by the definition of vkv_{k}, we trivially have vk≥f(xk)−Gkv_{k}\geq f(x_{k})-G_{k} and thus

On a relative scale, the difference between gkg_{k} and GkG_{k} is striking; see Figure 3. Notice that GkG_{k} is an optimality gap estimate before averaging, and gkg_{k} is an optimality gap estimate after averaging; the plots in Figure 3 show that optimal quadratic averaging makes great relative progress per iteration.

In Figure 4, we plot gkg_{k}, the true gaps f(xk+)−f∗f(x_{k}^{+})-f^{*}, and the gap estimate in (10) at xkx_{k}, xk+x_{k}^{+}, and ckc_{k} for the “world’s worst” function and the logistic loss function. The true gaps are the tightest, albeit unknown at runtime. Surprisingly, the gaps ∥∇f(ck)∥22α\frac{\left\|\nabla f(c_{k})\right\|^{2}}{2\alpha} are quite bad: several orders of magnitude larger than gkg_{k}. So even though the centers ckc_{k} may appear to be the focal points of the algorithm, the points xk+x_{k}^{+} are the ones to monitor in practice. Finally we note that the gaps gkg_{k} and ∥∇f(xk+)∥22α\frac{\left\|\nabla f(x_{k}^{+})\right\|^{2}}{2\alpha} are comparable, even though gkg_{k} does not rely on gradient information at xk+x_{k}^{+}.

2 Optimal quadratic averaging with memory

To demonstrate the effectiveness of optimal quadratic averaging with memory, we use it to minimize the logistic loss (see Figure 5). The speedup over the memoryless method is significant, even when taking into account the extra work per iteration needed to solve the small dimensional quadratic subproblems. In Figure 6, we compare Algorithm 3 with L-BFGS. The two schemes are on par with each other, and neither is better than the other in all cases.

We noticed that the small dimensional quadratic program in Algorithm 3 must be solved to high accuracy, especially on poorly conditioned problems; an active-set method works well. Accuracy in the line search is less important. Minimizing the one-dimensional function r↦f(x+rd)r\mapsto f(x+rd), with ∥d∥=1\left\|d\right\|=1, to within 10−410^{-4} accuracy in rr works well in general. In Figure 9, we show how line search accuracy affects Algorithm 1.

Comments on proximal extensions

It is natural to try to extend geometric descent and optimal quadratic averaging to a proximal setting. For the sake of concreteness, let us focus on geometric descent. We can easily extend the suboptimal version of the algorithm to the proximal setting, but some difficulties arise when accelerating the method. Suppose we are interested in solving the problem

is easily computable. In the analysis of first-order methods for such problems, the gradient mapping Gt(x):=1t(x−proxth(x−t∇g(x)))G_{t}(x):=\frac{1}{t}\left(x-\text{prox}_{th}(x-t\nabla g(x))\right) plays the role of the usual gradient. The following is a standard estimate; see for example [10, Section 2.2.3]. We provide a proof for completeness.

Appealing to β\beta-smoothness of gg, we deduce

Furthermore, strong convexity of gg implies

Finally, using the observation that Gt(x)−∇g(x)G_{t}(x)-\nabla g(x) belongs to ∂h(x+)\partial h(x^{+}), we have

If we let y=x∗y=x^{*} in Lemma 6.1 and rearrange we get

How should we choose the step length tt? A simple approach is to choose tt to minimize the quantity 1α2−2αt+βαt2\frac{1}{\alpha^{2}}-\frac{2}{\alpha}t+\frac{\beta}{\alpha}t^{2}, i.e., set t=1βt=\frac{1}{\beta}. With this choice of tt, we deduce the inclusion

where x++=x−1αG1/β(x)x^{++}=x-\frac{1}{\alpha}G_{1/\beta}(x) is a long step and x+=x−1βG1/β(x)x^{+}=x-\frac{1}{\beta}G_{1/\beta}(x) is a short step. A proximal version of the suboptimal geometric descent follows easily from Lemma 4.1.

To accelerate the proximal geometric descent algorithm we assume in iteration kk that x∗x^{*} lies in some ball

We then consider a second minimizer enclosing ball derived from information at some point xk+1x_{k+1}:

Following the same pattern as in Section 4.2, if we choose xk+1x_{k+1} to satisfy f(xk+1)≤f(yk)f(x_{k+1})\leq f(y_{k}) and appeal to the smoothness inequality f(xk+1+)≤f(xk+1)−12β∥G1/β(xk+1)∥2f(x_{k+1}^{+})\leq f(x_{k+1})-\frac{1}{2\beta}\left\|G_{1/\beta}(x_{k+1})\right\|^{2}, we deduce the inclusion

By Lemma 4.3 there is a new center ck+1c_{k+1} with

provided the old centers xk+1++x_{k+1}^{++} and ckc_{k} are far apart; specifically, we must be sure that the inequality

How do we choose xk+1x_{k+1} to satisfy both f(xk+1)≤f(yk)f(x_{k+1})\leq f(y_{k}) and ∥xk+1++−ck∥2≥∥G1/β(xk+1)∥2α2\left\|x_{k+1}^{++}-c_{k}\right\|^{2}\geq\frac{\left\|G_{1/\beta}(x_{k+1})\right\|^{2}}{\alpha^{2}}? The desired xk+1x_{k+1} does exist; for example, xk+1=x∗x_{k+1}=x^{*} is such a point. In the proximal setting, it is not clear how to choose xk+1x_{k+1} to ensure these two inequalities (even for specific problem classes). This is an interesting topic for future research.

We thank the anonymous referee for useful suggestions, which undoubtedly improved the quality of the paper. We also thank Stephen J. Wright for pointing out an important typo in the proof of Theorem 2.3 in an early version of the manuscript.

References

Appendix A Exact line search in accelerated gradient descent

Nesterov’s method is based on an estimate sequence; that is, a sequence of functions QkQ_{k} and nonnegative numbers Λk\Lambda_{k} with

that is, f(yk)f(y_{k}) approaches f∗f^{*} with error proportional to Λk\Lambda_{k}, see .

The quadratics in Algorithm 2 (with appropriately chosen Λk\Lambda_{k}) form an estimate sequence. To explain, for k≥1k\geq 1, pick vectors xkx_{k} and numbers λk∈(δ,1)\lambda_{k}\in(\delta,1) with δ>0\delta>0. Next, recursively define

Then the quadratics QkQ_{k} and numbers Λk=∏j=1k(1−λj)\Lambda_{k}=\prod_{j=1}^{k}(1-\lambda_{j}) are an estimate sequence for ff. Nesterov’s method is designed to ensure the inequality f(xk+)≤vkf(x_{k}^{+})\leq v_{k} with the added optimal rate condition λk≥αβ\lambda_{k}\geq\sqrt{\frac{\alpha}{\beta}}.

The scheme in Algorithm 2 with xk=line_search(ck−1,xk−1+)x_{k}=\texttt{line\_search}\left(c_{k-1},x_{k-1}^{+}\right) also guarantees these conditions. Trivially we have f(x0+)≤v0f(x_{0}^{+})\leq v_{0}. Assume, for induction, that we have f(xk−1+)≤vk−1f(x_{k-1}^{+})\leq v_{k-1}. From [10, Lemma 2.2.3], we know

Since xk=line_search(ck−1,xk−1+)x_{k}=\texttt{line\_search}\left(c_{k-1},x_{k-1}^{+}\right), we have f(xk)≤f(xk−1+)≤vk−1f(x_{k})\leq f(x_{k-1}^{+})\leq v_{k-1} and ⟨∇f(xk),ck−1−xk⟩=0\left\langle\nabla f(x_{k}),c_{k-1}-x_{k}\right\rangle=0, and therefore

Provided we set γ0≥α\gamma_{0}\geq\alpha, we get the optimal rate condition λk=γkβ≥αβ\lambda_{k}=\sqrt{\frac{\gamma_{k}}{\beta}}\geq\sqrt{\frac{\alpha}{\beta}}.