Before you start: words you need#
| Word | Plain meaning |
|---|---|
| Quantization | Storing numbers with fewer bits (here 8-bit integers instead of 16-bit floats) and scaling them back when needed (10.l). |
| Absmax quantization | Divide by the largest absolute value in a group, multiply by 127, round. The largest value maps to ±127. |
| Scale / normalization constant | The number you divide by when quantizing and multiply by when dequantizing. |
| Vector-wise quantization | One scale per row of the activations and one per column of the weights, instead of one for a whole matrix. |
| Outlier feature | A hidden-state dimension (one column of the activations) whose values are far larger than all others, often 20× or more. |
| Mixed-precision decomposition | Splitting one matrix multiply into two: a small one in 16-bit for the outlier columns and a large one in 8-bit for everything else, then adding the results. |
| Perplexity | A measure of how surprised a language model is by real text. Lower is better. |
| Zero-shot accuracy | Accuracy on a task the model was not fine-tuned for, with no examples in the prompt. |
1. The paper#
- Title: “LLM.int8(): 8-bit Matrix Multiplication for Transformers at Scale”
- Authors: Tim Dettmers, Mike Lewis, Younes Belkada, Luke Zettlemoyer (University of Washington, Facebook AI Research, Hugging Face, ENS Paris-Saclay)
- Venue: NeurIPS 2022.
- Link: arXiv:2208.07339
This is the first paper in the module’s quantization thread. GPTQ (30.i), SmoothQuant (30.k), AWQ (30.m) and QuaRot (30.u) all respond to the outlier problem it described.
2. The problem#
In mid-2022 the open large models were OPT-175B and BLOOM-176B. In 16-bit they need about 350 GB of GPU memory, more than eight 40 GB A100s. Halving that with 8-bit integers would put them on far cheaper hardware.
8-bit quantization already worked for models up to a few billion parameters. But the authors found that every standard 8-bit method fell apart at about 6.7 B parameters: perplexity jumped and zero-shot accuracy dropped sharply. Nobody had explained why.
3. The idea#
Two parts, together called LLM.int8():
- Vector-wise quantization. Instead of one scale for a whole matrix, use one scale per row of the input activations X and one per column of the weights W. Each inner product then has its own pair of scales, so one large value only damages its own row or column.
- Mixed-precision decomposition. Find the few hidden dimensions that contain outliers (any value with magnitude above a threshold α = 6.0). Multiply those columns of X, and the matching rows of W, in 16-bit. Multiply everything else in 8-bit. Add the two results.
flowchart LR
X["Activations X (16-bit)"] --> SPLIT{"Column has a value above 6?"}
SPLIT -- "yes (~0.1% of columns)" --> F16["16-bit matmul with matching rows of W"]
SPLIT -- "no (~99.9%)" --> Q["Quantize per row / per column to int8"]
Q --> I8["int8 matmul, then dequantize"]
F16 --> ADD["Add the two results"]
I8 --> ADD
class X memory
class SPLIT neutral
class F16,I8,Q compute
class ADD ioThe real contribution is the analysis behind part 2.
4. How it works#
What the outliers look like. The authors tracked hidden-state values across models of growing size (up to 13 B in their main analysis, then OPT up to 175 B):
- Features with magnitude up to 20× larger than the rest first appear in about 25% of layers in smaller models, then spread.
- At about 6.7 B parameters there is a phase shift: all layers and about 75% of sequence positions are affected.
- They are highly systematic. In a 6.7 B model there are about 150,000 outliers per sequence, but they sit in only 6 feature dimensions across the whole model.
- They matter. Zeroing those dimensions (about 0.1% of features) cut top-1 attention probability by more than 20% and made perplexity 600–1000% worse. Zeroing the same number of random features changed perplexity by about 0.1%.
Why per-tensor quantization fails. With absmax, one value of 60 in a tensor whose other values are below 1 sets the scale so large that almost everything else rounds to zero. Vector-wise scales help until the outliers are in every row, at which point only taking them out of the 8-bit path works.
Why it costs speed. Finding outlier columns, splitting, running two GEMMs and adding the results are extra steps. The int8 GEMM saves memory, but the extra work and data movement often make it slower than plain 16-bit on smaller layers.
5. Results#
Quality (C4 validation perplexity, Table 1; lower is better):
| Method | 1.3 B | 6.7 B | 13 B |
|---|---|---|---|
| 32-bit float | 15.91 | 13.30 | 12.45 |
| Int8 absmax (per tensor) | 16.55 | 14.59 | 19.08 |
| Int8 absmax vector-wise | 16.82 | 14.13 | 16.48 |
| Int8 zeropoint vector-wise | 15.94 | 13.38 | 13.47 |
| LLM.int8() (absmax, vector-wise + decomposition) | 15.93 | 13.24 | 12.45 |
LLM.int8() matched 16/32-bit quality up to 13 B on perplexity, and zero-shot accuracy on OPT up to 175 B. Memory for BLOOM-176B fell by 1.96×; OPT-175B and BLOOM ran on one server of 8 × 24 GB RTX 3090s (Table 3).
Speed — be careful, the paper is honest about it (Appendix D):
| Measure | Result |
|---|---|
| First FFN matmul, GPT-3 6.7 B shape, vs FP16 (Table 5) | 0.86× (slower) |
| Same, GPT-3 13 B shape | 1.22× |
| Same, GPT-3 175 B shape | 1.81× |
| BLOOM-176B end-to-end, ms per token at batch 1 (Table 6) | bf16 on 8 × A100: 239; LLM.int8() on 8 × A100: 253; on 3 × A100: 247 |
So the win was memory, not speed: the same model on fewer or cheaper GPUs at roughly the same latency, and slower than FP16 for small models.
6. What held up and what did not#
Held up
- Outliers are real and systematic. Every later quantization method is a different answer to this paper’s observation: move the difficulty into the weights (SmoothQuant, 30.k), protect important weights (AWQ, 30.m), or rotate the outliers away (QuaRot, 30.u).
- Finer-grained scales. Per-channel and per-token scales, and later block scales (one per 16 or 32 values, as in MXFP8 and NVFP4; 13.g), are standard.
- bitsandbytes, the library released with the paper, became the default way to load models in 8-bit or 4-bit in Hugging Face, and its 4-bit NF4 format powers QLoRA fine-tuning.
Did not, or changed
- Mixed-precision decomposition is not used for fast serving. Its irregular split is slow on GPUs. Production 8-bit inference in 2026 is FP8 (E4M3) with per-tensor, per-channel or block scales on Hopper and Blackwell tensor cores (13.e), which handles outliers well enough without splitting.
- The “emergence at 6.7 B” story was refined. Later work (for example Ahmadian et al., 2023) found outlier severity depends heavily on training choices such as weight decay, dropout and precision, not just on scale; some models trained to avoid them quantize easily.
- Weight-only 4-bit methods (GPTQ, AWQ) overtook 8-bit as the way to fit big models on small GPUs.
7. Where it lives in 2026#
- Taught in depth: quantization fundamentals in 10.l, activation quantization and outliers in 13.d, FP8/INT8 inference in 13.e, quantization in vLLM in 18.j.
bitsandbytes(now maintained by the bitsandbytes Foundation) is still widely used for fine-tuning (QLoRA) and quick experiments; vLLM can load bitsandbytes checkpoints, but serving stacks prefer FP8, AWQ/GPTQ-style INT4 or NVFP4 for speed.
Checked on 13 November 2026.
8. Questions#
- Why did standard 8-bit quantization break at about 6.7 B parameters?
- Explain vector-wise quantization. Why is it better than one scale per tensor?
- What is mixed-precision decomposition, and what fraction of values stays in 16-bit?
- The paper zeroed 0.1% of features two ways and got very different results. What were the two ways, and what does that show?
- LLM.int8() was slower than FP16 for a 6.7 B model. Why, and why was it still useful?
- How does FP8 with per-channel scales on Hopper avoid the decomposition step?
- Name three later methods that respond to the outlier problem, and how each does it.
9. Further reading#
- arXiv:2208.07339 — section 4 (outliers) is the part to read.
- Tim Dettmers, “LLM.int8() and Emergent Features” (blog, August 2022).
- Ahmadian et al., “Intriguing Properties of Quantization at Scale” (NeurIPS 2023).
- bitsandbytes on GitHub.
- 13.d and 13.e in this material.
- Next: GPTQ (30.i).