Abstract
We study nonlinearly preconditioned gradient methods for smooth nonconvex optimization problems, focusing on sigmoid preconditioners that inherently perform a form of gradient clipping akin to the widely used gradient clipping technique. Building upon this idea, we introduce a novel heavy ball-type algorithm and provide convergence guarantees under a generalized smoothness condition that is less restrictive than traditional Lipschitz smoothness, thus covering a broader class of functions. Additionally, we develop a stochastic variant of the base method and study its convergence properties under different noise assumptions. We compare the proposed algorithms with baseline methods on diverse tasks from machine learning including neural network training.
Introduction
In classical optimization theory, the standard assumption for convergence is Lipschitz smoothness, which implies a "speed limit" on how quickly a function's gradient can change. However, modern deep learning models, particularly Large Language Models (LLMs), frequently violate this assumption. This leads to the phenomenon of "exploding gradients," where a single large update can destabilize the entire training process.
To mitigate this, practitioners often rely on gradient clipping—a heuristic that manually caps the magnitude of gradients. While effective, clipping lacks a unified theoretical framework that integrates seamlessly with advanced techniques like momentum and stochastic updates. This paper bridges that gap by framing gradient clipping as a natural consequence of Nonlinearly Preconditioned Gradient Methods (NPGM).
The NPGM Framework
The core idea of NPGM is to transform the gradient using a "dual reference function" before taking an update step. By choosing specific reference functions, such as the hyperbolic cosine (cosh), the resulting update rule involves an inverse hyperbolic sine (arsinh). This creates a "sigmoid" preconditioning effect: small gradients are processed linearly, while massive gradients are naturally compressed (clipped) by the geometry of the transformation itself.
This framework allows for Hyperbolic Gradient Descent (HGD), which offers a smoother alternative to "hard" clipping. Unlike traditional clipping, which has a sharp cutoff, HGD rescales gradients adaptively, leading to more stable convergence in practice.
Momentum and Stochastic Analysis
The authors extend this framework in two critical directions:
- m-NPGM (Algorithm 1): A novel heavy-ball momentum algorithm. In this version, momentum is applied to the preconditioned gradients rather than the raw gradients. This placement is mathematically necessary to maintain descent properties under non-standard smoothness conditions.
- Stochastic Variants: The framework is adapted for the stochastic setting, where gradients are noisy. The authors prove that NPGM remains robust even under "heavy-tailed" noise, which typically causes standard Stochastic Gradient Descent (SGD) to diverge.
Crucially, the analysis is conducted under anisotropic smoothness, a generalized condition that allows the function's curvature to grow alongside the gradient—a much more realistic assumption for modern neural networks than global Lipschitz continuity.
Experimental Results
The proposed algorithms were evaluated against standard baselines (SGD, Adam) across several tasks, including matrix factorization on MovieLens 100K and neural network training on MNIST and CIFAR datasets.
Key empirical findings include:
- Matrix Factorization: The isotropic Hyperbolic Gradient Descent with momentum (iHGDm) significantly outperformed standard GD and specialized adaptive methods in both speed and stability.
- Deep Learning: On MNIST and CIFAR, the proposed methods achieved lower training losses faster than Adam and SGDm. The stochastic analysis was validated by the methods' inherent robustness to gradient noise during training.
- Linear Convergence: Theoretical results showed that these methods can achieve linear convergence under a generalized Polyak-Łojasiewicz (PL) condition, even without traditional Lipschitz smoothness.
Conclusion and Future Work
This work demonstrates that gradient clipping is not merely a heuristic hack but a specific instance of a broader geometric preconditioning framework. By formalizing this, the authors provide a rigorous path for combining clipping with momentum and stochasticity. Future research directions include lifting current theoretical constraints on the momentum parameter (presently $\beta < 0.5$) and extending the framework to proximal methods for constrained optimization problems.
Summary updated