The ever-growing scale of deep neural networks (DNNs) has lead to an equally rapid growth in computational resource requirements. Many recent architectures, most prominently Large Language Models, have to be trained using supercomputers with thousands of accelerators, such as GPUs or TPUs. Next to the vast number of floating point operations the memory footprint of DNNs is also exploding. In contrast, GPU architectures are notoriously short on memory. Even comparatively small architectures like some EfficientNet variants cannot be trained on a single consumer-grade GPU at reasonable mini-batch sizes. During training, intermediate input activations have to be stored until backpropagation for gradient calculation. These make up the vast majority of the memory footprint. In this work we therefore consider compressing activation maps for the backward pass using pooling, which can reduce both the memory footprint and amount of data movement. The forward computation remains uncompressed. We empirically show convergence and study effects on feature detection at the example of the common vision architecture ResNet. With this approach we are able to reduce the peak memory consumption by 29% at the cost of a longer training schedule, while maintaining prediction accuracy compared to an uncompressed baseline.
XConv: Low-memory stochastic backpropagation for convolutional layers
University of Central Florida(中央佛罗里达大学);Rice University(里士满大学);DevitoCodes Ltd(DevitoCodes有限公司);Michigan State University(密歇根州立大学);Georgia Institute of Technology(佐治亚理工学院)
enpheeph: A Fault Injection Framework for Spiking and Compressed Deep Neural Networks
Technische Universität Wien(维也纳工业大学);New York University Abu Dhabi(纽约大学阿布扎比分校)
对深度神经网络(DNN)的研究集中在提高现实世界部署的性能和准确性,从而产生了新的模型,例如脉冲神经网络(SNN)和优化技术,例如,压缩网络的量化和修剪。然而,这些创新模型和优化技术的部署引入了可能的可靠性问题,这是DNN在安全关键应用中广泛使用的支柱,例如,自动驾驶此外,扩展技术节点具有同时发生多个故障的相关风险,这种可能性在最先进的弹性分析中没有得到解决。为了更好地分析DNN的可靠性,我们提出了enpheeph,一个用于尖峰和压缩DNN的故障注入框架。enpheeph框架能够在专用硬件设备上优化执行,例如,GPU,同时提供完整的可定制性来研究不同的故障模型,模拟各种可靠性约束和用例。因此,可以在SNN以及压缩网络上执行故障,对底层代码进行最小到零的修改,这是其他最先进的工具无法实现的。为了评估我们的enpheeph框架,我们分析了不同DNN和SNN模型的弹性,以及不同的压缩技术。通过注入随机和增加数量的故障,我们表明DNN可以显示出准确性的降低,每个参数的故障率低至7 x 10 ^(-7)个故障,准确性下降超过40%。执行enpheeph时的运行时开销小于并发执行100000个错误时的基线执行时间的20%,至少比最先进的框架低10倍,使enpheeph在复杂的错误注入场景中经得起未来的考验。我们在https://github.com/Alexei95/enpheeph上发布en…