Learning Grouped Lattice Vector Quantizers for Low-Bit LLM Compression
Xi Zhang, Xiaolin Wu, Jiamang Wang, Weisi Lin
TL;DR
GLVQ tackles the challenge of deploying large language models under tight resource constraints by introducing grouped lattice vector quantization with per-group learnable lattices, group-specific companding, and salience-driven bit allocation. The method jointly optimizes a group generation matrix $\mathbf{G}_{g}$ and companding parameters while using Babai rounding for stable training, enabling efficient runtime decoding as a matrix-vector product. Across Llama 1/2 models, GLVQ yields superior perplexity and robust zero-shot accuracy at ultra-low bit-widths (including fractional and sub-2-bit regimes), with favorable throughput and memory footprints. This approach offers a practical path to high-fidelity LLM inference on resource-constrained hardware, with potential extensions to hierarchical grouping and activations.
Abstract
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.
