Why Low-Precision Transformer Training Fails: An Analysis on Flash Attention
Not on the map. Why?
Abstract (arXiv)
The pursuit of computational efficiency has driven the adoption of low-precision formats for training transformer models. However, this progress is often hindered by notorious training instabilities. This paper provides the first mechanistic explanation for a long-standing and unresolved failure case where training with flash attention in low-precision settings leads to catastrophic loss explosion. Our in-depth analysis reveals that the failure is not a random artifact but caused by two intertwined phenomena: the emergence of similar low-rank representations within the attention mechanism and the compounding effect of biased rounding errors inherent in low-precision arithmetic. We demonstrate how these factors create a vicious cycle of error accumulation that corrupts weight updates, ultimately derailing the training dynamics. To validate our findings, we introduce a minimal modification to the flash attention that mitigates the bias in rounding errors. This simple change stabilizes the training process, confirming our analysis and offering a practical solution to this persistent problem. Code is available at https://github.com/ucker/why-low-precision-training-fails.
Key facts. Cited by 12 papers in the map (data through 14 Oct 2026). First posted on arXiv 5 Oct 2025.
Builds on
0 of 0 references.
No references here yet.
Built on by
Citing papers per year: 2025: 1; 2026: 11.
12 papers.
- 2026Kimi K3: Open Frontier Intelligencecited by 138
- 2025TWEO: Transformers Without Extreme Outliers Enables FP8 Training And Quantization For Dummiescited by 6
- 2026StoSignSGD: Unbiased Structural Stochasticity Fixes SignSGD for Training Large Language Modelscited by 5
- 2026Grokking or Glitching? How Low-Precision Drives Slingshot Loss Spikescited by 4
- 2026Mechanism-Driven Monitors for Preemptive Detection of LLM Training Instabilitycited by 2
- 2026Auditing Invisible Weight Updates with Reference Tracescited by 0
- 2026An Isotropy-Preserving Spectral Cap for Muon: Theory and Three Case Studiescited by 0
- 2026Automated Numerical Stability Analysis of Deep Learning Operatorscited by 0
- 2026One QK Channel, Many Sources: Tracing Low-Precision Attention Collapsecited by 0
- 2026Broken Symmetry in BF16 Attention: Why FlashAttention Gradients Blow Up Late in Trainingcited by 0
- 2026Backward-State Policy Is Part of the Learning Algorithmcited by 0
- 2026TurboPairFormer: Fast and Stable Protein Folding Model Training with an Optimized Triangle Attention Kernelcited by 0
- 2026TurboPairFormer: Fast and Stable Protein Folding Model Training with an Optimized Triangle Attention Kernel5 Oct 2026
- 2026Backward-State Policy Is Part of the Learning Algorithm30 Sep 2026
- 2026Broken Symmetry in BF16 Attention: Why FlashAttention Gradients Blow Up Late in Training28 Sep 2026
- 2026One QK Channel, Many Sources: Tracing Low-Precision Attention Collapse3 Aug 2026
- 2026Automated Numerical Stability Analysis of Deep Learning Operators28 Jul 2026
- 2026Kimi K3: Open Frontier Intelligence27 Jul 2026
- 2026An Isotropy-Preserving Spectral Cap for Muon: Theory and Three Case Studies22 Jul 2026
- 2026Auditing Invisible Weight Updates with Reference Traces9 Jul 2026
- 2026Mechanism-Driven Monitors for Preemptive Detection of LLM Training Instability26 Jun 2026
- 2026Grokking or Glitching? How Low-Precision Drives Slingshot Loss Spikes7 May 2026
- 2026StoSignSGD: Unbiased Structural Stochasticity Fixes SignSGD for Training Large Language Models16 Apr 2026
- 2025TWEO: Transformers Without Extreme Outliers Enables FP8 Training And Quantization For Dummies28 Nov 2025