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

AntiDote:基于注意力的神经网络学习效率动态优化

AntiDote: Attention-based Dynamic Optimization for Neural Network Runtime Efficiency

George Mason University(乔治梅森大学);University of Maryland, Baltimore County(马里兰大学巴尔的摩郡分校);Microsoft(微软);Northeastern University(东北大学)

Fuxun Yu, Chenchen Liu, Di Wang, Yanzhi Wang, Xiang Chen

摘要:

卷积神经网络(CNN)以相当大的计算负荷为代价获得了很好的认知性能。为了减轻计算负荷,许多优化工作被开发,以减少模型冗余,通过识别和删除无关紧要的模型组件,如重量稀疏和过滤器修剪。然而,这些工作只评估模型组件的内部参数信息的静态意义,忽略了它们与外部输入的动态相互作用。通过激活每个输入的特征,模型组件的重要性可以动态地改变,因此静态方法只能获得次优结果。因此,我们在这项工作中提出了一个动态的CNN优化框架。基于神经网络的注意力机制,提出了一种综合的动态优化框架,包括(1)测试阶段通道和列特征图的剪枝,以及(2)训练阶段的目标丢弃优化。这种动态优化框架具有以下优点:(1)考虑到模型与输入的交互作用,能够准确识别并积极去除每个输入的特征冗余;(2)同时,由于多维灵活性,能够最大限度地去除各个维度上的特征映射冗余;(3)训练-测试协同优化有利于动态剪枝,即使在很高的特征剪枝率下也有助于保持模型的准确性。大量的实验表明,我们的方法可以带来37.4%到54.5%的FLOPs减少,在各种测试网络上的精度下降可以忽略不计。

英文摘要:

Convolutional Neural Networks (CNNs) achieved great cognitive performance at the expense of considerable computation load. To relieve the computation load, many optimization works are developed to reduce the model redundancy by identifying and removing insignificant model components, such as weight sparsity and filter pruning. However, these works only evaluate model components' static significance with internal parameter information, ignoring their dynamic interaction with external inputs. With per-input feature activation, the model component significance can dynamically change, and thus the static methods can only achieve sub-optimal results. Therefore, we propose a dynamic CNN optimization framework in this work. Based on the neural network attention mechanism, we propose a comprehensive dynamic optimization framework including (1) testing-phase channel and column feature map pruning, as well as (2) training-phase optimization by targeted dropout. Such a dynamic optimization framework has several benefits: (1) First, it can accurately identify and aggressively remove per-input feature redundancy with considering the model-input interaction; (2) Meanwhile, it can maximally remove the feature map redundancy in various dimensions thanks to the multi-dimension flexibility; (3) The training-testing co-optimization favors the dynamic pruning and helps maintain the model accuracy even with very high feature pruning ratio. Extensive experiments show that our method could bring 37.4% to 54.5% FLOPs reduction with negligible accuracy drop on various of test networks.

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

↑