A Robust Accelerated Optimization Algorithm for Strongly Convex Functions

Saman Cyrus, Bin Hu, Bryan Van Scoy, Laurent Lessard

Introduction

Consider the unconstrained optimization problem

For smooth and strongly convex ff, the GM with a well-chosen stepsize converges linearly to the optimizer . That is, for some c≥0c\geq 0 and ρ∈[0,1)\rho\in[0,1), we have

For example, the standard choice α=1/L\alpha=1/L leads to a linear rate ρ=1−mL\rho=1-\frac{m}{L}, while the choice α=2L+m\alpha=\frac{2}{L+m} results in the improved linear rate ρ=L−mL+m\rho=\frac{L-m}{L+m}.

The issue with the Gradient Method, however, is that the convergence rate is slow, especially for ill-conditioned problems where the ratio Lm\frac{L}{m} is large. A common method of accelerating convergence is to use momentum. A well-established momentum algorithm for smooth and strongly convex ff is Nesterov’s Fast Gradient MethodAlso called Neterov’s accelerated gradient method., (FGM) described by the iteration

The FGM tuned with α=1L\alpha=\tfrac{1}{L} and β=L−mL+m\beta=\tfrac{\sqrt{L}-\sqrt{m}}{\sqrt{L}+\sqrt{m}} converges with rate ρ2<1−m/L\rho^{2}<1-\sqrt{m/L}, which is faster than the GM rateA numerical study in revealed that the standard rate bound for FGM derived in is conservative. Nevertheless, the bound has a simple algebraic form and is asymptotically tight.. The rate can be improved to ρ=1−m/L\rho=1-\sqrt{m/L} using an accelerated algorithm called the Triple Momentum Method . This is the fastest known worst-case convergence rate for this class of problems.

Robustness issues arise naturally in many optimization problems. For example, achieving the above rates associated with each first-order method requires knowledge of LL and mm, which may not be accurately accessible in practice. In addition, the gradient evaluation can be inexact for certain applications . These issues motivate the need for accelerated first-order methods that are robust to underlying design assumptions.

As observed in [3, §5.2], optimization algorithm design involves a tradeoff between performance and robustness. For example, consider stepsize tuning for the GM. Using α=2L+m\alpha=\frac{2}{L+m} optimizes the convergence rate, but makes the algorithm fragile to gradient noise. The more conservative choice α=1L\alpha=\frac{1}{L} results in slower convergence, but more robustness to noise. This is consistent with the intuition that a smaller stepsize can improve the algorithm’s robustness at the price of degrading its performance. For momentum methods, exploiting the tradeoff between performance and robustness is less straightforward, since one has to tune multiple algorithm parameters in a coupled manner to achieve acceleration. This tradeoff is exploited in for first-order methods applied to smooth convex problems. In this work, we design a first-order method that exploits the tradeoff between robustness and performance for smooth strongly convex problems.

The condition ratio is defined as \kappa\mathrel{\mathchoice{\vbox{\hbox{\displaystyle:}}}{\vbox{\hbox{\textstyle:}}}{\vbox{\hbox{\scriptstyle:}}}{\vbox{\hbox{\scriptscriptstyle:}}}{=}}L/m.

Main result

where α\alpha, β\beta, and γ\gamma depend directly on the parameter ρ\rho as

We now state the key convergence property of the Robust Momentum Method in the noise-free case.

Suppose f∈F(m,L)f\in\mathcal{F}(m,L) with 0<m≤L0<m\leq L and let x⋆x_{\star} be the unique minimizer of ff. Given the parameter ρ∈[1−1/κ, 1−1/κ]\rho\in[1-1/\sqrt{\kappa},\,1-1/\kappa], the Robust Momentum Method (2) with parameter tuning (3) satisfies the bound

where c>0c>0 is a constant that does not depend on kk.

The proof of Theorem 1 is provided in Section 2.2. Theorem 1 states that ρ\rho directly controls the worst-case convergence rate of the Robust Momentum Method. We will see in Section 3 that although increasing ρ\rho makes the algorithm slower, it also makes it more robust to gradient noise. In particular,

The minimum value is ρ=1−1/κ\rho=1-1/\sqrt{\kappa}. This is the fastest achievable convergence rate and also leads to the most fragile algorithm. This choice recovers the Triple Momentum Method .

The maximum value is ρ=1−1/κ\rho=1-1/\kappa. This is the slowest achievable convergence rate and also leads to the most robust algorithm. This choice recovers the Gradient Method with stepsize α=1/L\alpha=1/L.

To see why this last case reduces to the Gradient Method, substitute ρ=1−1/κ\rho=1-1/\kappa into (2) and (3). Then, (2a) reduces to yk+1=yk−1L∇ ⁣f(yk)y_{k+1}=y_{k}-\tfrac{1}{L}\nabla\!f(y_{k}).

2 Convergence rate proof

In this section, we derive a proof for Theorem 1. The approach that follows is similar to the one used in , with one important difference. In addition to proving a rate bound as in , we also derive a Lyapunov function that yields intuition for the algorithm’s behavior and robustness properties.

The following lemma proves a key property of strongly convex functions. Parts of this result appear in and we repeat them here for completeness.

If we define q_{k}\mathrel{\mathchoice{\vbox{\hbox{\displaystyle:}}}{\vbox{\hbox{\textstyle:}}}{\vbox{\hbox{\scriptstyle:}}}{\vbox{\hbox{\scriptscriptstyle:}}}{=}}(L-m)g(y_{k})-\tfrac{1}{2}\lVert{\nabla\!g(y_{k})}\rVert^{2}, then

Using the same definitions as above, the following inequality holds for any 0≤ρ≤10\leq\rho\leq 1,

where the inequality follows from applying Proposition 2 with (f,x,y)↦(g,yk,x⋆)(f,x,y)\mapsto(g,y_{k},x_{\star}). To prove Item 3, begin with the case ρ=1\rho=1. Using a similar argument to the one used to prove Item 2,

where the inequality follows from applying Proposition 2 with (f,x,y)↦(g,yk,yk−1)(f,x,y)\mapsto(g,y_{k},y_{k-1}). By combining the two previous results, we have

Our next lemma provides a key algebraic property of the Robust Momentum Method (2). This result makes no assumptions about ff.

Suppose {uk,xk,yk}\{u_{k},x_{k},y_{k}\} is any sequence of vectors satisfying the constraints

where (α,β,γ)(\alpha,\beta,\gamma) are given by (3), and thus depend on the parameters 0<m≤L0<m\leq L, \kappa\mathrel{\mathchoice{\vbox{\hbox{\displaystyle:}}}{\vbox{\hbox{\textstyle:}}}{\vbox{\hbox{\scriptstyle:}}}{\vbox{\hbox{\scriptscriptstyle:}}}{=}}L/m, and ρ∈(0,1)\rho\in(0,1). Define z_{k}\mathrel{\mathchoice{\vbox{\hbox{\displaystyle:}}}{\vbox{\hbox{\textstyle:}}}{\vbox{\hbox{\scriptstyle:}}}{\vbox{\hbox{\scriptscriptstyle:}}}{=}}(1-\rho^{2})^{-1}\left(x_{k}-\rho^{2}x_{k-1}\right) for k≥0k\geq 0. Then the following algebraic identity holds for k≥1k\geq 1,

where the constants λ\lambda and ν\nu are defined as

Proof. The algebraic identity may be verified by direct substitution of (3), (5), (7), and (8) into (6). Specifically, the constraints (5) allow us to express zk+1z_{k+1}, zkz_{k}, yky_{k}, yk−1y_{k-1}, uku_{k}, and uk−1u_{k-1} as linear functions of xkx_{k}, xk−1x_{k-1}, xk−2x_{k-2}, and uku_{k}. Upon doing so, the resulting expression becomes identically zero. To express uk−1u_{k-1} as required, rearrange the first equation of (5) to obtain the expression uk−1=α−1((1+β)xk−1−βxk−2−xk)u_{k-1}={\alpha}^{-1}((1+\beta)x_{k-1}-\beta x_{k-2}-x_{k}).

The algebraic identity (6) has three main terms. We will see how each serves a role in explaining the convergence and robustness properties of our algorithm. We are now ready to prove Theorem 1.

Iterating this relationship, we find that Vk+1≤ρ2k V1V_{k+1}\leq\rho^{2k}\,V_{1}. The reason we do not iterate down to zero is because VkV_{k} is not defined at k=0k=0. Substituting the definitions and simplifying, we obtain the bound

The bound (11) therefore captures two effects. As we increase ρ\rho, the linear rate ρk\rho^{k} becomes slower and the constant factor in the rate bound also grows.

Control design interpretations

In this section, we cast the problem of algorithm analysis as a robust control problem. Specifically, we can view the problem of algorithm analysis as being equivalent to solving a Lur’e problem . The Lur’e setup is illustrated in Figure 1, where a linear dynamical system GG (13) is in feedback with a static nonlinearity ϕ\phi.

The Robust Momentum Method (as well as the Fast Gradient Method and ordinary Gradient Method) can be written in this way by setting ϕ=∇ ⁣f\phi=\nabla\!f and choosing AA, BB, and CC appropriately. For example, the Robust Momentum Method (2) is given by

Here, we shifted all signals so they are measured relative to the steady-state value x⋆x_{\star} and therefore assumed that ∇ ⁣f(0)=0\nabla\!f(0)=0. We also assumed without loss of generality that uku_{k} and yky_{k} are scalars. This interpretation was used in to provide a unified analysis framework.

Traditionally, Lur’e systems were analyzed in the frequency domain rather than the time domain. For the case of the Robust Momentum Method, the (discrete-time) transfer function of the linear block is given by

It was observed in Section 2.1 that the Robust Momentum Method becomes the Gradient Method if ρ=1−1/κ\rho=1-1/\kappa. This fact can be directly verified using the transfer function. Substituting this ρ\rho and the parameter values (3) into (14), there is a pole-zero cancellation and we obtain G(z)=−1L(z−1)G(z)=\frac{-1}{L(z-1)}, which is the transfer function for the Gradient Method with stepsize α=1L\alpha=\frac{1}{L}.

Continuing with the frequency-domain interpretation, Lur’e systems can be analyzed using the formalism of Integral Quadratic Constraints (IQCs) . To this end, the nonlinearity is characterized by a quadratic inequality that holds between its input and output

where y^\hat{y} and u^\hat{u} are the zz-transforms of {yk}\{y_{k}\} and {uk}\{u_{k}\}, respectively, and Π(z)\Pi(z) is a para-Hermitian matrix. For convenience, we use a loop-shifting transformation to move the nonlinearity ϕ=∇ ⁣f\phi=\nabla\!f from the sector (m,L)(m,L) to the sector (0,κ−1)(0,\kappa-1). We also scale the frequency variable zz by a factor of ρ\rho so that we can reduce the problem of certifying exponential stability (finding a linear rate) to that of certifying BIBO stability. This procedure is described in .

The nonlinearity of interest is sector-bounded and slope-restricted because it is the gradient of a function g∈F(0,κ−1)g\in\mathcal{F}(0,\kappa-1). We may therefore represent the nonlinearity with a Zames–Falb IQC as in , leading to

Graphical design for robustness.

The frequency-domain condition (16) can provide useful intuition for the design of robust accelerated optimization methods. We can visualize different algorithms by choosing the parameters α,β,γ\alpha,\beta,\gamma appropriately in (15).

In Figure 2 (left panel), we show the Nyquist plot for the Gradient Method using the sector IQC . To this effect, we set β=γ=0\beta=\gamma=0 and use either α=2L+m\alpha=\tfrac{2}{L+m} or α=1L\alpha=\tfrac{1}{L}. As we increase ρ\rho, the Nyquist plots become ellipses in the left half-plane. At the fastest certifiable rate (smallest ρ\rho), the plots become vertical lines. When α=2L+m\alpha=\tfrac{2}{L+m}, the vertical line coincides with the imaginary axis, whereas when α=1L\alpha=\tfrac{1}{L}, the vertical line is shifted left. This result confirms our intuition that since the imaginary axis is the stability boundary, robust stability is achieved as the Nyquist contour moves further left, away from the boundary.

The Robust Momentum Method (2) was designed such that the Nyquist diagram forms a vertical line passing through the point (−ν,0)(-\nu,0). In other words, we solved for (α,β,γ)(\alpha,\beta,\gamma) such that (16) holds with the right-hand side replaced by −ν-\nu. Constraining the Nyquist plot as such directly leads to the choice (3) with ν\nu related to ρ\rho via (8). In Figure 2 (right panel), we show the Nyquist plot for the Robust Momentum Method using the Zames–Falb IQC (for ν=0\nu=0 and ν=12\nu=\tfrac{1}{2}). We also show Nyquist plots that certify a convergence rate of ρ\rho that is larger than the corresponding algorithm parameter. This leads to ellipses as with the Gradient Method. Note that although the RMM and GM plots look similar, the RMM ρ\rho-values are generally smaller due to acceleration. In contrast, the FGM (center panel) does not produce a vertical line in the Nyquist plot but still touches the stability boundary at the optimal ρ\rho.

Further robustness interpretations.

The parameter ν\nu can be interpreted as the input feed-forward passivity index (IFP) , which is a measure of the shortage or excess of passivity of the system F(z)F(z) defined above. In the frequency domain, the discrete-time definition of the IFP index is given byMost sources use a negative feedback convention. The definition we give in (17) uses the positive feedback convention.

We can also interpret ν\nu as a robustness margin in the time domain using the Lyapunov function defined in (8). In the proof of Theorem 1, when we substitute the definition for VkV_{k} into (9), we obtain

Proving the desired rate bound only requires (10) to hold, so the term ν ∥∇ ⁣g(yk)∥2\nu\,\lVert{\nabla\!g(y_{k})}\rVert^{2} can be interpreted as an additional margin that ensures the inequality Vk+1≤ρ2VkV_{k+1}\leq\rho^{2}V_{k} will hold even if underlying assumptions such as exactness in gradient evaluations or accurate knowledge of LL and mm are violated. As we increase ρ\rho, the linear rate becomes slower, but ν\nu also increases via (8), which serves to increase the robustness margin in the inequality (10).

Robustness to gradient noise

To find the worst-case performance, we adopt the methodology from [3, Eq. 5.1]. There, the authors formulate a linear matrix inequality parameterized by ρ^\hat{\rho} and δ\delta whose feasibility provides a sufficient condition for convergence with linear rate ρ^\hat{\rho}.

In Figure 3, we plot the computed convergence rate as a function of noise strength δ\delta for the Gradient Method, Fast Gradient Method, and Robust Momentum Method. Note that the worst-case rate in closed form for the Gradient Method is given in .

First, consider the Robust Momentum Method. When ν=0\nu=0 and there is no gradient noise (δ=0\delta=0), the method achieves the fast convergence rate 1−1/κ1-1/\sqrt{\kappa}. Increasing the noise level above δ>0.13\delta>0.13, however, leads to a loss of convergence guarantee. As we increase ν\nu, the convergence rate becomes slower but the method is capable of tolerating larger noise levels. In the limiting case as ν=1−12κ\nu=1-\frac{1}{2\kappa} the Robust Momentum Method becomes the Gradient Method with α=1L\alpha=\frac{1}{L} (dashed black line).

It is interesting to note that the Fast Gradient Method has a faster convergence bound than the Robust Momentum Method for noise levels 0.26<δ<0.410.26<\delta<0.41. However, the Fast Gradient Method is also unstable for δ>0.5\delta>0.5 while the Robust Momentum Method can be tuned so that it converges with noise levels up to δ→1\delta\to 1.

Numerical simulations.

To illustrate the noise robustness properties of different tunings of the Robust Momentum Method, we compared it to the Fast Gradient Method when applied to a simple two-dimensional quadratic function. We used the gradient

where the gradient noise is rk=−δ ∇ ⁣f(yk)r_{k}=-\delta\,\nabla\!f(y_{k}). See Figure 4. The RMM with ν=0\nu=0 has the fastest convergence rate in the noiseless case (δ=0\delta=0), but quickly diverges when noise is present. The FGM is more robust to noise, but also diverges when the noise magnitude δ\delta is too large. The RMM with ν=0.55\nu=0.55 remains stable for large amounts of noise, although in the absence of noise the convergence rate is slower than both other methods.

References