PaReprop:快速并行化可逆反向传播
PaReprop: Fast Parallelized Reversible Backpropagation
AI总结:
针对可逆Transformer训练中反向传播阶段激活重计算带来的额外开销问题,提出PaReprop并行化可逆反向传播算法,将激活重计算与梯度计算并行,经多模态多模型基准测试,训练吞吐量最高比普通可逆训练提升20%。
摘要:
随着数据集和深度学习模型规模不断增长,实现更快、内存高效的训练变得至关重要。可逆Transformer近期作为一种极具前景的新方法被提出,可实现极高内存效率的训练,但在反向传播阶段存在激活重计算带来的额外计算开销。我们提出PaReprop,一种快速并行化可逆反向传播算法,将可逆训练中额外的激活重计算开销与反向传播阶段的梯度计算本身并行化。我们通过在多个模型系列(ViT、MViT、Swin和RoBERTa)、数据模态(视觉与自然语言处理)、模型规模(从小型到巨型)及训练批量大小上开展广泛基准测试,验证了所提PaReprop算法的有效性。实证结果表明,PaReprop的训练吞吐量比普通可逆训练最高提升20%,大幅缓解了可逆训练中激活重计算导致的吞吐量降低25%的理论开销。项目页面:https://tylerzhu.com/pareprop。
英文摘要:
The growing size of datasets and deep learning models has made faster and memory-efficient training crucial. Reversible transformers have recently been introduced as an exciting new method for extremely memory-efficient training, but they come with an additional computation overhead of activation re-computation in the backpropagation phase. We present PaReprop, a fast Parallelized Reversible Backpropagation algorithm that parallelizes the additional activation re-computation overhead in reversible training with the gradient computation itself in backpropagation phase. We demonstrate the effectiveness of the proposed PaReprop algorithm through extensive benchmarking across model families (ViT, MViT, Swin and RoBERTa), data modalities (Vision & NLP), model sizes (from small to giant), and training batch sizes. Our empirical results show that PaReprop achieves up to 20% higher training throughput than vanilla reversible training, largely mitigating the theoretical overhead of 25% lower throughput from activation recomputation in reversible training. Project page: https://tylerzhu.com/pareprop.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。