Why is 'reduce FLOPs to speed up decode' the most common beginner misconception in LLM serving?
Explain why a textbook ML optimization instinct (reduce FLOPs to speed up inference) fails on LLM decode. What does work, and what was the engineer's confusion?
Decode at small batch is HBM-bandwidth-bound, not compute-bound. Cutting FLOPs without cutting bytes-per-token leaves the dominant memory read unchanged, so latency barely moves.
Imagine a chef who must walk to a giant pantry and carry back every ingredient in the kitchen before cooking each single dish. The walk takes a long time; the actual chopping is quick. If you give the chef faster knives, dinner barely speeds up, because the walk is the bottleneck, not the chopping. LLM decode is like that. Generating one token forces the GPU to read the entire model from slow memory, which dwarfs the tiny amount of math per token. Buying a chip with more raw math power, like sharper knives, helps almost nothing if the pantry walk, the memory bandwidth, stays the same. To go faster you shrink what must be carried or carry it once for many dishes.
Detailed answer & concept explanation~8 min readEverything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example.
Everything important, quickly.
4 min: roofline regimes + where decode sits + estimate the per-token weight read + why FLOP cuts miss + byte-cutting and amortization levers + the diagnostic rule.
Real products, models, and research that use this idea.
- vLLM with continuous batching raises arithmetic intensity by sharing one weight read across many requests, the largest decode throughput lever in 2026 serving.
- Llama 3.1 70B served on H100 spends most of each decode step on the FP16 weight read, which dwarfs the matmul time.
- DeepSeek V4 ships Multi-head Latent Attention to shrink the per-token KV bandwidth bill rather than chasing FLOP cuts.
- INT4 weight quantization via AWQ or GPTQ roughly quarters the HBM read and is a standard decode-latency win on production endpoints.
- NVIDIA B200 lifts decode throughput mainly by raising HBM bandwidth, not just peak FLOPs, confirming bandwidth sets small batch decode speed.
What an interviewer would ask next. Try answering before peeking at the approach.
QAt what batch size does decode cross from bandwidth-bound to compute-bound?
QWhy does prefill behave compute-bound while decode is bandwidth-bound on the same model?
Don't say thisRed flags and common mistakes that signal junior thinking. Click to expand.
Red flags and common mistakes that signal junior thinking. Click to expand.
Assuming peak FLOPs sets decode speed. At batch 1 decode is gated by reading weights from HBM, so a chip with more FLOPs but equal bandwidth barely helps token latency.
The night-before-the-interview bullets. Scan these on the way to the call.
Primary sources. Skim if you want the original framing.
Same topic, related formats. Practice these next.