Know What You Need: Efficient Activation Checkpointing
Abstract
Large Language Model training is increasingly constrained by memory capacity. Activation Checkpointing reduces activation memory by avoiding storing selected activations during the forward pass and rematerializing them during backpropagation, thereby trading memory savings for additional computation. Although this technique is essential for scaling model training, rematerialization can be prohibitively expensive, particularly for Transformer linear layers. Approximate computation could reduce this overhead, but conventional approaches either introduce errors that accumulate over the backward pass or fail to exploit information available from the initial forward pass. We introduce a novel approximate rematerialization method that can yield unbiased gradient estimates: using information collected during the initial forward pass, the method selectively recomputes only the most important layer components, either through greedy selection or randomized sketching. Ablation studies show that the resulting gradients closely match the exact gradients. When applied to feed-forward layers, attention layers, or both, our method can recompute only two-thirds of the layer components in a Llama-488M model, while increasing perplexity by just 1.7%, 1.2%, and 2.5%, respectively.
Create a lesson
Metadata
- Journal
- The Fortieth Annual Conference on Neural Information Processing Systems, 2026, Paris, France
Related papers
FEAST: Fair and Efficient Adaptive Sampling for Task-Free On-Policy Learning
Shared title terminologycs.LGYongxi Zhu, Ziyi Wang, Yichen Wu et al.
Resource-Efficient Multimodal Fusion for Early Rice Blast Forecasting in Sustainable Agriculture
Shared title terminologycs.LGShubhajyoti Das, Pritam Bikram, Arindam Biswas et al.
KiRA: Kronecker Input-Gated Rank Adaptation for Parameter-Efficient Fine-Tuning of Pretrained Models
Shared title terminologycs.LGAkil Ahmad Taki, Shaikh Anowarul Fattah
LEGOSpec: A Composable and Efficient Framework for Speculative Draft Design and Training
Shared title terminologycs.LGHanzhen Wang, Jiaming Xu, Guohao Dai
Sample-Efficient In-Context Adaptation via Sleep
Shared title terminologycs.LGSangyun Lee, Zhang Enyan, Michael Xu et al.
Understanding the Importance of Massive Activations through Adversarial Robustness
Shared title terminologycs.LGTigran Fahradyan, Riccardo Ali, Sergio Calvo-Ordoñez et al.