Abstract: Hamiltonian Descent Methods (HDM) provide a framework for first-order optimization that achieves linear convergence on a broad class of convex functions, including those that are non-smooth or lack strong convexity. By generalizing the kinetic energy in momentum-based dynamics, HDM effectively preconditions the optimization path based on the objective's geometry.
Hamiltonian Descent Methods: Beyond Smoothness and Strong Convexity
Introduction
First-order optimization methods, such as Gradient Descent (GD) and Nesterov’s Momentum, are the primary tools for training modern machine learning models. Their efficiency, however, is traditionally contingent on two restrictive properties of the objective function $f(x)$: smoothness and strong convexity. When these conditions are met, these algorithms achieve linear convergence, where the error decreases exponentially.
In practice, many objective functions violate these assumptions. They may be "flat" near the minimum (e.g., $f(x) = x^4$) or exhibit singular Hessians. In such cases, standard first-order methods often degrade to sub-linear convergence rates, requiring practitioners to either accept slow progress or employ computationally expensive second-order methods like Newton's method. Hamiltonian Descent Methods (HDM) offer a middle ground: achieving linear convergence on a much broader class of functions using only first-order information.
The Hamiltonian Framework
HDM is rooted in the physics of conformal Hamiltonian dynamics. While standard momentum methods can be viewed as a particle moving in a potential field with a fixed quadratic kinetic energy ($p^2/2$), HDM generalizes this by introducing a flexible kinetic energy function $k(p)$.
The dynamics are governed by a system that combines a conservative Hamiltonian field with a dissipation field. This combination ensures that the system's energy (the Hamiltonian) decreases over time, guiding the "particle" toward the minimum of the objective function.
By carefully choosing the structure of the kinetic energy, the dissipation can be tuned to the specific geometry of the objective function, effectively "preconditioning" the descent without the need for explicit Hessian calculations.
Designing Kinetic Energy for Optimization
The core innovation of HDM is the mapping between the objective function $f(x)$ and the kinetic energy $k(p)$. The authors demonstrate that if $k(p)$ is chosen to be related to the convex conjugate of the objective function, the resulting dynamics can "straighten" the optimization landscape.
For example, for power functions of the form $f(x) = |x|^b/b$, choosing a power kinetic energy $k(p) = |p|^a/a$ with appropriate parameters allows the algorithm to maintain linear convergence even when $b \neq 2$ (the quadratic case). Furthermore, the paper introduces a "Relativistic" kinetic energy ($k(p) = \sqrt{p^2 + 1} - 1$), which provides a robust, agnostic choice that naturally bounds step sizes, making it particularly effective for non-smooth functions with steep gradients.
Empirical Performance and Convergence
The theoretical strengths of HDM translate into significant empirical gains. On synthetic test functions designed to challenge standard algorithms—such as those with singular or unbounded Hessians—HDM consistently outperforms Gradient Descent and Classical Momentum.
As shown in the figure above, while GD and Momentum struggle with the "flatness" of the objective, HDM's iterates converge rapidly to the minimum. The log-objective plot highlights the stark difference in convergence rates: HDM maintains a steep, linear descent while the alternatives plateau or oscillate.
Additionally, HDM exhibits dimension independence in certain non-Euclidean geometries. In high-dimensional tests (up to $d=4096$), HDM's convergence rate remains nearly constant, whereas standard methods see their performance degrade as the dimensionality increases.
Conclusion and Future Directions
Hamiltonian Descent Methods expand the reach of first-order optimization, providing a principled way to handle functions that lack traditional smoothness and strong convexity. By leveraging the flexibility of kinetic energy, HDM achieves the efficiency of second-order methods with the computational simplicity of first-order updates.
Current limitations include the need for some prior knowledge of the function's growth rate to select the optimal kinetic energy. Future research aims to develop "adaptive" HDM variants that can estimate these parameters dynamically. Additionally, extending this framework to the stochastic gradient settings common in deep learning remains a promising frontier for making HDM a standard tool in the machine learning practitioner's toolkit.
Summary updated