[Paper Review] A Comprehensive Evaluation of Quantization Strategies for Large Language Models
The paper proposes a structured framework to evaluate instruction-tuned LLMs under quantization, showing 4-bit quantization often preserves performance and perplexity can proxy benchmark results, while 2-bit quantization can fail without specialized methods.
Increasing the number of parameters in large language models (LLMs) usually improves performance in downstream tasks but raises compute and memory costs, making deployment difficult in resource-limited settings. Quantization techniques, which reduce the bits needed for model weights or activations with minimal performance loss, have become popular due to the rise of LLMs. However, most quantization studies use pre-trained LLMs, and the impact of quantization on instruction-tuned LLMs and the relationship between perplexity and benchmark performance of quantized LLMs are not well understood. Evaluation of quantized LLMs is often limited to language modeling and a few classification tasks, leaving their performance on other benchmarks unclear. To address these gaps, we propose a structured evaluation framework consisting of three critical dimensions: (1) knowledge \& capacity, (2) alignment, and (3) efficiency, and conduct extensive experiments across ten diverse benchmarks. Our experimental results indicate that LLMs with 4-bit quantization can retain performance comparable to their non-quantized counterparts, and perplexity can serve as a proxy metric for quantized LLMs on most benchmarks. Furthermore, quantized LLMs with larger parameter scales can outperform smaller LLMs. Despite the memory savings achieved through quantization, it can also slow down the inference speed of LLMs. Consequently, substantial engineering efforts and hardware support are imperative to achieve a balanced optimization of decoding speed and memory consumption in the context of quantized LLMs.
Motivation & Objective
- Motivate the need to evaluate quantized instruction-tuned LLMs beyond pre-trained models across diverse benchmarks.
- Propose a three-dimensional evaluation framework: knowledge & capacity, alignment, and efficiency.
- Assess multiple quantization strategies (PTQ) and parameter scales on a range of benchmarks to understand performance-memory-speed trade-offs.
- Identify practical engineering and hardware requirements for effective deployment of quantized LLMs.
Proposed method
- Adopt a structured evaluation framework with three dimensions: efficiency, knowledge & capacity, and alignment.
- Use three quantization approaches—LLM.int8(), GPTQ, and SpQR—to quantize Qwen-chat models to 8, 4, 3, and 2 bits (LLM.int8() limited to 8 bits).
- Evaluate across ten benchmarks spanning knowledge, generation, and alignment tasks as well as efficiency metrics like memory and speed.
- Analyze perplexity as a proxy indicator for quantized LLM performance on benchmarks.
- Investigate SpQR's outlier isolation and bilevel quantization as key to 2-bit quantization performance.
- Provide memory and speed comparisons on A100 GPUs to discuss practical deployment considerations.
Experimental results
Research questions
- RQ1How do quantized instruction-tuned LLMs perform across knowledge, alignment, and generation benchmarks compared to their non-quantized counterparts?
- RQ2What bit-precision levels preserve performance for 7B, 14B, and 72B Qwen-chat models, and how does perplexity relate to benchmark performance?
- RQ3Can techniques like SpQR enable extreme 2-bit quantization without catastrophic performance loss, and what factors drive this?
- RQ4What are the memory and speed implications of different quantization methods in practical hardware settings?
Key findings
- 4-bit quantization can maintain performance close to non-quantized models on most benchmarks.
- Quantized models with larger parameter scales can outperform smaller non-quantized models at similar memory budgets.
- Perplexity generally increases with fewer quantization bits and can serve as a proxy for benchmark performance.
- 2-bit quantization with GPTQ degrades coherence and instruction following, while SpQR with outlier isolation remains more robust.
- Memory savings are achieved by GPTQ and LLM.int8(), but SpQR in this setup may not reduce memory usage due to high-precision weight representations; speed benefits depend on hardware support.
- Engineering effort and hardware support are critical to realizing the practical benefits of quantized LLMs.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.