就地激活BatchNorm用于DNN的记忆优化训练
In-Place Activated BatchNorm for Memory-Optimized Training of DNNs
摘要:
在这项工作中,我们提出了就地激活批量归一化(InPlace-ABN)-一种以计算高效的方式大幅减少现代深度神经网络的训练记忆足迹的新方法。我们的解决方案用单个插件层取代了传统使用的BatchNorm + Activation层,从而避免了侵入性框架手术,同时为现有的深度学习框架提供了直接的适用性。我们获得的内存节省高达50%,通过丢弃中间结果,并通过恢复所需的信息,通过反向传递存储的前向结果,只有轻微的增加(0.8-2%)的计算时间。此外,我们展示了如何频繁使用的检查点方法可以计算效率的InPlace-ABN。在我们对图像分类的实验中,我们使用最先进的方法在ImageNet-1 k上展示了相同的结果。在内存要求高的任务语义分割,我们报告的结果COCO的东西,城市景观和Mapillary远景,获得新的国家的最先进的结果,后者没有额外的训练数据,但在一个单一的规模和模型的情况下。代码可以在https://github.com/mapillary/inplace_abn上找到。
英文摘要:
In this work we present In-Place Activated Batch Normalization (InPlace-ABN) - a novel approach to drastically reduce the training memory footprint of modern deep neural networks in a computationally efficient way. Our solution substitutes the conventionally used succession of BatchNorm + Activation layers with a single plugin layer, hence avoiding invasive framework surgery while providing straightforward applicability for existing deep learning frameworks. We obtain memory savings of up to 50% by dropping intermediate results and by recovering required information during the backward pass through the inversion of stored forward results, with only minor increase (0.8-2%) in computation time. Also, we demonstrate how frequently used checkpointing approaches can be made computationally as efficient as InPlace-ABN. In our experiments on image classification, we demonstrate on-par results on ImageNet-1k with state-of-the-art approaches. On the memory-demanding task of semantic segmentation, we report results for COCO-Stuff, Cityscapes and Mapillary Vistas, obtaining new state-of-the-art results on the latter without additional training data but in a single-scale and -model scenario. Code can be found at https://github.com/mapillary/inplace_abn .
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。