LLM & Transformer Fundamentals·Question 38 of 109Intermediate

Why is quantizing activations harder than quantizing weights, and how does that shape architecture choices?

Type it the way you would explain it to an interviewer. A few sentences is enough; you can't break anything.

Model answer: the part to lead with

Weights are static, roughly Gaussian per channel, and well behaved. You compute scales offline, per channel, once, and move on. Activations are dynamic and dominated by outliers: a small number of feature dimensions carry values orders of magnitude larger than everything else, consistently in the same channels, and the problem worsens with model scale. Since a quantization scale is set by the max, one outlier crushes every other value in that tensor toward zero.

Full worked answer

Weights are static, roughly Gaussian per channel, and well behaved. You compute scales offline, per channel, once, and move on. Activations are dynamic and dominated by outliers: a small number of feature dimensions carry values orders of magnitude larger than everything else, consistently in the same channels, and the problem worsens with model scale. Since a quantization scale is set by the max, one outlier crushes every other value in that tensor toward zero.

Where the outliers come from is architecture-linked, which is the connection worth making: attention sinks. Heads that want to no-op push extreme values through specific residual dimensions, and norm gains amplify particular channels. The quantization problem and the softmax-has-no-null-option problem are the same problem.

Responses, roughly in order of sophistication:

  • Isolate them. LLM.int8() keeps outlier dimensions in fp16 and quantizes the rest. Correct, but it breaks the fast path, so you often lose the speed you came for.
  • Move the difficulty. SmoothQuant migrates scale from activations into weights with a per-channel equalisation, because weights tolerate it. AWQ uses activation statistics to identify salient weight channels and protects those.
  • Change the format. FP8 (E4M3) has far wider dynamic range than INT8 at identical bit width, which is exactly what outliers need, and modern accelerators have native FP8. This is why serving stacks largely went FP8 rather than fighting INT8, and Blackwell-class hardware pushes the same logic down to 4-bit floating-point formats (MXFP4, NVFP4) that pair tiny elements with fine-grained block scales.
  • Design for it. QK-norm, a learned softmax bias so heads have a real no-op option, and training natively in low precision (DeepSeek-V3 reported FP8 pretraining) all attack the cause rather than the symptom.

KV cache quantization is a separate axis and usually the cheapest long-context win, since at 128k the cache dwarfs the weights. Asymmetry worth knowing: K has persistent per-channel outliers that V lacks, and RoPE complicates K further by mixing channel pairs (some methods quantize keys before RoPE is applied for this reason), so stacks commonly quantize V more aggressively than K, or use per-channel scales for K and per-token for V.

What a good answer covers

  • Weights are static, roughly Gaussian per channel, and well behaved
  • You compute scales offline, per channel, once, and move on
  • Activations are dynamic and dominated by outliers
  • Since a quantization scale is set by the max, one outlier crushes every other value in that tensor…
  • Where the outliers come from is architecture-linked, which is the connection worth making: attention sinks

Interviewer follow-ups to expect

  1. You quantize weights to 4-bit and see no benchmark drop. What would make you distrust that result?

  2. Why does quantization hurt long generations more than short ones?

Worked answer from AI-Engineer-Interview-Questions by Om (MIT), reformatted for LLM Prep · answer text last updated 6 November 2026 · scoring and review schedule by LLM Prep