arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2406.01345cs.LGstat.ML
收藏

BMRS:用于结构化剪枝的贝叶斯模型约简

BMRS: Bayesian Model Reduction for Structured Pruning

University of Copenhagen(哥本哈根大学)

Dustin Wright, Christian Igel, Raghavendra Selvan

AI总结:

本文提出一种端到端的贝叶斯结构化剪枝方法BMRS,基于乘性噪声与贝叶斯模型约简,通过不同先验实现高压缩率与准确率,实验证明其性能与效率折衷方案具竞争力。

摘要:

现代神经网络通常存在大规模过参数化问题,导致训练和推理阶段的计算成本高昂。结构化剪枝是一种在保持良好性能的同时提升神经网络计算与能效的有效方法,它通过移除对模型输出影响有限的整体网络结构(例如神经元或卷积滤波器)来实现。在本研究中,我们提出了一种用于结构化剪枝的贝叶斯模型约简方法(BMRS),这是一种完全端到端的贝叶斯结构化剪枝方法。BMRS基于两种近期提出的方法:一是带有乘性噪声的贝叶斯结构化剪枝;二是贝叶斯模型约简(BMR),该方法允许在先验概率分布发生变化时高效地比较贝叶斯模型。我们提出了由不同先验推导出的两种BMRS实现,它们产生了不同的结构化剪枝特性:1)采用截断对数正态先验的BMRS_N,无需调整任何阈值即可提供可靠的压缩率和准确率;2)采用截断对数均匀先验的BMRS_U,能够基于截断边界实现更激进的压缩。总体而言,我们发现BMRS为神经网络结构化剪枝提供了一种理论基础扎实的方法,能够同时实现高压缩率和准确率。在多个数据集和不同复杂度的神经网络上进行的实验表明,与其他剪枝方法相比,这两种BMRS方法提供了具有竞争力的性能与效率折衷方案。

英文摘要:

Modern neural networks are often massively overparameterized leading to high compute costs during training and at inference. One effective method to improve both the compute and energy efficiency of neural networks while maintaining good performance is structured pruning, where full network structures (e.g.~neurons or convolutional filters) that have limited impact on the model output are removed. In this work, we propose Bayesian Model Reduction for Structured pruning (BMRS), a fully end-to-end Bayesian method of structured pruning. BMRS is based on two recent methods: Bayesian structured pruning with multiplicative noise, and Bayesian model reduction (BMR), a method which allows efficient comparison of Bayesian models under a change in prior. We present two realizations of BMRS derived from different priors which yield different structured pruning characteristics: 1) BMRS_N with the truncated log-normal prior, which offers reliable compression rates and accuracy without the need for tuning any thresholds and 2) BMRS_U with the truncated log-uniform prior that can achieve more aggressive compression based on the boundaries of truncation. Overall, we find that BMRS offers a theoretically grounded approach to structured pruning of neural networks yielding both high compression rates and accuracy. Experiments on multiple datasets and neural networks of varying complexity showed that the two BMRS methods offer a competitive performance-efficiency trade-off compared to other pruning methods.

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

↑