arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2209.10778cs.LG
收藏

嵌套前向自动微分用于记忆高效的深度神经网络训练

Nesting Forward Automatic Differentiation for Memory-Efficient Deep Neural Network Training

Shanghai Jiao Tong University(上海交通大学);Shanghai Qi Zhi Institute(上海期智研究院);Alibaba Group(阿里巴巴集团);Microsoft Research(微软研究院);Institute for AI Industry Research (AIR), Tsinghua University(清华大学人工智能产业研究院(AIR))

Cong Guo, Yuxian Qiu, Jingwen Leng, Chen Zhang, Ying Cao, Quanlu Zhang, Yunxin Liu, Fan Yang, Minyi Guo

摘要:

激活函数是一种逐元素的数学函数,在深度神经网络(DNN)中起着至关重要的作用。已经提出了许多新颖和复杂的激活函数来提高DNN的准确性,但在反向传播的训练过程中也消耗了大量的内存。在这项研究中,我们提出了嵌套的前向自动微分(Forward-AD),特别是用于记忆高效的DNN训练的逐元素激活函数。我们在两个广泛使用的深度学习框架TensorFlow和PyTorch中部署嵌套的Forward-AD,它们分别支持静态和动态计算图。我们的评估表明,嵌套的Forward-AD比基线模型减少了高达1.97倍的内存占用,在相同的内存减少率下,比重新计算的性能高出20%。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑