通过感知重要性的部分重训练,提升大模型极低比特量化精度
Enhancing Ultra-Low-Bit Quantization of Large Language Models Through Saliency-Aware Partial Retraining

- 基于参数重要性设计正则化项,优先保护关键参数
- 在LLaMA 7B/13B上使精度下降减少10.85%和7.54%
- 无需全量重训练,适合资源受限场景部署
大型语言模型的推理带来巨大的能源与冷却需求。模型压缩技术如量化可通过降低参数精度来减小模型体积并提升效率,但可能引发性能下降。现有方法中,ApiQ在内存与时间开销最小的前提下实现了优异的精度保持。本文探索两种提升极低比特量化性能的思路:首先发现将量化感知训练与ApiQ的部分训练结合,在有限数据下无法超越基准;由此得出两个关键洞察:(1)完整重训练带来的表征能力提升难以通过部分训练实现;(2)该提升依赖大规模多样数据。基于此,提出一种新方法——超低比特感知重要性部分重训练(ULB-SAPR),在不进行全量重训练的前提下,通过引入基于重要性的正则项,保留关键参数。在LLaMA 7B与13B上的实验表明,相比ApiQ,本方法分别将精度下降降低了10.85%与7.54%。代码已开源至GitHub:https://github.com/TokuyuSou/ULB-SAPR。
原文摘要 · Abstract (English)
The growing use of large language models has raised environmental and economic concerns about their intensity of resource usage during inference. Serving these models to each user requires substantial energy and water for cooling. Model compression techniques like quantization can shrink large language models and make them more resource efficient at the cost of potential performance degradation. Quantization methods compress model size through replacing their high-precision parameters by quantized values of lower precision. Among existing methods, the ApiQ method achieves superior accuracy preservation at minimal memory and time overhead. We investigate two ideas to extend performance in ultra-low-bit quantization beyond ApiQ's level. First, we look into combining existing quantization-aware training techniques with ApiQ's partial training. We show that this does not outperform the baseline ApiQ method with limited training data and frozen weights. This leads to two key insights: (1) The substantial representational capacity that is gained through full retraining is unlikely to be feasible through partial training. (2) This gain may depend on using a large and diverse dataset in quantization-aware training. Second, through a novel approach informed by the two insights, we propose an ultra-low-bit quantization method that builds upon ApiQ and extends its performance without the need for full retraining. This publicly available method relies on a saliency-aware regularization term that prioritizes preserving the most impactful parameters during quantization. Our experiments on LLaMA 7B and 13B benchmarks demonstrate that our method reduces the ApiQ's accuracy degradation by 10.85% and 7.54% respectively. A Python implementation of the proposed quantization method is publicly available on GitHub https://github.com/TokuyuSou/ULB-SAPR.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。