Users Say the AI Assistant Feels Slow. Where Does the Time Go?
The interviewer asksUsers say your AI assistant feels slow: about 8 seconds before an answer appears. Where does the time go, and how would you cut it?
AI Infrastructure PMAI Product EngineerApplied AI PM (secondary)CoreTechnical roundRepresentative5–7 min
On this page
The 30-second version
- Break the 8 seconds down from traces: retrieval, queueing, prefill (time to first token), decode.
- What users feel most is the wait before anything appears; stream the answer.
- Long prompts slow prefill: trim context to what's needed.
- Long outputs slow decode: ask for shorter answers or use a faster model for simple questions.
- Check queueing at peak: capacity, not the model, may be the bottleneck.
What it's really testing
- Knowing where LLM latency comes from
- Diagnosing from traces
- Focusing on perceived latency
- Matching fixes to causes
How to structure your answer
- Break the time down by stage.
- Find the biggest contributor.
- Fix what users feel first.
- Then the rest, stage by stage.
The interview, played out
- InterviewerUsers say your AI assistant feels slow: about 8 seconds before an answer appears. Where does the time go, and how would you cut it?
- CandidateFirst, is the whole answer appearing at once after 8 seconds, or does text start sooner?
- Revealed when askedThe whole answer appears at once. There's no streaming.
- CandidateThat's the first fix: stream the answer so users see words within a second or two. Total time stays the same, but it feels much faster.
- Strong moveSeparates perceived latency from total latency.
- CandidateThen I'd break the 8 seconds down from traces: retrieval, waiting in a queue, prefill (reading the prompt, which sets time to first token) and decode (writing the answer token by token).
- Revealed when askedRetrieval 1s, prefill 2s, decode 5s. Prompts average 12,000 tokens; answers 400 tokens.
- CandidateDecode is the biggest share: 400 tokens at around 80 tokens a second. Options: shorter answers where users don't need length, or a smaller, faster model for simple questions via routing. Prefill at 2 seconds is driven by the 12,000-token prompt: what's in it?
- Revealed when askedThe full text of the five retrieved documents.
- CandidateThen send only the relevant passages, not whole documents. That could cut the prompt by more than half and prefill with it. Retrieval at 1 second could run in parallel with other set-up work.
- InterviewerAnything else to check?
- CandidateWhether it's worse at peak. If so, requests are queueing, and that's a capacity problem, not a model one.
- Missed signalPeak-time queueing is a common cause and worth checking before optimising the model.
The strong answer, distilled
- Stream first: the full answer currently appears at once; streaming shows text within a second or two.
- Break down from traces: retrieval 1s, prefill 2s, decode 5s.
- Decode (biggest): 400 tokens at ~80 tokens/s; shorter answers where possible; route simple questions to a faster model.
- Prefill: 12,000-token prompts of whole documents; send relevant passages only.
- Retrieval: parallelise with other set-up.
- Queueing: compare peak and off-peak; if peak is worse, it's capacity.
This is one strong answer, not the only one.
How it's scored
| Dimension | Weak (2) | Passable (3) | Strong (5) |
|---|---|---|---|
| Diagnosis | "Use a faster model" | Some stages | Full breakdown from traces |
| Mechanism | Unclear | Input vs output | Prefill vs decode, context length, queueing |
| Perceived latency | Ignored | Mentioned | Streaming first |
| Fixes | One | Several | Matched to each stage's cause |
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. Broke the 8 seconds into stages before proposing fixes. |
| Assumptions | Hidden or wrong. | Stated. | Stated, reasonable, and the sensitive ones identified. | Passable. Asked for a trace breakdown but assumed streaming was on until told. |
| Technical depth | Weights only. | Weights and throughput. | Weights, KV cache, batching and latency targets. | Strong. Prefill vs decode, and context length driving time to first token. |
| Product judgment | Stops at the number. | Mentions cost. | Turns the estimate into a capacity and cost decision. | Strong. Prioritised what users feel: time to first token and streaming. |
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 | Serving capacity, queueing and model choice |
| AI Product Engineer | Streaming, context trimming and routing in the app |
| Applied AI PM | What users feel, and the trade-off with answer length |
Common mistakes
- Optimising before measuring the breakdown
- Ignoring streaming
- Sending whole documents as context
- Missing queueing at peak times
More follow-ups to practise
- "Streaming makes output safety checks harder." Hint: check in chunks, or hold the first sentence.
- "Leadership wants under 1 second to first token." Hint: prompt size, model size, capacity.
- "Why is decode slower than prefill per token?" Hint: memory bandwidth, one token at a time.
Go deeper
- Module: AI numbers: serving, cost and latency
- Framework: Back-of-Envelope Method for AI Numbers
- Framework: Explain a Concept Framework
- Framework: Opening Any Interview Answer
- Lesson: Where latency comes from
- Lesson: The KV cache and batching
- Also tests: AI system design
- Also tests: Inference and serving
Sources
Representative question: written to match technical rounds for infrastructure PM and product engineer roles, not a specific reported interview. Figures are illustrative.