SQS:通过稀疏量化子分布实现贝叶斯深度神经网络压缩
研究论文 · 2026/09/09
压缩大规模神经网络对于在资源受限设备上部署模型至关重要。现有方法通常分别采用权重剪枝或低比特量化,往往导致压缩率次优,难以在可接受的性能下降范围内实现高效压缩。我们提出了一个通过贝叶斯变分学习实现剪枝与低比特量化联合进行的统一框架(SQS),在保持相当性能的同时,实现了比先前基线更高的压缩率。关键思想是采用 spike-and-slab 先验来诱导稀疏性,并使用高斯混合模型(GMM)对量化权重建模以实现低比特精度。由于涉及 spike-and-slab 先验和 GMM 的目标函数难以处理,我们推导出一种高效近似方法,以最小的精度损失实现有效压缩。理论上,我们为所提出的变分方法提供了与稀疏量化深度神经网络一致的结果。在压缩 ResNet、BERT-base、Llama3.2 和 Qwen2.5 模型的大量实验中,我们的方法在性能下降相当的情况下,实现了比一系列现有方法更高的压缩率。项目页面:https://comeusr.github.io/SQS_Webpage。
该论文提出了一种新颖的贝叶斯变分方法,将剪枝和量化统一在一个框架中,解决了现有方法单独处理的局限性,并在多个主流模型上验证了其有效性,具有实际部署意义和理论贡献。
Compressing large-scale neural networks is essential for deploying models on resource-constrained devices. Most existing methods adopt weight pruning or low-bit quantization individually, often resulting in suboptimal compression rates to preserve acceptable performance drops. We introduce a unified framework for simultaneous pruning and low-bit quantization via Bayesian variational learning (\method), which achieves higher compression rates than prior baselines while maintaining comparable performance. The key idea is to employ a spike-and-slab prior to induce sparsity and model quantized weights using Gaussian Mixture Models (GMMs) to enable low-bit precision. Due to the intractability of the objective involving spike-and-slab priors with GMMs, we derive an efficient approximation that facilitates effective compression with minimal accuracy loss. In theory, we provide a consistent result for our proposed variational approach to a sparse and quantized deep neural network. Extensive experiments on compressing ResNet, BERT-base, Llama3.2, and Qwen2.5 models show that our method achieves higher compression rates than a line of existing methods with comparable performance drops. Project page: https://comeusr.github.io/SQS_Webpage.