How do you keep an eval set fresh over time, and how do you avoid overfitting to it?
Type it the way you would explain it to an interviewer. A few sentences is enough; you can't break anything.
Model answer: the part to lead with
An eval set decays two ways: the world drifts (new user intents, features, languages - the frozen set stops representing traffic) and you overfit it (months of prompt iteration against the same 200 cases means improvements are partly specific to those cases - Goodhart applied to yourself). Both produce the same symptom: offline scores rise or hold while online metrics don't.
Full worked answer with diagram
An eval set decays two ways: the world drifts (new user intents, features, languages - the frozen set stops representing traffic) and you overfit it (months of prompt iteration against the same 200 cases means improvements are partly specific to those cases - Goodhart applied to yourself). Both produce the same symptom: offline scores rise or hold while online metrics don't.
Freshness practices:
- Continuous inflow from production: a standing pipeline routes thumbs-downs, escalations, regenerations, and guardrail triggers into a triage queue; someone reviews weekly and promotes real failures into the eval set. Fresh production data has a bonus property: it postdates any model's training cutoff, making it naturally contamination-resistant.
- Retire saturated cases - cases passing for months stop discriminating between candidates. Move them to a cheap smoke-test/regression tier rather than deleting (they still catch catastrophic breaks); keep the discriminative tier hard, targeting maybe 60-80% pass so there's headroom to measure improvement.
- Coverage audits: periodically compare the eval set's intent/topic/language distribution against current production traffic and backfill gaps, synthetically if needed.
Anti-overfitting practices, borrowed straight from ML hygiene:
- Dev/test split: iterate prompts against the dev slice; touch the held-out test slice only for ship decisions, at low frequency. If dev and test scores diverge, you've overfit dev - refresh it.
- Rotate and expand: newly promoted production cases land in the test slice first, keeping it representative and un-gamed.
- Watch the offline - online correlation explicitly: it's the canary for a stale suite.
Versioning is what makes freshness safe: every dataset change bumps a version, results always record dataset + prompt + model + judge versions, and score comparisons only happen within a version. Otherwise "we improved 5 points" is uninterpretable - you may have just swapped hard cases out. When you must compare across versions, re-run the baseline config on the new dataset.
Worth sketching. Showing new cases landing in test first, not dev, is the detail that tells an interviewer you have actually run this.
flowchart LR
P["Production signals:<br/>thumbs-down, escalations"] --> T["Weekly triage queue"]
T -->|"promoted here first"| TE["Test slice:<br/>ship decisions only"]
TE -->|"rotates in later"| DV["Dev slice:<br/>prompt iteration"]
DV -->|"saturated cases"| SM["Smoke tier:<br/>catches catastrophic breaks"]
DV --> W{"Dev and test<br/>scores diverging?"}
W -->|"yes"| O["You have overfit dev.<br/>Refresh it"]
What a good answer covers
- An eval set decays two ways
- Both produce the same symptom: offline scores rise or hold while online metrics don't
- Continuous inflow from production
- Coverage audits: periodically compare the eval set's intent/topic/language distribution against current…
- Dev/test split: iterate prompts against the dev slice; touch the held-out test slice only for ship…
Key terms: world drifts · you overfit it · Continuous inflow from production · Retire saturated cases · Coverage audits · Dev/test split · Rotate and expand
In the glossary: Eval set · Drift · Judge (LLM-as-judge)
Interviewer follow-ups to expect
Concretely, how would you detect that your team has overfit the dev set?
Who triages the production-failure queue, and what's the admission bar for a new eval case?
Worked answer from AI-Engineer-Interview-Questions by Om (MIT), reformatted for LLM Prep · answer text last updated 6 November 2026 · scoring and review schedule by LLM Prep