Swapping LLMs in Production: Why Accuracy Holds but Your Human-Review Thresholds Break
By Sagar Vadnere · · 20 min read
When you swap the model under a production agent, the number that breaks is rarely accuracy. It's the confidence threshold that decides which outputs complete automatically and which go to a human. That threshold is a business decision — how many errors you'll tolerate, how much review your team can absorb — written on one model's score scale. A new model brings a new scale. Keep the old number and you've silently changed the policy: either more errors flow through unreviewed, or your review queue floods, and an accuracy test will show you neither.
The fix is a short, repeatable migration gate: freeze your labeled set, score both models on it, build a per-attribute table of confidence against observed accuracy, re-pick each threshold against the same business target, canary the result, and keep sampling what the system accepts on its own. If you already have a labeled set, it's days of work. If you don't, building one is the actual project — and you want to start it before the shutdown date, not after.
The Problem: Model Retirements Are Now a Calendar, Not an Event
Commercial models used to feel permanent. They aren't. As I write this, the retirement schedule for the next eight weeks looks like this:
| Date | Retiring | Provider's recommended replacement |
|---|---|---|
| Nov 30, 2026 | claude-sonnet-4-5-20250929 |
claude-sonnet-5-5 |
| Dec 11, 2026 | gpt-5, gpt-5-mini, gpt-5-nano, o3, o3-pro |
GPT-6 / 6.1 family |
| Jan 14, 2027 | GPT-4o, GPT-4o mini, GPT-4.1, GPT-4.1 mini | gpt-6-luna |
| Jan 22, 2027 | claude-opus-4-5-20251101 |
claude-opus-5-5 |
Sources: Anthropic's model deprecations page and OpenAI's deprecations page. Two details matter. Anthropic guarantees at least 60 days' notice; OpenAI guarantees at least six months for generally available models. And if you run Claude through Amazon Bedrock or Google Cloud's managed offering, those platforms set their own retirement dates — so the date on Anthropic's page may not be your date.
The best evidence on how teams handle this comes from a 2026 study, When the Model Retires, which mined 22,555 migration commits across 17,703 GitHub repositories. Its findings read like an incident report for the whole ecosystem:
- An estimated 82% of migrations away from retired models were committed after the shutdown date — after the application had already started failing. The median fix landed 39 days after shutdown.
- 94% of migrating applications had the model identifier hard-coded in source.
- Only about 4.5% of migration commits mention an evaluation or regression suite. The typical migration is a rename.
- Model lifecycles, by trackers' accounts, have shortened from 18–24 months to 6–12.
That last point changes the economics. A migration you do once is a project. A migration you do every six to twelve months, per model, per agent, is an operating process — and right now most teams don't have one.
Why "it still works" is the dangerous outcome
The study's breakage cases are the loud ones: a 404 on every request, a replacement model that rejects a parameter. Those get fixed because someone notices. The failure I care about here is quieter. The new model answers every request, the schema validates, the accuracy test on your golden set passes — and the system's behavior has changed anyway, because the confidence scores your routing depends on no longer mean what they meant last month.
What Accuracy-Only Migration Tests Miss
1. Accuracy and calibration are different properties
Accuracy asks how often the answer is right. Calibration asks what a confidence score means — whether outputs scored 0.9 are actually right about 90% of the time. These two can move independently. Guo and colleagues showed it for neural networks in On Calibration of Modern Neural Networks (ICML 2017): models became more accurate and less calibrated at the same time. The 2026 evidence on LLMs says the same thing more bluntly:
- ConfidenceBench tested verbalized confidence across 15 frontier models: the most accurate model was not the best calibrated, and five of the fifteen scored worse than a calibrated random baseline despite reasonable accuracy.
- A study of reasoning models at EACL 2026 found them typically overconfident — and more overconfident with deeper reasoning.
- Reported Confidence in LLMs Tracks Commitment More Than Correctness found that a model's self-reported confidence predicted whether it would later commit to an answer much better than whether the answer was right. Token log-probabilities, where available, tracked correctness more closely.
Many production pipelines route on exactly the weakest of these signals: a confidence field the model fills in about itself, because log-probabilities aren't exposed for the model they use. That can work — but only as a score you've calibrated against labels, for that model. Swap the model and the calibration is gone.
2. Errors that pass the threshold are invisible by construction
Your review queue shows you the errors humans catch. It can't show you the errors the system auto-accepted, because nobody looks at those — they surface downstream, in a customer complaint or a reconciliation weeks later. So when a new model becomes overconfident, the first visible signal is good news: the review queue shrinks. The dashboard says the migration improved automation. It's actually letting more errors through.
3. A flooded queue looks like a cost problem, not a quality problem
The opposite drift is just as real. If the new model is more cautious, more correct outputs fall under the old threshold and land in review. Nothing is wrong with the outputs, so nobody files a quality incident — but the operations team now reviews several times as many cases, and the business case for the system erodes. Worse, a queue full of outputs that are almost always right is how reviewers learn to approve without reading.
4. Empty values, formats, and parameters change too
A new model may return a blank field where the old one returned a value, or the reverse. Microsoft's guidance on confidence and human review for document extraction makes the point that empty results need their own policy, because confidence on "nothing found" often doesn't separate a true blank from a miss. Output shape and parameters drift as well: in the retirement study, about 7.5% of migration commits mention parameter changes such as a replacement model rejecting max_tokens or a non-default temperature. Every one of those changes validation failure rates, retry counts, and therefore latency and cost.
5. Your judge is a model too
If you score quality with an LLM-as-judge, the judge has a retirement date and a calibration of its own. Change it and your quality trend line can jump with nothing in the system having changed. Treat a judge swap as its own migration: re-measure its agreement with human labels before you compare scores across the switch.
A Worked Example: Same Threshold, New Model, Different System
To make this concrete without exposing anyone's production data, here's a synthetic example. It's built to reproduce the failure patterns above, and every number below comes from running the script in the next section on it.
Imagine a case-processing agent that extracts three attributes — request_type, account_id, and effective_date — and auto-completes any attribute scored at or above 0.85. Nobody derived 0.85; it felt safe. You have 2,000 labeled cases per attribute. The old model is being retired, so you score its replacement on the same cases.
The accuracy gate passes everywhere:
| Attribute | Old model accuracy | New model accuracy |
|---|---|---|
request_type |
91.1% | 92.5% |
account_id |
95.8% | 95.9% |
effective_date |
93.0% | 94.5% |
Now hold the 0.85 threshold constant and look at what the system actually does:
| Attribute | Sent to review (old → new) | Errors auto-accepted (old → new) |
|---|---|---|
request_type |
32.9% → 10.6% | 24 → 96 |
account_id |
16.4% → 70.7% | 2 → 0 |
effective_date |
27.8% → 24.0% | 12 → 10 |
Three attributes, three different stories:
request_type: the silent one. The new model is more accurate but overconfident when it's wrong. At the same threshold, review volume falls by two-thirds and the number of errors completing automatically quadruples — the error rate among auto-accepted outputs goes from 1.8% to 5.4%. Every operational dashboard reports this as an improvement.account_id: the expensive one. The new model is underconfident when it's right. Review volume goes up 4.3×, and reviewers find essentially nothing to fix.effective_date: the boring one. The score scale barely moved, so the old threshold still means roughly what it meant. This is the only attribute an accuracy gate describes correctly.
Notice also that the 0.85 guess wasn't safe before the migration either. On the old model, request_type was already letting through 1.8% errors — with a pessimistic upper bound of 2.65% — against a team that would have told you its target was "about 1%."
What recalibrating gives you
Re-pick each threshold against an explicit target — here, at most 1% errors among auto-accepted outputs, measured as the upper bound of a 95% confidence interval — on each model separately:
| Attribute | Old model threshold → review rate | New model threshold → review rate |
|---|---|---|
account_id |
0.74 → 6.4% | 0.54 → 14.8% |
effective_date |
0.91 → 46.9% | 0.88 → 32.1% |
request_type |
0.92 → 57.6% | none meets target → 100% review |
Two attributes get a new, defensible threshold. The third gets the most useful answer a calibration exercise can give: on this model, this confidence score does not separate right from wrong well enough to automate this attribute at your risk target. No threshold fixes that. You either keep the attribute in full review while you build a better signal — a deterministic check, a cross-field consistency rule, a second-pass verifier — or you don't migrate that node yet.
That outcome is why the gate exists. Without it, request_type would have gone live at 0.85 and quietly quadrupled its escaped errors.
The Migration Gate: Six Steps
In the terms of my G-E-H framework, this is Checkpoint 2 (evaluation) and Checkpoint 3 (human-in-the-loop) re-run every time the model changes. A threshold is a business decision expressed on one model's score scale. When the model changes, you keep the decision and re-express it. (Inference Institute makes the same argument well in A confidence threshold belongs to the model version.)
Step 1 — Freeze what doesn't change
Before you touch the new model, pin everything you'll compare against:
- The ground-truth set, drawn from real production cases with labels confirmed by the people who own the workflow. Freeze a version; don't keep editing it during the migration.
- Prompts, schema, and retrieval configuration. If you change the prompt and the model at once, you can't attribute what moved.
- The business targets, per attribute: the maximum error rate you'll accept among auto-completed outputs, and the review volume the team can actually absorb. These carry over from the old model unchanged. That's the point.
How big does the set need to be? Bigger than most teams expect. If you want to claim "under 1% errors" for an attribute and you observe zero errors, you need roughly 380 auto-accepted examples for the 95% upper bound to fall below 1%. Any errors at all push that higher. Plan for several hundred labeled cases per attribute in the region you intend to automate — the example above used 2,000.
Step 2 — Shadow-score both models
Run the old and new model on the frozen set, with identical prompts and pipeline code, and record per attribute: the output, the confidence, whether it matched the label, and whether it failed schema validation. Where you can, also mirror a slice of live traffic to the new model without acting on its output, so you see the production input distribution and not only the curated one.
Run important cases more than once. Model outputs are stochastic, and a difference you see on one run may not be there on the next.
Step 3 — Build the band table, per attribute, per model
Group outputs into confidence bands and compute accuracy in each band, separately for every attribute and every model. This table is the single most informative artifact in the whole migration. For the synthetic request_type above:
| Confidence band | Old model: n / accuracy | New model: n / accuracy |
|---|---|---|
| 0.80–0.90 | 562 / 95.4% | 320 / 83.4% |
| 0.90–0.95 | 442 / 98.9% | 429 / 93.5% |
| 0.95–1.00 | 554 / 100.0% | 1,149 / 97.0% |
You can see the problem without any further math: the new model puts more than half of all cases in its top band, and 3% of those are wrong. A score of 0.95 from the old model and a 0.95 from the new one are not the same statement.
Report the counts next to every percentage. A band with 40 cases in it cannot carry a production decision, however tidy its accuracy looks.
Step 4 — Re-pick each threshold against the same target
For each attribute, sweep candidate thresholds and, at each one, compute what share of cases would auto-complete and what share of those would be wrong. Choose the lowest threshold whose pessimistic error rate still meets the target — lowest, because it automates the most while staying inside the line. Use an interval bound rather than the raw observed rate, because a point estimate from a few hundred cases is flattering by design.
If no threshold meets the target, the answer is "keep in review." Don't lower the target to make the migration pass.
Then validate the chosen thresholds once on held-out cases you didn't use to pick them. Thresholds tuned and evaluated on the same data look better than they are.
Step 5 — Canary with the old model still reachable
Roll the new model and its new thresholds out to a small, sticky slice of live traffic — bucketed by customer or case, so the same case doesn't bounce between models. Watch the review rate, abstention rate, validation failures, retries, latency, and cost per case against the shadow-run predictions. If they diverge, your labeled set didn't represent production, and that's worth knowing before 100% of traffic depends on it.
Keep the old model configured until its retirement date. Rollback should be a configuration change, not a deploy.
Step 6 — Watch what nobody reviews, and version the decision
Two habits close the loop:
Sample the auto-accepted outputs. It's the only way to measure the errors that escape review. The rule of three gives you a quick sizing: if you review n randomly sampled auto-accepted outputs and find no errors, the 95% upper bound on the escaped error rate is about 3/n. To support a "below 1%" claim, that's roughly 300 samples per attribute per period. Stratify the sample, so small case types get enough attention to have a measured error rate at all.
Version the routing policy with the model. Every threshold should live in a versioned file next to the model ID, prompt version, and the labeled-set version it was derived from — with who approved it. For the worked example, it would look like this:
# routing-policy.yaml: versioned with model, prompts, schema
policy_version: 2026-12-03
model: claude-sonnet-5-5 # replaces claude-sonnet-4-5-20250929
labeled_set: cases-v7 (2,000 per attribute, frozen)
risk_target: "<= 1% escaped errors, 95% upper bound"
attributes:
account_id: { threshold: 0.54, previous: 0.74 }
effective_date: { threshold: 0.88, previous: 0.91 }
request_type: { threshold: null, previous: 0.92,
note: "no safe threshold; full review" }
approved_by: [operations owner, engineering lead]
When someone asks in six months why request_type is fully reviewed, the answer is in the file, not in someone's memory of a meeting.
The Script
The calculation behind steps 3 and 4 is small enough to own outright. It takes a CSV with one row per labeled case, attribute, and model — model, attribute, confidence, correct — and needs only the Python standard library. The full script, with a synthetic-data generator that reproduces the example above, is on GitHub at sagarvadn/llm-threshold-recalibration. This is the core:
import math
GRID = [round(0.30 + 0.01 * i, 2) for i in range(70)]
def wilson_upper(errors, n, z=1.96):
"""Pessimistic error rate: upper end of the 95% Wilson interval."""
if n == 0:
return 1.0
p = errors / n
centre = p + z * z / (2 * n)
margin = z * math.sqrt(p * (1 - p) / n + z * z / (4 * n * n))
return (centre + margin) / (1 + z * z / n)
def operating_point(rows, threshold):
accepted = [r for r in rows if r["confidence"] >= threshold]
escaped = sum(1 for r in accepted if not r["correct"])
return {
"threshold": threshold,
"auto_rate": len(accepted) / len(rows),
"escaped": escaped,
"risk_upper": wilson_upper(escaped, len(accepted)),
"accepted": len(accepted),
}
def pick_threshold(rows, max_risk, min_accepted=100):
"""Lowest threshold whose pessimistic risk meets the target.
Returns None when nothing is safe: keep the attribute in review."""
for t in GRID:
op = operating_point(rows, t)
if op["accepted"] >= min_accepted and op["risk_upper"] <= max_risk:
return op
return None
Run it per attribute and per model, print the band table alongside, and put the output in the migration record. The full version also reports what the old threshold does on each model, which is the comparison that makes the case to stakeholders.
What This Looked Like on a Real System
The synthetic example is clean on purpose. The production version of this lesson, for me, came from the case-processing system I described in Why AI Projects Fail at Implementation: a LangGraph plan-execute-validate-synthesize workflow extracting eight business-critical attributes, with a confidence score per attribute deciding whether the case completes automatically or routes to a reviewer.
Two things from that engagement shaped the gate above. First, the original review thresholds were set on judgment rather than data, and the fix — logging every reviewer correction and computing the error rate of auto-completed outputs by risk tier — is exactly the band table in step 3. Without that correction log, there would have been nothing to recalibrate from. Second, when the model underneath was upgraded, nobody could point to the decision that said which outputs the new model was allowed to complete on its own. We re-derived it in a meeting. That's the gap the versioned routing policy in step 6 closes: the decision exists as an artifact, tied to the model it was made for.
The general pattern: a model upgrade is not a dependency bump. For an agent that acts on its own outputs, it's a change to who is allowed to decide what, and it deserves the same treatment as any other change to decision authority.
What I'd Do Differently
Treat the model ID as configuration with an expiry date. Externalize it, and add a CI check that compares every model ID in use against the providers' deprecation tables and fails the build well before a shutdown date. The retirement study found 94% of migrating applications hard-coded the identifier; most of the 82% that migrated late would have had weeks of warning from a check like that.
Start the gate when the deprecation is announced, not when the shutdown approaches. The compute for shadow scoring takes hours. The labels, the stakeholder sign-off on new thresholds, and the canary take weeks. Sixty days of notice is enough only if day one is when you start.
Keep a "no safe threshold" outcome on the table from the beginning. The most valuable result of a recalibration is sometimes that one attribute shouldn't be automated on the new model yet. If the plan assumes every attribute will keep its automation rate, that result reads as a failed migration instead of a correct one, and the pressure goes toward lowering the target.
Recalibrate the judge separately. If an LLM judge scores quality, migrate it on its own schedule and re-measure its agreement with human labels first. Changing the agent's model and the judge's model in the same release makes every quality trend after it uninterpretable.
FAQ
Do I need to recalibrate if the new model is more accurate?
Yes. Accuracy and calibration are separate properties, and they can move in opposite directions. In the worked example above, all three attributes became more accurate, and one of them quadrupled its auto-accepted errors at the unchanged threshold. An accuracy improvement tells you nothing about what a given confidence score now means.
How many labeled examples do I need per attribute?
Enough to put a meaningful bound on the error rate where you plan to automate. As a reference point, with zero observed errors you need about 380 auto-accepted cases before the 95% upper bound drops below 1%; with a few errors, more. Several hundred to a couple of thousand labeled cases per attribute is a realistic range for business-critical fields.
Can I trust the model's self-reported confidence score?
Not on its own. Research in 2026 found that verbalized confidence tracks a model's willingness to commit to an answer more than whether the answer is right, and that reasoning models tend to be overconfident. A self-reported score becomes usable once you've measured, on labeled data, how its bands map to observed accuracy — for that specific model. Where you can, combine it with signals that don't come from the model's opinion of itself: deterministic checks, cross-field consistency, and agreement across repeated samples.
What should I do if no threshold meets my risk target on the new model?
Keep that attribute in human review on the new model, and treat improving the signal as the work item: add deterministic validation, a consistency rule, or a separate verifier step, then re-run the gate. Don't loosen the target to make the migration pass. If the attribute's automation is essential to the business case, that's a reason to delay migrating that node, not to ship it blind.
How long does a migration gate take?
If you already have a frozen, labeled set and a scoring harness, a few days: hours of compute, then review of the band tables, sign-off on the new thresholds, and a canary. If you don't have a labeled set, building one is the real project, and it can take weeks because it needs time from the domain experts who own the workflow. That's the argument for building it before the first retirement notice arrives.
Does this apply if I only use one model for everything?
Yes, and the risk is arguably higher, because a single retirement changes every node at once. The gate runs per attribute or per decision, so the work scales with how many decisions the agent makes automatically, not with how many models you use.
The Takeaway
A model swap keeps the API contract and changes the meaning of every confidence score your agent routes on. Accuracy tests won't show it. Your review dashboard may even report it as an improvement.
Keep the business decision — how many errors you'll accept, how much review you can absorb — and re-express it on the new model's scale: freeze, shadow, band table, re-pick, canary, watch. Then write the result down next to the model ID, so the next retirement starts from a record instead of a meeting.
With retirements now landing every few months, this isn't a one-off cleanup. It's part of operating an agent.
Migrating a production agent off a retiring model? Use the contact section below and I'm happy to compare notes on your gate.
Related reading
Get in Touch
Want to collaborate or just say hi? Reach out!