Experiment Design For A New Speculative Decoding Draft Model
Last updated: November 29, 2026
Quick Overview
The team trained a new draft model that should raise output tokens per second for a popular serverless model. Design the experiment to decide whether to roll it out, including the randomization unit, metrics, guardrails and how to size it.
Fireworks AI
November 29, 20260
0
0 solved
The team trained a new draft model that should raise output tokens per second for a popular serverless model. Design the experiment to decide whether to roll it out, including the randomization unit, metrics, guardrails and how to size it.
Fireworks ships speed improvements like custom draft models to shared serverless deployments, where requests share batches on the same GPUs. The interviewer checks whether the candidate notices interference between requests in a batch and picks a randomization unit that avoids it.
What the Interviewer Expects
- Recognize that per-request randomization is biased because requests share GPU batches
- Randomize by replica or use switchback windows
- Define primary metrics like per-request output tokens per second and inter-token latency
- Include guardrails on TTFT, errors, throughput per GPU and output equivalence
- Size the test with clustered variance
Key Topics to Cover
How to Approach This
- Define success metrics carefully. A good metric is measurable, actionable, and aligned with business goals.
- Run experiments long enough to account for novelty effects and weekly seasonality.
- Use funnel analysis to identify where users drop off for maximum optimization impact.
- Segment results by key dimensions (platform, country, user cohort) to catch hidden patterns.
- Consider network effects and interference between treatment and control groups.
Possible Follow-up Questions
- How would you handle the effect varying with load level during the day?
- Speculative decoding should not change outputs in theory. How would you verify that in practice?
- How do you account for novelty in customer traffic mix between replicas?
- What would you do if latency improves but GPU throughput drops?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Browse Analytics QuestionsSample Answer
Clarify
Which model and traffic? Is the goal user-perceived speed (tokens per second per stream), cost (tokens per GPU second), or both? Are there enough replicas to randomize across, for example 40? Does the...
Approach
Requests in a batch share GPU steps, and speculative decoding changes step cost for everyone in the batch. Randomizing per request would contaminate control requests with treatment load, violating SUT...