GPTVQ: The Blessing of Dimensionality for LLM Quantization
Abstract
In this work we show that the size versus accuracy trade-off of neural network quantization can be significantly improved by increasing the quantization dimensionality. We propose the GPTVQ method, a new fast method for post-training vector quantization (VQ) that scales well to Large Language Models (LLMs). Our method interleaves quantization of one or more columns with updates to the remaining unquantized weights, using information from the Hessian of the per-layer output reconstruction MSE. Quantization codebooks are initialized using an efficient data-aware version of the EM algorithm. The codebooks are then updated, and further compressed by using integer quantization and SVD-based compression. GPTVQ establishes a new state-of-the art in the size vs accuracy trade-offs on a wide range of LLMs such as Llama-v2 and Mistral. Furthermore, our method is efficient: on a single H100 it takes between 3 and 11 hours to process a Llamav2-70B model, depending on quantization setting. Lastly, with on-device timings for VQ decompression on a mobile CPU we show that VQ leads to improved latency compared to using a 4-bit integer format.
Community
GPTVQ wiki PPL difference compared to FP16 for llama2 70B at 3.125 bits: 3.31 -> 3.55
AQLM wiki PPL difference compared to FP16 for llama2 70B at 3.01 bits: 3.12 -> 3.36
They both went up by 0.24 bit, but AQLM has a lower size
This is an automated message from the Librarian Bot. I found the following papers similar to this paper.
The following papers were recommended by the Semantic Scholar API
- Extreme Compression of Large Language Models via Additive Quantization (2024)
- Sparse-VQ Transformer: An FFN-Free Framework with Vector Quantization for Enhanced Time Series Forecasting (2024)
- QuIP#: Even Better LLM Quantization with Hadamard Incoherence and Lattice Codebooks (2024)
- DB-LLM: Accurate Dual-Binarization for Efficient LLMs (2024)
- LQER: Low-Rank Quantization Error Reconstruction for LLMs (2024)
Please give a thumbs up to this comment if you found it helpful!
If you want recommendations for any Paper on Hugging Face checkout this Space
You can directly ask Librarian Bot for paper recommendations by tagging it in a comment:
@librarian-bot
recommend
What exactly does 2D VQ mean?
Models citing this paper 0
No model linking this paper
Datasets citing this paper 0
No dataset linking this paper
Spaces citing this paper 0
No Space linking this paper