arXiv Machine Learning By Zekai Shang

Predicting Lost Updates Is Not Enough to Choose a Rounding Policy

Read the original on arXiv Machine Learning →

The study investigates whether predicting the frequency of weight values reverting to their previous state after small updates can guide the selection of a rounding policy in low‑precision training. Using a higher‑precision pilot to forecast the fraction of unchanged matrix weights during the first 64 updates of Pythia‑410M, the authors compare nearest rounding, stochastic rounding, and retaining 32‑bit weights across three training schedules. They find that nearest rounding consistently yields lower validation loss at 256 updates and maintains this advantage at 512 updates when optimizer state is retained, yet the predictions do not reveal any advantage from switching rounding policies in these experiments.

Machine-generated by The Flow from the publisher's headline and feed description — not written or checked by a human. The full article lives at arXiv Machine Learning.

arXiv Machine Learning
Nov 2

bf16 Rounding Silently Discards Most RL Policy Updates: A Hidden Training-Inference Mismatch and an Unbiased One-Line Fix

The paper identifies a hidden mismatch in reinforcement‑learning fine‑tuning of large language models: when training uses fp32 master weights but rollouts are served from a bf16 copy produced by round‑to‑nearest conversion, most per‑step updates are too small to affect the served weights, causing a lag of 50–150 steps. The authors propose Fair Cast, a one‑line change that exports the master weights with an unbiased rounding rule (stochastic rounding or error feedback) and computes the loss on the served copy, eliminating the lag without adding hyperparameters and incurring only a modest computational cost. Across multiple models and optimizers, Fair Cast consistently outperforms round‑to‑nearest, improves checkpoint consistency, and reveals the implicit regularization effect of the lag.

By Andrew Gao, William Gao
arXiv Machine Learning
Oct 2

Backward-State Policy Is Part of the Learning Algorithm

The paper argues that the policy governing how tensors are rounded and reused during the backward pass—termed the backward‑state policy—is an integral part of the learning algorithm, not merely a memory or precision detail. Experiments with 390 M‑parameter models show that whether the backward pass reuses a forward’s rounded output or generates a new rounding can decisively affect training success, even when copy accuracy is high. The authors propose a method to determine, for each operator, which value should be read or substituted to preserve the correct gradient, and validate these predictions on PyTorch and Transformer Engine.

By Shuxiao Xie, Shuyang Xie, Dezhi Ran, Wei Yang, Tao Xie
arXiv Machine Learning
Nov 11

Closing the BF16-FP16 Convergence Speed Gap in RL Post-Training with Stochastic Rounding

The paper investigates why mixed‑precision BF16 training converges slower than FP16 in reinforcement learning with low learning rates. It identifies weight sticking caused by round‑to‑nearest quantization of FP32 shadow weights to BF16, which delays updates to the BF16 weights used for rollout. By applying stochastic rounding during this quantization, the authors achieve FP16‑level convergence speed across models and datasets while reducing KL divergence and avoiding the need for loss scaling.

By Mahdi Nazemi, Oleg Rybakov, Tijmen Blankevoort, Asit Mishra, Carlo del Mundo
arXiv Machine Learning
Oct 19

Error Correction in Trained TTT Layers

arXiv:2610.16268v2 Announce Type: replace Abstract: Test-time-training (TTT) layers update fast-weight memory while processing an input sequence. A gradient-based update, however, does not by itself...

By Yuhe Hu
arXiv Machine Learning
Oct 2

Low-Discrepancy Dither for Quantized Recurrent State Caches

The paper investigates rounding strategies for low‑precision recurrent state caches in Mamba‑style and hybrid language models. It shows that a deterministic golden‑ratio Weyl dither consistently yields quantized models closer to full precision than stochastic rounding, across various models, storage formats, and long decoding horizons, without extra cost. In contrast, round‑to‑nearest can appear effective in short tests but degrades over long generations due to error accumulation.

By Snigdha Chandan Khilar
arXiv AI
Oct 27

Where Rounding Happens Matters: Rounding-Location Alignment Stabilizes LLM Reinforcement Learning

The paper investigates how aligning rounding locations between inference and training can stabilize reinforcement learning for large language models using BF16 precision. By retaining selected intermediates in FP32 until their BF16 outputs in three key regions—RoPE, SwiGLU, and residual RMSNorm—the authors prevent training collapse across four Qwen-family models. The approach keeps the inference engine, matrix‑multiplication and attention kernels, and learning objective unchanged.

By Yijing Ke, Tianle Cai, Ruosong Wang