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

何时修剪?早期结构修剪政策

When to Prune? A Policy towards Early Structural Pruning

NVIDIA(英伟达)

Maying Shen, Pavlo Molchanov, Hongxu Yin, Jose M. Alvarez

摘要:

修剪可以显著减少网络内存占用和时间复杂度。传统的训练后修剪技术倾向于有效的推理,而忽略了训练的繁重计算。最近的探索预训练修剪在初始化提示训练成本降低通过修剪,但遭受显着的性能下降。我们试图结合这两个方向的好处,并提出了一个政策,修剪尽可能早地在训练过程中,而不损害性能。我们的方法不是在初始化时进行修剪,而是利用几个时期的初始密集训练来快速指导架构,同时通过神经元重要性排名不断评估主导子网络。这揭示了结构变得稳定的主导子网络,允许将传统的修剪更早地推进到训练中。为了尽早做到这一点,我们进一步引入了早期修剪指标(EPI),它依赖于子网络架构的相似性,并在子网络架构稳定时快速触发修剪。通过在ImageNet上进行的大量实验,我们表明EPI能够快速跟踪适合修剪的早期训练时期,提供与其他“预言机”网格搜索相同的功效,该网格搜索扫描时期并需要多几个数量级的计算。我们的方法产生$1.4\%$ top-1精度提升超过国家的最先进的修剪同行,减少了$2.4\times$在GPU上的训练成本,因此提供了一个新的效率-精度边界的网络修剪在训练过程中。

英文摘要:

Pruning enables appealing reductions in network memory footprint and time complexity. Conventional post-training pruning techniques lean towards efficient inference while overlooking the heavy computation for training. Recent exploration of pre-training pruning at initialization hints on training cost reduction via pruning, but suffers noticeable performance degradation. We attempt to combine the benefits of both directions and propose a policy that prunes as early as possible during training without hurting performance. Instead of pruning at initialization, our method exploits initial dense training for few epochs to quickly guide the architecture, while constantly evaluating dominant sub-networks via neuron importance ranking. This unveils dominant sub-networks whose structures turn stable, allowing conventional pruning to be pushed earlier into the training. To do this early, we further introduce an Early Pruning Indicator (EPI) that relies on sub-network architectural similarity and quickly triggers pruning when the sub-network's architecture stabilizes. Through extensive experiments on ImageNet, we show that EPI empowers a quick tracking of early training epochs suitable for pruning, offering same efficacy as an otherwise ``oracle'' grid-search that scans through epochs and requires orders of magnitude more compute. Our method yields $1.4\%$ top-1 accuracy boost over state-of-the-art pruning counterparts, cuts down training cost on GPU by $2.4\times$, hence offers a new efficiency-accuracy boundary for network pruning during training.

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

↑