Nesting Forward Automatic Differentiation for Memory-Efficient Deep Neural Network Training
Cong Guo, Yuxian Qiu, Jingwen Leng, Chen Zhang, Ying Cao, Quanlu, Zhang, Yunxin Liu, Fan Yang, Minyi Guo

TL;DR
This paper introduces nested Forward-AD, a novel automatic differentiation method for element-wise activation functions, significantly reducing memory usage during deep neural network training and outperforming existing recomputation techniques.
Contribution
It proposes nested Forward-AD tailored for activation functions, enabling memory-efficient training in TensorFlow and PyTorch with improved performance.
Findings
Memory footprint reduced by up to 1.97x
Outperforms recomputation by 20% under same memory constraints
Effective in both static and dynamic computation graph frameworks
Abstract
An activation function is an element-wise mathematical function and plays a crucial role in deep neural networks (DNN). Many novel and sophisticated activation functions have been proposed to improve the DNN accuracy but also consume massive memory in the training process with back-propagation. In this study, we propose the nested forward automatic differentiation (Forward-AD), specifically for the element-wise activation function for memory-efficient DNN training. We deploy nested Forward-AD in two widely-used deep learning frameworks, TensorFlow and PyTorch, which support the static and dynamic computation graph, respectively. Our evaluation shows that nested Forward-AD reduces the memory footprint by up to 1.97x than the baseline model and outperforms the recomputation by 20% under the same memory reduction ratio.
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsAdvanced Neural Network Applications · Domain Adaptation and Few-Shot Learning · Neural Networks and Applications
