---
title: What limits LLM decode throughput, and how do continuous batching, paged KV cache, quantisation and speculative…
url: https://gurkanozkan.ai/learn/questions/mle-llm-serving-efficiency-63/
markdown: https://gurkanozkan.ai/learn/questions/mle-llm-serving-efficiency-63.md
kind: question
role: ML engineering
stage: Technical
difficulty: Hard
json: https://gurkanozkan.ai/api/learn/questions/mle-llm-serving-efficiency-63.json
robots: noindex
---

# What limits LLM decode throughput, and how do continuous batching, paged KV cache, quantisation and speculative decoding help?

ML engineering · Technical · Hard

## Answer

*Model answer, written in a candidate's voice*

### In short

- Prefill is compute-bound; decode is memory-bandwidth-bound.
- KV cache memory limits concurrency; paged allocation reduces fragmentation.
- Continuous batching raises utilisation by scheduling at iteration level.
- Weight-only int4/int8 cuts bandwidth by reducing bytes read per token.
- Speculative decoding: draft proposes, target verifies, preserving output distribution and cutting latency.

### In full

Decode is usually limited by memory bandwidth, not raw FLOPs: each generated token must read the model weights and the relevant KV cache, while prefill is more compute-bound because it processes the whole prompt in parallel. KV cache size grows with sequence length, batch size and model/layer count, so it caps how many sequences fit in memory; paged KV allocation stores cache in fixed blocks, reducing fragmentation and wasted space so more requests can be served. Continuous batching schedules at iteration level, letting finished sequences leave and new ones join instead of waiting for a whole batch to finish, which raises utilisation. Weight-only int4/int8 quantisation reduces the bytes read for weights per token, lowering bandwidth pressure, though it does not by itself shrink the KV cache unless that is also quantised. Speculative decoding uses a cheaper draft model to propose several tokens and the target model to verify them in parallel; with correct rejection sampling it preserves the target distribution and can cut latency, though gains depend on draft acceptance and it is not a guaranteed throughput increase.

*Checked against sources by an independent AI reviewer.*

## What a strong answer covers

- Prefill is compute-bound; decode is memory-bandwidth-bound.
- KV cache memory limits concurrency; paged allocation reduces fragmentation.
- Continuous batching raises utilisation.
- Weight-only int4/int8 cuts bandwidth.
- Speculative decoding: a draft model proposes, the target model verifies, which can cut latency without changing the output distribution.

## Common mistakes

- treating tokens/s for one user and aggregate throughput as the same thing.

## Topic guides

- [KV cache](https://gurkanozkan.ai/learn/topics/kv-cache.md)
- [LLM inference: decoding, batching, quantisation and speculative decoding](https://gurkanozkan.ai/learn/topics/inference.md)
---

*Study material compiled with AI: drafted by a local model (Inkling 2 Mini) from public sources, then checked against those sources by independent AI reviewers (Claude) in November 2026. Not reviewed line by line by a person.*
