What is the key property that distinguishes shadow deployment from a standard A/B test for LLMs?
Same topic, related formats. Practice these next.
Same topic, related formats. Practice these next.
Shadow deployment mirrors real traffic to the challenger but serves only the incumbent's response. Users see zero challenger output, so it gives real-traffic evaluation at zero user risk.
Imagine a trainee chef shadowing the head chef. Every order that comes in, both of them cook it. But only the head chef's plate goes out to the customer. The trainee's plate is set aside so the kitchen manager can taste it later and compare. The customer never eats anything risky, yet you still learn how the trainee performs on real orders, not on a practice menu. The catch: you are now cooking every dish twice, so you burn through twice the ingredients and gas. And because nobody ever eats the trainee's food, you never find out whether real customers would have liked it.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example.
Everything important, quickly.
4 min: shadow's defining zero-exposure property, what real-traffic mirroring uniquely buys, the no user signal and double-cost limits, and the shadow then canary then A/B promotion chain.
| Property | Shadow | Canary | A/B test |
|---|---|---|---|
| Challenger served to users | Never | Small slice | Treatment split |
| User exposure risk | Zero | Limited blast radius | Full on treatment arm |
| Real-traffic distribution | Yes | Yes | Yes |
| User-feedback signal collected | No | Partial | Yes, the deciding metric |
| Inference cost | Doubled, runs both models | Near baseline | Near baseline |
| Typical role in rollout | First de-risk gate | Early limited rollout | Final promotion decision |
Real products, models, and research that use this idea.
What an interviewer would ask next. Try answering before peeking at the approach.
Red flags and common mistakes that signal junior thinking. Click to expand.
Treating shadow deployment as a full substitute for A/B testing. Shadow never serves the challenger, so it can never collect real user feedback signals like clicks, thumbs, or retention.
The night-before-the-interview bullets. Scan these on the way to the call.
Primary sources. Skim if you want the original framing.