NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

QTIP: Quantization with Trellises and Incoherence Processing

Albert Tseng, Qingyao Sun, David Hou, Christopher De Sa

Large Language Models (LLMs) have become the cornerstone of modern AI, yet their deployment remains constrained by massive memory requirements. To run a 70B parameter model in high precision, significant GPU resources are required. While post-training quantization (PTQ) offers a solution by compressing weights to 2, 3, or 4 bits, current state-of-the-art methods have encountered a "dimensionality wall" that limits further efficiency gains.

A new research paper from Cornell introduces QTIP, a novel quantization framework that scales to "ultra-high" dimensions. By leveraging hardware-efficient trellis structures and compute-based codes, QTIP delivers superior model quality without sacrificing real-time inference throughput.

Overcoming the Dimensionality Wall

The current standard for LLM quantization is Vector Quantization (VQ), which quantizes groups of numbers (vectors) together to achieve better "shaping" and information density. However, VQ relies on codebooks—lookup tables—that grow exponentially with the vector's dimension. To keep these tables within a GPU's fast L1 cache, current methods like QuIP# and AQLM are restricted to dimensions of 8 or fewer.

QTIP breaks this barrier by transitioning from VQ to Trellis Coded Quantization (TCQ). Unlike VQ, the computational cost of TCQ scales linearly with dimension, allowing QTIP to utilize dimensions of 256 or more.

Methods: Hardware-Efficient Trellises

QTIP introduces several innovations to make high-dimensional quantization practical for modern hardware:

  1. Bitshift Trellis: The researchers designed a "bitshift" trellis where navigating the quantization graph involves simple bitwise shifts. This allows the GPU to decode weights in parallel without storing complex graph structures.
  2. Lookup-Free Codes: Instead of memory-intensive codebooks, QTIP uses algorithms (such as 1MAD and 3INST) to calculate quantized values on the fly using standard arithmetic instructions (ALU). This keeps the GPU cache free for model activations.
  3. Incoherence Processing: TCQ performs optimally on Gaussian-distributed data. QTIP applies a random Hadamard transform to "smear" model weights, ensuring they meet the necessary criteria for high-fidelity quantization.
Trellis Coded Quantization (TCQ) minimizes squared error by finding the optimal path through a trellis graph to represent unquantized values.

Evaluation and Key Results

The researchers evaluated QTIP across the Llama family (1B to 405B parameters) using perplexity on Wikitext2 and C4, alongside zero-shot task accuracy.

  • Superior Scaling: At 2-bit levels, QTIP consistently outperforms QuIP# and AQLM. For Llama 2-70B, QTIP achieved a Wikitext2 perplexity of 3.70, a significant improvement over QuIP#'s 3.91.
  • Inference Speed: Despite the increased dimensionality, QTIP matches the speed of existing methods. On an RTX 6000 Ada GPU, it achieves ~188 tokens/second for a 7B model—over double the speed of unquantized FP16.
  • Ultra-Low Bit Efficiency: The results suggest that for massive models, high-dimensional 2-bit quantization is more efficient than theoretically optimal 4-bit models of the same total size.
Llama 2 scaling performance: QTIP (2-bit, 3-bit, 4-bit) achieves lower perplexity than competing methods like QuIP# and AQLM across various model sizes.

Conclusion and Future Directions

QTIP demonstrates that scaling the dimension of quantization is a more powerful lever for model quality than refining small-scale codebooks. By co-designing the quantization mathematics with GPU hardware constraints, QTIP enables the deployment of massive models like Llama 3.1 405B on significantly reduced hardware footprints. Future work may involve combining QTIP with quantization-aware training (QAT) to further bridge the gap between 2-bit and full-precision performance.

Summary updated

BibTeX
@inproceedings{tseng2024qtip,
  author = {Albert Tseng and Qingyao Sun and David Hou and Christopher De Sa},
  title = {{QTIP: Quantization with Trellises and Incoherence Processing}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=7sdkLVuYCU},
}
Figure