arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2406.03744cs.CVcs.LG
收藏

ReDistill:用于降低CNN峰值内存的残差编码蒸馏

ReDistill: Residual Encoded Distillation for Peak Memory Reduction of CNNs

University of California Merced(加州大学默塞德分校);Case Western Reserve University(凯斯西储大学)

Fang Chen, Gourav Datta, Mujahid Al Rafi, Hyeran Jeon, Meng Tang

AI总结:

提出ReDistill残差编码蒸馏方法,通过激进池化构建低内存学生网络,在图像分类和扩散生成任务中实现4倍至5倍峰值内存降低且保持良好性能。

摘要:

神经网络规模的扩大和现代图像传感器分辨率的提高,导致处理现代计算机视觉模型的内存和功耗需求增加。为了将这些模型部署在资源极度受限的边缘设备上,降低其峰值内存至关重要,峰值内存即模型执行期间消耗的最大内存。降低峰值内存的一种简单方法是通过大步长池化对特征图进行激进下采样,但这通常会导致网络性能出现不可接受的下降。为了缓解这个问题,我们提出了用于降低峰值内存的残差编码蒸馏(ReDistill),应用于师生框架中,其中内存更少的学生网络是使用激进池化从教师网络派生而来的。我们将我们的蒸馏方法应用于计算机视觉中的多个问题,包括图像分类和基于扩散的图像生成。对于图像分类,我们的方法在大多数基于CNN的架构中实现了4倍至5倍的理论峰值内存降低,且精度下降更少。对于基于扩散的图像生成,我们提出的蒸馏方法产生了一个理论峰值内存降低4倍的去噪网络,同时保持了图像生成良好的多样性和保真度。实验表明,当应用于相同的学生网络时,与其他基于特征和基于响应的蒸馏方法相比,我们的方法具有优越的性能。代码可在https://github.com/mengtang-lab/ReDistill获取。

英文摘要:

The expansion of neural network sizes and the enhanced resolution of modern image sensors result in heightened memory and power demands to process modern computer vision models. In order to deploy these models in extremely resource-constrained edge devices, it is crucial to reduce their peak memory, which is the maximum memory consumed during the execution of a model. A naive approach to reducing peak memory is aggressive down-sampling of feature maps via pooling with large stride, which often results in unacceptable degradation in network performance. To mitigate this problem, we propose residual encoded distillation (ReDistill) for peak memory reduction in a teacher-student framework, in which a student network with less memory is derived from the teacher network using aggressive pooling. We apply our distillation method to multiple problems in computer vision, including image classification and diffusion-based image generation. For image classification, our method yields 4x-5x theoretical peak memory reduction with less degradation in accuracy for most CNN-based architectures. For diffusion-based image generation, our proposed distillation method yields a denoising network with 4x lower theoretical peak memory while maintaining decent diversity and fidelity for image generation. Experiments demonstrate our method's superior performance compared to other feature-based and response-based distillation methods when applied to the same student network. The code is available at https://github.com/mengtang-lab/ReDistill.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑