arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2503.17513cs.LGcs.AIcs.AR
收藏

通过训练后模型扩展改进量化

Improving Quantization with Post-Training Model Expansion

AMD

Giuseppe Franco, Pablo Monteagudo-Lago, Ian Colbert, Nicholas Fraser, Michaela Blott

AI总结:

本文提出训练后选择性扩展模型的量化协同设计方法,无需端到端重训即可缩小4比特 LLM 与全精度模型的困惑度差距。

摘要:

模型的规模一直是其质量以及成本的强有力预测指标。因此,模型成本与质量之间的权衡已得到充分研究。量化和剪枝等训练后优化通常侧重于缩小预训练模型的总体积,以在保持模型质量的同时降低推理成本。然而,近期进展引入了一些优化技术,有趣的是,这些技术在训练后扩展模型,即在缩小体积时通过增加模型规模来提升质量。例如,为实现4比特权重和激活量化,非相干处理通常需要在计算图中插入在线 Hadamard 旋转,而保留高度敏感的权重往往需要额外的更高精度计算。然而,如果无法满足应用需求,当前主流解决方案是放宽量化约束。与之不同,我们证明训练后模型扩展是在量化协同设计空间内提升模型质量的可行策略,并给出了理论依据。我们表明,可以在不进行端到端重新训练的情况下,渐进且有选择地扩展预训练大语言模型(LLM)的规模,从而提升模型质量。特别是,在将 Llama3 1B 的权重和激活量化到4比特时,相对于 QuaRot 和 SpinQuant,我们将其与全精度困惑度之间的差距平均缩小了9%,而参数仅增加5%;相对于 BF16 参考模型,其体积仍减少3.8%。

英文摘要:

The size of a model has been a strong predictor of its quality, as well as its cost. As such, the trade-off between model cost and quality has been well-studied. Post-training optimizations like quantization and pruning have typically focused on reducing the overall volume of pre-trained models to reduce inference costs while maintaining model quality. However, recent advancements have introduced optimization techniques that, interestingly, expand models post-training, increasing model size to improve quality when reducing volume. For instance, to enable 4-bit weight and activation quantization, incoherence processing often necessitates inserting online Hadamard rotations in the compute graph, and preserving highly sensitive weights often calls for additional higher precision computations. However, if application requirements cannot be met, the prevailing solution is to relax quantization constraints. In contrast, we demonstrate post-training model expansion is a viable strategy to improve model quality within a quantization co-design space, and provide theoretical justification. We show it is possible to progressively and selectively expand the size of a pre-trained large language model (LLM) to improve model quality without end-to-end retraining. In particular, when quantizing the weights and activations to 4 bits for Llama3 1B, we reduce the gap to full-precision perplexity by an average of 9% relative to both QuaRot and SpinQuant with only 5% more parameters, which is still a 3.8% reduction in volume relative to a BF16 reference model.

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

↑