Manuscript Offprint

arXiv:2610.13003

SlackSwap: Bandwidth-Aware Activation Swapping and Recomputation for Memory-Efficient DNN Training

Hui Feng, Xun Zhou, Yuxin Wang

Abstract

Swapping saved activations to host memory let GPUs train models larger than their memory when compute and the host link were roughly balanced: on a 2015 Titan X, PCIe could copy every VGG-16 activation out while the forward pass ran. That balance is gone. From the Titan X to the H100, peak training FLOP/s grew 141× while the host link grew 3.9×, and on an A100 the link can hide only 11–38% of the activations of the transformers we study. Swap policies such as vDNN, SuperNeurons and SwapAdvisor still push whatever the memory budget demands through the link and stall; block checkpointing leaves the link idle. We present SlackSwap, which treats link time as a budget. From one profiled iteration, SlackSwap spends the forward-pass link budget on the tensors that are most expensive to recompute, covers the remaining deficit by recomputing the cheapest ones, and runs FIFO offloads and earliest-deadline-first prefetches with no per-layer barriers. In a trace-driven simulation of BERT-Large, GPT-2 XL and a Llama-7B-style model on an A100, SlackSwap keeps 96–100% of the throughput of an unlimited-memory GPU at half the activation memory, 1.10–1.11× the best baseline, stays within 0.5% of a genetic search over 6,600–14,000 plans, and plans in under 0.4 s.

CCS Concepts

• Computer systems organization → Heterogeneous (hybrid) systems; • Software and its engineering → Memory management; • Computing methodologies → Machine learning.