DyCE:用于深度学习压缩与实时缩放的可动态配置退出机制
DyCE: Dynamically Configurable Exiting for Deep Learning Compression and Real-time Scaling
AI总结:
DyCE通过在模型中间层添加可配置的退出网络,实现在运行时动态调整深度学习模型的计算复杂度与性能权衡,无需重新部署,并在ImageNet上以不到0.5%的精度损失显著降低ResNet152和ConvNextv2-tiny的计算量。
摘要:
传统的深度学习(DL)模型压缩与缩放方法侧重于改变模型组件,对所有样本的结果产生一致影响。然而,由于样本难度各不相同,一种根据样本复杂度自适应计算量的动态模型为压缩与缩放提供了新的视角。尽管具有这种潜力,现有的动态模型通常是整体式的且针对特定模型设计,限制了其作为通用压缩与缩放方法的可推广性。此外,大多数已部署的深度学习系统是固定的,一旦部署便无法调整其规模,因此无法适应实时需求的不断变化。本文介绍了DyCE,一个可动态配置的系统,能够在运行时调整深度学习模型的性能-复杂度权衡,而无需在推理硬件上重新初始化或重新部署。DyCE通过向原始模型的中间层添加小型退出网络来实现这一点,如果获得了可接受的结果,计算可以提前终止。DyCE还将高效动态模型的设计解耦,便于适应新的基础模型,并有望在压缩与缩放中得到广泛应用。我们还提出了生成优化配置以及确定退出网络类型和位置的方法,以实现期望的性能与复杂度权衡。通过支持简单的配置切换,DyCE提供了实时的细粒度性能调节。我们通过使用深度卷积神经网络(CNN)的图像分类任务验证了DyCE的有效性。在ImageNet上,DyCE将ResNet152的计算复杂度显著降低了23.5%,将ConvNextv2-tiny的计算复杂度显著降低了25.9%,而准确率下降均小于0.5%。
英文摘要:
Conventional deep learning (DL) model compression and scaling methods focus on altering the model's components, impacting the results across all samples uniformly. However, since samples vary in difficulty, a dynamic model that adapts computation based on sample complexity offers a novel perspective for compression and scaling. Despite this potential, existing dynamic models are typically monolithic and model-specific, limiting their generalizability as broad compression and scaling methods. Additionally, most deployed DL systems are fixed, unable to adjust their scale once deployed and, therefore, cannot adapt to the varying real-time demands. This paper introduces DyCE, a dynamically configurable system that can adjust the performance-complexity trade-off of a DL model at runtime without requiring re-initialization or redeployment on inference hardware. DyCE achieves this by adding small exit networks to intermediate layers of the original model, allowing computation to terminate early if acceptable results are obtained. DyCE also decouples the design of an efficient dynamic model, facilitating easy adaptation to new base models and potential general use in compression and scaling. We also propose methods for generating optimized configurations and determining the types and positions of exit networks to achieve desired performance and complexity trade-offs. By enabling simple configuration switching, DyCE provides fine-grained performance tuning in real-time. We demonstrate the effectiveness of DyCE through image classification tasks using deep convolutional neural networks (CNNs). DyCE significantly reduces computational complexity by 23.5% for ResNet152 and 25.9% for ConvNextv2-tiny on ImageNet, with accuracy reductions of less than 0.5%.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。