Explain Batching and Why It Matters for Cost
The interviewer asksExplain to a product leader why batching requests makes serving cheaper, and what it costs in user experience.
AI Infrastructure PMAI Platform PM (secondary)AI TPM (secondary)CoreTechnical roundRepresentative5 min
On this page
The 30-second version
- Generating each token requires reading the model's weights from memory.
- Batching serves many users with one read: like a bus instead of a taxi per person.
- More users per GPU means lower cost per token.
- Cost: each user waits a little longer per token; very large batches feel slower.
- Continuous batching adds and removes requests as they come and go, keeping GPUs busy.
What it's really testing
- Explaining serving economics
- Latency trade-off
- Product implications
How to structure your answer
- Mechanism.
- Analogy.
- Trade-off.
- Continuous batching.
- Product link.
The interview, played out
- InterviewerExplain why batching makes serving cheaper, and what it costs users.
- CandidateTo write each word, the model has to read all its weights from memory, which is the slow part. If we do that for one user at a time, it's like a taxi per passenger.
- CandidateBatching puts many users' requests through together, so one read of the weights serves all of them: a bus. More users per GPUGraphics processing unit. The chips most AI models are trained and served on. Read the full explanation, lower cost per word.
- Strong moveA clear analogy that's technically correct.
- CandidateThe cost: each passenger's trip is a bit slower; with very big batches, each user gets fewer words per second. So we pick batch sizes that keep speed acceptable.
- CandidateModern servers use continuous batching: people get on and off the bus at every stop instead of waiting for a full trip, so the GPU stays busy.
- InterviewerWhy does a product leader care?
- CandidateIt's why we can offer cheaper tiers for slower or batch work, and why premium speed costs more.
The strong answer, distilled
- Mechanism: each token needs weights read from memory.
- Analogy: bus vs taxi.
- Benefit: more users per GPU, lower cost.
- Trade-off: slower per-user output at large batch sizes.
- Continuous batching: join and leave at every step.
- Product: tiers by speed and price.
This is one strong answer, not the only one.
How it's scored
| Dimension | Weak (2) | Passable (3) | Strong (5) |
|---|---|---|---|
| Mechanism | Wrong | Roughly right | Memory reads explained |
| Clarity | Jargon | Clear | Analogy that holds |
| Product link | None | Cost | Tiers and pricing |
Round scorecard: AI Infrastructure PM: technical round, filled in for the mock candidate
| Dimension | Weak | Passable | Strong | The mock candidate |
|---|---|---|---|---|
| Structure | Jumps to a number. | Some steps. | Formula first, steps said out loud. | Strong. Clear analogy. |
| Assumptions | Hidden or wrong. | Stated. | Stated, reasonable, and the sensitive ones identified. | Strong. Stated the trade-off numerically. |
| Technical depth | Weights only. | Weights and throughput. | Weights, KV cache, batching and latency targets. | Strong. Explained memory bandwidth and continuous batching simply. |
| Product judgment | Stops at the number. | Mentions cost. | Turns the estimate into a capacity and cost decision. | Strong. Tied it to pricing and product tiers. |
How the answer changes by role
| Role | What to emphasise |
|---|---|
| AI Infrastructure PMProduct Manager. Decides what a product should do, for whom, and why. Read the full explanation | Explaining serving trade-offs |
| AI Platform PM | Pricing tiers |
| AI TPMTechnical Program Manager. Owns plans, dependencies, risks and delivery for large cross-team programmes. Read the full explanation | Capacity planning conversations |
Common mistakes
- Jargon-heavy explanation
- Ignoring the latency cost
- No link to product decisions
More follow-ups to practise
- "What limits batch size?" Hint: KV cacheKey-value cache. Stored attention keys and values that let a model generate each new token without recomputing the whole context. Read the full explanation memory and latency targets.
- "Does batching affect answer quality?" Hint: no; only speed and cost.
Go deeper
- Module: Inference and serving
- Framework: Back-of-Envelope Method for AI Numbers
- Framework: Explain a Concept Framework
- Framework: Opening Any Interview Answer
- Lesson: The serving stack
- Lesson: The KV cache and batching
- Also tests: AI numbers: serving, cost and latency
Sources
Representative question: written to match technical rounds for AI product roles, not a specific reported interview.