A systematic approach to Lyapunov analyses of continuous-time models in convex optimization

Céline Moucer, Adrien Taylor, Francis Bach

Introduction

Convex optimization is an important tool in the numerical analyst toolbox. It serves, among others, for framing modeling problems in data science and signal processing. A number of convex optimization problem take the form:

where ff is convex, differentiable, and x∈Rdx\in\mathbf{R}^{d} contains the variables of the model. First-order methods are very popular to solve these problems, due to their attractive low cost per iteration, and to the fact that data science applications typically do not require very accurate solutions . Gradient descent is a common first-order method, which starts from a point x0∈Rdx_{0}\in\mathbf{R}^{d}, its iterates are given by the simple recursion

where γ>0\gamma>0 is a step size. Denoting X˙t=ddtXt\dot{X}_{t}=\frac{d}{dt}X_{t}, gradient descent with small step sizes γ\gamma is directly related to the so-called gradient flow:

where the solution XtX_{t} of the ODE verifies Xtk≈xkX_{t_{k}}\approx x_{k} with the identification tk=γkt_{k}=\gamma k. In numerical integration, gradient descent (2) is also known as the Euler explicit scheme for integrating the gradient flow. Recently, Su et al. have interpreted Nesterov’s accelerated gradient in a similar fashion through its continuous version, paving the way to several continuous analyses of accelerated methods .

where σ(Xt)\sigma(X_{t}) is a noise parameter connected to parameters of the method, that was further developed by Shi et al. . This connection has raised many questions regarding approximate equivalences between optimization methods and continuous-time models, and tools for analyzing convergence speeds of discrete methods. Usually, gradient flows and first-order methods are studied via worst-case convergence properties, that have to be verified for any function of a given class, and any trajectory generated by the ODE or the optimization method. In many cases, continuous approaches seem to allows for shorter and simpler proofs, together with intuitions on what can be expected from optimization methods.

The analysis of continuous-time models often relies on Lyapunov stability arguments, as in system theory and physics, where energy dissipation plays a crucial role. The existence of such Lyapunov functions provides direct convergence proof for ODEs under consideration. The main challenge in the Lyapunov approach is to find a suitable function that is decreasing along all trajectories generated by an ODE.

From an outsider point of view, these analyses are often seen as complicated and technical to reach. In this work, we remedy this problem by extending the systematic approach based on semidefinite programming (SDP) developed by Drori and Teboulle for certifying convergence of optimization methods. This technique is referred as “performance estimation problems” (PEPs). The main contribution of this work is to provide a tool for simultaneously analyzing convergence of continuous-time models, and constructing Lyapunov functions suited to gradient flows in a systematic way, using small-sized SDPs reformulations. Furthermore, this procedure benefits from tightness properties, meaning that the feasibility of the SDP allows to conclude about the existence of some Lyapunov functions.

When dealing with convergence rates of gradient flows, many proofs typically rely on a Lyapunov function. In control theory, such functions are common for studying stability of dynamical systems .

Given a trajectory XtX_{t} , we call V:Rd→R\mathcal{V}:\mathbf{R}^{d}\rightarrow\mathbf{R} a Lyapunov function if it is differentiable and satisfies the conditions:

ddtV(Xt)⩽0\frac{d}{dt}\mathcal{V}(X_{t})\leqslant 0.

Given an ODE starting from x0x_{0} and a class of functions F\mathcal{F}, a function V(⋅)\mathcal{V}(\cdot) is a Lyapunov function if the inequality ddtV(Xt)⩽0\frac{d}{dt}\mathcal{V}(X_{t})\leqslant 0 is verified for all trajectories XtX_{t} generated by ODEs originating from functions f∈Ff\in\mathcal{F}. There exist similar definitions of Lyapunov functions for discrete optimization methods .

Lyapunov functions are suited to deriving both linear and sublinear convergence rates. When looking for linear convergence rates (as we may expect for strongly convex functions), the third condition is typically replaced by ddtV(Xt)⩽−τV(Xt)\frac{d}{dt}\mathcal{V}(X_{t})\leqslant-\tau\mathcal{V}(X_{t}), where τ\tau depends on the class of functions and on the ODE.

With this approach, convergence guarantees highly depend on the choice of Lyapunov functions. For a specific ODE and class of functions F\mathcal{F}, there are often multiple choices of valid Lyapunov functions. In this work, we look for Lyapunov functions in a class of quadratic functions that is popular both in the discrete and continuous time literature.

2 Prior works

Lyapunov functions are common for analyzing continuous and discrete time models in convex optimization. Convergence proofs for Nesterov’s accelerated gradient method typically rely on such Lyapunov functions , [10, Theorem 4.8]. In the recent work , the authors proposed Lyapunov-based analyses for many first-order methods, for linear and sublinear convergence rates. Continuous-time versions of optimization methods also often involve Lyapunov arguments, such as Nesterov’s accelerated gradient flow introduced in , and its high-resolution ODEs for strongly convex functions proposed in , or accelerated mirror descent whose continuous dynamics was analyzed in .

Different techniques were developed to compute suitable Lyapunov functions. The authors of proposed an approach based on Bregman Lagrangian for accelerated methods in potentially non-Euclidean settings, further developed in . directly derived Lyapunov functions from Hamiltonian equations describing dynamics of ODEs. Using similar conservation laws in a dilated coordinate system, also generated Lyapunov functions in a principled way.

Given a class of functions and an optimization method, proving a convergence rate mostly consists in combining inequalities characterizing the class of functions at hand. Recently, the automated search for combination of inequalities formulated as semidefinite program was formalized by Drori and Teboulle , and led to the notion of performance estimation problems. Their work was followed up in to provide worst-case bounds in a principled way, and extended to the Lyapunov framework . A competing strategy inspired by control theory was developed by , where Lyapunov functions for discrete-time models are constructed using integral quadratic constraints (IQCs) and semidefinite programming; a similar approach was applied to continuous-time models in . Connections between Lyapunov functions obtained via the IQC framework in continuous and discrete-time, were later highlighted by .

For stochastic differential equations (SDEs), convergence proofs can also be obtained through the Lyapunov approach, together with Ito’s calculus. analyzed both SGD, SAGA , and SVRG , for some well-chosen Lyapunov functions. extended the framework of to the stochastic setting. To the best of our knowledge, a systematic way of verifying a Lyapunov functions in the stochastic setting has not been developed yet.

3 Contributions and organization

In this work, we are concerned with worst-case convergence analyses of ordinary and stochastic differential equations, for modeling optimization methods. We propose a principled approach to worst-case analyses based on Lyapunov functions, SDPs and Ito’s calculus.

In Section 2, we extend the performance estimation approach developed for optimization methods to gradient flows, that originates from a (possibly strongly) convex function. In short, we find Lyapunov functions as feasible points of certain linear matrix inequalities (LMIs). Building on the first part of this work for ODEs, we analyze continuous versions of stochastic optimization algorithms. All codes for numerical results are provided at https://github.com/CMoucer/PEP_ODEs.

Section 3 studies properties of trajectories generated by SDEs, as approximations to stochastic gradient methods. We obtain a simple version of the trade-off between forgetting the initial conditions and diminishing the noise, with and without averaging. It appears that decreasing step sizes, together with a non-uniform version of averaging, allows to reach an optimal trade-off. Our results match those obtained for the stochastic gradient method, in a compact way compared with discrete analyses.

In Section 4, we prove that accelerated gradient flows require diminishing step sizes to converge in the stochastic setting. In contrast to first-order stochastic gradient flow, averaging does not preserve convergence for fixed step size.

4 Assumptions

Throughout this work, functions to be minimized are convex (see Problem 1). Under this assumption, stationary points are global minimizers. We restrict ourselves to continuous-time versions of gradient descent, accelerated gradient descent and stochastic gradient descent. Such methods gather information about functions to be minimized by evaluating its (sub)gradient at past iterates.

Let us recall a few basic definitions and properties characterizing the classes of functions under consideration within the next sections. A function f:Rd→Rf:\mathbf{R}^{d}\rightarrow\mathbf{R} is convex if for all x,y∈Rdx,y\in\mathbf{R}^{d}, and for all λ∈\lambda\in, f(λx+(1−λ)y)⩽λf(x)+(1−λ)f(y)f(\lambda x+(1-\lambda)y)\leqslant\lambda f(x)+(1-\lambda)f(y). We consider in particular the class of convex closed proper (CCP) functions (i.e., functions whose epigraphs are non-empty closed convex sets). For simplicity, we assume in addition differentiability of ff, even if results do not require it for convex gradient differential inclusions [4, Section 3.2]. Then, ff is convex if and only if for all x,y∈Rdx,y\in\mathbf{R}^{d}, f(y)⩾f(x)+⟨∇f(x),y−x⟩f(y)\geqslant f(x)+\langle\nabla f(x),y-x\rangle. Smoothness is a common assumption for analyzing optimization methods, that limits the growth rate of the function. A function ff is LL-smooth if the gradient is LL-Lipschitz, that is if for any x,yx,y,

A differentiable function ff is μ\mu-strongly convex if for any x,y∈Rdx,y\in\mathbf{R}^{d} it satisfies

Strong convexity ensures the function is not too flat, and the unicity of the minimizer x⋆x_{\star}. We denote by Fμ,L\mathcal{F}_{\mu,L} the family of LL-smooth μ\mu-strongly closed convex proper functions, with 0⩽μ⩽L⩽+∞0\leqslant\mu\leqslant L\leqslant+\infty. Weaker assumptions than strong convexity are also encountered in the literature for analyzing gradient algorithms, and leads to similar convergence guarantees. Among them, Łojasiewicz introduced the Łojasiewicz inequality, under which Polyak [28, Theorem 4] showed linear convergence of gradient descent. Other relaxed versions of strong convexity followed .

A principled approach to Lyapunov functions for gradient flows

In this section, we study convergence properties of the gradient flow and its accelerated versions, via quadratic Lyapunov functions. We prove that verifying such a Lyapunov function can be formulated as a LMI. This framework allows to search for Lyapunov functions, and to derive convergence bounds for non-autonomous gradient flows.

Without further assumptions, the function ff is decreasing along the trajectory XtX_{t} solution to the gradient flow. The Lyapunov function V(Xt)=f(Xt)\mathcal{V}(X_{t})=f(X_{t}) has indeed a negative time-derivative ddtV(Xt)=Xt˙⊤∇f(Xt)=−∥∇f(Xt))∥2\frac{d}{dt}\mathcal{V}(X_{t})=\dot{X_{t}}^{\top}\nabla f(X_{t})=-\|\nabla f(X_{t}))\|^{2}.

Under additional convexity assumptions, it is possible to derive Lyapunov functions in a principled way, and deduce worst-case convergence speeds of the gradient flow. As a first stage, let us consider gradient flows originating from strongly convex functions and establish linear (or exponential) convergence of the flows.

Let ff be μ\mu-strongly convex (μ>0\mu>0), admitting thus a unique minimizer x⋆x_{\star} such that f(x⋆)=f⋆f(x_{\star})=f_{\star}, and consider the Problem (1). Thanks to strong convexity, it is possible to prove linear convergence of the gradient flow to its stationary point. Scieur et al. proved in [33, Proposition 1.1] a convergence bound in function values for gradient flows originating from f∈Fμ,∞f\in\mathcal{F}_{\mu,\infty},

This convergence guarantee follows directly from the time-derivative of the Lyapunov function V(Xt)=f(Xt)−f⋆\mathcal{V}(X_{t})=f(X_{t})-f_{\star}, together with strong convexity (or Łojasiewicz inequality): ddtV(Xt)=Xt˙⊤∇f(Xt)=−∥∇f(Xt)∥2⩽−2μ(f(Xt)−f⋆)⩽−2μV(Xt)\frac{d}{dt}\mathcal{V}(X_{t})=\dot{X_{t}}^{\top}\nabla f(X_{t})=-\|\nabla f(X_{t})\|^{2}\leqslant-2\mu(f(X_{t})-f_{\star})\leqslant-2\mu\mathcal{V}(X_{t}).

Given the specific gradient flows studied in this work, it is reasonable to search for Lyapunov functions made of linear combinations of function values, and a quadratic form in the trajectory XtX_{t}. We simply refer to them as quadratic Lyapunov functions:

where a,ca,c are fixed nonnegative constants that do not depend on tt. Such Lyapunov functions are common for proving convergence of gradient flows (and of optimization methods), and cover for instance the Lyapunov used to prove convergence of the gradient flow under strong convexity (4). Given a Lyapunov function Va,c\mathcal{V}_{a,c}, the idea is to find the smallest value of τ\tau such that the condition

holds for any functions f∈Fμ,∞f\in\mathcal{F}_{\mu,\infty} and any trajectory XtX_{t} generated by the gradient flow. After integrating, a convergence guarantee in function values is given by Va,c(Xt)⩽e−τtVa,c(X0)\mathcal{V}_{a,c}(X_{t})\leqslant e^{-\tau t}\mathcal{V}_{a,c}(X_{0}). Given a certain Lyapunov function Va,c\mathcal{V}_{a,c} and a time tt, we get that the largest acceptable τ\tau is a solution to:

This minimization problem is invariant in tt. It is established in that these so-called performance estimation problems (PEP) can be formulated as SDPs (details are provided in Appendix A.1 for completeness). Because of the condition f∈Fμ,∞f\in\mathcal{F}_{\mu,\infty}, the maximization problem (7) is infinite-dimensional. Recall that a differentiable function f∈Fμ,∞f\in\mathcal{F}_{\mu,\infty} verifies for all points x,y∈Rdx,y\in\mathbf{R}^{d}, f(x)−f(y)−⟨∇f(y),x−y⟩⩾μ2∥x−y∥2f(x)-f(y)-\langle\nabla f(y),x-y\rangle\geqslant\frac{\mu}{2}\|x-y\|^{2}. Introducing alternate variables ftf_{t}, f⋆f_{\star}, gtg_{t} and g⋆g_{\star} (informally: ft=f(Xt)f_{t}=f(X_{t}), f⋆=f(x⋆)f_{\star}=f(x_{\star}), gt=∇f(Xt)g_{t}=\nabla f(X_{t}) and g⋆=∇f(x⋆)=0g_{\star}=\nabla f(x_{\star})=0), it holds that

The fact (8) produces an upper bound on −τ-\tau directly follows from the fact that any sampled strongly convex function satisfy these inequalities at the sampled points XtX_{t} and x⋆x_{\star}. Thereby, any feasible point to (7) corresponds to a feasible for (8) with the same objective value. In the other direction, [45, Corollary 2] (which provides a constructive way to obtain some f∈Fμ,∞f\in\mathcal{F}_{\mu,\infty} that interpolates the triplets (Xi,gi,fi)t,⋆(X_{i},g_{i},f_{i})_{t,\star}) ensures that any feasible point to (8) can be translated to a feasible point to (7) with also the same objective value, thereby reaching the equivalence between formulations (7) and (8).

In a second stage, we introduce G=(∥Xt−x⋆∥2⟨Xt−x⋆,gt⟩⟨Xt−x⋆,gt⟩∥gt∥2)⪰0G=\begin{pmatrix}\|X_{t}-x_{\star}\|^{2}&\langle X_{t}-x_{\star},g_{t}\rangle\\ \langle X_{t}-x_{\star},g_{t}\rangle&\|g_{t}\|^{2}\end{pmatrix}\succeq 0 a Gram matrix and a vector F=[ft,f⋆]F=[f_{t},f_{\star}], thereby obtaining a semidefinite reformulation:

where A0=(c⋅τ−c−c−a)A_{0}=\begin{pmatrix}c\cdot\tau&-c\\ -c&-a\end{pmatrix}, A1=(−μ/21/21/20)A_{1}=\begin{pmatrix}-\mu/2&1/2\\ 1/2&0\end{pmatrix}, A2=(−μ/2000)A_{2}=\begin{pmatrix}-\mu/2&0\\ 0&0\end{pmatrix}, b0=a⋅τ[1, −1]⊤b_{0}=a\cdot\tau[1,\ -1]^{\top} b1=[−1, 1]⊤b_{1}=[-1,\ 1]^{\top} and b2=[1, −1]⊤b_{2}=[1,\ -1]^{\top}. Those developments allow arriving to the following worst-case results.

Let Va,c\mathcal{V}_{a,c} be a quadratic Lyapunov function (5) with a,c⩾0a,c\geqslant 0, τ⩾0\tau\geqslant 0, and functions f∈Fμ,∞f\in\mathcal{F}_{\mu,\infty} be strongly convex with parameter μ>0\mu>0. We consider gradient flows (3) originating from functions f∈Fμ,∞f\in\mathcal{F}_{\mu,\infty} and starting from an initial point x0∈Rdx_{0}\in\mathbf{R}^{d}, where d∈Nd\in\mathbf{N} is the dimension. The following assertions are equivalent:

The inequality ddtVa,c(Xt)⩽−τVa,c(Xt)\frac{d}{dt}\mathcal{V}_{a,c}(X_{t})\leqslant-\tau\mathcal{V}_{a,c}(X_{t}) is satisfied for all f∈Fμ,∞f\in\mathcal{F}_{\mu,\infty}, all trajectories XtX_{t} solutions to the gradient flow and all dimensions d∈Nd\in\mathbf{N}.

There exist λ1,λ2⩾0\lambda_{1},\lambda_{2}\geqslant 0 such that

The procedure to obtain the LMI is fully detailed in Appendix A.1, and consists in taking the standard Lagrangian dual of the SDP (9).

A few conclusions can be drawn from the LMI equivalence from Theorem 2.1. First, it provides a necessary and sufficient condition for a quadratic Lyapunov function Va,c\mathcal{V}_{a,c} to decrease at a specific rate τ⩾0\tau\geqslant 0 for all functions f∈Fμ,∞f\in\mathcal{F}_{\mu,\infty}. The infeasibility of the LMI allows to conclude about the existence of a Lyapunov function such that the rate τ\tau is achieved for all functions in the class. Second, it is possible to search over the class of quadratic Lyapunov functions that certify linear convergence. Given a rate τ\tau, the LMI is indeed jointly convex in λ1,λ2,a,c\lambda_{1},\lambda_{2},a,c. Finally, thanks to linearity of the feasibility problem in τ\tau, a bisection search allows to optimize over the convergence rate. In other words, we can optimize jointly over the Lyapunov function and the worst-case guarantee.

In Figure 1(a), we obtain the fastest linear convergence rate that can be achieved using quadratic Lyapunov functions. Together with Theorem 2.1 we retrieve the known linear worst-case convergence speed in e−2μe^{-2\mu} from Scieur et al. [33, Proposition 1.1], without improvement. The numerical approach though allows to ensure tightness with a numerical function ff that matches this convergence guarantee (see Figure 1(b) and the method in [43, Chapter 3]). Let us build on these results to analyze the gradient flow originating from a (possibly non strongly) convex function, where the difficulty comes from the time-dependence of Lyapunov functions. Following theorems are obtained using the same methodology.

1.2 Minimizing convex functions

In the case where f∈F0,∞f\in\mathcal{F}_{0,\infty}, worst-case convergence rates often are sublinear. Again, as in discrete time, it is possible to obtain convergence guarantees using time-dependent quadratic Lyapunov functions.

The Lyapunov function V(Xt,t)=t(f(Xt)−f⋆)+12∥Xt−x⋆∥2\mathcal{V}(X_{t},t)=t(f(X_{t})-f_{\star})+\frac{1}{2}\|X_{t}-x_{\star}\|^{2} from [37, p. 7] verifies ddtV(Xt,t)⩽0\frac{d}{dt}\mathcal{V}(X_{t},t)\leqslant 0 for any functions f∈F0,∞f\in\mathcal{F}_{0,\infty}, and any trajectories XtX_{t} generated by the gradient flow (3) (proof: ddtV(Xt)=t⟨∇f(Xt),X˙t⟩+f(Xt)−f⋆+⟨X˙t,Xt−x⋆⟩=−t∥∇f(Xt)∥2+f(Xt)−f⋆−⟨∇f(Xt),Xt−x⋆⟩⩽−t∥∇f(Xt)∥2\frac{d}{dt}\mathcal{V}(X_{t})=t\langle\nabla f(X_{t}),\dot{X}_{t}\rangle+f(X_{t})-f_{\star}+\langle\dot{X}_{t},X_{t}-x_{\star}\rangle=-t\|\nabla f(X_{t})\|^{2}+f(X_{t})-f_{\star}-\langle\nabla f(X_{t}),X_{t}-x_{\star}\rangle\leqslant-t\|\nabla f(X_{t})\|^{2} using convexity). After integrating, we recover a convergence bound in function values from the literature [37, p.7], [11, Section 6.3.1],

We consider the family of quadratic Lyapunov functions:

where at,cta_{t},c_{t} are differentiable functions from R+\mathbf{R}^{+} to R+\mathbf{R}^{+}. When the Lyapunov function is decreasing along the trajectory XtX_{t}, that is ddtV(Xt)⩽0\frac{d}{dt}\mathcal{V}(X_{t})\leqslant 0, a convergence guarantee in function values is given by

Looking for a worst-case guarantee with a Lyapunov approach can be cast as:

The strongly convex case as defined above is a particular case of the convex one, using a specific Lyapunov function Φ(⋅)\Phi(\cdot), such that V(Xt,t)=eτtΦ(Xt)\mathcal{V}(X_{t},t)=e^{\tau t}\Phi(X_{t}) where Φ(Xt)=a⋅(f(Xt)−f⋆)+c⋅∥Xt−x⋆∥2\Phi(X_{t})=a\cdot(f(X_{t})-f_{\star})+c\cdot\|X_{t}-x_{\star}\|^{2}. Then, ddtV(Xt,t)⩽0\frac{d}{dt}\mathcal{V}(X_{t},t)\leqslant 0 is equivalent to ddtΦ(Xt)⩽−τΦ(Xt)\frac{d}{dt}\Phi(X_{t})\leqslant-\tau\Phi(X_{t}).

Let Vat,ct\mathcal{V}_{a_{t},c_{t}} defined in (11) be a quadratic Lyapunov function for at,cta_{t},c_{t} nonnegative differentiable functions and functions f∈F0,∞f\in\mathcal{F}_{0,\infty} be convex. Given the gradient flow (3) originating from convex functions f∈F0,∞f\in\mathcal{F}_{0,\infty} and starting from x0∈Rdx_{0}\in\mathbf{R}^{d}, where d∈Nd\in\mathbf{N} is the dimension. The following assertions are equivalent:

The inequality ddtVat,ct(Xt,t)⩽0\displaystyle\frac{d}{dt}\mathcal{V}_{a_{t},c_{t}}(X_{t},t)\leqslant 0 is satisfied for all functions f∈F0,∞f\in\mathcal{F}_{0,\infty}, for all trajectories XtX_{t} generated by gradient flows, all functions f∈Fμ,∞f\in\mathcal{F}_{\mu,\infty} and for all dimensions d∈Nd\in\mathbf{N}.

There exist λt(1),λt(2)⩾0\lambda^{(1)}_{t},\lambda^{(2)}_{t}\geqslant 0 such that

If these assertions are satisfied, ctc_{t} is decreasing, and at⩾tcta_{t}\geqslant tc_{t}.

The LMI is obtained following the previous methodology (Appendix A.1), and the inequality at⩾tcta_{t}\geqslant tc_{t} directly from the LMI.

Choosing ct=12c_{t}=\frac{1}{2} and at=ta_{t}=t for the Lyapunov function parameters, and λt(1)=1\lambda^{(1)}_{t}=1, λt(2)=0\lambda^{(2)}_{t}=0, we retrieve the Lyapunov function V(x,t)=t(f(x)−f⋆)+12∥x−x⋆∥2\mathcal{V}(x,t)=t(f(x)-f_{\star})+\frac{1}{2}\|x-x_{\star}\|^{2} from [37, p. 7], that verifies f(Xt)−f⋆⩽12t∥x0−x⋆∥2f(X_{t})-f_{\star}\leqslant\frac{1}{2t}\|x_{0}-x_{\star}\|^{2} for all convex functions f∈F0,∞f\in\mathcal{F}_{0,\infty}, for all trajectories XtX_{t} generated by the gradient flow, and all dimensions d∈Nd\in\mathbf{N}.

The differential LMI equivalence from Theorem 2.4 is jointly convex in λt(1)\lambda^{(1)}_{t}, λt(2)\lambda^{(2)}_{t}, ctc_{t}, ata_{t}, a˙t\dot{a}_{t}, c˙t\dot{c}_{t}, introducing derivatives (to be compared with iterates for discrete optimization methods). In contrast with the minimization of strongly convex functions, numerically solving this LMI is not available because of the dependence in tt. Other quadratic Lyapunov functions could be derived. However, the condition at⩾ctta_{t}\geqslant c_{t}t together with c˙t⩽0\dot{c}_{t}\leqslant 0 implies that the convergence cannot be faster than 1t\frac{1}{t}.

2 Accelerated gradient flows

A major improvement to gradient descent dates back to Nesterov in 1983 , with an accelerated gradient method (AGM),

where γ,αk\gamma,\alpha_{k} are nonnegative parameters depending on the class of functions to minimize. The current iterate is computed thanks to a so-called momentum. This combination of past iterates allows more control over the accumulated error. This idea was first introduced by Polyak with the heavy-ball method, starting from x0,x1∈Rdx_{0},x_{1}\in\mathbf{R}^{d},

where αk>0\alpha_{k}>0 is the momentum method. Yet, compared with Nesterov’s accelerated gradient method, the heavy-ball method lacks global acceleration beyond quadratics.

When reducing the step size γ\gamma, these schemes happen to be closely related to second-order differential equations, for βt⩾0\beta_{t}\geqslant 0 a function that depends on αk\alpha_{k},

Recently, accelerated gradient methods have been analyzed using second-order differential equations . Reversely, the accelerated gradient method and the heavy-ball method may be seen as discretization schemes of these second order ODEs, as many other schemes. Discretization techniques are, among others, discussed by . Taking integration theory’s point of view, Scieur et al. proved that these multi-step methods may even be seen as discretization schemes of the gradient flow (for quadratics).

Again, ODEs and multi-step first-order methods as defined above are often handled using quadratic Lyapunov functions. We extend the systematic Lyapunov approach developed previously to accelerated gradient flows. Let Vat,Pt\mathcal{V}_{a_{t},P_{t}} be the family of quadratic Lyapunov functions for second-order gradient flows,

where P=(pt(11)pt(12)pt(12)pt(22))P=\begin{pmatrix}p^{(11)}_{t}&p^{(12)}_{t}\\ p^{(12)}_{t}&p^{(22)}_{t}\end{pmatrix} is a symmetric matrix with differentiable parameters, and ata_{t} is a differentiable function, such that the Lyapunov is nonnegative when evaluated on the gradient flow. After integrating, this approach leads to convergence bounds for instance in function values, such that f(Xt)−f⋆⩽V(x0)atf(X_{t})-f_{\star}\leqslant\frac{\mathcal{V}(x_{0})}{a_{t}}.

Let f∈Fμ,Lf\in\mathcal{F}_{\mu,L}, with strong convexity parameter μ>0\mu>0, and scheme parameters be defined by γ=1L\gamma=\frac{1}{L} and α=1−μγ1+μγ\alpha=\frac{1-\sqrt{\mu\gamma}}{1+\sqrt{\mu\gamma}} in Nesterov’s accelerated gradient methods (12). When reducing the step size γ\gamma, the continuous-time limit of yky_{k} in (12) is exactly the Polyak damped oscillator ,

where t=γkt=\gamma k, as it has already been highlighted in previous works . This ODE is also the limit of the heavy-ball method (13). Shi et al. proved a convergence guarantee in f(Xt)−f⋆=O(e−μt4)f(X_{t})-f_{\star}={O}(e^{-\frac{\sqrt{\mu}t}{4}}) using a Lyapunov-based approach. This bound was improved to f(Xt)−f⋆=O(e−μt)f(X_{t})-f_{\star}={O}(e^{-\sqrt{\mu}t}), by Wilson et al. [47, Appendix B] using the Bregman-Lagrangian approach, and by Sanz-Serna and Zygalakis using the IQC framework . We compute linear convergence guarantees using quadratic Lyapunov functions with constant parameters (14).

Let Va,P\mathcal{V}_{a,P} be a quadratic Lyapunov function (14), where a⩾0a\geqslant 0, and PP a symmetric matrix. Let τ⩾0\tau\geqslant 0, μ⩾0\mu\geqslant 0, d∈Nd\in\mathbf{N} be the dimension, and the Polyak damped oscillator (15) be starting from x0∈Rdx_{0}\in\mathbf{R}^{d}, and originating from strongly convex functions f∈Fμ,∞f\in\mathcal{F}_{\mu,\infty}. The following assertions are equivalent:

The inequality ddtVa,P(Xt)⩽−τVa,P(Xt)\displaystyle\frac{d}{dt}\mathcal{V}_{a,P}(X_{t})\leqslant-\tau\mathcal{V}_{a,P}(X_{t}) is satisfied for all functions f∈Fμ,∞f\in\mathcal{F}_{\mu,\infty}, all trajectories XtX_{t} generated by Polyak damped oscillator, and all dimensions d∈Rdd\in\mathbf{R}^{d}.

There exist λ1,λ2,ν1,ν2⩾0\lambda_{1},\lambda_{2},\nu_{1},\nu_{2}\geqslant 0, such that

The LMI equivalence is obtained introducing the Gram matrix G=P⊤PG=P^{\top}P, where P=(X˙t,Xt−x⋆,gt)P=(\dot{X}_{t},X_{t}-x_{\star},g_{t}) and using the PEP methodology. The first LMI refers to the non-increasing condition for the Lyapunov function, and the second LMI to the positivity of the Lyapunov for all trajectories and convex functions.

The LMI is a feasibility problem, jointly convex in λ1,λ2,ν1,ν2⩾0\lambda_{1},\lambda_{2},\nu_{1},\nu_{2}\geqslant 0 and in Lyapunov parameters a,Pa,P. Given parameters a,Pa,P and a rate τ\tau, it is a verification tool for Va,P\mathcal{V}_{a,P} to be a Lyapunov function decreasing at rate τ\tau. As for gradient flows, we can perform a bisection search over τ\tau to find the fastest linear convergence rate that can be verified using quadratic Lyapunov functions (see Figure 2(a)). It provides a numerical tool for choosing Lyapunov parameters (Figure 2(b)) for which the worst-case linear convergence rate is achieved.

Let us consider the Polyak damped oscillator (15) starting from x0∈Rdx_{0}\in\mathbf{R}^{d} where d∈Nd\in\mathbf{N} is the dimension, and originating from strongly convex functions f∈Fμ,∞f\in\mathcal{F}_{\mu,\infty} where μ>0\mu>0. The Lyapunov function

verifies ddtV(Xt)⩽−4/3μV(Xt)\frac{d}{dt}\mathcal{V}(X_{t})\leqslant-{4}/{3}\sqrt{\mu}\mathcal{V}(X_{t}) for all functions f∈Fμ,∞f\in\mathcal{F}_{\mu,\infty}, all trajectories XtX_{t} generated by Polyak damped oscillator, and all dimensions d∈Nd\in\mathbf{N}.

Taking λ1=4/3μ\lambda_{1}={4}/{3}\sqrt{\mu}, λ2=0\lambda_{2}=0, ν1=0\nu_{1}=0 and ν2=1\nu_{2}=1, we verify the LMI for this Lyapunov function V\mathcal{V}, with τ=4/3μ\tau={4}/{3}\sqrt{\mu}.

This class of quadratic Lyapunov functions is inspired by in discrete time, where a stricter positivity condition on P⪰0P\succeq 0 hindered proving tight convergence of Nesterov’s accelerated gradient. Similarly, the Lyapunov function from Corollary 15 is defined by P=(4/9μ2/3μ2/3μ1/2)P=\begin{pmatrix}{4}/{9}\mu&{2}/{3}\sqrt{\mu}\\ {2}/{3}\sqrt{\mu}&{1}/{2}\end{pmatrix}, which is not positive semidefinite. In the continuous-time models’ literature, we usually choose matrices PP positive semidefinite, such as in the Lyapunov function from [32, 34, Theorem 4.3],

that verifies ddtV(Xt)⩽−μV(Xt)\displaystyle\frac{d}{dt}\mathcal{V}(X_{t})\leqslant-\sqrt{\mu}\mathcal{V}(X_{t}) for all functions f∈Fμ,∞f\in\mathcal{F}_{\mu,\infty}, all trajectories XtX_{t} generated by Polyak damped oscillator, and all dimensions d∈Nd\in\mathbf{N}. This Lyapunov is a feasible point of the LMI (LABEL:LMI_acc) from Theorem 2.6, with τ=μ\tau=\sqrt{\mu}, λ1=μ\lambda_{1}=\sqrt{\mu}, λ2=0\lambda_{2}=0, ν1=0\nu_{1}=0, ν2=a=1\nu_{2}=a=1. Relaxing the condition P⪰0P\succeq 0 improves results from Sanz-Serna and Zygalakis and Wilson et al. by a factor 4/34/3 in Corollary 2.8.

Figure 2(b) provides a numerical help for computing the Lyapunov function from Corollary 2.8. Figure 2(a) together with Corollary 2.8 allows to conclude that this bound cannot be improved when changing the Lyapunov function among the class of quadratic functions (14).

2.2 Minimizing convex functions

As for gradient flow, rates are sublinear when the accelerated gradient flow originates from convex functions. Let f∈F0,Lf\in\mathcal{F}_{0,L}, the step size be γ⩽1L\gamma\leqslant\frac{1}{L}, and α=k−1k+2\alpha=\frac{k-1}{k+2} be the scheme parameter in Nesterov’s accelerated method. Su et al. [37, Section 2] proved the connection between the first-order scheme and a second order ODE known as accelerated gradient flow (AGF):

Su et al. [37, Theorem 3] proved the following inequality is verified for all functions ff and all trajectories XtX_{t} generated by AGF,

Their proof exhibits a Lyapunov function V(Xt,t)=t2(f(Xt)−f⋆)+∥(Xt−x⋆)+t2X˙t∥2\mathcal{V}(X_{t},t)=t^{2}(f(X_{t})-f_{\star})+\|(X_{t}-x_{\star})+\frac{t}{2}\dot{X}_{t}\|^{2}, whose derivative is decreasing along trajectories XtX_{t} (proof: ddtV(Xt,t)=2t(f(Xt)−f⋆)+t2⟨X˙t,∇f(Xt)⟩+2⟨Xt−x⋆+t2X˙t,3X˙t+tX¨t⟩=2t(f(Xt)−f⋆)−⟨∇f(Xt),Xt−x⋆⟩⩽0\frac{d}{dt}\mathcal{V}(X_{t},t)=2t(f(X_{t})-f_{\star})+t^{2}\langle\dot{X}_{t},\nabla f(X_{t})\rangle+2\langle X_{t}-x_{\star}+\frac{t}{2}\dot{X}_{t},3\dot{X}_{t}+t\ddot{X}_{t}\rangle=2t(f(X_{t})-f_{\star})-\langle\nabla f(X_{t}),X_{t}-x_{\star}\rangle\leqslant 0 by convexity of ff). The following theorem provides a systematic condition for a quadratic function V\mathcal{V} (14) to be a Lyapunov function for AGF (17).

Let Vat,Pt\mathcal{V}_{a_{t},P_{t}} be a quadratic Lyapunov function (14), where at⩾0a_{t}\geqslant 0 is a differentiable function, and Pt⪰0P_{t}\succeq 0 with differentiable parameters. Given the accelerated gradient flow (17) starting from x0∈Rdx_{0}\in\mathbf{R}^{d} where d∈Nd\in\mathbf{N} is the dimension, and originating from convex functions f∈F0,∞f\in\mathcal{F}_{0,\infty}, the following assertions are equivalent:

The inequality ddtVat,Pt(Xt,t)⩽0\displaystyle\frac{d}{dt}\mathcal{V}_{a_{t},P_{t}}(X_{t},t)\leqslant 0 is satisfied for all functions f∈F0,∞f\in\mathcal{F}_{0,\infty}, all trajectories XtX_{t} generated by the accelerated gradient flow and all dimensions d∈Nd\in\mathbf{N}.

There exist λt(1),λt(2)⩾0\lambda^{(1)}_{t},\lambda^{(2)}_{t}\geqslant 0 such that

The proof follows those from Theorem 2.6 and 2.1.

The LMI from Theorem 2.10 is differentiable and convex in λt(1)\lambda^{(1)}_{t}, λt(2)\lambda^{(2)}_{t}. Even when studying second-order gradient flows, the number of interpolation inequalities (or of dual values λt(i)\lambda_{t}^{(i)}) is bounded by two, enforcing short proofs.

Theorem 2.10 allows to retrieve the Lyapunov function exhibited by Su et al. [37, Theorem 3], and its associated convergence guarantee. Choosing at=t2a_{t}=t^{2} and Pt=2(1t/2t/2t2/4)P_{t}=2\begin{pmatrix}1&t/2\\ t/2&t^{2}/4\end{pmatrix} for the Lyapunov parameters, and λt(1)=t\lambda^{(1)}_{t}=t, λt(2)=0\lambda^{(2)}_{t}=0, we prove that that the Lyapunov function \mathcal{V}(X_{t},t)=t^{2}(f(X_{t})-f_{\star})+2\big{\|}(X_{t}-x_{\star})+\frac{t}{2}\dot{X}\big{\|}^{2} verifies ddtV(Xt,t)⩽0\displaystyle\frac{d}{dt}\mathcal{V}(X_{t},t)\leqslant 0, for all functions f∈F0,∞f\in\mathcal{F}_{0,\infty}, for all trajectories XtX_{t} generated accelerated gradient flows, and all dimensions d∈Nd\in\mathbf{N}. As for gradient flows originating from convex functions, we did not compute numerically worst-case scenarios because of the time-dependence of the Lyapunov function.

3 Higher-order convergence and time dilation

In this section, we analyze convergence of non-autonomous gradient flows, and provide convergence rates depending on their parameters. It appears that higher order convergence of gradient flows is highly connected to time dilation.

Let ff be a convex function, and XtX_{t} be the solution to the non-autonomous first-order gradient flow,

where αt⩾0\alpha_{t}\geqslant 0 is a continuous function (such that the flow is converging). It is natural to wonder if it is possible to accelerate such gradient flows when changing αt\alpha_{t}. A change of variable connects this ODE to the gradient flow (3), for which αt=1\alpha_{t}=1. Let YtY_{t} be the solution to the gradient flow, and τt=∫0tαsds\tau_{t}=\int_{0}^{t}\alpha_{s}ds be a time change variable. Then, the variable Xt=YτtX_{t}=Y_{\tau_{t}} verifies X˙t=ddtYτt=αtY˙τt=−αt∇f(Yτt)=−αt∇f(Xt)\dot{X}_{t}=\frac{d}{dt}Y_{\tau_{t}}=\alpha_{t}\dot{Y}_{\tau_{t}}=-\alpha_{t}\nabla f(Y_{\tau_{t}})=-\alpha_{t}\nabla f(X_{t}), which is exactly the non-autonomous gradient flow. The following corollaries can be obtained by performing the appropriate change of variable in LMI from Theorem 2.4.

Let us consider non-autonomous gradient flows (18) starting from x0∈Rdx_{0}\in\mathbf{R}^{d} where d∈Nd\in\mathbf{N} is the dimension, and originating from possibly strongly convex functions f∈Fμ,∞f\in\mathcal{F}_{\mu,\infty}, where μ⩾0\mu\geqslant 0.

If μ=0\mu=0, the Lyapunov function V(Xt,t)=(∫0tαsds)(f(Xt)−f⋆)+12∥Xt−x⋆∥2\mathcal{V}(X_{t},t)=\left(\int_{0}^{t}\alpha_{s}ds\right)(f(X_{t})-f_{\star})+\frac{1}{2}\|X_{t}-x_{\star}\|^{2} verifies ddtV(Xt,t)⩽0\displaystyle\frac{d}{dt}\mathcal{V}(X_{t},t)\leqslant 0 for all functions f∈F0,∞f\in\mathcal{F}_{0,\infty}, for all trajectories XtX_{t} generated by non-autonomous gradient flows and all dimensions d∈Nd\in\mathbf{N}.

A convergence guarantee is given by f(Xt)−f⋆⩽12∫0tαsds∥x0−x⋆∥2\displaystyle f(X_{t})-f_{\star}\leqslant\frac{1}{2\int_{0}^{t}\alpha_{s}ds}\|x_{0}-x_{\star}\|^{2}.

If μ>0\mu>0, the Lyapunov function V(Xt,t)=e2μ∫0tαsds(f(Xt)−f⋆)\mathcal{V}(X_{t},t)=e^{2\mu\int_{0}^{t}\alpha_{s}ds}(f(X_{t})-f_{\star}) verifies ddtV(Xt,t)⩽−2μαtV(Xt,t)\displaystyle\frac{d}{dt}\mathcal{V}(X_{t},t)\leqslant-2\mu\alpha_{t}\mathcal{V}(X_{t},t) for all strongly convex functions f∈Fμ,∞f\in\mathcal{F}_{\mu,\infty} (μ>0\mu>0), all trajectories XtX_{t} generated by the non-autonomous gradient flow and all dimensions d∈Nd\in\mathbf{N}.

A convergence guarantee is given by f(Xt)−f⋆⩽e−2μ∫0tαsds(f(x0)−f⋆)\displaystyle f(X_{t})-f_{\star}\leqslant e^{-2\mu\int_{0}^{t}\alpha_{s}ds}(f(x_{0})-f_{\star}).

When considering αt=1\alpha_{t}=1 above, that is τt=t\tau_{t}=t, we recover exactly the results from Theorem 2.1 and Theorem 2.4.

As mentioned by Orvieto and Lucchi in the stochastic setting, and for accelerated methods by Wibisono et al. , one can thus either work with YtY_{t} generated by the non-autonomous gradient flow (18), or with XtX_{t} generated by the gradient flow. However, the acceleration on YtY_{t} is not preserved after discretizing the flow. Applying explicit Euler scheme to a non-autonomous gradient flow (18) with αs=α>0\alpha_{s}=\alpha>0 and originating from f∈F0,Lf\in\mathcal{F}_{0,L}, a condition on step sizes h>0h>0 arises 0⩽h⩽2Lα0\leqslant h\leqslant\frac{2}{L\alpha}.

When focusing on continuous-time models for analyzing explicit optimization methods, that only calls for past gradient iterates, we prefer working with the gradient flow (3). However, non-autonomous gradient flows (18) may be useful for analyzing other methods such as proximal methods. More generally, and in the next section, we analyze gradient flows without adjusting the time scale (taking αt=1\alpha_{t}=1).

3.2 A non-autonomous second-order gradient flows

Nesterov’s accelerated gradient flow reaches an 1t2\frac{1}{t^{2}} convergence (see Theorem 2.10) in function values. Considering the family of quadratic Lyapunov functions (14), we study convergence of non-autonomous second-order gradient flows and draw comparison with the accelerated gradient flow. Let βt⩾0\beta_{t}\geqslant 0 be a continuous function, and a second-order non-autonomous ODE,

For any two functions βt(1),βt(2)⩾0\beta_{t}^{(1)},\beta_{t}^{(2)}\geqslant 0, there is no time change formula that connects their associated ODE. In other words, they are in the same time-scale. Theorem 2.15 provides an LMI equivalence for analyzing convergence of trajectories XtX_{t} generated by second-order gradient flows (19) using quadratic Lyapunov functions (14).

Let us consider Vat,Pt\mathcal{V}_{a_{t},P_{t}} quadratic Lyapunov functions (14), and non-autonomous second-order gradient flows (19) starting from x0∈Rdx_{0}\in\mathbf{R}^{d} where d∈Nd\in\mathbf{N} is the dimension, and originating from possibly non-strongly convex functions f∈Fμ,∞f\in\mathcal{F}_{\mu,\infty} where μ⩾0\mu\geqslant 0. The following assertions are equivalent:

The inequality ddtVat,Pt(Xt,t)⩽0\displaystyle\frac{d}{dt}\mathcal{V}_{a_{t},P_{t}}(X_{t},t)\leqslant 0 is satisfied for all functions f∈Fμ,∞f\in\mathcal{F}_{\mu,\infty}, for XtX_{t} generated by non-autonomous second-order gradient flows, and all dimensions d∈Nd\in\mathbf{N}.

There exist λt(1),λt(2)⩾0\lambda^{(1)}_{t},\lambda^{(2)}_{t}\geqslant 0 such that,

For a given function βt⩾0\beta_{t}\geqslant 0, the LMI remains convex in λt(1),λt(2)⩾0\lambda^{(1)}_{t},\lambda^{(2)}_{t}\geqslant 0. Compared with the LMI derived from Nesterov’s accelerated gradient method in Theorem 2.10, the LMI is parametrized by βt\beta_{t}.

Let us consider non-autonomous second-order gradient flows starting from x0∈Rdx_{0}\in\mathbf{R}^{d} (19) where d∈Nd\in\mathbf{N} is the dimension, and originating from possibly non-strongly convex functions f∈Fμ,∞f\in\mathcal{F}_{\mu,\infty} where μ⩾0\mu\geqslant 0. The Lyapunov function

If μ>0\mu>0, at=min⁡(μ,23βt)a_{t}=\min(\sqrt{\mu},\frac{2}{3}\beta_{t}),

If μ=0\mu=0, at=min⁡((a0+(p0(11)/2)t)2,lim⁡ϵ→0,ϵ>0aϵe∫ϵt23βsds)a_{t}=\min((\sqrt{a_{0}}+(\sqrt{p_{0}^{(11)}}/2)t)^{2},\lim_{\epsilon\rightarrow 0,\\ \epsilon>0}a_{\epsilon}e^{\int_{\epsilon}^{t}\frac{2}{3}\beta_{s}ds}),

verifies ddtV(Xt,t)⩽0\displaystyle\frac{d}{dt}\mathcal{V}(X_{t},t)\leqslant 0 for all functions f∈Fμ,∞f\in\mathcal{F}_{\mu,\infty}, all XtX_{t} generated the second order gradient flows and all dimensions d∈Nd\in\mathbf{N}.

The proof follows from Theorem 2.15, and is detailed in Appendix A.2.

Non-autonomous second-order gradient flows (19) cannot converge faster than Nesterov’s accelerated gradient flow in function values, that is to say not faster than 1t2\frac{1}{t^{2}}, when using quadratic Lyapunov functions parametrized by βt⩾0\beta_{t}\geqslant 0 from Corollary 2.16. To analyze Nesterov’s accelerated gradient methods using ODEs, Su et al. introduced parametrized second-order gradient flows, that fit the model (19),

When r⩾3r\geqslant 3, the guarantee f(Xt)−f⋆⩽(r−1)2∥x0−x⋆∥22t2f(X_{t})-f_{\star}\leqslant\frac{(r-1)^{2}\|x_{0}-x_{\star}\|^{2}}{2t^{2}} holds for all convex functions ff and all trajectories XtX_{t} generated by accelerated gradient flows [37, Theorem 5]. When r<3r<3, Attouch et al. [1, Theorem 2.1] proved a convergence bound in f(Xt)−f⋆=O(1t2r/3)f(X_{t})-f_{\star}=\mathcal{O}(\frac{1}{t^{2r/3}}), improving the results from [37, Theorem 7] that required additional assumptions on ff. Using Corollary 2.16, we retrieve a similar bound in function values f(Xt)−f⋆⩽2∥x0−x⋆∥2r29t2r3f(X_{t})-f_{\star}\leqslant\frac{2\|x_{0}-x_{\star}\|^{2}r^{2}}{9t^{\frac{2r}{3}}}.

Polynomial convergence can be achieved up to a change of variable, as it was shown by Wisobono et al. with τt=tp/2\tau_{t}=t^{p/2} (αt=p2tp/2−1\alpha_{t}=\frac{p}{2}t^{p/2-1}). Nesterov’s accelerated gradient flow (r=3r=3) has an ODE X¨t+p+1tX˙t+p24tp−2∇f(Xt)=0\ddot{X}_{t}+\frac{p+1}{t}\dot{X}_{t}+\frac{p^{2}}{4}t^{p-2}\nabla f(X_{t})=0 for p⩾2p\geqslant 2. For all convex functions and all trajectories XtX_{t} generated by the ODE starting from x0x_{0}, a convergence bound in function value is given by f(Xt)−f⋆⩽∥x0−x⋆∥22tpf(X_{t})-f_{\star}\leqslant\frac{\|x_{0}-x_{\star}\|^{2}}{2t^{p}}.

We have extended the performance estimation approach to continuous-time models, using Lyapunov functions. Given an ODE and a class of functions, we presented a semidefinite formulation equivalent with the existence of a quadratic Lyapunov function. This LMI provides a principled way to generate Lyapunov functions, even when dealing with non-autonomous parametrized ODEs. It turns out only two convex inequalities (in (Xt,x⋆)(X_{t},x_{\star}) and (x⋆,Xt)(x_{\star},X_{t}), see Theorem 2.10) are involved in convergence proofs for continuous-time models. For strongly convex functions, we proved numerically worst-case guarantees from Corollary 2.1 and cannot be improved using a specific family of quadratic Lyapunov functions. Even if the connection between discrete and continuous-time does not allow to directly transfer results to the analysis of first-order methods, their convergence analyses are be closely related.

SDEs for modeling SGD

Convergence results for stochastic convex optimization often require additional assumptions on function classes, refined choices of step sizes and averaged iterates. Their analyses raise challenges and more complex proofs in contrast with deterministic methods. Prior works have been concerned with the connection between stochastic methods and stochastic differential equations (SDEs) . This section is devoted to convergence analyses of SDEs using the Lyapunov framework. As for ODEs, verifying a Lyapunov function will be cast as verifying the feasibility of a small-sized LMI.

Let us recall the stochastic gradient descent method (SGD)

where BtB_{t} is a standard Brownian motion, is an (order-11 weak) approximation of SGD ([21, Theorem 1], ). The SDE approximation of SGD allows to take into account the role of fixed step size in the dynamics of SGD (while keeping them small). Under mild assumptions on ff, Li et al. proved the weak approximation of SGD by this SDE on a finite interval [0,T][0,T]: there exists C>0C>0 such that ∥E[xk]−E[X(kγ)]∥⩽Cγ\|\mathbf{E}[x_{k}]-\mathbf{E}[X(k\gamma)]\|\leqslant C\gamma for k∈[0,Tγ]k\in[0,\frac{T}{\gamma}]. However, this approach is limited since CC depends exponentially on TT. In the literature, matching rates are often obtained extending Lyapunov functions from continuous to discrete time .

The SDE (22) is an approximation of SGD for small step sizes γ\gamma. When taking the step size to zero, the noise term actually disappears, and the limiting ODE of SGD is exactly the gradient flow (3). Similarly, the stochastic Langevin dynamics xk+1=xk−γ∇f(xk)−γξkx_{k+1}=x_{k}-\gamma\nabla f(x_{k})-\sqrt{\gamma}\xi_{k} has the limiting ODE dXt=−∇f(Xt)dt+2dBtdX_{t}=-\nabla f(X_{t})dt+\sqrt{2}dB_{t}, where the step size is not taken into account.

Compared with the gradient flow, SGD does not converge to a stationary point under fixed step sizes . Convergence to a stationary point requires diminishing step sizes such as γk=1k\gamma_{k}=\frac{1}{\sqrt{k}}. Li et al. [21, Section 4.1] (and later Orvieto and Lucchi [26, Section 2.1]) proposed to include this varying learning rate in the dynamics:

where γ\gamma is the maximum allowed learning rate and hk∈h_{k}\in is the varying part. For ht⩾0h_{t}\geqslant 0 a continuous function corresponding to discrete hkh_{k}, the SDE is given by

We treat the covariance matrix Σ(Xt)\Sigma(X_{t}) as symmetric, already implied by the notation Σ(Xt)1/2\Sigma(X_{t})^{1/2}, but unstructured with bounded variance Σ(Xt)⪯Σ\Sigma(X_{t})\preceq\Sigma along any trajectory XtX_{t} generated by the approximating SDE (23). Compared to ODEs, functions f∈F0,Lf\in\mathcal{F}_{0,L} to be optimized using SDEs are in addition assumed to be possibly LL-smooth with L∈(0,∞]L\in(0,\infty], and to be twice differentiable.

We propose to analyze approximating SDEs with averaging techniques, and to include later varying step sizes. Verifying Lyapunov functions thanks to small-sizes LMI, we retrieve convergence results from discrete optimization methods, using appropriate choices of step sizes.

The analysis of the gradient flow in the deterministic case provides Lyapunov functions that are decreasing along trajectories generated by ODEs. The direct transfer of these Lyapunov functions to the stochastic setting is not always suited to the variance term, as detailed below. Under constant step sizes γ>0\gamma>0, an approximating SDE of SGD is

In SDE theory, a time-differential of a function of a solution to a stochastic process is given by Ito’s Lemma [39, Theorem 4.2].

For gg a twice differentiable function, and XtX_{t} a stochastic process solution to the SDE (22),

When the SDE originates from (possibly non-smooth) strongly convex functions f∈Fμ,∞f\in\mathcal{F}_{\mu,\infty}, the Lyapunov function from the deterministic setting extends well to SDEs. In the deterministic setting, we have shown in Theorem 2.1 that the function V(x,t)=e2μt(f(x)−f⋆)\mathcal{V}(x,t)=e^{2\mu t}(f(x)-f_{\star}) is a Lyapunov function in the worst-case. Applying Ito’s formula to this Lyapunov function with XtX_{t} a solution to the SDE (22), we obtain ddtEV(Xt,t)⩽12e2μtγETr(∇xx2f(Xt)Σ(Xt))\frac{d}{dt}\mathbf{E}\mathcal{V}(X_{t},t)\leqslant\frac{1}{2}e^{2\mu t}\gamma\mathbf{E}{\rm Tr}(\nabla^{2}_{xx}f(X_{t})\Sigma(X_{t})). After integrating between and tt, we have

Additional requirements on ff, such as smoothness and twice differentiability, are needed for convergence. For example, if ff is in addition LL-smooth with L<∞L<\infty and using the bounded covariance assumption Σ(Xt)⪯Σ\Sigma(X_{t})\preceq\Sigma, the variance term is bounded by 12LγTr(Σ)\frac{1}{2}L\gamma\text{Tr}(\Sigma). Under constant step sizes, the SDE approximating SGD converges to a diffusion, and cannot get to a stationary point x⋆x_{\star} in the worst-case, but the extra term is linear in the step size γ\gamma. As in the deterministic case, the forgetting of initial conditions remains of order O(e−2μt)O(e^{-2\mu t}).

1.2 Minimizing convex functions

When f∈F0,∞f\in\mathcal{F}_{0,\infty}, Lyapunov functions induce convergence bounds with a possibly diverging variance term. When considering deterministic gradient flows (3) originating from convex functions, a Lyapunov function followed from Theorem 2.4: V(x,t)=t(f(x)−f⋆)+12∥x−x⋆∥2\mathcal{V}(x,t)=t(f(x)-f_{\star})+\frac{1}{2}\|x-x_{\star}\|^{2}. Assuming XtX_{t} are solutions XtX_{t} to SDEs (22) originating from convex functions f∈F0,∞f\in\mathcal{F}_{0,\infty}, we compute the derivative to this Lyapunov function thanks to Ito’s formula ddtEV(Xt,t)⩽−tE∥∇f(Xt)∥2+E12Tr((t∇x2f(Xt)+I)Σ(Xt))\frac{d}{dt}\mathbf{E}\mathcal{V}(X_{t},t)\leqslant-t\mathbf{E}\|\nabla f(X_{t})\|^{2}+\mathbf{E}\frac{1}{2}\text{Tr}((t\nabla_{x}^{2}f(X_{t})+I)\Sigma(X_{t})). Thanks to twice differentiability, bounded covariance Σ(Xt)⪯Σ\Sigma(X_{t})\preceq\Sigma, and assuming in addition LL-smoothness of ff, a convergence bound is given by

Taylor and Bach proved a comparable convergence bound for SGD [41, Theorem 5], applying the Lyapunov performance estimation approach under similar assumptions (bounded variance, smoothness of ff). Tough, we cannot conclude about convergence of SGD in the worst-case without further assumptions. Optimization methods have been developed to ensure the global convergence of SGD to the optimum, among them averaging and diminishing step sizes.

2 Diminishing the step size is a key to success

We study convergence of SDEs with varying step sizes (23). In contrast to the deterministic setting, in which varying step sizes correspond to a time rescaling, the time change plays a direct role on the variance term (explicit formula by Orvieto and Lucchi in [26, Theorem 5]). Our problem can be formulated as follows, where V\mathcal{V} are Lyapunov functions,

where ddtEV(Xt,t)=E[∂∂tV(Xt,t)+∂∂xV(Xt,t)dXtdt]+γ2ETr(∂2∂x2V(Xt,t)Σ(Xt))\frac{d}{dt}\mathbf{E}\mathcal{V}(X_{t},t)=\mathbf{E}[\frac{\partial}{\partial t}\mathcal{V}(X_{t},t)+\frac{\partial}{\partial x}\mathcal{V}(X_{t},t)\frac{dX_{t}}{dt}]+\frac{\gamma}{2}\mathbf{E}{\rm Tr}(\frac{\partial^{2}}{\partial x^{2}}\mathcal{V}(X_{t},t)\Sigma(X_{t})) is computed with Ito’s formula. The first two terms corresponds exactly to taking the derivative in trajectories generated by ODEs (18) (or the SDEs (23) with γ=0\gamma=0), and the last term to a variance term. Because of the trace in a second-order derivative and in the covariance matrix Σ(Xt)\Sigma(X_{t}), we do not take this term into account in an LMI reformulation. Instead, we propose to first derive a family of Lyapunov functions using LMIs from the deterministic setting, and then to optimize their parameters so that the variance term converges conveniently.

Let f∈F0,∞f\in\mathcal{F}_{0,\infty} be twice differentiable functions, and let us consider SDEs with varying step sizes (23) starting from X0∈RdX_{0}\in\mathbf{R}^{d}, where d∈Nd\in\mathbf{N} is the dimension. The quadratic Lyapunov function from the family (11)

with a˙t(1)=2ht\dot{a}_{t}^{(1)}=2h_{t} verifies ddtE(V(Xt,t)⩽ht2Tr((∇xx2f(Xt)at(1)+12Id)Σ(Xt))\displaystyle\frac{d}{dt}\mathbf{E}(\mathcal{V}(X_{t},t)\leqslant h_{t}^{2}\text{Tr}((\nabla_{xx}^{2}f(X_{t})a^{(1)}_{t}+\frac{1}{2}I_{d})\Sigma(X_{t})) for all twice differentiable functions f∈F0,∞f\in\mathcal{F}_{0,\infty}, all trajectories XtX_{t} generated by SDEs (23), and all dimensions d∈Nd\in\mathbf{N}. Then, it holds that E[f(Xt)−f⋆]⩽∥X0−X⋆∥2at(1)+γ2at(1)∫0ths2Tr((∇xx2f(Xs)as(1)+12Id)Σ(Xs))ds\displaystyle\mathbf{E}[f(X_{t})-f_{\star}]\leqslant\frac{\|X_{0}-X_{\star}\|^{2}}{a^{(1)}_{t}}+\frac{\gamma}{2a^{(1)}_{t}}\int_{0}^{t}h_{s}^{2}\text{Tr}((\nabla_{xx}^{2}f(X_{s})a^{(1)}_{s}+\frac{1}{2}I_{d})\Sigma(X_{s}))ds.

The Lyapunov function V\mathcal{V} directly comes from Corollary 2.12, for non-autonomous first-order gradient flows. The bound on E[f(Xt)−f⋆]\mathbf{E}[f(X_{t})-f_{\star}] is obtained using Ito’s formula on V\mathcal{V} along trajectories XtX_{t} generated by approximating SDEs (23).

The convergence bound from Corollary 3.3 is divided into two terms: a term that forgets the initial conditions and a variance term due to noise. Convergence is mostly controlled by the step size (a˙t(1)=2ht\dot{a}^{(1)}_{t}=2h_{t}). Bach and Moulines [2, Theorem 5] provided a comparable but much more complex analysis for stochastic gradient descent, for a specific family of step sizes. Let us compare our results, assuming ht=1(t+1)αh_{t}=\frac{1}{(t+1)^{\alpha}}, where α⩾0\alpha\geqslant 0. The Lyapunov function from Corollary 3.3 is given by V(Xt,t)=at(1)(f(Xt)−f⋆)+12∥Xt−x⋆∥2\mathcal{V}(X_{t},t)=a^{(1)}_{t}(f(X_{t})-f_{\star})+\frac{1}{2}\|X_{t}-x_{\star}\|^{2} with at(1)=(t+1)1−αa^{(1)}_{t}=(t+1)^{1-\alpha}. The forgetting of the initial condition is thus bounded by ∥x0−x⋆∥2(t+1)1−α\frac{\|x_{0}-x_{\star}\|^{2}}{(t+1)^{1-\alpha}}. Provided Σ(Xt)⪯Σ\Sigma(X_{t})\preceq\Sigma, the variance term is bounded by:

Because of the variance term, the Lyapunov converges if and only if α⩾12\alpha\geqslant\frac{1}{2}. In other words, convergence is not guaranteed for constant step sizes (α=0\alpha=0). If α∈(1/2,2/3)\alpha\in(1/2,2/3), the convergence in function value is bounded by O(1t2α−1)O(\frac{1}{t^{2\alpha-1}}). If α∈(2/3,1)\alpha\in(2/3,1), the convergence in function value is bounded by O(1t1−α)O(\frac{1}{t^{1-\alpha}}). As for SGD [2, Theorem 5], the convergence regime changes at α=23\alpha=\frac{2}{3} with a global convergence rate in 1t1/3\frac{1}{t^{1/3}}, for which the variance term and the term that forgets the initial conditions converges at the same rate (up to log(t)\text{log}(t)). It is therefore possible to reach convergence with diminishing step sizes. Other techniques have been developed to improve the trade-off between faster convergence and larger step sizes.

3 Averaging for larger step sizes

Polyak-Ruppert averaging is a standard way to improve convergence of SGD. In the discrete setting, convergence guarantees are considered at an averaged sequence defined by:

Other averaging techniques were later developed, such as primal averaging and averaging with respect to some nonnegative function . Primal averaging is detailed for comparison in Appendix C.

In this section, we analyze convergence properties of SDEs (23) with varying step sizes under Polyak-Ruppert averaging. Taylor and Bach [41, Theorem 6] provided a decreasing Lyapunov function along (xˉk,xk)(\bar{x}_{k},x_{k}) (24), and a condition on the step size for convergence to the optimum. An approximating SDE for Polyak-Ruppert averaging is:

with step size γ>0\gamma>0 that is taken close to zero, and a variable term ht∈h_{t}\in. We introduce the family of quadratic Lyapunov functions:

where at(1),at(2)⩾0a^{(1)}_{t},a^{(2)}_{t}\geqslant 0 are differentiable real functions, and Pt=(pt(11)pt(12)pt(12)pt(22))⪰0P_{t}=\begin{pmatrix}p^{(11)}_{t}&p^{(12)}_{t}\\ p^{(12)}_{t}&p^{(22)}_{t}\end{pmatrix}\succeq 0 has differentiable parameters. Given a Lyapunov function Vat(1),at(2),Pt\mathcal{V}_{a^{(1)}_{t},a^{(2)}_{t},P_{t}}, and SDEs (25), the performance estimation problem is formulated by:

A possible control of this quantity is presented in Theorem 3.5.

Let f∈F0,∞f\in\mathcal{F}_{0,\infty} be twice differentiable functions, and SDEs be taken under Polyak-Ruppert averaging (25) starting from x0∈Rdx_{0}\in\mathbf{R}^{d}, where d∈Nd\in\mathbf{N} is the dimension, and V\mathcal{V} be quadratic Lyapunov functions defined by (26). The following assertions are equivalent,

The inequality ddtEV(Xt,Xˉt,t)⩽12Tr((at(1)∇xxf(Xt)+2pt(11)Id)Σ(Xt))ht2γ\displaystyle\frac{d}{dt}\mathbf{E}\mathcal{V}(X_{t},\bar{X}_{t},t)\leqslant\frac{1}{2}\text{Tr}((a^{(1)}_{t}\nabla_{xx}f(X_{t})+2p^{(11)}_{t}I_{d})\Sigma(X_{t}))h_{t}^{2}\gamma is satisfied for all functions f∈F0,∞f\in\mathcal{F}_{0,\infty}, all trajectories (Xt,Xˉt)(X_{t},\bar{X}_{t}) generated by SDEs under Polyak-Ruppert averaging (25), and all dimensions d∈Nd\in\mathbf{N}.

There exist λt(1),...,λt(6)⩾0\lambda^{(1)}_{t},...,\lambda^{(6)}_{t}\geqslant 0 such that,

The proof follows the methodology from Section 2.1.1, and using the Gram matrix G=P⊤PG=P^{\top}P, where P=(Xt−x⋆,Xˉt−x⋆,gt,gˉt)P=(X_{t}-x_{\star},\bar{X}_{t}-x_{\star},g_{t},\bar{g}_{t}) (see Appendix B.1).

The variance term increases with at(1)a^{(1)}_{t}, and its convergence requires an additional smoothness assumption on ff. For this reason, we propose to analyze the convergence based on Lyapunov functions on the averaged sequence only (V0,at(2),Pt\mathcal{V}_{0,a^{(2)}_{t},P_{t}}).

Let f∈F0,∞f\in\mathcal{F}_{0,\infty} be twice differentiable functions, SDEs be taken under Polyak-Ruppert averaging (25) starting from x0∈Rdx_{0}\in\mathbf{R}^{d} where d∈Nd\in\mathbf{N} is the dimension. Assuming a˙t(2)⩽at(2)t\dot{a}^{(2)}_{t}\leqslant\frac{a^{(2)}_{t}}{t} and t→at(2)thtt\rightarrow\frac{a^{(2)}_{t}}{th_{t}} is a non-increasing function, the Lyapunov function

verifies ddtEV(Xt,Xˉt,t)⩽at(2)thtTr(Σ(Xt))\frac{d}{dt}\mathbf{E}\mathcal{V}(X_{t},\bar{X}_{t},t)\leqslant\frac{a^{(2)}_{t}}{t}h_{t}\text{Tr}(\Sigma(X_{t})) for all twice differentiable functions f∈F0,∞f\in\mathcal{F}_{0,\infty}, all trajectories XtX_{t} generated by SDEs (25) and all dimensions d∈Nd\in\mathbf{N}. Then, it holds that E[f(Xˉt)−f⋆]⩽∥x0−x⋆∥22at(2)+γ2at(2)∫0tas(2)shsTr(Σ(Xs))ds\displaystyle\mathbf{E}[f(\bar{X}_{t})-f_{\star}]\leqslant\frac{\|x_{0}-x_{\star}\|^{2}}{2a^{(2)}_{t}}+\frac{\gamma}{2a^{(2)}_{t}}\int_{0}^{t}\frac{a^{(2)}_{s}}{s}h_{s}\text{Tr}(\Sigma(X_{s}))ds.

The proof follows from Theorem 3.5 (see Appendix B.1).

When at(2)=ta^{(2)}_{t}=t (its maximal possible value), the step size verifies h˙t⩾0\dot{h}_{t}\geqslant 0. The variance term does not diverge if and only if hth_{t} is constant. Then, a convergence bound is given by E[f(Xˉt)−f⋆]⩽∥x0−x⋆∥22t+12Tr(σ)γh\mathbf{E}[f(\bar{X}_{t})-f_{\star}]\leqslant\frac{\|x_{0}-x_{\star}\|^{2}}{2t}+\frac{1}{2}\text{Tr}(\sigma)\gamma h. The decreasing condition on t→at(2)thtt\rightarrow\frac{a^{(2)}_{t}}{th_{t}} suggests a trade-off between converging and diminishing step size, as obtained without averaging.

Under the assumptions of Corollary 3.7, let us consider a bounded covariance matrix Σ(Xt)⪯Σ\Sigma(X_{t})\preceq\Sigma, a step size ht=1(t+1)αh_{t}=\frac{1}{(t+1)^{\alpha}}, and at(2)=tβa_{t}^{(2)}=t^{\beta} for α⩾0\alpha\geqslant 0 and 0⩽β⩽10\leqslant\beta\leqslant 1 some parameters. The decreasing condition imposes α+β⩽1\alpha+\beta\leqslant 1. A different behavior is expected from α\alpha and β\beta: on the one hand, an ideal step size should be large (α\alpha small), and on the other hand, we aim at converging as fast as possible (β\beta large). The term that forgets the initial conditions is bounded by O(1tβ)O(\frac{1}{t^{\beta}}), and the variance term by O(1tα)O(\frac{1}{t^{\alpha}}) if β≠α\beta\neq\alpha. When α=β\alpha=\beta, the variance term is in log(t)2tβ\frac{\text{log}(t)}{2t^{\beta}}. Hence, a natural choice is α=β=12\alpha=\beta=\frac{1}{2}, retrieving results from [2, Theorem 4] [41, Table 2] in discrete optimization.

3.2 Weighted averaging

Polyak-Ruppert performs uniform averaging of trajectories XtX_{t} over the time step. We introduce weighted averaging to analyze SGD, that is defined with respect to a function ut⩾0u_{t}\geqslant 0 ,

Under weighted averaging, and with Ctu=ut∫0tusdsC^{u}_{t}=\frac{u_{t}}{\int_{0}^{t}u_{s}ds}, the SDE is

We study convergence of this generalized version of Polyak-Ruppert averaging, and compare it to traditional averaging techniques.

Let f∈Fμ,∞f\in\mathcal{F}_{\mu,\infty} be twice differentiable functions, possibly strongly convex μ⩾0\mu\geqslant 0, and SDEs be given by (27), starting from x0∈Rdx_{0}\in\mathbf{R}^{d} where d∈Nd\in\mathbf{N} is the dimension. Assuming (ut2ht)˙⩽2μut\dot{\left(\frac{u_{t}}{2h_{t}}\right)}\leqslant 2\mu u_{t}, the Lyapunov function

verifies ddtEV(Xt,Xˉtu,t)⩽12uthtγTr(Σ(Xt))\frac{d}{dt}\mathbf{E}\mathcal{V}(X_{t},\bar{X}^{u}_{t},t)\leqslant\frac{1}{2}u_{t}h_{t}\gamma\text{Tr}(\Sigma(X_{t})) for all twice differentiable functions f∈F0,∞f\in\mathcal{F}_{0,\infty}, all trajectories (Xt,Xˉt)(X_{t},\bar{X}_{t}) generated by SDEs with averaging (27), and all dimensions d∈Nd\in\mathbf{N}.

Then, it holds that E[f(Xˉtu)−f⋆]⩽∥x0−x⋆∥2u02h0∫0tusds+γ4∫0tusds∫0tushsTr(Σ(Xs))ds\displaystyle\mathbf{E}[f(\bar{X}^{u}_{t})-f_{\star}]\leqslant\frac{\|x_{0}-x_{\star}\|^{2}u_{0}}{2h_{0}\int_{0}^{t}u_{s}ds}+\frac{\gamma}{4\int_{0}^{t}u_{s}ds}\int_{0}^{t}u_{s}h_{s}\text{Tr}(\Sigma(X_{s}))ds.

These results are obtained by replacing 1t→Ctu\frac{1}{t}\rightarrow C^{u}_{t} (see Appendix B.2).

Let us consider convex functions f∈F0,∞f\in\mathcal{F}_{0,\infty}, a bounded covariance matrix Σ(Xt)⪯Σ\Sigma(X_{t})\preceq\Sigma, a step size ht=1(t+1)αh_{t}=\frac{1}{(t+1)^{\alpha}}, and an averaging function ut=1(t+1)βu_{t}=\frac{1}{(t+1)^{\beta}}, with α,β⩾0\alpha,\beta\geqslant 0. From Theorem 3.9, the terms that forgets the initial conditions is in 1(t+1)1−β\frac{1}{(t+1)^{1-\beta}}, and the variance term in 1(t+1)α\frac{1}{(t+1)^{\alpha}}. Both terms converge at same rate for α=β=12\alpha=\beta=\frac{1}{2} (up to log⁡(t+1)\log{(t+1)}). We retrieve convergence results for SGD under Polyak-Ruppert averaging [2, Theorem 6].

For strongly convex functions f∈Fμ,∞f\in\mathcal{F}_{\mu,\infty}, polynomial convergence can be reached for the term that contains the initial conditions. However, the variance term cannot converge faster than the step size. Given a bounded covariance matrix Σ(Xt)⪯Σ\Sigma(X_{t})\preceq\Sigma, the variance term behaves after integrating by part ∫0tushsds∫0tusds=ht−∫0t(∫u)h˙sds∫0tusds\frac{\int_{0}^{t}u_{s}h_{s}ds}{\int_{0}^{t}u_{s}ds}=h_{t}-\frac{\int_{0}^{t}(\int u)\dot{h}_{s}ds}{\int_{0}^{t}u_{s}ds}. For diminishing step sizes, ∫0tushsds∫0tusds⩾ht\frac{\int_{0}^{t}u_{s}h_{s}ds}{\int_{0}^{t}u_{s}ds}\geqslant h_{t}. Hence, averaging allows a better convergence for the terms containing initial conditions, but does not play a role in the variance term. To conclude, weighted averaging does not improve convergence results obtained under Polyak-Ruppert or primal averaging. The trade-off between the forgetting of the initial conditions and the noise term mostly relies on step sizes.

We have analyzed convergence of SGD together with averaging techniques in continuous-time, using approximating SDEs (23). Compared with discrete time, the continuous-time analysis leads to similar convergence results, while benefiting from simpler formulations, fewer assumptions especially on step sizes. Using this approach, we analyzed the trade-off between non-uniform averaging and step sizes, paving the way to a better understanding of averaging techniques. In the next session, we explore new convergence analyses for stochastic accelerated methods.

Accelerating the gradient flow

For both stochastic and deterministic models, we have retrieved known convergence results for continuous-time models approximating optimization methods. In this section, we provide convergence guarantees for second order gradient flows, and in particular for AGF (17).

In the deterministic setting, convergence of gradient descent was improved using a momentum. In this section, let f∈F0,∞f\in\mathcal{F}_{0,\infty} be twice differentiable function and γ>0\gamma>0 be constant step sizes. Li [22, Theorem 16, Section 4.4] proved that Nesterov accelerated gradient has the approximating SDE (for order-1 weak approximations),

As for SGD, the Lyapunov function V(x,t)=t2(f(x)−f⋆)+2∥(x−x⋆)+t2x˙∥2\mathcal{V}(x,t)=t^{2}(f(x)-f_{\star})+2\|(x-x_{\star})+\frac{t}{2}\dot{x}\|^{2} obtained from Theorem 2.10 does not allow to conclude about convergence to a stationary point of trajectories XtX_{t} generated by stochastic accelerated gradient flows (28). Assuming bounded covariance Σ(Xt)⪯Σ\Sigma(X_{t})\preceq\Sigma and applying Ito’s formula to V(⋅)\mathcal{V}(\cdot) along XtX_{t},

In the following, we explore Polyak-Ruppert averaging together with diminishing step sizes, to analyze convergence of second-order SDEs.

Averaging was a key to success for improving convergence of SGD (see Section 3). It is natural to wonder if averaging preserves the acceleration of Nesterov’s gradient flow . Let us define stochastic sedond-order gradient flows with Polyak-Ruppert averaging:

where βt⩾0\beta_{t}\geqslant 0 is a function, and a family of quadratic Lyapunov functions,

where Pt⪰0P_{t}\succeq 0 and at(1),at(2)⩾0a^{(1)}_{t},a^{(2)}_{t}\geqslant 0 are differentiable functions.

Let f∈F0,∞f\in\mathcal{F}_{0,\infty} be twice differentiable functions, V=Vat(1),at(2),Pt\mathcal{V}=\mathcal{V}_{a^{(1)}_{t},a^{(2)}_{t},P_{t}} be quadratic Lyapunov functions, and stochastic accelerated gradient flows under Polyak-Ruppert averaging (29) with constant step sizes ht=1h_{t}=1, starting from x0∈Rdx_{0}\in\mathbf{R}^{d}, where d∈Nd\in\mathbf{N} is the dimension. Then it holds that:

When at(1)=0a^{(1)}_{t}=0, if the function V\mathcal{V} verifies ddtEV(Xt,Xˉt,t)⩽Tr(2pt(11)γΣ(Xt))\frac{d}{dt}\mathbf{E}\mathcal{V}(X_{t},\bar{X}_{t},t)\leqslant\text{Tr}(2p^{(11)}_{t}\gamma\Sigma(X_{t})) for all twice-differentiable functions f∈F0,∞f\in\mathcal{F}_{0,\infty}, all trajectories (Xt,Xˉt)(X_{t},\bar{X}_{t}) generated by SDEs (29), and all dimensions d∈Nd\in\mathbf{N}, then V=0\mathcal{V}=0.

When at(2)=0a^{(2)}_{t}=0, the Lyapunov function

verifies ddtEV(Xt,t)⩽Tr(2at(1)γΣ(Xt))\frac{d}{dt}\mathbf{E}\mathcal{V}(X_{t},t)\leqslant\text{Tr}(2a^{(1)}_{t}\gamma\Sigma(X_{t})), with at(1)⩽t2a^{(1)}_{t}\leqslant t^{2} for all functions f∈F0,∞f\in\mathcal{F}_{0,\infty}, all trajectories XtX_{t} generated by stochastic second-order gradient flows (29) and all dimensions d∈Nd\in\mathbf{N}. Then, it holds that E[f(Xt)−f⋆]⩽2∥x0−x⋆∥2at(1)+12at(1)γ∫0tas(1)Tr(Σ(Xs))ds.\displaystyle\mathbf{E}[f(X_{t})-f_{\star}]\leqslant\frac{2\|x_{0}-x_{\star}\|^{2}}{a^{(1)}_{t}}+\frac{1}{2a^{(1)}_{t}}\gamma\int_{0}^{t}a^{(1)}_{s}\text{Tr}(\Sigma(X_{s}))ds.

The proof follow from Theorem 2.15 (see Appendix B.3).

To conclude, with constant step sizes, there is no Lyapunov functions that allows to forget the initial conditions while reducing the variance term. Primal averaging leads to similar results (see Appendix C). Therefore, averaging plays a different role in second-order SDEs than in first-order SDEs under Polyak-Ruppert averaging.

2 Diminishing step sizes

Averaging was not conclusive for finding a convergence guarantee of Nesterov’s accelerated gradient flow with a diffusion term. Let us consider second-order stochastic gradient flows with varying step sizes ht⩾0h_{t}\geqslant 0,

We propose a Lyapunov function among the class of quadratic functions (14).

Let f∈F0,∞f\in\mathcal{F}_{0,\infty} be twice differentiable functions, XtX_{t} be a trajectory generated by stochastic second-order gradient flows (31) with varying step sizes ht⩾0h_{t}\geqslant 0 and γ>0\gamma>0, starting from x0∈Rdx_{0}\in\mathbf{R}^{d}, where d∈Nd\in\mathbf{N} is the dimension. Assuming a˙t⩽at23(βt+12h˙tht)\dot{a}_{t}\leqslant a_{t}\frac{2}{3}(\beta_{t}+\frac{1}{2}\frac{\dot{h}_{t}}{h_{t}}) and t→(a˙t)22htatt\rightarrow\frac{(\dot{a}_{t})^{2}}{2h_{t}a_{t}} a decreasing function, the Lyapunov function

verifies ddtEV(Xt,t)⩽14Tr(athtΣ(Xt))γ\frac{d}{dt}\mathbf{E}\mathcal{V}(X_{t},t)\leqslant\frac{1}{4}\text{Tr}(a_{t}h_{t}\Sigma(X_{t}))\gamma for all functions f∈F0,∞f\in\mathcal{F}_{0,\infty}, all trajectories XtX_{t} generated by stochastic second-order gradient flows (31) and all dimensions d∈Nd\in\mathbf{N}.

This result is obtained extending the LMI for ODEs from Theorem 2.15 and Corollary 2.16 to varying step sizes.

Let us now assume that ht=1(t+1)αh_{t}=\frac{1}{(t+1)^{\alpha}} and βt=bt\beta_{t}=\frac{b}{t}, where α,b>0\alpha,b>0. It follows from Theorem 4.3, that a˙t⩽βatt\dot{a}_{t}\leqslant\beta\frac{a_{t}}{t}, where β⩽2b−α3\beta\leqslant\frac{2b-\alpha}{3} and α+β⩽2\alpha+\beta\leqslant 2, and

We assume bounded covariance of Σ(Xt)⪯Σ\Sigma(X_{t})\preceq\Sigma, then β⩽min(2b−α3,2−α)\beta\leqslant\text{min}(\frac{2b-\alpha}{3},2-\alpha). On the one hand, the smaller the step sizes, the better the convergence for the term that contains the initial conditions. On the other hand, the variance term behaves as 1tβ\frac{1}{t^{\beta}} if β⩽α−1\beta\leqslant\alpha-1, and as 1tα−1\frac{1}{t^{\alpha-1}} otherwise (convergence requiring then α⩽1\alpha\leqslant 1 and β⩽1\beta\leqslant 1). For Nesterov’s accelerated gradient flow with b=3b=3, we have β=2−α⩽α−1\beta=2-\alpha\leqslant\alpha-1, and therefore α⩾32\alpha\geqslant\frac{3}{2}. Taking α=32\alpha=\frac{3}{2}, a convergence bound is given by:

We retrieve result from Corollary 3.7 for the SDE approximating SGD with Polyak-Ruppert averaging, with smaller step sizes. It does not seem possible to accelerate SGD when diminishing the step size. Ghadimi and Lan [31, Corollary 3] proved a convergence bound for a randomized stochastic accelerated gradient method with β=2\beta=2 and α=12\alpha=\frac{1}{2}, that we do not retrieved. However, in their approach, the function is minimized over a compact, convex domain, whereas our approach focuses on an unbounded domain.

Conclusion and future work

We have developed a systematic approach for generating Lyapunov functions for families of ODEs and SDEs. Verifying such a Lyapunov function can be formulated as an LMI. From this formulation, it is possible to derive Lyapunov functions and the associated convergence bounds. We retrieve results from discrete optimization methods with shorter proofs, and fewer assumptions.

While obtaining guarantees for stochastic optimization methods might be tedious, the SDE approach allows for simpler analyses of the trade-off between the variance term and term that forgets the initial conditions. A shortcoming of this approach is that this analysis does not include approximation guarantees between optimization methods and their continuous-time counterparts. In the deterministic setting, stability techniques are often developed to quantify this approximation efficiency . In stochastic analysis, stochastic modified equation have been introduced by Li et al. [21, Theorem 1] to better approximate SGD, and stochastic methods with momentum. For non-convex functions, some analysis have also been done by Shi et al . However, these approximation theorems often require many assumptions on the class of functions, which we believe could be further simplified using computer-assisted proofs.

Acknowledgments

This work was funded by MTE and the Agence Nationale de la Recherche as part of the “Investissements d’avenir” program, reference ANR-19- P3IA-0001 (PRAIRIE 3IA Institute). We also acknowledge support from the European Research Council (grant SEQUOIA 724063).

References

Appendix A Proof for ODEs

Let us consider XtX_{t} a solution to the gradient flow (3) starting from x0∈Rdx_{0}\in\mathbf{R}^{d}, and a quadratic Lyapunov function of the form Vat,ct(Xt,t)=at⋅(f(Xt)−f⋆)+ct⋅∥Xt−x⋆∥2\mathcal{V}_{a_{t},c_{t}}(X_{t},t)=a_{t}\cdot(f(X_{t})-f_{\star})+c_{t}\cdot\|X_{t}-x_{\star}\|^{2} such that at,cta_{t},c_{t} are differentiable and Vat,ct\mathcal{V}_{a_{t},c_{t}} is nonnegative over the trajectory XtX_{t}. The family of function ff is supposed to be μ\mu-strongly convex, with μ⩾0\mu\geqslant 0. We are going to prove the LMI equivalence of Theorem 2.4 and Theorem 2.1.

Let us first rephrase our objective, that is computing a Lyapunov function that is decreasing along XtX_{t}.

Since f∈Fμ,∞f\in\mathcal{F}_{\mu,\infty}, this problem is at first sight infinite-dimensional, and thus not easily solvable. Let us reformulate it as an feasibility condition over the class of functions,

This problem remains infinite-dimensional, but we can reformulate it thanks to an interpolation theorem of the class of functions Fμ,L\mathcal{F}_{\mu,L} on (Xi,gi,fi)(X_{i},g_{i},f_{i}), with 0⩽μ⩽L⩽∞0\leqslant\mu\leqslant L\leqslant\infty. A set {(Xi,gi,fi)i∈I}\{(X_{i},g_{i},f_{i})_{i\in I}\} is said to be Fμ,L\mathcal{F}_{\mu,L}-interpolable if there exist f∈Fμ,Lf\in\mathcal{F}_{\mu,L} such that fi=f(Xi)f_{i}=f(X_{i}) and gi=∇f(Xi)g_{i}=\nabla f(X_{i}) for all i∈Ii\in I. It turns out that the formulation for this class of functions is quite simple.

[45, Theorem 4]: Set {(Xi,gi,fi)}i∈I\{(X_{i},g_{i},f_{i})\}_{i\in I} if Fμ,L\mathcal{F}_{\mu,L} interpolable if and only if the following set of conditions holds for every pair of indices i∈Ii\in I and j∈Jj\in J

This theorem allows to replace the problem above by a quadratic program, linear in ft,f⋆)f_{t},f_{\star}) and quadratic in (xt,gt,x⋆)(x_{t},g_{t},x_{\star}).

Let GG be a Gram matrix defined by G=(∥Xt−x⋆∥2⟨Xt−x⋆,gt⟩⟨Xt−x⋆,gt⟩∥gt∥2)⪰0G=\begin{pmatrix}\|X_{t}-x_{\star}\|^{2}&\langle X_{t}-x_{\star},g_{t}\rangle\\ \langle X_{t}-x_{\star},g_{t}\rangle&\|g_{t}\|^{2}\end{pmatrix}\succeq 0 and the vector F=[ft,f⋆]F=[f_{t},f_{\star}]. The quadratic program can thus be formulated into a semidefinite program,

where A0=(c˙t−ct−ct−at)A_{0}=\begin{pmatrix}\dot{c}_{t}&-c_{t}\\ -c_{t}&-a_{t}\end{pmatrix}, A1=(−μ/21/21/20)A_{1}=\begin{pmatrix}-\mu/2&1/2\\ 1/2&0\end{pmatrix}, A2=(−μ/2000)A_{2}=\begin{pmatrix}-\mu/2&0\\ 0&0\end{pmatrix}, b0=a˙t[1, −1]⊤b_{0}=\dot{a}_{t}[1,\ -1]^{\top} b1=[−1, 1]⊤b_{1}=[-1,\ 1]^{\top} and b2=[1, −1]⊤b_{2}=[1,\ -1]^{\top}.

In this convex case, strong duality holds via Slater’s conditions [45, Theorem 6]. Consider the Lagrangian dual of the SDP,

When μ=0\mu=0, this formulation is exactly the LMI formulation obtained in Theorem 2.4. When μ>0\mu>0, the LMI corresponds to Theorem 2.1 for a˙t=e2μta\dot{a}_{t}=e^{2\mu t}a and c˙t=e2μtc\dot{c}_{t}=e^{2\mu t}c.

A.2 Proof for Corollary 2.16

From Theorem 2.4, we get a LMI reformulation to finding a suitable Lyapunov function: There exist λt(1),λt(2)⩾0\lambda^{(1)}_{t},\lambda^{(2)}_{t}\geqslant 0 such that,

Convex functions. Let us first assume the functions ff to minimize are convex (μ=0\mu=0). While determining a suitable Lyapunov function Vat,Pt\mathcal{V}_{a_{t},P_{t}}, we try to find a large parameter ata_{t} at time tt. To this end, we saturate a˙t=λt(1)\dot{a}_{t}=\lambda_{t}^{(1)} (λt(2)=0\lambda_{t}^{(2)}=0). The LMI can then be simplified into:

From linear algebra, the matrix SS is semi-definite negative if and only if the diagonal terms are negative. We obtain two conditions on ata_{t}:

In addition, we assumed Pt⪯0P_{t}\preceq 0 to enforce positivity of the Lyapunov function Vat,Pt\mathcal{V}_{a_{t},P_{t}}, which is equivalent to pt(11)⩾(pt(12))2pt(22)=(a˙t)22atp^{(11)}_{t}\geqslant\frac{(p^{(12)}_{t})^{2}}{p^{(22)}_{t}}=\frac{(\dot{a}_{t})^{2}}{2a_{t}}.

On the one hand, we conclude that the function a˙t2at⩽p0(11)\frac{\dot{a}_{t}}{2\sqrt{a_{t}}}\leqslant p_{0}^{(11)}, and after integrating between and tt, that at⩽a0+p0(11)2t\sqrt{a_{t}}\leqslant\sqrt{a_{0}}+\frac{\sqrt{p_{0}^{(11)}}}{2}t (at=O(t2)a_{t}=O(t^{2})). On the other hand, we conclude that a˙t⩽23βtat\dot{a}_{t}\leqslant\frac{2}{3}\beta_{t}a_{t}. For all ϵ>0\epsilon>0, after integrating between ϵ\epsilon, and tt, that at⩽aϵe∫ϵ⊤23βsdsa_{t}\leqslant a_{\epsilon}e^{\int_{\epsilon}^{\top}\frac{2}{3}\beta_{s}ds}. Therefore, at⩽lim⁡ϵ→0aϵe∫ϵ⊤23βsdsa_{t}\leqslant\lim_{\epsilon\rightarrow 0}a_{\epsilon}e^{\int_{\epsilon}^{\top}\frac{2}{3}\beta_{s}ds}, and a bound on ata_{t} is given by:

Assuming for instance a0=0a_{0}=0 and p0(11)=2p_{0}^{(11)}=2, we obtain:

Strongly convex functions. Similar result can be obtain assuming an exponential form for the parameters at=aetτa_{t}=ae^{t\tau}, and Pt=PetτP_{t}=Pe^{t\tau}, where τ>0\tau>0 is a convergence parameter to determine.

Taking a generic form for βt=rt\beta_{t}=\frac{r}{t}), the condition lim⁡ϵ→0aϵe∫ϵ⊤23βsds\lim_{\epsilon\rightarrow 0}a_{\epsilon}e^{\int_{\epsilon}^{\top}\frac{2}{3}\beta_{s}ds} takes more sense. Indeed, at=t2r/3a_{t}=t^{2r/3} is a solution to at=lim⁡ϵ→0aϵe∫ϵ⊤23βsdsa_{t}=\lim_{\epsilon\rightarrow 0}a_{\epsilon}e^{\int_{\epsilon}^{\top}\frac{2}{3}\beta_{s}ds} (which requires a0=0a_{0}=0).

Appendix B Proofs for SDEs

We consider the stochastic gradient flow under Polyak-Ruppert averaging (25), that is recalled here:

where hth_{t} is the varying part of the step size, and γ>0\gamma>0 the maximum allowed step size.

Let us consider the family of quadratic Lyapunov functions defined by

where at(1),at(2)a^{(1)}_{t},a^{(2)}_{t} are differentiable real functions, and Pt=(pt(11)pt(12)pt(12)pt(22))⪰0P_{t}=\begin{pmatrix}p^{(11)}_{t}&p^{(12)}_{t}\\ p^{(12)}_{t}&p^{(22)}_{t}\end{pmatrix}\succeq 0 has differentiable parameters. We look for a worst-case guarantee in the Lyapunov approach, that can be cast as a minimization problem at time tt,

Let us denote Yt=(XtXˉt)Y_{t}=\begin{pmatrix}X_{t}\\ \bar{X}_{t}\end{pmatrix}, and Vat(1),at(2),Pt(Xt,Xˉt,t)=V(Yt,t)\mathcal{V}_{a^{(1)}_{t},a^{(2)}_{t},P_{t}}(X_{t},\bar{X}_{t},t)=\mathcal{V}(Y_{t},t), then ddtV(Yt,t)=∂∂tV(Yt,t)+∂∂yVdYtdt+12γht2Tr[∂2∂Yt2V(Yt,t)⊤(Σ(Xt)0)]\frac{d}{dt}\mathcal{V}(Y_{t},t)=\frac{\partial}{\partial t}\mathcal{V}(Y_{t},t)+\frac{\partial}{\partial y}\mathcal{V}\frac{dY_{t}}{dt}+\frac{1}{2}\gamma h^{2}_{t}\text{Tr}[\frac{\partial^{2}}{\partial Y_{t}^{2}}\mathcal{V}(Y_{t},t)^{\top}\begin{pmatrix}\Sigma(X_{t})\\ 0\end{pmatrix}]. Then, we have,

The noise term only depends on the second derivative of ff in XtX_{t} and contains a noise term Σ(Xt)\Sigma(X_{t}). We propose to not take the noise term into account in the SDP formulation. The inequality

Using convex interpolation on triplets {(Xt,gt,ft)\{(X_{t},g_{t},f_{t}), (Xˉt,gˉt,fˉt)(\bar{X}_{t},\bar{g}_{t},\bar{f}_{t}), (X⋆,0,f(X⋆))}(X_{\star},0,f(X_{\star}))\} such that there exists f∈F0,∞f\in\mathcal{F}_{0,\infty} verifying ft=f(Xt)f_{t}=f(X_{t}), gt=∇f(Xt)g_{t}=\nabla f(X_{t}), f(Xˉt)=fˉtf(\bar{X}_{t})=\bar{f}_{t} and fˉt=∇f(Xˉt)\bar{f}_{t}=\nabla f(\bar{X}_{t}), the infinite dimensional problem has a quadratic program formulation. Introducing the Gram matrix G=Y⊤Y⪰0, Y=[Xt−x⋆,Xˉt−x⋆,gt,gˉt]G=Y^{\top}Y\succeq 0,\ Y=[X_{t}-x_{\star},\bar{X}_{t}-x_{\star},g_{t},\bar{g}_{t}], the maximization problem is reformulated as an SDP program, whose dual is the following LMI,

where λt(i), i∈{1,...,6}\lambda_{t}^{(i)},\ i\in\{1,...,6\} are dual values associated with interpolation inequalities. These three inequalities can be reduced to two independent equalities.

Using the LMI formulation of Theorem 3.5, the Lyapunov function V(Xt,Xˉt,t)=at(2)(f(Xtˉ)−f⋆)+pt(11)∥Xt−X⋆∥2\mathcal{V}(X_{t},\bar{X}_{t},t)=a^{(2)}_{t}(f(\bar{X_{t}})-f_{\star})+p_{t}^{(11)}\|X_{t}-X_{\star}\|^{2} satisfies the LMI:

From the LMI, we conclude that λt(3)=λt(6)=0\lambda_{t}^{(3)}=\lambda_{t}^{(6)}=0, λt(5)=at(2)t\lambda_{t}^{(5)}=\frac{a_{t}^{(2)}}{t}, λt(4)=htpt(11)\lambda_{t}^{(4)}=h_{t}p_{t}^{(11)}. The LMI is verified if, and only if,

The bound in function values follows from this Lyapunov function integrated between and tt.

B.2 Proof for Theorem 3.9

Following the same reasoning as in the proof for Theorem 2.4, the worst-case guarantee can be formulated as the maximization problem:

where xˉtu=1∫0tusds∫0⊤usxsds\bar{x}^{u}_{t}=\frac{1}{\int_{0}^{t}u_{s}ds}\int_{0}^{\top}u_{s}x_{s}ds and Ctu=ut∫0tusdsC^{u}_{t}=\frac{u_{t}}{\int_{0}^{t}u_{s}ds}. Its LMI equivalent reformulation is given by:

Considering the Lyapunov function V(Xt,Xˉtu,t)=at(2)(f(Xˉtu)−f⋆)+pt(11)∥Xt−x⋆∥2\mathcal{V}(X_{t},\bar{X}^{u}_{t},t)=a_{t}^{(2)}(f(\bar{X}_{t}^{u})-f_{\star})+p_{t}^{(11)}\|X_{t}-x_{\star}\|^{2}, it follows that a˙t(2)⩽Ctuat(2)\dot{a}_{t}^{(2)}\leqslant C^{u}_{t}a_{t}^{(2)}, and pt(11)=at(2)Ctu2htp_{t}^{(11)}=\frac{a_{t}^{(2)}C^{u}_{t}}{2h_{t}} with p˙t(11)⩽0\dot{p}_{t}^{(11)}\leqslant 0. After integrating, we have at(2)⩽a0(2)uta_{t}^{(2)}\leqslant a_{0}^{(2)}u_{t}. When saturating this inequality, we get the Lyapunov function from the Theorem V(Xt,Xˉtu,t)=utCtu(f(Xˉtu)−f⋆)+ut2ht∥Xt−x⋆∥2\mathcal{V}(X_{t},\bar{X}^{u}_{t},t)=\frac{u_{t}}{C^{u}_{t}}(f(\bar{X}_{t}^{u})-f_{\star})+\frac{u_{t}}{2h_{t}}\|X_{t}-x_{\star}\|^{2} with (ut2ht)˙⩽0\dot{\left(\frac{u_{t}}{2h_{t}}\right)}\leqslant 0. When considering interpolation inequalities under strong convexity of ff, the condition is (ut2ht)˙⩽2μut\dot{\left(\frac{u_{t}}{2h_{t}}\right)}\leqslant 2\mu u_{t}.

B.3 Proof for Theorem 4.1

We follow the same reasoning as in Theorem 2.4 and Theorem 3.5, the worst-case guarantee can be formulated as the maximization problem:

where Vat(1),at(2),Pt(Xt,Xˉt,t)=(at(1)at(2))⊤ ⁣ ⁣ ⁣(f(Xt)−f⋆f(Xtˉ)−f⋆)+(Xt˙Xt−X⋆Xtˉ−X⋆)⊤ ⁣ ⁣ ⁣Pt(Xt˙Xt−X⋆Xtˉ−X⋆)\mathcal{V}_{a^{(1)}_{t},a^{(2)}_{t},P_{t}}(X_{t},\bar{X}_{t},t)=\begin{pmatrix}a^{(1)}_{t}\\ a^{(2)}_{t}\end{pmatrix}^{\top}\!\!\!\begin{pmatrix}f(X_{t})-f_{\star}\\ f(\bar{X_{t}})-f_{\star}\end{pmatrix}+\begin{pmatrix}\dot{X_{t}}\\ X_{t}-X_{\star}\\ \bar{X_{t}}-X_{\star}\end{pmatrix}^{\top}\!\!\!P_{t}\begin{pmatrix}\dot{X_{t}}\\ X_{t}-X_{\star}\\ \bar{X_{t}}-X_{\star}\end{pmatrix} with Pt⪰0P_{t}\succeq 0, with differentiable coefficients, and at(1),at(2)a^{(1)}_{t},a^{(2)}_{t} are nonnegative differentiable functions. Introducing the Gram matrix G=P⊤PG=P^{\top}P with P=[X˙t, Xt−X⋆, Xˉt−x⋆, ∇f(Xt), ∇f(Xˉt)]P=[\dot{X}_{t},\ X_{t}-X_{\star},\ \bar{X}_{t}-x_{\star},\ \nabla f(X_{t}),\ \nabla f(\bar{X}_{t})], the LMI equivalent reformulation is given by:

Thus, pt(11)=0p_{t}^{(11)}=0, and because PtP_{t} is positive semidefinite, pt(12)=pt(13)=0p_{t}^{(12)}=p_{t}^{(13)}=0. Then, at(1)=0a_{t}^{(1)}=0. If in addition at(2)=0a_{t}^{(2)}=0, the unique feasible Lyapunov function is Vat(1),at(2),Pt=0\mathcal{V}_{a^{(1)}_{t},a^{(2)}_{t},P_{t}}=0. Otherwise, the LMI can be simplified to the LMI of Theorem 2.15.

Appendix C Primal averaging

In this appendix, we analyze primal averaging, that is to compare with Polyak-Ruppert averaging. Both continuous-time models happens to have very similar behavior.

Let us consider primal averaging, introduced by Tao et al. , that led to a simpler analysis of averaging in SGD [41, Theorem 7]

Unlike Polyak-Ruppert averaging, the gradient is evaluated on the averaged sequence Xˉt\bar{X}_{t}, that drives the dynamics on XtX_{t}. The family of Lyapunov functions Vat(1),at(2),Pt\mathcal{V}_{a^{(1)}_{t},a^{(2)}_{t},P_{t}} causes a noise 12Tr((at(1)∇xxf(Xˉt)+2pt(11)Id)Σ)ht2γ\frac{1}{2}\text{Tr}((a^{(1)}_{t}\nabla_{xx}f(\bar{X}_{t})+2p^{(11)}_{t}I_{d})\Sigma)h_{t}^{2}\gamma. As for Polyak-Ruppert averaging, we consider the family of Lyapunov functions V0,at(2),Pt\mathcal{V}_{0,a^{(2)}_{t},P_{t}}. It is possible to obtain an LMI condition on the Lyapunov, as done in Theorem 3.5.

Let f∈F0,∞f\in\mathcal{F}_{0,\infty} be twice differentiable functions, and SDEs (34) starting from x0∈Rdx_{0}\in\mathbf{R}^{d}, where d∈Nd\in\mathbf{N} is the dimension and originating from convex functions ff. Assuming a˙t(2)⩽at(2)t\dot{a}^{(2)}_{t}\leqslant\frac{a^{(2)}_{t}}{t} and t→at(2)thtt\rightarrow\frac{a^{(2)}_{t}}{th_{t}} is a non-increasing function, the following Lyapunov function

verifies ddtEV(Xt,t)⩽γ2Tr(Σ(Xt))htat(2)t\frac{d}{dt}\mathbf{E}\mathcal{V}(X_{t},t)\leqslant\frac{\gamma}{2}\text{Tr}(\Sigma(X_{t}))h_{t}\frac{a_{t}^{(2)}}{t} for all twice-differentiable functions f∈F0,∞f\in\mathcal{F}_{0,\infty}, for all trajectories (Xt,Xˉt)(X_{t},\bar{X}_{t}) generated by the SDEs (34), and all dimensions d∈Nd\in\mathbf{N}.

Then, it holds that E[f(Xˉt)−f⋆]⩽∥x0−x⋆∥22at(2)h0+γ2at(2)∫0tTr(Σ(Xs))hsas(2)sds\displaystyle\mathbf{E}[f(\bar{X}_{t})-f_{\star}]\leqslant\frac{\|x_{0}-x_{\star}\|^{2}}{2a_{t}^{(2)}h_{0}}+\frac{\gamma}{2a_{t}^{(2)}}\int_{0}^{t}\text{Tr}(\Sigma(X_{s}))h_{s}\frac{a_{s}^{(2)}}{s}ds.

This results is obtained following the same reasoning as for Polyak-Ruppert averaging in Theorem 2.4. The equivalent LMI to inequality

for any twice-differentiable function f∈F0,∞f\in\mathcal{F}_{0,\infty} and any trajectory (Xt,Xˉt)(X_{t},\bar{X}_{t}) generated by the SDE (34), is given by

The Lyapunov function defined by V(Xt,Xˉt,t)=at(2)(f(Xˉ\textdegreet)−f⋆)+pt(11)∥Xt−x⋆∥2\mathcal{V}(X_{t},\bar{X}_{t},t)=a_{t}^{(2)}(f(\bar{X}\textdegree t)-f_{\star})+p_{t}^{(11)}\|X_{t}-x_{\star}\|^{2} verifies the following LMI

Thus, λt(6)=λt(4)=λt(5)=λt(1)=0\lambda_{t}^{(6)}=\lambda_{t}^{(4)}=\lambda_{t}^{(5)}=\lambda_{t}^{(1)}=0, and

Primal averaging involves at most two interpolation inequalities whereas Polyak- Ruppert averaging may involve up to four inequalities to obtain the same convergence guarantee. Compared with Polyak- Ruppert averaging, primal averaging has similar convergence guarantees but requires less interpolation inequalities.

In discrete time, convergence of primal averaging is often proven using its connection to the heavy ball method . In continuous time, primal averaging also allows to describe the dynamics of the averaged sequence by a second-order SDE Xˉ¨t+2tXtˉ˙+1t∇f(Xtˉ)+γΣ(Xt)tdBtdt=0.\ddot{\bar{X}}_{t}+\frac{2}{t}\dot{\bar{X_{t}}}+\frac{1}{t}\nabla f(\bar{X_{t}})+\frac{\sqrt{\gamma\Sigma(X_{t})}}{t}\frac{dB_{t}}{dt}=0. The convergence bound above can be obtained directly from this SDE. This analysis allows to understand the relationship between averaging and accelerated gradient flows.

Under primal averaging, the convergence in function values is exactly the same as under Polyak-Ruppert averaging, but involves only one interpolation inequality. When considering optimization methods, [41, Theorem 7] also pointed out that primal averaging leads to shorter proofs.

C.2 Second order-gradient flow

We have seen primal averaging for stochastic first-order gradient flows (23) leads to a second-order SDE. For the accelerated gradient flow under primal averaging, it is possible to obtain a third order SDE,

A natural quadratic Lyapunov is given by Vat,Pt(Xt)=at(f(Xt)−f⋆)+Ut⊤PtUt\mathcal{V}_{a_{t},P_{t}}(X_{t})=a_{t}(f(X_{t})-f_{\star})+U_{t}^{\top}P_{t}U_{t}, where Ut=(Xt−X⋆,Xt˙,X¨t)⊤U_{t}=\begin{pmatrix}X_{t}-X_{\star},&\dot{X_{t}},&\ddot{X}_{t}\end{pmatrix}^{\top}, and ata_{t} is a nonnegative differentiable function, and Pt⪰0P_{t}\succeq 0 has differentiable parameters.

Let f∈F0,∞f\in\mathcal{F}_{0,\infty} be twice differentiable functions, βt⩾0\beta_{t}\geqslant 0 be differentiable functions, and consider the following ODE starting from x0∈Rdx_{0}\in\mathbf{R}^{d} where d∈Nd\in\mathbf{N} is the dimension,

If a quadratic Lyapunov function Vat,Pt\mathcal{V}_{a_{t},P_{t}} as defined above verifies ddtVat,Pt(Xt,t)⩽0\frac{d}{dt}\mathcal{V}_{a_{t},P_{t}}(X_{t},t)\leqslant 0 for all twice-differentiable functions f∈F0,∞f\in\mathcal{F}_{0,\infty}, all solutions XtX_{t} to ODEs defined above, and all dimensions d∈Nd\in\mathbf{N}, then Vat,Pt=0\mathcal{V}_{a_{t},P_{t}}=0.

Following the reasoning from Appendix A.1, the problem of finding a suitable Lyapunov function can be formulated as a maximization problem

It follows directly from the LMI that pt(11)=0p_{t}^{(11)}=0. Since Pt⪰0P_{t}\succeq 0, pt(11)=pt(12)=pt(13)=0p_{t}^{(11)}=p_{t}^{(12)}=p_{t}^{(13)}=0. Thus λt(1)=0=λt(2)\lambda_{t}^{(1)}=0=\lambda_{t}^{(2)} and at=0a_{t}=0, and the Lyapunov Vat,Pt=0\mathcal{V}_{a_{t},P_{t}}=0 is the unique solution to this LMI.

Theorem C.4 concludes in an other way that it is not possible to obtain a convergence guarantee on an averaged sequence of an accelerated method. However, we can wonder if there exists other transformations that ensures convergence of both the averaged sequence and the noise.