Compare offline and online LLM evaluation: when is each the right tool?
Same topic, related formats. Practice these next.
Same topic, related formats. Practice these next.
Compare offline golden-set evaluation and online A/B evaluation for LLM systems. What does each mode uniquely offer, and in what situations is each the right choice?
Offline eval is fast, cheap, reproducible, and safe but blind to distribution shift. Online A/B is real-user ground truth but slow, costly, and risky. You need both because they catch different failures.
Imagine you bake a new cake recipe. Offline eval is a tasting panel of friends you trust: cheap, fast, repeatable, and nobody pays if the cake is bad. You can tweak the recipe ten times in an afternoon. But your friends are not your real customers, and their tastes were fixed last year. Online eval is putting the cake in the actual shop for a week and watching whether real customers buy it again. That tells you the truth about real demand, but it is slow, it costs you shelf space, and a bad batch annoys paying customers. The panel catches obvious mistakes before launch; the shop tells you what people actually want. Skip the panel and you ship junk. Skip the shop and you never learn what your real customers do.
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: offline strengths and frozen-set blind spot, online ground truth and its costs, the offline-online gap as a diagnostic signal, shadow deployment as the bridge, and the feedback loop that keeps the golden set honest.
| Dimension | Offline (golden set) | Online (A/B) |
|---|---|---|
| Inputs | Fixed, curated, frozen | Live real-user traffic |
| Ground truth | Proxy metrics or LLM judge | Real behavioral outcomes |
| Speed | Seconds to minutes, per commit | Days to weeks for power |
| Cost | Low, fully automatable | High infra plus review |
| User risk | None, no exposure | Real, worse arm shipped |
| Reproducible | Yes, at temperature zero | No, traffic varies |
| Sees distribution shift | No, set is frozen | Yes, measures live data |
| Best for | Pre-merge regression gate | Validating a large change |
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 a stable offline score as proof the system is healthy in production. A frozen golden set cannot see distribution shift or real user behavior, so it silently goes stale.
The night-before-the-interview bullets. Scan these on the way to the call.
Primary sources. Skim if you want the original framing.