arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2303.08595cs.LG
收藏

自动注意力修剪:使用注意力改进和自动化模型修剪

Automatic Attention Pruning: Improving and Automating Model Pruning using Attentions

Arizona State University(亚利桑那州立大学);Meta

Kaiqi Zhao, Animesh Jain, Ming Zhao

摘要:

修剪是压缩深度学习模型以便将其部署在资源受限的边缘设备上的一种有前途的方法。然而,许多现有的修剪解决方案是基于非结构化修剪,这产生的模型不能有效地运行在商用硬件上;并且它们通常需要用户手动探索和调整修剪过程,这是耗时的,并且通常导致次优结果。为了解决这些限制,本文提出了自动注意力修剪(AAP),一个自适应的,基于注意力的,结构化的修剪方法,自动生成小,准确,硬件效率高的模型,满足用户的目标。首先,它提出了使用基于激活的注意力地图的迭代结构化修剪,以有效地识别和修剪不重要的过滤器。然后,它提出了自适应修剪策略,自动满足修剪目标的精度关键,内存受限,延迟敏感的任务。一个全面的评估表明,AAP大大优于国家的最先进的结构化修剪工程的各种模型架构。我们的代码位于:https://github.com/kaiqi123/Automatic-Attention-Pruning.git。

英文摘要:

Pruning is a promising approach to compress deep learning models in order to deploy them on resource-constrained edge devices. However, many existing pruning solutions are based on unstructured pruning, which yields models that cannot efficiently run on commodity hardware; and they often require users to manually explore and tune the pruning process, which is time-consuming and often leads to sub-optimal results. To address these limitations, this paper presents Automatic Attention Pruning (AAP), an adaptive, attention-based, structured pruning approach to automatically generate small, accurate, and hardware-efficient models that meet user objectives. First, it proposes iterative structured pruning using activation-based attention maps to effectively identify and prune unimportant filters. Then, it proposes adaptive pruning policies for automatically meeting the pruning objectives of accuracy-critical, memory-constrained, and latency-sensitive tasks. A comprehensive evaluation shows that AAP substantially outperforms the state-of-the-art structured pruning works for a variety of model architectures. Our code is at: https://github.com/kaiqi123/Automatic-Attention-Pruning.git.

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

↑