arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2604.10091cs.CL
收藏

SEPTQ:一种用于大型语言模型的简单且有效的后训练量化范式

SEPTQ: A Simple and Effective Post-Training Quantization Paradigm for Large Language Models

Dalian University of Technology(大连理工大学);Peking University(北京大学);Shenzhen MSU-BIT University(深圳北理莫斯科大学);The Pennsylvania State University(宾夕法尼亚州立大学)

Han Liu, Haotian Gao, Xiaotong Zhang, Changya Li, Feng Zhang, Wei Wang, Fenglong Ma, Hong Yu

AI总结:

SEPTQ提出了一种简化后训练量化流程的方法,通过重要性评分和静态全局确定量化位置,提升低比特量化下的性能。

摘要:

大型语言模型(LLMs)在各种领域表现出色,但受限于巨大的计算和存储成本。量化是一种有效的压缩技术,用于在资源受限设备上保持生成质量。量化意识训练(QAT)和后训练量化(PTQ)是两种主要方法。QAT需要额外的重新训练或微调,导致高训练成本,不适合LLMs。因此,PTQ成为最近量化方法的研究热点。然而,现有PTQ方法通常依赖各种复杂的计算过程,并在低比特量化设置下导致显著的性能下降。为缓解上述问题,我们提出了一种用于LLMs的简单且有效的后训练量化范式,称为SEPTQ。具体而言,SEPTQ首先计算权重矩阵中每个元素的重要性分数,并以静态全局方式确定量化位置。然后利用表示重要位置的掩码矩阵来量化和更新相关的权重列,直到获得适当的量化权重矩阵。与先前方法相比,SEPTQ将后训练量化过程简化为仅两步,并同时考虑有效性和效率。在各种数据集上对不同规模的模型(从数百万到数十亿参数)进行实验,结果表明SEPTQ在不同量化比特级别上显著优于其他强大基线,特别是在低比特量化场景中。

英文摘要:

Large language models (LLMs) have shown remarkable performance in various domains, but they are constrained by massive computational and storage costs. Quantization, an effective technique for compressing models to fit resource-limited devices while preserving generative quality, encompasses two primary methods: quantization aware training (QAT) and post-training quantization (PTQ). QAT involves additional retraining or fine-tuning, thus inevitably resulting in high training cost and making it unsuitable for LLMs. Consequently, PTQ has become the research hotspot in recent quantization methods. However, existing PTQ methods usually rely on various complex computation procedures and suffer from considerable performance degradation under low-bit quantization settings. To alleviate the above issues, we propose a simple and effective post-training quantization paradigm for LLMs, named SEPTQ. Specifically, SEPTQ first calculates the importance score for each element in the weight matrix and determines the quantization locations in a static global manner. Then it utilizes the mask matrix which represents the important locations to quantize and update the associated weights column-by-column until the appropriate quantized weight matrix is obtained. Compared with previous methods, SEPTQ simplifies the post-training quantization procedure into only two steps, and considers the effectiveness and efficiency simultaneously. Experimental results on various datasets across a suite of models ranging from millions to billions in different quantization bit-levels demonstrate that SEPTQ significantly outperforms other strong baselines, especially in low-bit quantization scenarios.

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

↑