Papers
Topics
Authors
Recent
Gemini 2.5 Flash
Gemini 2.5 Flash
97 tokens/sec
GPT-4o
53 tokens/sec
Gemini 2.5 Pro Pro
44 tokens/sec
o3 Pro
5 tokens/sec
GPT-4.1 Pro
47 tokens/sec
DeepSeek R1 via Azure Pro
28 tokens/sec
2000 character limit reached

ActNN: Reducing Training Memory Footprint via 2-Bit Activation Compressed Training (2104.14129v2)

Published 29 Apr 2021 in cs.LG, cs.CV, and stat.ML

Abstract: The increasing size of neural network models has been critical for improvements in their accuracy, but device memory is not growing at the same rate. This creates fundamental challenges for training neural networks within limited memory environments. In this work, we propose ActNN, a memory-efficient training framework that stores randomly quantized activations for back propagation. We prove the convergence of ActNN for general network architectures, and we characterize the impact of quantization on the convergence via an exact expression for the gradient variance. Using our theory, we propose novel mixed-precision quantization strategies that exploit the activation's heterogeneity across feature dimensions, samples, and layers. These techniques can be readily applied to existing dynamic graph frameworks, such as PyTorch, simply by substituting the layers. We evaluate ActNN on mainstream computer vision models for classification, detection, and segmentation tasks. On all these tasks, ActNN compresses the activation to 2 bits on average, with negligible accuracy loss. ActNN reduces the memory footprint of the activation by 12x, and it enables training with a 6.6x to 14x larger batch size.

User Edit Pencil Streamline Icon: https://streamlinehq.com
Authors (7)
  1. Jianfei Chen (63 papers)
  2. Lianmin Zheng (34 papers)
  3. Zhewei Yao (64 papers)
  4. Dequan Wang (37 papers)
  5. Ion Stoica (177 papers)
  6. Michael W. Mahoney (233 papers)
  7. Joseph E. Gonzalez (167 papers)
Citations (66)

Summary

We haven't generated a summary for this paper yet.