TBA: Faster Large Language Model Training Using SSD-Based Activation Offloading

Kun Wu, Jeongmin Brian Park, Xiaofan Zhang, Mert Hidayetoglu, Vikram Sharma Mailthody, Sitao Huang, Steven S. Lumetta, Wen-Mei W. Hwu · DOI

Introduction: The GPU Memory Wall

The rapid evolution of Large Language Models (LLMs) has encountered a significant bottleneck known as the "memory wall." While GPU computational throughput (FLOPs) has increased dramatically, GPU memory capacity has lagged behind, growing approximately 60% slower than the models themselves. This disparity forces researchers to choose between training smaller models or sacrificing performance through techniques like activation checkpointing.

In LLM training, activations—intermediate tensors generated during the forward pass—can consume up to 80% of GPU memory. To manage this, developers often resort to tiny "micro-batch" sizes or recomputing tensors during the backward pass. However, tiny batches lead to poor hardware utilization, and recomputation adds significant computational overhead. SSDTrain addresses this by treating NVMe SSDs as an extension of the memory hierarchy.

SSDTrain: Asynchronous Activation Offloading

SSDTrain is a novel framework designed to bypass memory constraints by offloading activations to high-capacity NVMe SSDs. The core of the system is an Asynchronous Tensor Cache that utilizes PyTorch hooks to intercept tensors. It offloads them to the SSD immediately after they are produced in the forward pass and prefetches them back just before they are needed for gradient calculation in the backward pass.

As shown in the execution timeline, SSDTrain achieves "zero overhead" by perfectly overlapping data transfers with computation. While the GPU is busy calculating the next layer (L2, L3), the offloading threads are simultaneously storing or prefetching previous activations. This ensures that the GPU never stalls waiting for I/O.

Technical Innovations

To achieve this efficiency, SSDTrain incorporates several key technologies:

  • GPUDirect Storage (GDS): By using NVIDIA’s GDS and the kvikio library, SSDTrain enables direct data transfers between the GPU and SSD via PCIe, bypassing the CPU and host memory entirely to avoid system bottlenecks.
  • Tensor Deduplication & Forwarding: The system identifies identical tensors to avoid redundant I/O. If a tensor is requested for the backward pass before it has been fully flushed to the SSD, the system "forwards" the in-memory version directly.
  • Scalability Modeling: Based on "Chinchilla" scaling laws, the authors proved that as models grow, the time spent on computation increases faster than the time needed for SSD I/O. This makes SSDTrain increasingly effective as model sizes continue to scale.

Key Results and Impact

Empirical evaluations using BERT, GPT, and T5 architectures demonstrate that SSDTrain reduces peak activation memory usage by 28% to 47%. Because the I/O is fully hidden behind computation, the training "step time" remains virtually identical to baselines where no offloading occurs.

By freeing up significant GPU memory, SSDTrain allows researchers to double micro-batch sizes, leading to higher overall training throughput compared to standard recomputation methods. Furthermore, the authors addressed hardware longevity concerns, showing that the sequential nature of activation offloading results in lower SSD wear than typical benchmarks, projecting a lifespan of over two years even under heavy training loads.

Conclusion

SSDTrain provides a scalable, high-performance solution to the memory wall. By leveraging the high capacity of NVMe SSDs and the efficiency of GPUDirect Storage, it enables the training of larger models on existing hardware with negligible performance costs, effectively making SSDs an "elastic" extension of GPU memory.

Summary updated

BibTeX
@inproceedings{wu2025tba,
  author = {Kun Wu and Jeongmin Brian Park and Xiaofan Zhang and Mert Hidayetoglu and Vikram Sharma Mailthody and Sitao Huang and Steven S. Lumetta and Wen-Mei W. Hwu},
  title = {{TBA: Faster Large Language Model Training Using SSD-Based Activation Offloading}},
  booktitle = {DAC},
  year = {2025},
  doi = {10.1109/dac63849.2025.11132754},
}
Figure