内存高效的DenseNets实现
Memory-Efficient Implementation of DenseNets
摘要:
DenseNet架构由于功能重用而具有高度的计算效率。然而,一个简单的DenseNet实现可能需要大量的GPU内存:如果管理不当,预激活批量归一化和连续卷积操作可能会产生与网络深度成二次方增长的特征图。在本技术报告中,我们介绍了在训练过程中减少DenseNets内存消耗的策略。通过策略性地使用共享内存分配,我们将存储特征图的内存成本从二次降低到线性。没有GPU内存瓶颈,现在可以训练极深的DenseNets。具有14M参数的网络可以在单个GPU上训练,高于4M。264层DenseNet(73M参数)以前无法进行训练,现在可以在一个带有8个NVIDIA Tesla M40 GPU的工作站上进行训练。在ImageNet ILSVRC分类数据集上,这个大型DenseNet获得了20.26%的最先进的单作物前1错误。
英文摘要:
The DenseNet architecture is highly computationally efficient as a result of feature reuse. However, a naive DenseNet implementation can require a significant amount of GPU memory: If not properly managed, pre-activation batch normalization and contiguous convolution operations can produce feature maps that grow quadratically with network depth. In this technical report, we introduce strategies to reduce the memory consumption of DenseNets during training. By strategically using shared memory allocations, we reduce the memory cost for storing feature maps from quadratic to linear. Without the GPU memory bottleneck, it is now possible to train extremely deep DenseNets. Networks with 14M parameters can be trained on a single GPU, up from 4M. A 264-layer DenseNet (73M parameters), which previously would have been infeasible to train, can now be trained on a single workstation with 8 NVIDIA Tesla M40 GPUs. On the ImageNet ILSVRC classification dataset, this large DenseNet obtains a state-of-the-art single-crop top-1 error of 20.26%.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。