arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2510.20984cs.LGcs.AI
收藏

学习分组晶格向量量化器以实现低比特LLM压缩

Learning Grouped Lattice Vector Quantizers for Low-Bit LLM Compression

Nanyang Technological University(南洋理工大学);Alibaba Group(阿里巴巴集团);Southwest Jiaotong University(西南交通大学)

Xi Zhang, Xiaolin Wu, Jiamang Wang, Weisi Lin

AI总结:

本文提出分组晶格向量量化器,通过学习生成矩阵优化低比特LLM压缩,实现模型大小与精度的平衡。

摘要:

大型语言模型(LLMs)已展示了显著的能力,但通常需要大量的计算资源和内存进行推理。训练后量化(PTQ)可以通过将权重存储在较低位宽格式中有效减少这些需求。然而,标准的均匀量化常常导致显著的性能下降,特别是在低比特场景中。在本文中,我们引入了一个分组晶格向量量化(GLVQ)框架,为每个权重组分配一个定制的晶格代码本,由可学习的生成矩阵定义。为了解决量化过程的非可微性,我们采用Babai rounding来近似最近晶格点搜索过程,这在训练期间使生成矩阵的稳定优化成为可能。一旦训练完成,解码就简化为简单的矩阵向量乘法,从而获得一个高效且实用的量化流程。在多个基准测试中的实验表明,我们的方法在模型大小和准确性之间实现了更好的权衡,相比现有的训练后量化基线,突显了其在严格资源限制下部署大模型的有效性。我们的源代码可在GitHub仓库中获得:https://github.com/xzhang9308/GLVQ。

英文摘要:

Large Language Models (LLMs) have demonstrated remarkable capabilities but typically require extensive computational resources and memory for inference. Post-training quantization (PTQ) can effectively reduce these demands by storing weights in lower bit-width formats. However, standard uniform quantization often leads to notable performance degradation, particularly in low-bit scenarios. In this work, we introduce a Grouped Lattice Vector Quantization (GLVQ) framework that assigns each group of weights a customized lattice codebook, defined by a learnable generation matrix. To address the non-differentiability of the quantization process, we adopt Babai rounding to approximate nearest-lattice-point search during training, which enables stable optimization of the generation matrices. Once trained, decoding reduces to a simple matrix-vector multiplication, yielding an efficient and practical quantization pipeline. Experiments on multiple benchmarks show that our approach achieves a better trade-off between model size and accuracy compared to existing post-training quantization baselines, highlighting its effectiveness in deploying large models under stringent resource constraints. Our source code is available on GitHub repository: https://github.com/xzhang9308/GLVQ.

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

↑