Saved in:
Bibliographic Details
Main Authors: Chen, Fang, Datta, Gourav, Rafi, Mujahid Al, Jeon, Hyeran, Tang, Meng
Format: Preprint
Published: 2024
Subjects:
Online Access:https://arxiv.org/abs/2406.03744
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866909594654081024
author Chen, Fang
Datta, Gourav
Rafi, Mujahid Al
Jeon, Hyeran
Tang, Meng
author_facet Chen, Fang
Datta, Gourav
Rafi, Mujahid Al
Jeon, Hyeran
Tang, Meng
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2406_03744
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle ReDistill: Residual Encoded Distillation for Peak Memory Reduction of CNNs
Chen, Fang
Datta, Gourav
Rafi, Mujahid Al
Jeon, Hyeran
Tang, Meng
Computer Vision and Pattern Recognition
Machine Learning
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.
title ReDistill: Residual Encoded Distillation for Peak Memory Reduction of CNNs
topic Computer Vision and Pattern Recognition
Machine Learning
url https://arxiv.org/abs/2406.03744