[Paper Review] Backprop with Approximate Activations for Memory-efficient Network Training
This paper proposes a memory-efficient backpropagation method that uses approximate activations to reduce GPU memory usage during training, storing only low-precision approximations for backprop while recomputing exact activations during the forward pass. The approach enables up to 8× memory reduction with minimal impact on training accuracy, allowing larger batch sizes and better GPU utilization on deep networks like ResNets with 1000+ layers using as low as 4-bit precision.
Training convolutional neural network models is memory intensive since back-propagation requires storing activations of all intermediate layers. This presents a practical concern when seeking to deploy very deep architectures in production, especially when models need to be frequently re-trained on updated datasets. In this paper, we propose a new implementation for back-propagation that significantly reduces memory usage, by enabling the use of approximations with negligible computational cost and minimal effect on training performance. The algorithm reuses common buffers to temporarily store full activations and compute the forward pass exactly. It also stores approximate per-layer copies of activations, at significant memory savings, that are used in the backward pass. Compared to simply approximating activations within standard back-propagation, our method limits accumulation of errors across layers. This allows the use of much lower-precision approximations without affecting training accuracy. Experiments on CIFAR-10, CIFAR-100, and ImageNet show that our method yields performance close to exact training, while storing activations compactly with as low as 4-bit precision.
Motivation & Objective
- To address the high memory footprint of training deep convolutional neural networks, which stems from storing full-precision activations for backpropagation.
- To reduce memory usage without significantly increasing computational cost or degrading model performance.
- To enable training of very deep networks (e.g., 1001-layer ResNets) on single-GPU setups by minimizing activation storage.
- To explore the robustness of stochastic gradient descent to approximation errors in activations during backpropagation.
- To demonstrate that approximation errors can be contained and do not accumulate significantly across layers when using a novel buffer-reuse strategy.
Proposed method
- The method uses a reusable buffer to store exact activations temporarily during the forward pass, which are then overwritten to save memory after use.
- It maintains a low-precision (e.g., 4-bit) approximate copy of each layer’s activations for use in the backward pass.
- The forward pass computes gradients using exact activations, ensuring accuracy, while the backward pass uses the approximate copies to reduce memory footprint.
- By reusing the same buffer for exact activations and only storing compressed approximations, the method avoids storing full activations across all layers.
- The approach prevents error accumulation across layers by ensuring the forward pass remains exact, limiting the impact of approximation in the backward pass.
- It leverages the inherent noise in SGD to absorb the small additional error introduced by activation approximation, making the method robust.
Experimental results
Research questions
- RQ1Can approximate activations be used in backpropagation without significantly degrading model accuracy, even when using very low-precision representations like 4-bit?
- RQ2How can approximation errors be contained across layers to prevent compounding during backpropagation?
- RQ3To what extent can memory usage be reduced during training while maintaining training efficiency and model performance?
- RQ4Is the error introduced by activation approximation comparable to the inherent noise in stochastic gradient descent?
- RQ5Can this method enable training of extremely deep networks (e.g., 1001-layer ResNets) on a single GPU with large batch sizes?
Key findings
- The method reduced memory usage by up to a factor of 8 compared to exact training, enabling training of 1001-layer ResNets on a single 1080Ti GPU.
- With 4-bit approximations, the method achieved test accuracy within 0.5% of exact training on CIFAR-10, CIFAR-100, and ImageNet.
- The approximation error in parameter gradients was 1–2 orders of magnitude smaller than the inherent noise in SGD, explaining the minimal impact on performance.
- Larger batch sizes were feasible with the proposed method, improving GPU utilization and reducing wall-clock training time per sample.
- The per-iteration runtimes were nearly identical between exact training and the proposed method, indicating negligible computational overhead.
- The method allowed full 128-batch training on a single 1080Ti GPU for CIFAR-10, while exact training required two forward-backward passes with 64-batch per-GPU on the same setup.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.