TL;DR
Training modern neural networks usually means choosing between simple coordinate-wise optimizers (like Adam) or heavy, curvature-aware matrix optimizers (like Shampoo) that eat up GPU memory and rely on rigid decay schedules. NABLA bridges this gap by introducing a family of blockwise matrix-preconditioned optimizers driven by a self-tuning, closed-loop feedback signal. It gives you a dial to control optimizer memory while proving mathematically that the algorithm adapts automatically to gradient noise—even recovering fast, deterministic convergence rates when the noise drops to zero.
What Problem Does This Paper Address?
Imagine descending a foggy, canyon-filled mountain at night. Coordinate-wise optimizers like Adam adjust your step size for each direction (north-south, east-west) independently. Matrix-preconditioned optimizers like Shampoo are smarter: for a matrix of weights, they look at correlations across both rows and columns, rotating and rescaling your steps to match the canyon's geometry.
However, two headaches persist with matrix-preconditioned methods:
- Memory and Compute Cost: Storing and inverting full row- and column-correlation matrices for large layers is expensive.
- Rigid Memory & Noise Blindness: Adaptive optimizers usually accumulate historical gradients using fixed decay parameters. If historical accumulation decays step sizes too aggressively, the optimizer crawls even when the terrain becomes smooth and noise-free. Ideally, we want zero-noise optimality: an optimizer that stays cautious when mini-batch gradients are noisy ($\sigma > 0$), yet seamlessly accelerates to optimal deterministic speeds when the noise vanishes ($\sigma = 0$)—without requiring you to know $\sigma$ in advance or pre-program a horizon-dependent schedule.
Methods
Enter NABLA($k_1, k_2$) (Noise-Adaptive Blockwise Left–Right Preconditioning Algorithm). For an $m \times n$ weight matrix, NABLA separates optimization into three clean roles:
- Standard Momentum: A classic exponential moving average (EMA) of gradients with a fixed coefficient $\alpha$ estimates the update direction ($M_t$).
- Novel Closed-Loop Scalar Feedback: Instead of a fixed decay parameter $\beta_2$ (like Adam's
0.999) for second-moment statistics, NABLA computes a scalar $\gamma_t$ using the ratio of the running average of squared momentum norms to their cumulative sum. By setting the second-moment averaging rate $\beta_t = \gamma_{t-1}$ (a one-step lag), NABLA dynamically adjusts how fast it forgets past curvature based on the actual optimization trajectory, without needing a known time horizon. - Tunable Blockwise Preconditioning: Inspired by Shampoo, NABLA preconditions the momentum from the left (rows) and right (columns) using inverse matrix roots ($L_t^{-1/4} M_t R_t^{-1/4}$). Crucially, it only keeps diagonal blocks of size $k_1 \times k_1$ and $k_2 \times k_2$, zeroing out off-block correlations. Setting $(k_1, k_2) = (m, n)$ recovers full Shampoo-style preconditioning; setting $(1, 1)$ strips it down to cheap diagonal statistics.
Datasets
The authors evaluate NABLA on two standard benchmarks (no new datasets are introduced):
- CIFAR-100: Image classification using a CIFAR-style ResNet-18 (trained for 100 epochs).
- English C4 Corpus: Causal language model pretraining using a 58.1M-parameter LLaMA-style architecture (LLaMA-60M), tokenized with
t5-baseat sequence length 256.
Key Insights and Ideas
- Predictability Unlocks Theory: Using the one-step lagged feedback ($\beta_t = \gamma_{t-1}$) isn't just an implementation detail—it makes the preconditioner's decay rate statistically predictable before sampling the next mini-batch. This mathematical hook allows the authors to prove a single nonconvex stationarity bound of $\widetilde{\mathcal{O}}(T^{-1/2} + \sigma^{1/2}T^{-1/4})$ that smoothly collapses to $\widetilde{\mathcal{O}}(T^{-1/2})$ when $\sigma = 0$.
- Full Matrix Geometry Isn't Always Worth the Tax: Keeping complete row and column correlation matrices isn't universally better. Depending on the architecture and scale, discarding off-diagonal blocks can drastically cut wall-clock time and memory—and sometimes even improve validation loss.
- Broad Learning-Rate Plateaus: Because the closed-loop scalar regulates both step magnitude and preconditioner memory, NABLA exhibits wide, stable operating regions for its base learning rate rather than requiring needle-in-a-haystack tuning.
Key Results
Training dynamics of NABLA configurations and baseline optimizers on CIFAR-100 and C4.
- Memory Savings (CIFAR-100 / ResNet-18): Switching from full shape-matched blocks
NABLA(m, n)toNABLA(64, 128)slashes persistent optimizer-state memory by 9.96$\times$ (from 760.0 MiB down to 76.3 MiB) and reduces peak step memory by 4.14$\times$ (1622.0 MiB to 391.6 MiB). - Speed vs. Accuracy on Vision: On CIFAR-100,
NABLA(64, 128)tracks the epoch-wise test accuracy (~75–76%) of fullNABLA(m, n)closely while reaching its terminal accuracy region in a fraction of the wall-clock time—much closer to AdamW, Muon, and Shampoo. - Less is More on LLaMA-60M (C4): On C4 pretraining, the lightweight diagonal
NABLA(1, 1)actually beats fullNABLA(m, n)in final validation loss (~3.62 vs. ~3.70) and validation perplexity at 10k updates (37.76 vs. 40.58), while taking ~40% less wall-clock time (~11,500s vs. ~19,000s). WhileNABLA(1, 1)outperforms AdamW here, tuned Shampoo and Muon baselines still achieve lower validation losses and faster runtimes in this setup.
Limitations and Future Work
The authors are admirably transparent about the boundaries of their empirical evidence:
- Schedule & Seed Asymmetries: On CIFAR-100, baselines used their own tuned learning-rate schedules rather than an identical ablation schedule. On C4, paired multi-seed comparisons were strictly run between
NABLA(m, n)andNABLA(1, 1), with AdamW, Shampoo, and Muon included as single-trajectory scale-matched references. - Implementation-Bound Runtimes: In the current implementation on C4, Muon and Shampoo run faster in wall-clock time and reach lower validation losses than NABLA. Wall-clock numbers depend heavily on hardware and kernel implementations.
- Future Directions: Because C4 experiments only tested the two extremes—full
(m, n)and diagonal(1, 1)—evaluating intermediate block sizes, larger model scales, diverse architectures, and wider hyperparameter neighborhoods remains open territory.
Summary updated