Before a model migration you replay a week of gateway-logged requests on the candidate; how do you compare answers when the log holds no labels?
answer
- agreement is not quality
- the incumbent's own noise
- cheap structural checks first
- diff by output type
- people read the disagreements
basics
~20 sRerun the incumbent on the same requests to measure its own noise floor, then compare the candidate on label-free signals: format validity, tool-call agreement, refusals, truncation, field-level or semantic diffs, and human review of sampled disagreements.
solid answer
~50 sWithout labels a replay measures difference, not correctness, so I first rerun the incumbent on the same requests: the share where it disagrees with its own logged answers is the noise floor, and only the candidate's disagreement above that floor is signal. Then I run checks that need no labels: schema validity, parse failures, refusal and empty-answer rates, answers cut off by the output limit, and length and latency distributions. I diff by output type: exact match for classification, field by field for extraction, tool name and arguments for tool calls, and embedding similarity or a pairwise judge for free text, as triage only. Finally I cluster the disagreements and have people review a stratified sample, because a difference can be the candidate being better. The replay shows behaviour on last week's requests, not user outcomes; those still need an online test.
go deeper
Recall that without labels a replay shows where two models' answers differ, not which answer is right.
Explain the label-free checks: schema validity, refusals, truncation, tool-call agreement, and a diff chosen to fit each route's output type.
Show the noise floor from rerunning the incumbent, and the human review of a stratified sample of disagreements before any verdict.
Say what the replay may decide: it can block a migration on clear regressions but cannot approve one alone, because user outcomes need an online test.
A team plans to switch a route from its current model, the **incumbent**, to a **candidate**. The gateway has logged a week of that route's requests with full bodies, so the team replays them on the candidate. The log holds requests and the incumbent's answers but no **labels**: nobody marked which answers were right. A replay therefore measures *difference*, and the work is turning difference into evidence. ## What a label-free replay can and cannot tell you - It **can** show where the candidate behaves differently, where it breaks formats or refuses, and how its latency and token usage compare, on real traffic rather than a hand-picked set. - It **cannot**, on its own, say which of two different answers is better. A difference may be the candidate fixing the incumbent's mistake. - It **cannot** show how users will respond. That needs an online test, such as shadow traffic or a staged rollout, which is a different topic. ## Step 1: measure the noise floor Compare the candidate with the logged answers and some of the differences will be noise: sampling at non-zero temperature, provider-side variation, small changes in the gateway's own translation since the logging. So: 1. Rerun the **incumbent** on the same requests, at the same time as the candidate. 2. Measure how often the incumbent disagrees with its own logged answers. That share is the **noise floor**. 3. Measure how often the candidate disagrees with the logged answers. Only the excess over the floor is signal. In one scenario, a classification route replays 40,000 requests: the incumbent disagrees with its own log on 5% of them and the candidate on 8%, so roughly 3 points, about 1,200 requests, are attributable to the switch. Comparing the candidate with the fresh incumbent run as well as with the log separates drift since logging from the candidate's own change. ## Step 2: checks that need no labels - **Format validity:** does the output parse, and does it satisfy the route's output schema? - **Refusals and empty answers:** has the rate moved? - **Truncation:** how many answers stop because they hit the output-token limit? - **Tool-call agreement:** same tool, same arguments, same decision to call a tool at all? - **Distributions:** answer length, latency and token usage per route. A sharp shift in length is often the first visible symptom of a behaviour change. ## Step 3: diff by output type | Route output | Comparison | Watch out for | |---|---|---| | A label from a fixed set | exact match, and which labels moved to which | a shift concentrated in one label | | Structured extraction | field-by-field diff after schema validation | whole-string similarity hiding one wrong field | | Tool calls | tool name, then argument diff | equivalent arguments written differently | | Free text | embedding similarity, a pairwise preference judge | similarity misses a flipped fact; judges favour some styles | For free text, an automated score is a **triage** device that ranks which disagreements to read first, not a verdict. How to build and validate a judge model is a topic of its own. ## Step 4: read the disagreements 1. **Cluster** disagreements by route, intent or the check that flagged them. 2. **Sample** each cluster, weighted so small clusters still get read; a rare cluster can hold the worst regressions. 3. **Sort** each reviewed pair as better, worse or equivalent. 4. **Decide on the worse share** in the routes that matter, not on the raw disagreement rate. Reviewed pairs are the beginning of labels. Turning them into a maintained evaluation set, and gating later changes on it, are separate pieces of work. ## What the replay leaves unproven - **Last week is one week.** Seasonal and rare requests may be missing from it. - **Single requests, not conversations.** Later turns of a logged conversation are conditioned on the incumbent's earlier replies, which needs its own replay method. - **No user outcome.** A replay can block a migration on clear regressions; approving one still needs an online signal. Put together, the replay's output is a short, honest report: the noise floor, the candidate's excess disagreement per route, the label-free check results, and the better, worse and equivalent counts from review.
- Why not compare the candidate directly against the answers stored in the log?Because part of that difference is noise the incumbent itself would show today: sampling at non-zero temperature, provider-side changes and changes in the gateway's own translation. Rerunning the incumbent now on the same requests separates the candidate's real changes from the variation you would see without migrating at all.
- In one replay, the candidate's disagreement runs 3 points above the noise floor. Does the migration fail?Not by itself. Disagreement says where the candidate behaves differently, not that it is worse. Review a stratified sample of the disagreements and sort them into better, worse and equivalent; the migration fails on a worse share in routes that matter, not on the raw difference.
- When is an automated pairwise judge acceptable for the free-text routes?As a triage tool that ranks which disagreements people read first, after its verdicts have been spot-checked against human ones on a sample from this route. Treat it as a filter, not the decision; designing and validating judges is a subject of its own.
- A high agreement rate with the old answers proves the candidate is good enough.
- Every difference from the logged answer is a regression.
- Rerunning the incumbent wastes money; compare straight against the logged answers.
- One similarity score averaged over all routes is enough to decide.
- Replaying last week's traffic shows how users will react to the new model.