arXiv Machine Learning

Predicting Lost Updates Is Not Enough to Choose a Rounding Policy

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.

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
arXiv AI
Oct 9

Evaluating Exact Output and Checkpoint-State Prediction in Real Programs

The paper introduces a benchmark for predicting a program’s final output and checkpoint state using only its source code and input, extending CRUXEval-style tasks with both short‑ and long‑trace inputs and checkpoints inside and after loops. It evaluates 400 cases from 371 Python and C++ programs across seven settings from four model families, achieving up to 93.0% accuracy on short‑trace final output and 77.0% on long‑trace final output, with reasoning‑enabled settings outperforming non‑reasoning ones by 33.1 to 55.2 percentage points. The study also shows that longer‑trace inputs can change correctness outcomes and that the benchmark reveals errors that short‑output scores alone would miss.

By Xiaohong Chen, David Bucur, Chenglong Ma, Yi Zhang, Lingming Zhang, Sriram Vishwanath, Grigore Rosu
arXiv Machine Learning
Nov 2

Where, When, and How Many Bits? Scaling Laws for SGD with Stochastic Rounding

The paper investigates how stochastic rounding (SR) influences prediction risk in low‑precision training of a two‑layer linear network. It establishes matched upper and lower bounds on prediction error for both the final model and uniformly averaged parameters under various learning‑rate and precision schedules. The study identifies optimal compute scaling, bit‑requirements for target accuracy, and how rounding choices affect learning‑rate design and model performance.

By Zhichao Wang, Michael W. Mahoney
arXiv AI
Oct 15

Two Clocks: Why Larger Rollout Batches Learn Slower but Fail on Schedule in Reinforcement Learning with Verifiable Rewards

The paper investigates reinforcement learning with verifiable rewards (RLVR), where costly model-generated responses encourage larger rollout batches and a square‑root learning‑rate scaling. Using a two‑clock framework, the authors show that while the square‑root rule preserves first‑order drift per sample, larger batches suffer from curvature losses, leading to a critical batch size beyond which sample efficiency degrades. Experiments on Qwen2.5‑Math‑1.5B confirm the predicted progress gap and failure clock, and the authors propose a simple multi‑step RLVR schedule that starts below the critical batch and switches to a larger batch before failure.

By Yuante Li, Junwei Quan, Kai Qiu, Kate Zhang, Yicheng Tao
arXiv Machine Learning
Oct 28

ScaleRLT: Exact Log-Probabilities and Fast Deferred Rollouts for Reinforcement Learning on Looped Transformers

ScaleRLT introduces a hybrid learner log‑probability method that reconciles differences between dense and deferred rollout computations in looped language models like Ouro. By using a stop‑gradient replay of the rollout schedule, the approach achieves bit‑for‑bit reproducibility across FP32 and bf16 real‑weight cells while maintaining the same gradient accuracy as dense implementations. The technique boosts rollout throughput by up to 1.56× on a single GPU and significantly speeds up multi‑node GRPO updates, leading to substantial accuracy gains on GSM8K in short training runs.

By Dezhen Lu, Zixiang Ni, Runguo Li