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

基于幅值注意力的动态剪枝

Magnitude Attention-based Dynamic Pruning

NAVER WEBTOON AI(NAVER WEBTOON人工智能);Kookmin University(国民大学)

Jihye Back, Namhyuk Ahn, Jangho Kim

AI总结:

针对现有剪枝方法训练中未利用权重重要性的问题,提出基于幅值注意力的动态剪枝MAP方法,全程利用权重重要性动态探索稀疏结构,训练后期转向利用关键权重,性能媲美稠密模型且优于以往剪枝方法。

摘要:

现有剪枝方法仅在搜索稀疏结构时依据指定准则利用每个权重的重要性,却未在训练过程中加以利用。本文提出了一种新方法——基于幅值注意力的动态剪枝(Magnitude Attention-based Dynamic Pruning,MAP),该方法在前向和反向传播路径中全程利用权重重要性来动态探索稀疏模型结构。幅值注意力基于权重幅值定义为连续实数值,通过促进高效探索实现从冗余网络到有效稀疏网络的平滑过渡。此外,该注意力机制确保稀疏网络中重要层得到更有效的更新。在训练后期,本文方法从探索转向利用,仅基于已探索的结构专门更新由关键权重组成的稀疏模型,最终得到的剪枝模型不仅性能可与稠密模型相当,且在CIFAR-10/100和ImageNet上的表现优于以往的剪枝方法。

英文摘要:

Existing pruning methods utilize the importance of each weight based on specified criteria only when searching for a sparse structure but do not utilize it during training. In this work, we propose a novel approach - \textbf{M}agnitude \textbf{A}ttention-based Dynamic \textbf{P}runing (MAP) method, which applies the importance of weights throughout both the forward and backward paths to explore sparse model structures dynamically. Magnitude attention is defined based on the magnitude of weights as continuous real-valued numbers enabling a seamless transition from a redundant to an effective sparse network by promoting efficient exploration. Additionally, the attention mechanism ensures more effective updates for important layers within the sparse network. In later stages of training, our approach shifts from exploration to exploitation, exclusively updating the sparse model composed of crucial weights based on the explored structure, resulting in pruned models that not only achieve performance comparable to dense models but also outperform previous pruning methods on CIFAR-10/100 and ImageNet.

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

↑