A Differential Equation for Modeling Nesterov's Accelerated Gradient Method: Theory and Insights II: The ODE Solution Satisfies f(X(t)) − f⋆ ≤ 2‖x₀ − x⋆‖²/t²Research Paper
Motivation
Nesterov's accelerated gradient method (Nesterov, 1983) minimizes a smooth convex function with the update
and, for step size , attains . The rate is optimal among first-order methods, yet the classical proof proceeds by an "estimate sequence" argument that offers little insight into why the momentum coefficient works.
Su, Boyd and Candès (arXiv:1503.01243, J. Mach. Learn. Res. 17, 2016) showed that, as , the iterates track the solution of the second-order ordinary differential equation
under the time identification . Their Theorem 3 is the continuous-time counterpart of Nesterov's rate. Its short proof by an energy (Lyapunov) function became the template for a large literature on continuous-time models of accelerated methods, including Wibisono, Wilson and Jordan's variational perspective (PNAS 2016) and Attouch, Chbani, Peypouquet and Redont's analysis of the damped system (Math. Program. 2018).
This mission formalizes Theorem 3 and the three steps of its proof.
Setting
Let and let carry the Euclidean inner product and norm . For differentiable, is its gradient.
- For , the class consists of the convex, continuously differentiable with for all . The class is .
- A minimizer is any point with for all , and .
- A solution of the ODE (3) with initial point is a curve on , twice continuously differentiable on and continuously differentiable on , with , , and for every . The damping coefficient is singular at ; the paper's Theorem 1 shows that a unique such solution exists for every .
- The energy along a solution is
In the Lean development these are IsFL, IsFinfty, IsSolution f 3 x₀ X V and energy f xstar X V t, in the namespace NesterovODE.Rate, where V is the velocity .
Formalization targets
Goal: Theorem 3 (p. 7)
For every , every minimizer , every and every solution of (3),
Milestones (proof of Theorem 3, pp. 7–8)
- Derivative of the energy. For ,
- The energy is nonincreasing. Using the ODE,
- The bound chain. is nonincreasing on and, for ,
Significance
Theorem 3 is the statement that makes the ODE a faithful model of Nesterov's scheme at the level of rates: under , the bound (7) reproduces the discrete bound (6) with the same constant 2. The paper also shows that the constant cannot be improved (p. 8). The energy is the continuous analogue of the potential used in discrete proofs, and the same template, with other weights, gives the paper's later results on the generalized damping and on strongly convex objectives.
The result is proved in the paper. As far as the platform and Mathlib are concerned it is not formalized: Mathlib has the calculus (derivatives of inner products and norms along curves, the first-order characterization of convexity, monotonicity from a sign of the derivative) but no statement about this ODE. A machine-checked proof establishes the Lyapunov argument for the singular-at-zero system, including the endpoint where only one-sided regularity is available, and supplies reusable lemmas for the other missions of this series and for formalizations of inertial dynamics with vanishing damping.
Difficulty
The algebra is short; the care lies in the analytic bookkeeping that the paper leaves implicit.
- The energy is defined through and , so its derivative needs the chain rule for a function along a differentiable curve and the derivative of a squared norm of a curve.
- The ODE holds only for and the coefficient blows up at . Monotonicity of on the closed half-line therefore needs right-continuity of at , which follows from right-continuity of and there, together with ; the derivative argument alone gives monotonicity only on .
- The sign of needs the first-order inequality for a differentiable convex function.
Formalization scope
- is
EuclideanSpace ℝ (Fin n), is Mathlib'sgradient f. is0 < L ∧ ConvexOn ℝ Set.univ f ∧ ContDiff ℝ 1 f ∧ LipschitzWith L (gradient f)withL : NNReal. - A solution is encoded as a pair of curves : , , has right derivative at , is right-continuous at , and for every , has derivative and has derivative . For continuous this is exactly the paper's regularity class with the ODE and the initial conditions. Values of for are unconstrained and never used.
- The paper states Theorem 3 for "the unique global solution". The Lean statements quantify over every solution and every minimizer, which by Theorem 1 is the same statement and does not depend on Theorem 1 (formalized in a separate mission of this series).
- No hypothesis beyond the paper's is added. The Lipschitz constant is part of and is kept although the proof of Theorem 3 does not use it quantitatively.
- The bound is stated for only. At the right-hand side is in Lean, and the inequality would be false.
- The derivative statements use
HasDerivAtrather thanderiv, so no derivative silently takes the default value ; the solution predicate is satisfiable (for , , the zero curve is a solution), so the goal is not vacuous.
Contributions welcome: proofs of the three milestones and of the goal; general lemmas on the derivative of and ; and the first-order convexity inequality in gradient form, which the strongly convex and generalized-damping missions of this series also need.
Selected references
- W. Su, S. Boyd, E. J. Candès, A Differential Equation for Modeling Nesterov's Accelerated Gradient Method: Theory and Insights, J. Mach. Learn. Res. 17(153):1–43, 2016; cited from arXiv:1503.01243v2, 2015. https://arxiv.org/abs/1503.01243
- Y. Nesterov, A method of solving a convex programming problem with convergence rate O(1/k²), Soviet Mathematics Doklady 27(2):372–376, 1983.
- A. Wibisono, A. C. Wilson, M. I. Jordan, A variational perspective on accelerated methods in optimization, Proc. Natl. Acad. Sci. 113(47):E7351–E7358, 2016. https://doi.org/10.1073/pnas.1614734113
- H. Attouch, Z. Chbani, J. Peypouquet, P. Redont, Fast convergence of inertial dynamics and algorithms with asymptotic vanishing viscosity, Math. Program. 168:123–175, 2018. https://doi.org/10.1007/s10107-016-1065-5