Numerical stability analysis of large language models
Not on the map. Why?
Abstract (arXiv)
Transformers are the state-of-the-art architecture for large language models, and a key to their scalability is the strategic usage of low-precision arithmetic. We develop a mixed-precision analysis of transformer inference, deriving bounds for the condition numbers and forward error of the architecture's constituent parts. Notably, we compare the numerical stability of LayerNorm and RMSNorm in the massive-outlier regime, tighten the error bound of softmax in the presence of attention sinks, and quantify the impact of its shifted evaluation on the sensitivity to perturbations. Furthermore, we derive novel sequence-length-independent bounds on the local Lipschitz constant of self-attention. Our worst-case error bound for transformer inference suggests that its numerical stability is determined by the interplay between weight magnitude and the growth of the residual stream. Crucially, and as validated by experiments with GPT-2, our analysis establishes that the scaling of residual-projection weights preserves the propagation of the relative rounding error unless it forces a qualitative transition in the dynamics of the residual stream.
Key facts. Cited by 9 papers in the map (data through 14 Oct 2026). First posted on arXiv 13 Mar 2025.
Builds on
0 of 0 references.
No references here yet.
Built on by
Citing papers per year: 2025: 1; 2026: 8.
9 papers.
- 2026The Spike, the Sparse and the Sink: Anatomy of Massive Activations and Attention Sinkscited by 27
- 2026A Unified View of Attention and Residual Sinks: Outlier-Driven Rescaling is Essential for Transformer Trainingcited by 23
- 2025Mixed precision accumulation for neural network inference guided by componentwise forward error analysiscited by 6
- 2026Uncertainty Propagation in LLM-Based Systemscited by 3
- 2026LAMP: Look-Ahead Mixed-Precision Inference of Large Language Modelscited by 1
- 2026A Note on Non-Composability of Layerwise Approximate Verification for Neural Inferencecited by 0
- 2026Automated Numerical Stability Analysis of Deep Learning Operatorscited by 0
- 2026LampAttention: Look-Ahead Mixed-Precision FlashAttention for Dedicated Acceleratorscited by 0
- 2026Echo: Error-Compensated 4-Bit Tensor-Parallel Communication for LLM Training and Inferencecited by 0
- 2026Echo: Error-Compensated 4-Bit Tensor-Parallel Communication for LLM Training and Inference9 Oct 2026
- 2026LampAttention: Look-Ahead Mixed-Precision FlashAttention for Dedicated Accelerators30 Sep 2026
- 2026Automated Numerical Stability Analysis of Deep Learning Operators28 Jul 2026
- 2026Uncertainty Propagation in LLM-Based Systems26 Apr 2026
- 2026The Spike, the Sparse and the Sink: Anatomy of Massive Activations and Attention Sinks5 Mar 2026
- 2026A Note on Non-Composability of Layerwise Approximate Verification for Neural Inference17 Feb 2026
- 2026A Unified View of Attention and Residual Sinks: Outlier-Driven Rescaling is Essential for Transformer Training30 Jan 2026
- 2026LAMP: Look-Ahead Mixed-Precision Inference of Large Language Models29 Jan 2026
- 2025Mixed precision accumulation for neural network inference guided by componentwise forward error analysis19 Mar 2025