ODE-Based Learning to Optimize

Zhonglin Xie, Wotao Yin, Zaiwen Wen

TL;DR

This paper bridges the gap between continuous-time physics-inspired models (ODEs) and practical discrete optimization algorithms. By combining a Hessian-driven damping framework with a "Learning to Optimize" (L2O) approach, the authors develop a method that automatically tunes its own parameters to minimize the time required to reach a solution while guaranteeing mathematical stability.

What Problem Does This Paper Address?

In recent years, researchers have used Ordinary Differential Equations (ODEs) to understand why "accelerated" optimization methods (like Nesterov’s) work so well. While these continuous-time models show incredibly fast convergence on paper, translating them into actual computer code (discrete-time iterations) is notoriously difficult.

A "naive" discretization of a fast ODE often results in an algorithm that either diverges (crashes) or loses its speed advantage. This leaves two major questions:

  1. Stability: How can we discretize these complex ODEs using simple, explicit schemes without the algorithm blowing up?
  2. Tuning: How do we find the "perfect" coefficients (damping, acceleration) for a specific class of problems?

Methods

The authors introduce a comprehensive framework that integrates Inertial Systems with Hessian-driven Damping (ISHD) and Learning to Optimize (L2O).

  • The ODE Model (ISHD): They use a second-order ODE that includes a "Hessian-driven damping" term. Think of this as a physical system with friction that depends on the local curvature of the landscape, preventing the "ball" from oscillating wildly.
  • EIGAC Algorithm: They derive the Explicit Inertial Gradient Algorithm with Correction (EIGAC) by applying an explicit Euler discretization to the ISHD. Unlike many theoretical methods that require complex "implicit" steps, EIGAC is a practical, first-order method.
  • Learning the "Stopping Time": Instead of just minimizing the final error, they formulate a learning problem to minimize the "stopping time"—the actual time/iterations required to reach a specific level of accuracy.
  • StoPM (Stochastic Penalty Method): To train this system, they developed StoPM. This algorithm uses stochastic optimization to find the best coefficients while treating stability and convergence requirements as "penalties" that the system must satisfy. It utilizes conservative gradients to handle the non-smooth nature of neural network components used in the parameterization.

Datasets

The framework was validated on several binary classification tasks using standard benchmarks from the LIBSVM repository:

  • Real-world datasets: a5a, mushrooms, w3a, covtype, and phishing.
  • Synthetic dataset: A separable dataset designed to test specific geometric properties.
  • Problem Types: The authors focused on Logistic Regression and $\ell_p$ minimization (for $p \ge 4$), which are common in machine learning but can be challenging due to varying curvatures.

Key Insights and Ideas

  • The Stability Bridge: The paper provides explicit mathematical conditions (the "stability condition") that act as a bridge. If the ODE coefficients satisfy these, the resulting discrete algorithm is guaranteed to converge.
  • Hessian Damping is Key: The "Hessian-driven" part of the damping is what allows for stable discretization. It essentially "slows down" the algorithm when the objective function's curvature is too high, preventing the overshoot common in simpler accelerated methods.
  • Stopping Time as a Loss: Traditional L2O often uses the final function value as a loss. By using "stopping time," the authors directly optimize for what engineers actually care about: wall-clock speed to a target precision.
  • $(L_0, L_1)$-Smoothness: They observe that many real-world problems follow a specific smoothness pattern where the local Lipschitz constant changes predictably. Their learned methods naturally exploit this structure.

Key Results

The learned EIGAC method consistently outperformed standard baselines like Gradient Descent (GD), Nesterov’s Accelerated Gradient (NAG), and non-learned versions of the ODE-based algorithms (IGAHD).

  • Speedup: In many cases, EIGAC reached the target accuracy in half the iterations required by NAG.
  • Efficiency: For the "separable" logistic regression task, EIGAC was nearly 40x faster than NAG in terms of iterations to threshold.
  • Robustness: Even on "hard" datasets like covtype, the learned method showed significant and consistent improvements in convergence speed without ever diverging, thanks to the stability constraints built into the training.

Limitations and Future Work

  • Theoretical vs. Empirical Gap: The authors prove a convergence rate of $O(1/k)$, which is slower than Nesterov's theoretical $O(1/k^2)$. However, they note that in practice, their method often beats Nesterov's. Closing this gap in the proof is a goal for future work.
  • Scope: The current work focuses on unconstrained, smooth convex optimization. The authors acknowledge that extending this to non-smooth, constrained, or non-convex problems (like training deep neural networks) is the next major frontier.
  • Computational Overhead: While the resulting algorithm is fast, the training process (learning the coefficients) requires solving many ODEs, which can be computationally expensive.

Summary updated

BibTeX
@inproceedings{xie2025ode,
  author = {Zhonglin Xie and Wotao Yin and Zaiwen Wen},
  title = {{ODE-Based Learning to Optimize}},
  booktitle = {Mathematical},
  year = {2025},
  doi = {10.1007/s10107-025-02303-3},
}
Figure