arXiv:2506.02210cs.LGcs.AI2025-06

基于参数可交换性实现动态剪枝,显著降低推理计算量

Exchangeability in Neural Network and its Application to Dynamic Pruning

  • 利用参数与中间值的统计可交换性,实现按输入动态剪枝
  • 在视觉、图和语言模型上减少10.98%~17.33%计算量,精度几乎不变
  • 兼容静态剪枝,对已压缩模型仍有额外10%以上性能提升

现代神经网络参数量持续增长,显著增加推理时的内存与计算开销。本文提出ExPrune,一种无需修改模型结构或训练算法的通用动态剪枝优化方法,支持按输入进行多粒度的部分计算。该方法基于理论发现:某些模型参数与中间值间存在可交换性(exchangeability)这一统计特性。通过识别可交换的参数与中间值,可先部分执行网络,分析部分结果的统计特征,并实时做出剪枝决策。由于理论基础扎实,ExPrune适用于不同任务领域的多种模型架构。我们在一个计算机视觉模型、一个图神经网络和一个语言模型上评估了该方法。实验显示,ExPrune在精度损失极小的情况下实现了10.98%–17.33%的FLOPs降低;当精度下降不超过1%时,可实现21.61%–27.16%的降低。此外,该方法可与静态重要性剪枝组合使用,在已被激进静态剪枝的模型上仍能进一步减少10.24%–11.11%的FLOPs(精度几乎不变),或减少13.91%–14.39%(精度下降≤1%)。

原文摘要 · Abstract (English)

Modern neural networks (NN) contain an ever-growing number of parameters, substantially increasing the memory and computational cost of inference. Researchers have explored various ways to reduce the inference cost of NNs by reducing the model size before deployment and dynamically pruning the inference computation at runtime. In this work, we present ExPrune, a general, dynamic pruning optimization that enables multi-granularity partial computation on a per-input basis. ExPrune requires no change to the model architecture or the training algorithm. ExPrune is based on our theoretical results that the relationship between certain model parameters and intermediate values can be described by a statistical property called exchangeability. By identifying exchangeable parameters and values in the model, we are able to first partially evaluate the network, analyze the statistics of the partial results, and make pruning decisions on the fly. Because ExPrune is theory grounded, it generalizes across model architectures in different problem domains. We evaluate ExPrune on one computer vision models, one graph model and one language model. ExPrune provides 10.98--17.33% reduction in FLOPs with negligible accuracy drop and 21.61--27.16% reduction in FLOPs with at most 1% accuracy drop. We also demonstrate that ExPrune composes with static magnitude pruning. On models that have been aggressively statically pruned, ExPrune still provides additional 10.24--11.11% reduction in FLOPs with negligible accuracy drop and 13.91--14.39% reduction in FLOPs with at most 1% accuracy drop.

动态剪枝推理优化可交换性模型压缩

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。