Half a Bit per Parameter: How Much Optimizer State Does Training Need to Survive a Failed GPU?
Abstract
Large-scale training now fails every few hours, and most failures take out a single GPU or host. In the configuration common at scale, the weights are replicated, but the optimizer state exists only once, split across GPUs with no second copy, so each failure destroys a shard of it. Existing recovery rolls back to a checkpoint, keeps a full extra copy of the state, or gives up training progress. In this paper, we ask how much of the optimizer state training actually needs to survive a failure. We measure the lag, the number of steps training falls behind a run without the failure. Against the redundant bits kept per parameter, the lag shows a sharp knee between 0.05 and 0.5 bits. We trace the knee to the direction and the scale that the lost state supplies to each update. Keeping one sum of the second moment per row and per column, plus a 4-bit momentum for the hottest 10% of rows, recovers nearly all of the damage. A per-row model built on this view predicted, before the runs, how much keeping the momentum of different rows helps, and the same view carries over to Muon and Adafactor. We present HalfBit, which keeps only these statistics on a GPU of another host, at 0.46 bits per parameter or 1/209 of a full copy, and rebuilds the lost shard after a failure. HalfBit keeps each failure to 2 to 3 steps of lag without rollback, against 100 steps of rollback on average for checkpointing every 200 steps. It adds an estimated 0.04% to 0.16% per-step overhead for an 8B model on H100 GPUs and no CPU memory.
Create a lesson
Related papers
Preserving Optimizer Updates When Experts Move in MoE Training
Shared title terminologycs.DCYanming Lai, Yi Qin, Yongxin Hu et al.
Generalized Tensor Parallelism: Powering Trillion-Parameter LLM Training at 10+ EFLOP/s
Shared title terminologycs.DCShiqing Fan, Deepak Narayanan, Jimmy Zhang et al.
Adaptive Warm-State Retention for Serverless Cold-Start Mitigation: Treating Keep-Alive Time as an Online Control Parameter
Shared title terminologycs.DCSanjeet Raj Pandey, Axel Küpper
Robust Binary-Compressed Communication in Distributed Learning and the Optimality of SignSGD
Shared title terminologycs.DCHallison Paz, Arthur Danjou, El Mahdi El Mhamdi
Asymptotically Round- and Communication-Optimal Byzantine Broadcast under a Dishonest Majority from a New Extension Protocol
Shared title terminologycs.DCPierre Civit, Grigorii Emdin, Rachid Guerraoui
Effective Parallel Discrete Event Simulation on NUMA Machines through Ubiquitous Simulation-Object State
Shared title terminologycs.DCFrancesco Quaglia