提出新方法解决冻结层训练中的计算与存储难题。
Rethinking the Potential of Layer Freezing for Efficient DNN Training
- 通过感知通道相似性实现高效特征图增强,降低存储开销。
- 采用渐进式压缩策略,冻结层数越多压缩率越高,显著减少存储占用。
- 在保持模型精度前提下大幅降低训练成本,适合资源受限场景使用。
随着深度神经网络和数据集规模的持续增长,训练计算成本显著上升。层冻结技术因其能有效降低训练开销而受到广泛关注。然而,传统方法中冻结层仍需参与前向传播以生成特征图供未冻结层使用,限制了计算效率提升。先前研究提出将冻结层的特征图缓存为新数据集,使后续层可直接在其上训练。该方法虽看似简单,却存在严重被忽视的挑战:如何对特征图有效应用数据增强,以及由此带来的巨大存储开销。若不解决这些问题,缓存方法性能将严重受损甚至不可行。本文首次系统探索这些挑战并提出完整解决方案。为提升训练精度,提出相似性感知通道增强机制,在最小额外存储代价下缓存高敏感性通道;为缓解存储压力,引入有损数据压缩,并设计渐进式压缩策略,随冻结层数增加逐步提高压缩率,有效降低存储成本。实验表明,本方案在保持模型精度的同时显著降低训练成本,仅带来轻微时间开销。此外,我们对冻结与压缩策略进行了全面评估,为高效DNN训练提供优化指导。
原文摘要 · Abstract (English)
With the growing size of deep neural networks and datasets, the computational costs of training have significantly increased. The layer-freezing technique has recently attracted great attention as a promising method to effectively reduce the cost of network training. However, in traditional layer-freezing methods, frozen layers are still required for forward propagation to generate feature maps for unfrozen layers, limiting the reduction of computation costs. To overcome this, prior works proposed a hypothetical solution, which caches feature maps from frozen layers as a new dataset, allowing later layers to train directly on stored feature maps. While this approach appears to be straightforward, it presents several major challenges that are severely overlooked by prior literature, such as how to effectively apply augmentations to feature maps and the substantial storage overhead introduced. If these overlooked challenges are not addressed, the performance of the caching method will be severely impacted and even make it infeasible. This paper is the first to comprehensively explore these challenges and provides a systematic solution. To improve training accuracy, we propose \textit{similarity-aware channel augmentation}, which caches channels with high augmentation sensitivity with a minimum additional storage cost. To mitigate storage overhead, we incorporate lossy data compression into layer freezing and design a \textit{progressive compression} strategy, which increases compression rates as more layers are frozen, effectively reducing storage costs. Finally, our solution achieves significant reductions in training cost while maintaining model accuracy, with a minor time overhead. Additionally, we conduct a comprehensive evaluation of freezing and compression strategies, providing insights into optimizing their application for efficient DNN training.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。