arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2502.16638cs.LGcs.AIcs.CV

自动联合结构化剪枝与量化,实现高效神经网络训练与压缩

Automatic Joint Structured Pruning and Quantization for Efficient Neural Network Training and Compression

Microsoft(微软);Lehigh University(利哈伊大学)

Xiaoyi Qu, David Aponte, Colby Banbury, Daniel P. Robinson, Tianyu Ding, Kazuhito Koishida, Ilya Zharkov, Tianyi Chen

AI总结:

针对现有联合剪枝与量化方法的工程复杂、黑盒优化和泛化不足问题,提出GETA框架,通过量化感知依赖图、部分投影随机梯度及联合学习策略,在CNN和Transformer上实现更优的压缩性能。

摘要:

结构化剪枝和量化是用于减小深度神经网络(DNN)规模的基本技术,通常独立应用。通过协同优化联合应用这些技术,有潜力产生更小且高质量的模型。然而,现有的联合方案并未被广泛使用,原因包括:(1)工程困难(复杂的多阶段流程),(2)黑盒优化(需要大量超参数调优以控制整体压缩),以及(3)架构泛化不足。为解决这些局限,我们提出了GETA框架,该框架能够自动且高效地对任何DNN执行联合结构化剪枝和量化感知训练。GETA引入了三项关键创新:(i)量化感知依赖图(QADG),为通用量化感知DNN构建剪枝搜索空间;(ii)部分投影随机梯度方法,确保逐层位约束得到满足;(iii)一种新的联合学习策略,融合了剪枝与量化之间的可解释关系。我们在卷积神经网络和Transformer架构上进行了数值实验,结果表明,与现有的联合剪枝和量化方法相比,我们的方法取得了具有竞争力(通常更优)的性能。

英文摘要:

Structured pruning and quantization are fundamental techniques used to reduce the size of deep neural networks (DNNs) and typically are applied independently. Applying these techniques jointly via co-optimization has the potential to produce smaller, high-quality models. However, existing joint schemes are not widely used because of (1) engineering difficulties (complicated multi-stage processes), (2) black-box optimization (extensive hyperparameter tuning to control the overall compression), and (3) insufficient architecture generalization. To address these limitations, we present the framework GETA, which automatically and efficiently performs joint structured pruning and quantization-aware training on any DNNs. GETA introduces three key innovations: (i) a quantization-aware dependency graph (QADG) that constructs a pruning search space for generic quantization-aware DNN, (ii) a partially projected stochastic gradient method that guarantees layerwise bit constraints are satisfied, and (iii) a new joint learning strategy that incorporates interpretable relationships between pruning and quantization. We present numerical experiments on both convolutional neural networks and transformer architectures that show that our approach achieves competitive (often superior) performance compared to existing joint pruning and quantization methods.

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

↑