AI Agentic Handbook
Evaluation & Metrics

Drift

Senior levelReviewed Oct 2026In 8 interview questions

The slow slide where a system that scored well at launch gets worse, because users, documents, models or the right answers all moved.

In plain English

A system can quietly decay without anyone touching the code. Users start asking different things, documents get added or go stale, the provider updates the model, or the correct answer itself changes because a policy changed.

That slide is drift. You catch it by watching inputs and outputs over time and rerunning your evals on a schedule, rather than once at launch.

Analogy

A map that was perfect the day it was printed. New roads open, old ones close, and the map gets worse without a single line on it changing.

Common pitfall

Pointing at a floating model alias and assuming nothing changed because your code did not is the quiet one. A provider update is a deploy you never reviewed.

How it actually works

Four kinds, each with its own detector. Input drift: query distribution shifts (new intents, languages, lengths); detect with intent-classifier mix, embedding-centroid distance, or Population Stability Index (PSI > 0.2 is a common alarm). Corpus drift: documents added, changed, or stale; detect with index freshness, canary queries, and retrieval-score distributions. Model drift: the provider changes behaviour behind an alias; Chen, Zaharia and Zou (2023) documented large swings between March and June 2023 GPT-4 snapshots on identical tasks. Detect by pinning dated snapshots and running a fixed regression set daily. Concept/label drift: the right answer changes (new regulation, price change); detect with golden-set staleness reviews and user feedback. Monitoring proxies (thumbs-down, abstention rate, average reranker score, answer length) move before quality metrics do; treat a shift in any as a trigger for a targeted eval run.

What I'd ship on day one

Pin dated model snapshots; daily 100-item regression run; weekly full golden set with per-slice trends; dashboards for intent mix (PSI), mean top reranker score, abstention rate, answer length and thumbs-down; index freshness and canary-query probes every 5–15 min; golden items carry an as_of date and are reviewed quarterly.

Worked example

Clinical-coding assistant mapping notes to ICD-10-CM codes. October brings the annual code-set update; 300+ codes added or revised. Inputs look the same, the model is pinned, retrieval works, yet accuracy on affected chapters falls from 92% to 71%: concept drift. Detected because the golden set is tagged by code chapter and re-run weekly; fixed by re-indexing the new code set, adding effective-date filters, and refreshing 15% of golden items with updated expected codes.

In the interview

Name the four drifts and give each a detector, which turns a vague topic into a crisp answer: input drift (intent and embedding mix), corpus drift (freshness and canaries), model drift (pinned snapshots plus a daily regression run) and concept drift (dated golden items). Expect 'which alarm fires first?' Usually a proxy — abstention rate or mean reranker score — days before any quality metric notices.

1
Input drift
intent mix, PSI > 0.2
2
Corpus drift
freshness, canary queries
3
Model drift
pinned snapshot, daily regression
4
Concept drift
dated golden items, feedback
Four sources, four detectors; one dashboard
0481216708090annual code updateWeeks since launch →Golden-set accuracy (%) →
Original slicesCode-set-update slice
Illustrative: slice-level tracking catches concept drift that the global mean dilutes

Numbers worth knowing

PSI alarm
> 0.2intent or length distribution vs 30-day baseline; 0.1–0.2 = watch
Regression-run size
100 items dailydetects ~10-point shifts; full set weekly for smaller ones
Provider snapshot notice
typically months before retirementdated snapshots; floating aliases can change without notice

How to decide

WhenDo this
Input drift with no quality dropAdd new intents to the golden set; no code change yet
Quality drop on one slice, inputs stableCheck corpus freshness and concept changes for that slice
Provider snapshot retiringFull eval on the successor, side-by-side, before switching the pin

Cost maths

Daily regression: 100 items × ~$0.02 = $2/day. Weekly full run of 500 items with judge ≈ $15. Under $150/month total to detect a silent model or corpus change that would otherwise surface through customer complaints.

Operating it

Time to scale up when…
  • PSI > 0.2 on intent mix for a week
  • Any slice drops > 5 points in the daily run
  • Provider announces deprecation of the pinned snapshot
What to monitor
  • Intent-mix PSI vs 30-day baseline; alert > 0.2
  • Daily regression accuracy per slice; alert on a > 5-point drop
  • Mean top-1 reranker score and abstention rate; alert on > 15% shifts
  • Index freshness lag; alert > 2× the ingestion SLA

When it goes wrong

What users saw

A JSON-extraction pipeline's parse-failure rate went from 0.3% to 6% overnight with no deploy

How it was caught

Parse-failure alert on the ingestion queue; the dead-letter queue filled with responses wrapped in markdown code fences

Root cause

The app called the provider through a floating model alias that moved to a newer snapshot with different formatting habits

Fix

Pinned a dated snapshot, switched to native structured outputs with a JSON schema, and added the daily regression run with a parse-rate check

Sources

  1. How is ChatGPT's behavior changing over time? — Chen, Zaharia & Zou, 2023paper
  2. A survey on concept drift adaptation — Gama et al., 2014paper

Check yourself

Three questions. Every option is explained once you answer.

1ConceptWhich detector catches model drift behind a provider alias?
2ScenarioThumbs-down rose on the billing slice only. Intent PSI is 0.05 and nothing was deployed. Where do you look?
3CalculationDaily 100-item regression at ~$0.02 per item, plus a weekly 500-item full run at ~$15. Monthly monitoring cost?