NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

AccUDNN: A GPU Memory Efficient Accelerator for Training Ultra-Deep Neural Networks

Jinrong Guo, Wantao Liu, Wang Wang, Chunrong Yao, Jizhong Han, Ruixuan Li, Yijun Lu, Songlin Hu

Abstract

Training ultra-deep neural networks (UDNNs) is increasingly constrained by the limited DRAM capacity of modern GPUs. AccUDNN addresses this "trainability" wall by intelligently swapping data between GPU and host (CPU) RAM. By integrating a performance-aware memory optimizer with a hyperparameter tuner, AccUDNN reduces the memory footprint of models like ResNet-152 by 3x and achieves a 7.7x speedup on 8-GPU clusters without sacrificing model accuracy.

Introduction

The depth of neural networks is a primary driver for accuracy improvements, yet it introduces significant memory challenges. Modern GPUs typically offer 12GB to 24GB of memory, which is insufficient for the "intermediate states"—feature maps and gradients—generated during training.

Memory breakdown of various DNN architectures showing the dominance of intermediate feature maps and gradients.

As shown in Figure 1, these intermediate states occupy the vast majority of GPU memory. Standard workarounds, such as shrinking minibatch sizes or employing model parallelism, often lead to poor hardware utilization or high communication overhead. AccUDNN aims to break this bottleneck by making swapping efficient and performance-transparent.

Methodology

AccUDNN introduces a three-pronged approach to optimize memory and performance:

  1. Memory Optimizer: Instead of a naive approach, this module uses a performance model to orchestrate dynamic swapping. It identifies specific feature maps to offload to host memory and schedules their return to hide transfer latency behind computation.
  2. Hyperparameter Tuner: The system searches for the "efficiency-optimal" minibatch size—the largest batch that fits in optimized memory without saturating the PCIe bus. It then applies an adaptive learning rate rule to ensure training quality remains high.
  3. Runtime Memory Manager: This component manages three concurrent CUDA streams (computation, swap-out, and swap-in) to overlap data transfers with math operations.
Timing diagram illustrating the overlapping of computation and data transfer streams in AccUDNN.

This overlapping strategy, illustrated in Figure 3, ensures the GPU cores remain busy while data moves across the PCIe bus, effectively treating GPU memory as a managed cache.

Key Results

Evaluation on the ILSVRC12 dataset across architectures like VGG-16 and ResNet-152 demonstrated significant gains:

  • Massive Memory Savings: For ResNet-152, AccUDNN reduced the GPU memory requirement from over 24GB to just 8.3GB, enabling training on mid-range GPUs.
  • Increased Throughput: On a single GPU with a 12GB budget, AccUDNN supported a minibatch size 4.2x larger than the standard Caffe framework.
  • Superior Scaling: In a distributed environment with 8 GPUs, AccUDNN achieved a 7.7x speedup, compared to only 4.4x for standard Caffe-PS, due to reduced communication overhead from larger batches.
  • Zero Accuracy Loss: By using the adaptive learning rate rule, the models reached the same final accuracy as the original baselines.

Conclusion

AccUDNN demonstrates that system-algorithm co-design can overcome hardware memory limits. By treating GPU memory as a cache and automatically adjusting algorithmic parameters, it enables the efficient training of ultra-deep models on commodity hardware. Future work will focus on reducing initial profiling overhead and extending the strategy to non-sequential architectures.

Summary updated

BibTeX
@inproceedings{guo2019accudnn,
  author = {Jinrong Guo and Wantao Liu and Wang Wang and Chunrong Yao and Jizhong Han and Ruixuan Li and Yijun Lu and Songlin Hu},
  title = {{AccUDNN: A GPU Memory Efficient Accelerator for Training Ultra-Deep Neural Networks}},
  booktitle = {ICCD},
  year = {2019},
  url = {https://openreview.net/forum?id=tdOOlm8vniZ},
}
Figure