Learning Grouped Lattice Vector Quantizers for Low-Bit LLM Compression

Xi Zhang, Xiaolin Wu, Jiamang Wang, Weisi Lin

Abstract

As Large Language Models (LLMs) scale to hundreds of billions of parameters, the memory and computational requirements for inference have become a significant bottleneck. Post-training quantization (PTQ) serves as a critical solution to reduce model size, yet standard methods often encounter a "compression wall" at ultra-low bit-widths (2-3 bits), where model perplexity degrades significantly. We present Grouped Lattice Vector Quantization (GLVQ), a novel PTQ framework that bridges the gap between rigid, structured quantization and flexible, computationally expensive vector quantization. By integrating learnable group-specific lattice structures with adaptive nonlinear companding, GLVQ achieves state-of-the-art accuracy at 2-3 bits per weight while maintaining high inference efficiency.

Introduction

The deployment of Large Language Models (LLMs) is currently constrained by the massive GPU clusters required to host them. While 4-bit quantization has become a standard for reducing memory footprints without substantial loss in performance, pushing models down to 2 or 3 bits remains a formidable challenge. Existing Vector Quantization (VQ) approaches generally fall into two categories: fixed-structure methods (e.g., QuIP#) that lack the flexibility to fit local data distributions, and "free-form" codebook methods (e.g., AQLM) that offer flexibility at the cost of high decoding latency.

GLVQ addresses this trade-off by introducing a learnable lattice framework. It allows the quantization grid to adapt to the specific geometry of weight distributions while preserving the mathematical structure necessary for efficient decoding. This approach enables LLMs to maintain high performance even under extreme compression.

Methodology

The GLVQ framework is built upon three primary innovations designed to optimize the rate-distortion trade-off:

1. Salience-Determined Bit Allocation (SDBA)

Recognizing that not all weights contribute equally to model performance, GLVQ employs a "double-pointer" search strategy. This mechanism dynamically assigns higher bit-widths to "salient" weight groups—those most critical to the model's output—while reducing the bit budget for less important parameters. This ensures the model stays within a strict average bit-rate (e.g., 2 bits per weight) while prioritizing the preservation of essential information.

2. Learnable Lattice Codebooks

Unlike traditional methods that use a fixed grid (such as the E8 lattice), GLVQ utilizes a learnable generation matrix ($G$) for every group of weights. This allows the lattice to stretch, rotate, and shift to match the local geometry of the weight distribution. To ensure this structure remains trainable, the authors utilize Babai rounding to approximate the nearest-lattice-point search during the optimization process, allowing for efficient gradient-based learning of the lattice shape.

3. Group-Specific Companding

LLM weight distributions are typically heavy-tailed, with a high density of values near zero and sparse, large-magnitude outliers. GLVQ addresses this by applying a learnable $\mu$-law transformation—a technique traditionally used in audio signal processing—to each weight group. This "companding" (compressing-expanding) process squashes the distribution into a more uniform space before quantization. By learning the $\mu$ parameter for each group, the lattice points are concentrated where the data is most dense, significantly reducing quantization error.

Experimental Evaluation

Setup

The researchers evaluated GLVQ across the Llama 1 and Llama 2 model families, ranging from 7B to 70B parameters. Calibration was performed using 4 million tokens from the RedPajama 1T dataset. Performance was measured via:

  • Language Modeling Perplexity: Evaluated on Wikitext-2 and C4 datasets.
  • Zero-shot Accuracy: Tested on downstream tasks including ARC (Challenge and Easy), PIQA, and the Winograd Schema Challenge (Wino).

Results

GLVQ demonstrates a significant improvement over previous state-of-the-art (SOTA) methods in ultra-low bit regimes:

  • Perplexity Gains: On Llama 2-70B at 2 bits, GLVQ-32D achieved a Wikitext-2 perplexity of 3.36, outperforming QTIP (3.78) and QuIP# (3.91).
  • Zero-Shot Robustness: In 2-bit scenarios, GLVQ maintained high accuracy on the PIQA task (80.5% for Llama 2-70B), whereas competing methods often experienced drops of several percentage points.
  • Efficiency: The overhead for storing the learnable lattice parameters is minimal, adding less than 0.2% to the total model size. Furthermore, inference latency increases by only 2–3% compared to standard 4-bit baselines, making it a viable candidate for real-world deployment.

Discussion and Future Work

The success of GLVQ highlights the importance of local adaptation in quantization. By allowing each weight group to define its own shape and density, the framework effectively "linearizes" complex weight distributions.

However, several avenues for future research remain. Currently, GLVQ is a weight-only compression scheme; extending these lattice-based techniques to activations could yield further efficiency gains, though it requires managing dynamic activation statistics. Additionally, while the current framework uses static column-wise grouping, implementing data-driven, learnable grouping could further optimize the rate-distortion curve. Finally, the development of custom CUDA or Triton kernels specifically for learnable lattice structures will be essential to achieving peak theoretical inference speeds.

Conclusion

GLVQ represents a significant step forward in LLM compression, proving that ultra-low bit-widths do not necessitate a total collapse in model performance. By combining the efficiency of structured lattices with the flexibility of learnable parameters and companding, GLVQ provides a robust framework for deploying massive models on resource-constrained hardware.

Summary updated

BibTeX
@inproceedings{zhang2025learning,
  author = {Xi Zhang and Xiaolin Wu and Jiamang Wang and Weisi Lin},
  title = {{Learning Grouped Lattice Vector Quantizers for Low-Bit LLM Compression}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=Ynwl0V1YH0},
}
Figure