Hamiltonian Descent Algorithms for Optimization: Accelerated Rates via Randomized Integration Time

Qiang Fu, Andre Wibisono

TL;DR

Researchers have developed a new class of optimization algorithms called Randomized Hamiltonian Gradient Descent (RHGD). By borrowing the "energy-conserving" physics of Hamiltonian Monte Carlo sampling and randomizing how long the algorithm "coasts" before resetting its velocity, RHGD achieves the same optimal accelerated convergence rates as Nesterov’s famous Accelerated Gradient Descent (AGD). Crucially, it offers surprising robustness to poorly estimated parameters.

The Bridge Between Optimization and Sampling

In optimization, algorithms generally operate at two speeds: "standard" (like Gradient Descent) and "accelerated" (like Nesterov’s AGD). Accelerated methods are the gold standard because they converge much faster, especially on ill-conditioned problems characterized by narrow, steep valleys.

Meanwhile, in the realm of sampling (generating random points from a distribution), Hamiltonian Monte Carlo (HMC) is a favorite. It uses the laws of physics—specifically Hamiltonian dynamics—to move particles along energy-conserving paths.

While Langevin dynamics (sampling) shares similarities with Gradient Flow (optimization), a significant theoretical gap remained. We have many ways to accelerate optimization, but doing the same for HMC-style sampling has been elusive. This paper flips the script: instead of using optimization to fix sampling, it uses a randomized version of HMC to create a powerful new optimization algorithm. The authors prove that Hamiltonian flows can indeed achieve the optimal speed limits of optimization.

Introducing Randomized Hamiltonian Flow

The authors introduce two main concepts to bridge this gap:

  1. Randomized Hamiltonian Flow (RHF): In standard Hamiltonian optimization, a "particle" moves according to the gradient for a fixed time before its velocity is reset to zero. The authors show that if this "travel time" is chosen randomly from an exponential distribution (a Poisson process), the system naturally accelerates.
  2. Randomized Hamiltonian Gradient Descent (RHGD): This is the practical, discrete-time implementation of the flow. It approximates the complex physics of the Hamiltonian path using a simple gradient-based update.

Most existing Hamiltonian-based optimizers add a "damping" term (like friction) to slow the particle down. In contrast, this paper uses pure, energy-conserving Hamiltonian flow and achieves acceleration solely through the random timing of velocity resets. This serves as the optimization analogue to "Randomized HMC," a popular sampling technique.

Key Insights and Empirical Results

The paper validates RHGD using synthetic benchmarks, including quadratic minimization (a standard stress test for condition numbers) and logistic regression.

Theoretical Parity and Baseline Performance

The authors prove that RHGD matches optimal convergence rates: $O(\sqrt{\kappa} \log(1/\epsilon))$ for strongly convex functions and $O(\sqrt{L/\epsilon})$ for weakly convex functions. In head-to-head tests against AGD and its "continuized" variants (CAGD), RHGD is consistently competitive.

Baseline performance of RHGD vs AGD

The "Robustness" Win

One of the most compelling findings is that RHGD is much less "fussy" than AGD regarding hyperparameters. The "aha moment" is that randomizing the integration time effectively mixes the dynamics enough to escape the slow convergence of standard gradient descent without needing perfectly tuned momentum buffers.

If the strong convexity constant ($\alpha$) is guessed incorrectly—specifically, if it is overestimated—AGD’s performance often collapses or plateaus. RHGD, however, maintains stable and fast convergence even with misspecified parameters, outperforming classical methods in these uncertain regimes.

Robustness of RHGD with misspecified parameters

Limitations and Future Directions

While promising, RHGD has a few limitations:

  • Convergence in Expectation: Because the algorithm relies on randomness, its convergence guarantees are "in expectation." While this can be extended to high-probability bounds, it differs from the strict deterministic guarantees of AGD.
  • Larger Constants: The theoretical constants in the RHGD bounds are currently somewhat larger than those of AGD, meaning it might take a few more iterations to reach the same precision in specific worst-case scenarios.

Future work will explore more sophisticated physics simulators (like the Leapfrog integrator) to improve stability. The authors also plan to extend the analysis to non-convex functions—such as those found in deep learning—and stochastic settings where only noisy mini-batch gradients are available.

Summary updated

BibTeX
@inproceedings{fu2025hamiltonian,
  author = {Qiang Fu and Andre Wibisono},
  title = {{Hamiltonian Descent Algorithms for Optimization: Accelerated Rates via Randomized Integration Time}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=nW6SMcfDq3},
}
Figure