Deep learning optimization is a delicate balancing act. If the learning rate is too low, training stagnates; if it is too high, the system destabilizes. Recent research highlights that many optimizers, including the ubiquitous Adam, often operate at the "Edge of Stability" (EoS). In this regime, the sharpness of the loss landscape—measured by the largest eigenvalue of the Hessian—hovers at the limit of numerical stability, causing wild loss oscillations and slowing convergence.
To address this, researchers have introduced Velocity-Regularized Adam (VRAdam), a physics-inspired optimizer that stabilizes training by penalizing high-velocity updates. By incorporating a quartic kinetic energy term into the Adam framework, VRAdam acts as an "automatic brake" that dampens oscillations, leading to faster convergence across various architectures including CNNs, Transformers, and Large Language Models.
The Physics of Optimization
The authors model the optimization process as a particle moving through a potential landscape (the loss function). Standard momentum corresponds to quadratic kinetic energy. VRAdam, however, introduces a quartic (fourth-order) kinetic energy term ($\lVert v \rVert^4$). In physics, such terms are used to model stable systems like time crystals because they provide unique damping properties.
Using Euler-Lagrange equations, the authors derive a dynamic scaling factor for the learning rate. The effective learning rate $\eta_t$ becomes:
$$\eta_t = \frac{\alpha_0}{1 + \min(\beta_3\lVert v_t \rVert^2, \alpha_1)}$$
where $v_t$ is the global momentum buffer. Essentially, as the "velocity" (the norm of the updates) increases, the learning rate automatically shrinks. VRAdam combines this global velocity-based damping with Adam's traditional per-parameter scaling.
This quartic term effectively "squeezes" the update trajectories. As seen in phase space, while standard momentum might circle the drain in a simple quadratic bowl, VRAdam’s trajectories are more direct and less oscillatory. Because the velocity penalty is based on the global norm of the momentum buffer, it is rotationally invariant, avoiding "switched-anisotropy" instabilities that occur when per-coordinate updates do not align well with the Hessian.
Empirical Performance and Key Results
VRAdam was benchmarked against AdamW, RAdam, SGD, and RMSProp across a diverse set of tasks, including image classification (ResNet-32 on CIFAR-10), language modeling (Transformers on WikiText-2), and large-scale pre-training (GPT-2 on FineWebEdu-10B).
In nearly every benchmark, VRAdam achieved lower validation and test loss than AdamW. Unlike standard AdamW, which maintains a constant base learning rate, VRAdam's dynamic learning rate dips when the optimizer enters a high-curvature region, preventing the model from destabilizing.
- LLM Performance: When training GPT-2 (124M parameters), VRAdam reached a validation loss of 3.447 compared to AdamW's 3.511, with virtually no additional computational overhead.
- Math Reasoning: In fine-tuning tasks on GSM8K using GPT-2 Large, VRAdam improved exact-match accuracy from 35% (AdamW) to 42% under the same training budget.
- Instruction Tuning: VRAdam showed significant improvements in instruction-following quality scores (78.5/100 vs 72.3/100 for AdamW) when fine-tuning LLaMA-2-7B via 4-bit QLoRA.
Limitations and Future Directions
While VRAdam provides rigorous theoretical guarantees—maintaining the same $\mathcal{O}(\ln(N)/\sqrt{N})$ convergence rate as Adam while offering better Lyapunov stability—there are areas for future exploration. The Edge of Stability regime remains a complex "black box" in deep learning theory.
Additionally, while default hyperparameters ($\beta_3 = 1.0, \alpha_1 = 10$) perform well, the interaction between the velocity penalty and traditional weight decay requires careful tuning. Future work may explore combining VRAdam’s state-dependent feedback with "schedule-free" optimization methods to further eliminate the need for explicit learning rate decay schedules.
Summary updated