AI Interview Prep

AI Interview Prep

Advanced NLP Interview Questions #5 - The Speculative Decoding Illusion

You think batch=128 makes speculative decoding useless. The reality? Your model is secretly dying of memory starvation.

Hao Hoang's avatar
Hao Hoang
Dec 12, 2025
∙ Paid

You’re in a Machine Learning Engineer interview at OpenAI. The interviewer sets a trap:

“We need to optimize inference for batch size 128. Should we use Speculative Decoding?”

90% of candidates walk right into the trap.

They answer: “No. At batch size 128, the GPU is fully saturated (compute-bound). Running a draft model just adds overhead and kills throughput.”

It sounds logical. It is standard textbook advice.

It is also completely wrong for modern workloads.

Here is the blind spot.

The candidates are assuming standard RAG (2k tokens). But in Long Context Inference (100k+ tokens), the bottleneck shifts violently.

The candidates aren’t stalled by matrix multiplication, they are choking on memory bandwidth.

-----

𝐓𝐡𝐞 𝐑𝐞𝐚𝐥𝐢𝐭𝐲:

- Model Weights are shared across the batch (loaded once).

- KV Cache is unique to every single request (loaded 128 times).

AI Interview Prep is a reader-supported publication. To receive new posts and support my work, consider becoming a free or paid subscriber.

User's avatar

Continue reading this post for free, courtesy of Hao Hoang.

Or purchase a paid subscription.
© 2026 Hao Hoang · Privacy ∙ Terms ∙ Collection notice
Start your SubstackGet the app
Substack is the home for great culture