mlsanityData to 7 Oct 2026

Stochastic Rounding in Low-Precision Transformer Inference: A Variable-Precision Emulation Study of a Small GPT-2

arXiv 2610.01889 ↗First posted 1 Oct 2026cs.LG cs.CLcited by 0

Not on the map. Why?

Abstract (arXiv)

Should low-precision transformer inference use stochastic rounding (SR) or round-to-nearest (RN)? The answer depends on where in the network you look. We isolate this effect by holding the numerical format fixed and varying only the rounding rule at individual operation sites. To enable experiments at freely chosen precisions, we extend the PRISM vectorized rounding library to arbitrary virtual precision via a variable-precision stochastic rounding (VPSR) algorithm, proving that the rounding decision is evaluated exactly in hardware floating point. We develop two analyses providing complementary insight into this site-level trade-off. First, a probabilistic forward-error bound for linear projections shows that SR's error envelope grows as O(√n u) in reduction length n, versus O(n u) for RN, a gap that widens rapidly at low precision and is most pronounced in the long multilayer perceptron (MLP) down-projection. Second, a second-order decomposition of expected cross-entropy loss change at the output softmax into signed drift, drift curvature, and a Fisher-weighted variance penalty reveals why the two sites behave oppositely: MLP noise is predominantly a uniform logit shift to which softmax is invariant, so SR's variance is largely discounted; head noise is non-uniform across the vocabulary and is not. On DistilGPT-2 at t=6 significand bits, observations match theory: SR in the MLP raises perplexity to 1.15x the full-precision reference, versus 2.21x for RN. At the language-model head, the ordering reverses because SR introduces non-uniform variance, whereas deterministic RN carries none. In a mixed-precision configuration (MLP output at t=6), assigning SR to the MLP and RN to the head brings perplexity within 1.10x of the full-precision reference, a 28% reduction over matched-bit RN.

Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 19 of its 52 references that are in the map. First posted on arXiv 1 Oct 2026.

Builds on

19 of 52 references.

References · 19

  1. 2017Attention Is All You Needcited by 59,932
  2. 2016Gaussian Error Linear Units (GELUs)cited by 3,431
  3. 2016Pointer Sentinel Mixture Modelscited by 2,992
  4. 2022SmoothQuant: Accurate and Efficient Post-Training Quantization for Large Language Modelscited by 1,338
  5. 2023AWQ: Activation-aware Weight Quantization for LLM Compression and Accelerationcited by 1,234
  6. 2020On Layer Normalization in the Transformer Architecturecited by 906
  7. 2022LLM.int8(): 8-bit Matrix Multiplication for Transformers at Scalecited by 881
  8. 2020Up or Down? Adaptive Rounding for Post-Training Quantizationcited by 600
  9. 2024QuaRot: Outlier-Free 4-Bit Inference in Rotated LLMscited by 598
  10. 2014New insights and perspectives on the natural gradient methodcited by 435
  11. 2015Deep Learning with Limited Numerical Precisioncited by 368
  12. 2023SqueezeLLM: Dense-and-Sparse Quantizationcited by 285
7 more
  1. 2025Pretraining Large Language Models with NVFP4cited by 67
  2. 2021Accurate Neural Training with 4-bit Matrix Multiplications at Standard Formatscited by 26
  3. 2024What Makes Quantization for Large Language Models Hard? An Empirical Study from the Lens of Perturbationcited by 22
  4. 2019QPyTorch: A Low-Precision Arithmetic Simulation Frameworkcited by 21
  5. 2024A Stochastic Rounding-Enabled Low-Precision Floating-Point MAC for DNN Trainingcited by 6
  6. 2024Error Analysis of Sum-Product Algorithms under Stochastic Roundingcited by 2
  7. 2026Fuzzy PyTorch: Rapid Numerical Variability Evaluation for Deep Learning Modelscited by 2

Built on by

Not cited yet.