Leech Lattice Vector Quantization for Efficient LLM Compression
Tycho F van der Ouderaa, Mart van Baalen, Paul Whatmough, Markus Nagel
NeurIPS page · OpenReview · alphaXiv · Open on the map
Category: Efficient LLM Inference & Training › Low-Precision LLM Optimization · Type: new method · Keywords: Leech lattice, vector quantization, LLM compression, codebook-free quantization, high-dimensional lattices
Summary
Leech Lattice Vector Quantization (LLVQ) leverages the optimal 24-dimensional Leech lattice to achieve state-of-the-art LLM compression without explicit codebooks.
Explained to a 5-year-old
A big computer brain (a language model) needs a lot of memory to work. To make it fit on a small device, we need to shrink its memory. The researchers found a special way to pack numbers together using a mathematical structure called the Leech lattice, which is very efficient. This helps the model store its information in a smaller space without losing much of its ability to understand language. As a result, the model can run on phones or other small gadgets more easily.
Explained to a 5-year-old, longer
Large language models are computer programs that can talk and write. They are very big and need a lot of memory to store all the information they learned. Sometimes we want to use them on small devices like phones or tablets, but they don't fit. To solve this, researchers look for ways to make the model smaller while keeping it smart. They discovered a special mathematical pattern called the Leech lattice that packs information very tightly. This pattern works in 24 dimensions, meaning it can organize a lot of numbers efficiently. By using this pattern, the model can store its knowledge in fewer bits, like squeezing clothes into a small suitcase. The new method also makes it easy to turn the compressed model back into its original form quickly. This helps the model run faster and use less power on small devices. The approach also avoids needing large lookup tables, which saves even more memory. Overall, this makes big language models more practical for everyday gadgets. It allows more people to enjoy the benefits of AI on the devices they already have.
For a technical reader
The paper introduces LLVQ, a vector quantization scheme that leverages the optimal 24-dimensional Leech lattice to compress large language model weights without storing an explicit codebook. By extending a search algorithm based on the extended Golay code, LLVQ supports indexing and angular search over lattice shells, enabling fast conversion to and from bitstrings. A fully parallelizable dequantization kernel makes the approach suitable for GPU acceleration, reducing memory footprint and inference latency. Empirical results show LLVQ outperforms existing methods such as Quip#, QTIP, and PVQ on standard LLM compression benchmarks. This lattice-based technique provides a theoretically grounded, scalable solution for efficient model compression.
Problem
Scalar quantization of large language models is limited by information-theoretic bounds, and existing vector quantization methods require expensive lookup tables or codebooks, making efficient compression challenging.
Method
The approach extends a search algorithm based on the extended Golay code to support indexing, angular search over Leech lattice shells, and a fully-parallelizable dequantization kernel, enabling conversion to bitstrings without materializing a codebook.
Results
The approach achieves state-of-the-art quantization results, surpassing Quip#, QTIP, and PVQ on LLM compression benchmarks.
Contributions
The paper introduces a lattice-based vector quantization scheme that uses the optimal Leech lattice, provides indexing for codebook-free operation, and offers a parallel dequantization kernel for efficient LLM compression.
Practical relevance
The approach enables scalable, memory-efficient deployment of large language models on resource-constrained hardware.
Research questions this paper is counted under
This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction