Introduction
Training Large Language Models (LLMs) is incredibly resource-intensive. To save memory and speed up computation, researchers and engineers increasingly rely on "low-precision" formats like BF16, FP8, or even FP4. While this works remarkably well in practice, our theoretical understanding has lagged behind.
Most existing convergence proofs assume "exact arithmetic"—essentially infinite precision. When researchers do look at quantization, they often rely on unrealistic assumptions, such as unbiased quantization (where errors average out to zero) or error feedback mechanisms that aren't actually used in massive LLM runs. Crucially, previous theories often ignored the quantization of optimizer states (like the moving averages in Adam), which can take up as much memory as the model weights themselves.
This paper closes that gap by providing the first rigorous theoretical framework to explain why adaptive optimizers like Adam and Muon still converge effectively when gradients, weights, and optimizer states are aggressively quantized.
Methods: The Relative Error Model
The authors introduce a new analytical framework based on a Relative Error Model. Unlike older models that treat quantization as simple additive noise, this model ($|x^Q - x| \leq q|x|$) accurately reflects how floating-point hardware works: the error is proportional to the magnitude of the value being stored.
They apply this framework to two major adaptive optimizers:
- Adam: The industry standard for deep learning.
- Muon: A newer, matrix-based optimizer that has shown promise for large-scale training.
The study tracks four distinct sources of quantization error: weights ($q_W$), gradients ($q_G$), first moments/momentum ($q_M$), and second moments ($q_V$). By isolating these, they can mathematically determine which parts of the optimizer are most sensitive to "losing bits."
Key Insights and Results
The theory was corroborated using three distinct benchmarks: the Rosenbrock function, CIFAR-10 image classification, and a nanoGPT model (26M parameters) trained on the OpenWebText corpus to mimic actual LLM pre-training workloads.
- The Logarithmic Rule: The most striking finding is that you don't need high precision to maintain convergence. As long as your mantissa length ($M$) grows at a rate of $\Omega(\log T)$, where $T$ is the number of iterations, the quantized optimizer will eventually behave like its full-precision counterpart.
- Adam’s Sensitivity to $\beta_2$: The analysis reveals why Adam can be "fussy." Because Adam relies on an inverse square root of the second moment ($\sqrt{V_t}$) and typically uses a $\beta_2$ value very close to 1, quantization errors in the second moment are non-linearly amplified. This explains why practitioners often find that optimizer states need slightly higher precision than gradients.
- Muon is the "Robust" Choice: The paper mathematically demonstrates that Muon is more tolerant of quantization than Adam. Specifically, Muon can handle relative errors on the order of $1/T^{1/2}$, whereas Adam requires much stricter control ($1/T^2$ in some cases) to guarantee the same convergence. This robustness stems from Muon's use of an SVD-based sign operator rather than Adam's element-wise division.
- Precision Hierarchy: The results confirm a practical "hierarchy of precision": weights and second moments generally require more bits than gradients or momentum to prevent the optimization from stalling. Ultimately, both quantized Adam and Muon achieve a convergence rate of $O(T^{-1/4})$ on smooth non-convex objectives, matching the established rates for their full-precision versions.
Limitations and Future Work
While this is a major step forward, the authors note several areas for future exploration:
- Fixed-Bit vs. Increasing-Bit: The theory assumes precision increases over time ($M = \Omega(\log T)$), but in the real world, we usually use a fixed format like FP8 throughout the entire run. Understanding why fixed precision works "well enough" remains an open question.
- Arithmetic Errors: The framework focuses on quantization for storage and communication. It does not yet account for errors that occur during the actual floating-point math (like the dot products in a matrix multiplication).
- Non-Smooth Objectives: The current analysis assumes the loss function is "smooth." Extending this to non-smooth or constrained optimization problems would make the theory even more applicable to modern architectural tricks like ReLU activations or gradient clipping.
Summary updated