Abstract
This paper establishes the theoretical foundations of the online scaled gradient methods (OSGM), a framework that utilizes online learning to adapt stepsizes and provably accelerate first-order methods. OSGM quantifies the effectiveness of a stepsize by a feedback function motivated from a convergence measure and uses the feedback to adjust the stepsize through an online learning algorithm. Consequently, instantiations of OSGM achieve convergence rates that are asymptotically no worse than the optimal stepsize. OSGM yields desirable convergence guarantees on smooth convex problems, including 1) trajectory-dependent global convergence on smooth convex objectives; 2) an improved complexity result on smooth strongly convex problems, and 3) local superlinear convergence. Notably, OSGM constitutes a new family of first-order methods with non-asymptotic superlinear convergence, joining the celebrated quasi-Newton methods. Finally, OSGM explains the empirical success of the popular hypergradient-descent heuristic in optimization for machine learning.
Introduction
Standard gradient descent (GD) often struggles with "ill-conditioned" problems—functions characterized by vastly different curvatures across different directions. While preconditioning (scaling the gradient by a matrix) can mitigate this, identifying the optimal preconditioner typically requires expensive second-order information, such as the Hessian.
Existing adaptive methods like Adam or AdaGrad offer practical improvements but often lack rigorous theoretical guarantees for global convergence on general convex functions. More importantly, they frequently fail to achieve the "superlinear" speedup characteristic of second-order methods. This work introduces Online Scaled Gradient Methods (OSGM), a framework that treats stepsize selection as a sequential decision-making problem, bridging the gap between first-order efficiency and quasi-Newton convergence rates.
The OSGM Framework
The OSGM framework conceptualizes optimization as a collaboration between two distinct agents: the Scheduler and the Landscape.
- The Scheduler: Responsible for choosing a stepsize (or preconditioner) $P_k$ from a candidate set. It employs an online learning algorithm, such as Online Gradient Descent (OGD), to iteratively refine $P_k$ based on performance feedback.
- The Landscape: Evaluates the proposed stepsize on the objective function $f(x)$, provides a feedback function $\ell_x(P)$ to the Scheduler, and determines the next iterate $x^{k+1}$.
Algorithmic Implementation
The core of OSGM lies in its iterative loop, where the scheduler's suggestions are evaluated and refined. To maintain stability, the framework incorporates "Landscape Actions" (e.g., Lookahead or Monotone steps) that act as a filter, suppressing the potential "regret" of the online learning process by discarding stepsizes that do not yield sufficient progress.
Feedback Mechanisms
The paper identifies two primary feedback mechanisms for the scheduler:
- Ratio Feedback: Measures the contraction of suboptimality. While theoretically potent, it requires knowledge of the optimal value $f^*$.
- Hypergradient Feedback: Measures progress relative to the gradient magnitude. This is highly practical as it avoids reliance on $f^*$ and provides a formal theoretical basis for the "hypergradient descent" heuristic popular in deep learning.
Key Theoretical Insights
Trajectory-Level Adaptivity
Unlike static preconditioning, OSGM adapts to the local landscape. As the algorithm traverses the objective function, the online learner updates the scaling matrix to match the local curvature. By applying regret bounds from online learning theory, the authors prove that OSGM eventually performs as well as the best possible fixed preconditioner available in its search space.
First-Order Superlinear Convergence
OSGM is among the few first-order frameworks to achieve non-asymptotic superlinear convergence. By "competing" against the inverse Hessian within the scheduler's search space, OSGM asymptotically learns to mimic second-order behavior. The authors prove a rate of $f(x^{K+1}) - f^* \leq [f(x^1) - f^*](C/K)^K$, indicating that error decreases faster than any exponential curve as iterations $K$ increase.
Improved Complexity
For strongly convex problems, OSGM achieves a complexity of $O(\kappa^* \log(1/\epsilon))$, where $\kappa^*$ represents the optimal condition number achievable within the stepsize set, rather than the function's raw condition number $\kappa$. This represents a significant improvement over vanilla gradient descent in ill-conditioned settings.
Limitations and Future Work
While OSGM provides a robust theoretical foundation, several practical challenges remain:
- Computational Overhead: Updating a full $n \times n$ scaling matrix $P_k$ can be computationally expensive ($O(n^2)$ or $O(n^3)$). Diagonal scaling is recommended for high-dimensional problems to maintain efficiency.
- Parameter Knowledge: Certain variants require knowing the smoothness constant $L$ or the optimal value $f^*$. While backtracking can estimate these, it increases implementation complexity.
- Stochasticity: This foundational work focuses on deterministic optimization. Extending these tight bounds to the stochastic gradients common in deep learning is the subject of ongoing research.
Summary updated