Blog

How to test a model upgrade before you switch

To test a model upgrade before you switch, run the old and new versions on the same frozen test cases, with the same prompts, tools, and settings, several times each, and compare pass rates case by case as well as on average. A new model can pass more cases overall and still fail cases the old one got right, so read every case that flipped from pass to fail, and check output format, latency, and cost per case too. Then send a small share of live traffic to the new version with a rollback path, widen it only while the checks hold, and re-run the frozen set on a schedule after the switch. The figures on this page come from public papers, not Slancha results.

A new model version can raise the average and still break the cases your users rely on. Most of the work in an upgrade check is making the comparison fair: the same inputs, more than one run, and a close read of each case that changed.

By Slancha. Published .

1. Freeze the inputs

An upgrade test compares two models, so change only the model. Keep the same test cases, the same prompts, the same tool definitions, and the same settings, such as temperature and maximum output length. Pin the exact model version on both sides. If either side points at an alias the provider can move, you do not know which model you tested.

Draw the cases from real traffic and from past failures. Production traces give you the inputs users send, and the bugs you already fixed tell you what broke before. The post on agent evals from production traces covers how to pick those cases and write the expected behavior for each. Save the set with a version number, and do not edit it during the comparison. If you add a case, add it to both sides and re-run both.

Size the set before you start. A small set cannot tell a real change from noise. The guide to how many examples an eval needs shows how many cases a given margin takes.

2. Run each version more than once

One run of each model is not a comparison. Outputs vary from run to run, even with settings meant to be fixed. Atil and co-authors (2024) ran five LLMs configured to be deterministic on eight common tasks, 10 runs each. They saw accuracy variations of up to 15 percent across runs, and a gap of up to 70 percent between the best and worst possible results. None of the models gave repeatable accuracy across all tasks.

So run the old and new versions several times each on the frozen set. Report each version's pass rate with a margin, and treat a gap smaller than the run-to-run spread as no change. Record which runs passed each case, since the next step needs it. The post on measuring output consistency covers how to measure that spread.

Repeat runs multiply the bill and the wait. The guide to faster evals covers subsets, caching, and concurrent calls that keep a repeat run short, and the guide to cutting eval cost covers the judge calls.

3. Compare case by case

An aggregate pass rate hides the cases that changed. Compare each case across versions and sort it into a group: passed on both, failed on both, new wins, and regressions. Research on model updates calls a regression a negative flip: a case the old model got right and the new one gets wrong.

Negative flips appear even when the new model is better on average. Yan and co-authors (CVPR 2021) found that when image classifiers moved to newer architectures, overall error dropped but negative flips remained, in many cases on the same order as the accuracy gain. Training the same architecture twice could cause regression. Echterhoff and co-authors (2024) saw the same pattern in LLM updates: cases that were correct became wrong after the base model changed, across a diverse set of tasks and models, even when the downstream training stayed the same. Cai and co-authors (NeurIPS 2022) measured it in structured prediction for NLP and defined backward compatibility as not regressing on cases the old model handled.

So read the flipped cases, not only the count. A regression on a case your users hit every day matters more than a few wins on rare ones. A case that flips in some runs and not others is noise to flag, not a regression.

Check the prompt as well as the model. A prompt tuned for the old model may not suit the new one. Sclar and co-authors (ICLR 2024) found performance differences of up to 76 accuracy points from small changes in prompt format, in few-shot settings on an open model. They also found that format performance only weakly correlates between models. If the new model loses a case, try the prompt variants you would ship before you blame the model, and test any prompt change on both versions.

Check the shape of each output, too. Does the JSON still parse? Did the length change? Does the new model refuse requests the old one handled? Log latency and cost per case next to the pass result, so a slower or pricier upgrade shows up before launch.

4. Canary the switch

A frozen set covers the cases you thought of. Live traffic covers the rest. Send a small share of requests to the new version, and keep the old version serving the rest. Pick the watch metrics before you start: error rate, format failures, refusals, latency, cost per request, and any user signal you trust, such as retries. Write down the threshold that triggers a rollback, and make the rollback one switch, not a deploy.

Widen the share in steps while the metrics hold. Keep the pinned old version available until the new one has run at full traffic long enough to cover your weekly patterns. Sample canary traces into the frozen set, so the next upgrade test includes what this one missed.

5. Keep checking after the switch

A model behind an alias can change under you. Ma, Yang, and Kästner (2023) note that LLM APIs are often updated without notice and scheduled for deprecation, which forces users to keep adapting to new models. In their case study, an API change caused a performance regression and affected prompt design choices. They argue that regression testing for LLMs needs changes to traditional testing, because of different notions of correctness, brittle prompts, and non-determinism.

Pin versions where the provider allows it. Re-run the frozen set on a schedule and on every version change, including a change of judge model if you grade with one. A new judge can shift grades with no change in the model under test, so check the judge against your own labels first, as the guide on cheaper LLM judges describes. Compare each scheduled run with the last accepted run, case by case, with the same diff as before.

Where Slancha fits

Slancha aims to make the expensive part of evals faster and cheaper. Every upgrade check means repeat runs and judge calls over the same cases, and you run it again on each version change. That is the expensive part. You keep your current eval or observability platform for traces and review. Pilots by arrangement.

Related: the guide to what LLM evals cost and the eval cost calculator.

Questions people ask

What should I test before switching to a new LLM?

Run the new model on the same frozen cases, prompts, tools, and settings as the current one, several times each. Compare pass rates with a margin, then diff case by case for regressions and new wins. Check output format, refusals, latency, and cost per case, then send a small share of live traffic to the new model with a rollback path.

How many times should I run each model?

Enough times that the gap you care about is bigger than the run-to-run spread. One study saw accuracy vary by up to 15 percent across 10 runs at settings meant to be deterministic. Run both versions the same number of times and compare ranges, not single results.

The new model has a higher pass rate. Can I switch?

Not yet. A higher average can hide new failures on cases the old model passed. List every case that flipped from pass to fail, read each one, and decide whether those cases matter to your users before you switch.

Do I need to change my prompts for the new model?

Maybe. Small changes in prompt format can swing results, and a format that works for one model may not work for another. Test the prompt you plan to ship on both versions, and treat a prompt change as part of the upgrade.

How do I catch a model changing under an alias?

Pin the exact version where you can, and re-run the frozen test set on a schedule and on any version change. Compare each run with the last accepted one, case by case, so a quiet change shows up as flipped cases.

Sources

  • Positive-Congruent Training: Towards Regression-Free Model Updates, Sijie Yan, Yuanjun Xiong, Kaustav Kundu, Shuo Yang, Siqi Deng, Meng Wang, Wei Xia and Stefano Soatto, CVPR 2021 (oral), arXiv:2011.09161, 2020. Claims used: negative flips are samples the old model classified correctly and the new one incorrectly (abstract, section 1); negative flips remain non-negligible as overall error drops across architecture updates, in many cases the same order of magnitude as the accuracy gain, and training the same architecture twice can cause regression (section 1 and figure 2 caption).
  • MUSCLE: A Model Update Strategy for Compatible LLM Evolution, Jessica Echterhoff, Fartash Faghri, Raviteja Vemulapalli, Ting-Yao Hu, Chun-Liang Li, Oncel Tuzel and Hadi Pouransari, arXiv:2407.09435, 2024. Claims used: when pretrained base models are updated, fine-tuned task adapters show negative flips (previously correct instances predicted incorrectly); model update regression observed on a diverse set of tasks and models, even when downstream training procedures stay identical (abstract).
  • Measuring and Reducing Model Update Regression in Structured Prediction for NLP, Deng Cai, Elman Mansimov, Yi-An Lai, Yixuan Su, Lei Shu and Yi Zhang, NeurIPS 2022, arXiv:2202.02976. Claims used: backward compatibility requires that the new model does not regress on cases its predecessor handled correctly; the paper measures model update regression in structured prediction (abstract).
  • Non-Determinism of "Deterministic" LLM Settings, Berk Atil, Sarp Aykent, Alexa Chittams, Lisheng Fu, Rebecca J. Passonneau, Evan Radcliffe, Guru Rajan Rajagopal, Adam Sloan, Tomasz Tudrej, Ferhan Ture, Zhe Wu, Lixinyu Xu and Breck Baldwin, arXiv:2408.04667, 2024 (v5, April 2025). Claims used: five LLMs configured to be deterministic, eight common tasks, 10 runs; accuracy variations up to 15% across runs; gap of up to 70% between best and worst possible performance; none of the LLMs consistently delivers repeatable accuracy across all tasks (abstract).
  • Quantifying Language Models' Sensitivity to Spurious Features in Prompt Design or: How I learned to start worrying about prompt formatting, Melanie Sclar, Yejin Choi, Yulia Tsvetkov and Alane Suhr, ICLR 2024, arXiv:2310.11324. Claims used: performance differences of up to 76 accuracy points from subtle prompt-format changes in few-shot settings on one open-source model; format performance only weakly correlates between models (abstract).
  • (Why) Is My Prompt Getting Worse? Rethinking Regression Testing for Evolving LLM APIs, Wanqin Ma, Chenyang Yang and Christian Kästner, arXiv:2311.11123, 2023 (conference version, v2 February 2024). Claims used: LLM APIs are often updated without notice and scheduled for deprecation, forcing users to adapt to evolving models; in a toxicity-detection case study this caused performance regression and affected prompt design choices; regression testing LLMs needs changes to traditional testing because of different correctness notions, prompting brittleness and non-determinism (abstract).

Checked against arXiv (2011.09161, 2407.09435, 2202.02976, 2408.04667, 2310.11324, 2311.11123; abstract pages, plus the 2011.09161 PDF for section 1 and figure 2) on 10 November 2026.