Training massive deep neural networks (DNNs) is a balancing act between optimization quality and computational cost. While second-order optimization methods—which use curvature information to find better update directions—promise much faster convergence than standard first-order methods like Adam, they are notoriously "heavy." Storing and inverting the large matrices required for these methods usually demands $\mathcal{O}(n^2)$ memory and $\mathcal{O}(n^3)$ time, making them impractical for models with millions or billions of parameters.
To bridge this gap, researchers have introduced SONew (Sparsified Online Newton), a method that brings the power of second-order optimization to the scale of modern large language models (LLMs) with almost no computational overhead.
TL;DR
SONew is a memory-efficient second-order optimizer that achieves the fast convergence of Newton-style methods while maintaining the linear time and space complexity of first-order methods. By enforcing structured sparsity (like tridiagonal patterns) using a novel LogDet divergence framework, it trains large models up to 30% faster than Adam with only a 3% increase in per-step wall-clock time.
The Scalability Problem in Optimization
The "workhorses" of deep learning—Adam, RMSProp, and SGD—are first-order methods. They are popular because they are computationally cheap, requiring only the storage of a few vectors the size of the model's parameters. However, they often require many iterations to converge because they do not account for the "curvature" of the loss landscape.
Second-order methods like Shampoo or KFAC attempt to fix this by using a "preconditioner" matrix. While effective, these methods often require complex engineering to scale and still consume significantly more memory and compute than Adam. The field has long needed a second-order method that is as scalable, parallelizable, and easy to implement as a first-order optimizer.
Methods: LogDet Divergence and Structured Sparsity
The core innovation of SONew is the use of the LogDet matrix divergence to derive a sparsified preconditioner. The authors break the problem into two steps:
- Regret Minimization: They use LogDet divergence to regularize the preconditioner, ensuring it stays "close" to previous iterations while minimizing regret in an online convex optimization framework.
- Structured Sparsification: To make the math tractable for large $n$, they impose a fixed sparsity pattern—specifically tridiagonal or banded structures—on the preconditioner.
As shown in the algorithms below, this structured sparsity allows the matrix inversion (traditionally the most expensive part of second-order methods) to be solved in $\mathcal{O}(n)$ time.
Crucially, the tridiagonal structure is "embarrassingly parallelizable," meaning it can be computed extremely efficiently on modern hardware like GPUs and TPUs.
Key Insights
- Sparsity as a Speedup, Not Just a Constraint: Usually, enforcing sparsity is a trade-off that hurts performance. Here, the authors show that imposing a tridiagonal structure makes the preconditioner update so efficient that it is nearly as fast as a first-order update (~3% overhead).
- The LogDet "Naturalness": The authors argue that LogDet divergence is the natural metric for this problem because it prioritizes matching the smaller eigenvalues of the preconditioner, which are critical for numerical stability and optimization quality.
- Grafting: To handle the non-convex nature of deep learning, SONew uses "grafting"—it takes the direction from the second-order SONew update but uses the step size (magnitude) from a tuned first-order optimizer like Adam.
Key Results
SONew was evaluated across a diverse range of benchmarks, including MLPs on MNIST, Vision Transformers on ImageNet, Graph Neural Networks (GNNs) on OGBG-molpcba, and a 1-billion parameter LLM trained on the C4/Pile dataset. It consistently outperformed state-of-the-art optimizers in both convergence speed and final performance:
- Efficiency: As shown in the complexity table below, SONew maintains $\mathcal{O}(d_1d_2)$ time complexity, matching Adam, while Shampoo scales cubically with layer dimensions.
- Convergence Speed: On GNNs, SONew reached target performance 30% faster than Adam. On a 1B parameter LLM, it achieved the same performance as AdaFactor using 26% fewer steps, resulting in a 1.35x total training speedup.
- Optimization Quality: In Autoencoder benchmarks, SONew achieved significantly lower training loss than all first-order methods and even outperformed other recent memory-efficient second-order methods like rfdSON.
Limitations and Future Work
While SONew is a major step forward, several areas remain open for exploration:
- Sparsity Patterns: The current explicit solutions are optimized for tridiagonal and banded graphs. Other sparsity patterns might exist that capture more correlation between parameters but are harder to solve efficiently.
- Parameter Ordering: In a tridiagonal matrix, only "adjacent" parameters are correlated. The order in which parameters are stored in memory currently dictates which correlations the optimizer captures. Finding an "optimal" ordering could further boost performance.
- Non-Convexity: While the method works well in practice for DNNs, the theoretical regret bounds are established for the convex case. Extending these guarantees to non-convex landscapes remains an open challenge.
Summary updated