[Paper Review] The case for 4-bit precision: k-bit Inference Scaling Laws
The paper studies bit-level inference scaling laws for zero-shot quantization across multiple LLM families and finds 4-bit precision is almost universally optimal for fixed total model bits and zero-shot accuracy.
Quantization methods reduce the number of bits required to represent each parameter in a model, trading accuracy for smaller memory footprints and inference latencies. However, the final model size depends on both the number of parameters of the original model and the rate of compression. For example, a 30B 8-bit model and a 60B 4-bit model have the same number of bits but may have very different zero-shot accuracies. In this work, we study this trade-off by developing inference scaling laws of zero-shot performance in Large Language Models (LLMs) to determine the bit-precision and model size that maximizes zero-shot performance. We run more than 35,000 experiments with 16-bit inputs and k-bit parameters to examine which zero-shot quantization methods improve scaling for 3 to 8-bit precision at scales of 19M to 176B parameters across the LLM families BLOOM, OPT, NeoX/Pythia, and GPT-2. We find that it is challenging to improve the bit-level scaling trade-off, with the only improvements being the use of a small block size -- splitting the parameters into small independently quantized blocks -- and the quantization data type being used (e.g., Int vs Float). Overall, our findings show that {4-bit} precision is almost universally optimal for total model bits and zero-shot accuracy.
Motivation & Objective
- Motivate the study of the trade-off between model size (bits) and zero-shot accuracy in quantized LLMs.
- Systematically evaluate how different bit-precision levels affect zero-shot performance across multiple LLM families and scales.
- Identify quantization settings (data types, block sizes) that optimize bit-level scaling under a fixed total model size.
- Provide practical recommendations for using 4-bit quantization and discuss limitations and future directions.
Proposed method
- Conducted over 35,000 experiments with 16-bit inputs and k-bit parameters (3 ≤ k ≤ 16) across OPT, BLOOM, Pythia/NeoX, GPT-2, and BLOOMZ models from 19M to 176B parameters.
- Evaluated zero-shot performance on LAMBADA, PiQA, Winogrande, and HellaSwag using the EleutherAI LM Eval Harness; used perplexity as a reliable measurement but report zero-shot accuracy for clarity.
- Investigated blocking (block sizes), quantization data types (Int, Float, quantile, dynamic exponent), and outlier-dependent proxy quantization to assess their impact on bit-level scaling.
- Compared 6–8 bit methods and found no scaling improvements; focused on 4-bit improvements with small block sizes and favorable data types.
- Fitted linear interpolations to scaling curves rather than multivariate power laws, observing near-parallel scaling trends across precisions.
Experimental results
Research questions
- RQ1What is the optimal bit-precision for zero-shot performance at a fixed total number of model bits across diverse LLM families and scales?
- RQ2How do quantization methods (data types, block size, and outlier handling) impact bit-level scaling when reducing precision to 3–8 bits?
- RQ3Do 4-bit models universally maximize zero-shot accuracy and efficiency across model sizes and families?
- RQ4Can outlier-dependent quantization or one-shot quantization approaches meaningfully improve bit-level scaling below 4 bits?
Key findings
- 4-bit precision yields optimal bit-level scaling for almost all models and scales tested; 3-bit can be slightly better only for BLOOM-176B in their study.
- Scaling curves are largely parallel across model sizes, indicating bit-level scaling is mostly scale-invariant.
- 3-bit instability occurs in OPT and Pythia for large models, while GPT-2 and BLOOM remain stable.
- Small block sizes (e.g., 64–128) and certain data types (quantile quantization, floating point) improve 4-bit scaling more than other adjustments.
- No combination of 6–8-bit quantization methods improved bit-level scaling; improvements mainly come from staying at 4-bit with favorable block sizes and data types.
- Outlier-dependent proxy quantization can stabilize 3-bit OPT/Pythia but does not surpass 4-bit scaling; 4-bit remains optimal for scaling.
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.