Abstract
First-order optimization methods are foundational to modern machine learning, yet their convergence proofs are often presented as a series of disconnected algebraic manipulations. This paper presents a unified framework for analyzing these algorithms using potential functions. By framing optimization as a form of amortized analysis, we provide an intuitive and structured approach to proving convergence rates for gradient descent, mirror descent, and Nesterov’s acceleration. This methodology simplifies the derivation of standard results and offers a clear guiding principle for understanding why these algorithms succeed.
Introduction
In large-scale engineering and machine learning, first-order methods—algorithms relying solely on gradient information—are the primary tools for optimization. While the convergence rates for these methods, such as the $O(1/T)$ rate for smooth functions or the $O(1/T^2)$ rate for accelerated methods, are well-established, the pedagogical path to these results is often opaque. Proofs frequently rely on "algebraic tricks" that lack a clear motivating intuition, making them difficult for students and researchers to generalize.
This technical note addresses this gap by introducing a structured approach based on potential functions, analogous to Lyapunov functions in control theory. By viewing optimization through the lens of amortized analysis, we can explain the progress of an algorithm as a balance between the current function error and the distance to the optimal solution.
The Potential Function Framework
The core of this methodology is a general potential function template: $$\Phi_t = a_t \cdot (f(x_t) - f(x^*)) + b_t \cdot D(x_t, x^*)$$ where $x^*$ is the optimal point, $f(x_t) - f(x^*)$ represents the optimality gap, and $D(x_t, x^*)$ is a distance measure (typically Euclidean distance or a Bregman divergence).
The analysis proceeds by showing that the "amortized cost"—the error at the current step plus the change in the potential function—is non-positive or bounded. This allows us to track progress systematically:
- Basic Gradient Descent: Employs a distance-based potential to prove convergence for Lipschitz functions.
- Smooth Gradient Descent: Utilizes a value-based potential or a hybrid approach to achieve faster convergence rates.
Mirror Descent and Geometry
One of the strengths of the potential function framework is its ability to handle different geometries through Mirror Descent. By replacing the standard Euclidean distance with Bregman Divergences, the analysis generalizes to various norms (e.g., the $\ell_1$ norm used in Multiplicative Weights Update).
As shown in the figure above, the projection step $\Pi_K$ ensures that the iterates remain within the feasible set $K$. The potential function proof remains structurally identical in this setting, demonstrating that Mirror Descent is essentially Gradient Descent acting within a different geometric "mirror" space.
Nesterov Acceleration and Linear Coupling
Nesterov’s acceleration often appears "magical" due to its complex update rules. This framework demystifies acceleration by interpreting it as a "linear coupling" of two processes: a "cautious" update (effective for smooth functions) and an "aggressive" update (effective for reducing distance to the optimum). The potential function for acceleration carefully balances these two components to achieve the optimal $O(1/T^2)$ rate.
Key Results
The unified framework successfully recovers standard "best-in-class" convergence rates:
- Lipschitz Functions: $O(1/\sqrt{T})$ regret.
- Smooth Functions: $O(1/T)$ for standard GD; $O(1/T^2)$ for Nesterov acceleration.
- Strongly Convex Functions: $O(1/T)$ convergence.
- Well-Conditioned Functions: $O(\exp(-t/\sqrt{\kappa}))$ linear convergence with acceleration, where $\kappa$ is the condition number.
Conclusion
By treating optimization as amortized analysis, we transform a collection of disparate proofs into a single, coherent narrative. While this note focuses on deterministic first-order methods, the potential function approach provides a robust foundation that can be extended to stochastic settings and more complex geometries. This framework not only simplifies the teaching of optimization but also provides a principled way to design and analyze new algorithms.
Summary updated