Stochastic Rounding for Low-Precision Training

This direction is merged into another direction: stochastic rounding. Its last version stays readable and citable here.

Version 1 of 124 papers29 conceptsfrozen 2026-10-04

Training deep neural networks is traditionally a high-precision endeavor. While we can often "squeeze" a pre-trained model into 8-bit or even 4-bit integers for fast inference on a smartphone, the process of training those models has historically required 32-bit floating-point (FP32) math.

The reason is the "vanishing update" problem. During training, gradients are often orders of magnitude smaller than the weights they update. In a low-precision environment, these tiny updates are smaller than the smallest representable difference between numbers. If you use standard "round-to-nearest" logic, these updates are consistently rounded to zero, and the model stops learning entirely.

To solve this, researchers have turned to Stochastic Rounding (SR), a probabilistic mechanism that allows models to learn from signals smaller than their own representational resolution.

The Intuition of Expected Value

The core problem with deterministic rounding is bias. If you are trying to represent the value $0.1$ using only integers, round-to-nearest will always give you $0$. If you add $0.1$ to a weight 100 times, a deterministic system will result in $0$ change.

Stochastic rounding treats rounding as a probabilistic event. Instead of always rounding $0.1$ to $0$, SR rounds it to $1$ with a $10\%$ probability and to $0$ with a $90\%$ probability.

As Shaoshi Ling and Dan Roth demonstrate in Word Embeddings with Limited Memory, this ensures that the expected value of the rounded number is exactly equal to the high-precision original. Over many iterations, the cumulative effect of these probabilistic "bit flips" allows the model to capture the signal of small gradients that would otherwise be lost.

Overcoming Hardware Constraints

This concept is not just a software trick; it is a necessity for specialized hardware. In neuromorphic computing, where researchers like Simon Friedmann and Karlheinz Meier work with severe hardware constraints, stochastic updates allow 4-bit synaptic weights to approximate the performance of high-resolution software models (Reward-based learning under hardware constraints).

By treating small updates as probabilities for a discrete weight change, these systems prevent the "stagnation" that occurs when analog noise or low digital resolution would otherwise discard incremental learning signals. Similarly, Shuang Wu and colleagues showed in the WAGE framework that stochastic rounding is the critical component that enables training deep networks using only low-bitwidth integers, eliminating the need for power-hungry floating-point units (Training and Inference with Integers in Deep Neural Networks).

Scaling to Large Language Models

As models scale to trillions of parameters, the memory bottleneck of FP32 becomes untenable. Recent work has moved SR from a "numerical curiosity" to a cornerstone of Large Language Model (LLM) optimization.

Kaan Ozkara and Tao Yu have shown that by applying SR to the AdamW optimizer, LLMs can be trained entirely in 16-bit (BF16) without the usual "master copy" of weights in FP32 (Stochastic Rounding for LLM Training: Theory and Practice). This reduces memory usage by 30% and significantly boosts throughput.

The frontier of this research is now pushing into 4-bit training (FP4). Carlo Luschi and Paul Balanca found that while many stabilization techniques exist for such ultra-low precision, stochastic rounding remains one of the most effective tools for maintaining gradient signals and ensuring convergence stability (Elucidating the Design Space of FP4 training).

Why It Works: Statistical Integrity

The success of stochastic rounding across diverse domains—from click-through rate prediction (Shiwei Li et al., Adaptive Low-Precision Training for Embeddings) to extreme classification (ELMO)—stems from its ability to preserve the statistical signal of the gradient.

In a standard training loop, we are not just looking for a single "correct" update, but rather the aggregate direction of millions of updates. Deterministic rounding introduces a systematic bias that pushes the aggregate direction toward zero. Stochastic rounding replaces that bias with zero-centered noise. In the context of neural networks, which are already robust to noise, this trade-off is highly beneficial: the model can filter out the random noise of the rounding while still following the underlying "true" gradient signal.

Papers in this version

History & citationVersion 1 · 2026-10-04

Merged into another direction · Permanent link

View frozen version 1

Cite this direction

Latest version (a living page):

@misc{lacuna_stochastic_rounding_for_low_precision_tr_cb9f169d,
  title = {Stochastic Rounding for Low-Precision Training},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/stochastic-rounding-for-low-precision-training/rdr_cb9f169deb8b4a24bedf2d5604e45af8},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-11-24},
}

This exact version (version 1, frozen text):

@misc{lacuna_stochastic_rounding_for_low_precision_tr_cb9f169d_v1,
  title = {Stochastic Rounding for Low-Precision Training},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/stochastic-rounding-for-low-precision-training/rdr_cb9f169deb8b4a24bedf2d5604e45af8/v/1},
  note = {Version 1, frozen 2026-10-04. Accessed 2026-11-24},
}