Backward-State Policy Is Part of the Learning Algorithm
Shuxiao Xie, Shuyang Xie, Dezhi Ran, Wei Yang, Tao Xie
Key points
From the paper's conclusion- Backward-state policy is thus part of the learning algorithm: it should be specified and checked use by use, not settled by copy accuracy and final loss.
Abstract
Low-precision training rounds tensors that the backward pass reads again, often for several gradients; each use can read the forward's rounded value, the original, or a new random rounding. This backward-state policy looks like a memory and precision detail, settled by copy accuracy and final loss. We argue that it is part of the learning algorithm, and that neither check shows whether it is right. Copy accuracy does not decide the outcome: in three pairs of 390M runs with an emulated FP8 backward, training fails when attention's backward reuses the forward's rounded output and succeeds with a new rounding from the same distribution. Even the most accurate copy, the original itself, can be wrong by our reference: the gradient of the forward pass as it actually ran, with gradients passed through rounding unchanged. For example, a normalization output stored in low precision feeds two gradients: the gain's gradient needs the original, but the next layer's weight gradient needs the rounded value that layer multiplied. Final loss, the other check, does not rule out the error of reading the original for both: it persists in models trained with such a store, while planned loss comparisons stay within a margin fixed in advance. We therefore derive from this reference which value each use must read, or which substitute gives the same gradient on average with the forward held fixed, and check these per-use requirements on single operators, without training. In three tests using PyTorch and Transformer Engine, the requirements predicted beforehand whether reuse changes what the backward computes on average relative to an independent copy, and every prediction held. Backward-state policy is thus part of the learning algorithm: it should be specified and checked use by use, not settled by copy accuracy and final loss.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Where, When, and How Many Bits? Scaling Laws for SGD with Stochastic RoundingarXiv · 2026
- How Much Gradient Does Truncated Backprop Lose in Looped Transformers?arXiv · 2026
- Stochastic Rounding in Low-Precision Transformer Inference: A Variable-Precision Emulation Study of a Small GPT-2arXiv · 2026
- Delta-Matching: Closing the Final Gap of Native 8-bit Training for LLMsarXiv · 2026
- Closing the BF16-FP16 Convergence Speed Gap in RL Post-Training with Stochastic RoundingarXiv · 2026
- What Matters for NVFP4 Training? A Comparative Study of Low-Precision Pretraining RecipesarXiv · 2026