Regression testing
How to Detect AI Model Regressions Before a Release
Find the workflows a new model breaks by comparing the same test cases before and after an update.
A model change can improve the overall pass rate while breaking the workflow that matters most. A regression test compares the old and new versions on the same tasks and shows which outcomes changed. For a product team, the goal is to locate losses, understand their impact on users, and decide whether to release, narrow the rollout, or fix the candidate. Keep the evidence tied to the exact versions and test conditions so someone else can reproduce the decision. Anthropic’s guide to capability and regression evals
Replay both versions under comparable conditions
Start with an unchanged set of reviewed cases. Record the model version, prompt, retrieval snapshot, tool configuration, rubric, and expected outcomes. If the release replaces the entire system, compare the old and new systems first to measure the effect people would see. Then isolate the components changed in any case that fails. A policy update can legitimately reverse the expected answer. Freeze the policy or explicitly version the expectation so a changed policy does not get counted as a model regression.
Plan slice checks before reading the results. Pick areas where an error would cause extra work, such as deadlines, requests that involve multiple actions, or ambiguous instructions with a safe handoff. Include repeated runs for outputs that vary, and record how the decision changes across those runs. A single outcome may be useful evidence for diagnosis. A repeatable pattern is stronger evidence for a release decision. Anthropic’s guidance on planned comparisons and repeated runs
Report the cases that changed sides
Suppose a fictional support summarizer passes 182 of 200 cases in the baseline and 186 in the candidate. Both pass on 176 cases. Six cases that used to pass now fail, ten former failures now pass, and eight fail in both versions. The headline gain is two percentage points. The six degraded cases are the product team’s immediate reading list because they reveal the cost of the change.
Now examine a protected group of 15 messages that contain a cancellation or deadline. On that group, the baseline passes 14 and the candidate passes 11. The team had agreed to allow at most one fewer pass in that group before reviewing the failed cases. A decline of three triggers the review rule. If the new failures reverse the requested action or omit the deadline, the team should limit the rollout even when other categories improved. State the denominator and the agreed rule when presenting the decision.
Name the next step and keep measuring
For each meaningful regression, record the smallest reproducible input, the old and new outputs, the relevant evidence, and the likely owner. If a candidate drops dates only when retrieval returns long documents, replay the failed cases with the same short and long evidence. That makes the result specific enough to decide whether to change the prompt, the retrieval configuration, or a check that routes uncertain drafts to review. Add confirmed failures to the working regression suite after diagnosis.
Check the same risks after release
After fixing the release blocker, rerun the full comparison and review a small, representative sample in deployment. Track changed cases separately from aggregate quality. A new traffic mix, such as more messages with multiple requests, may expose a problem a frozen suite lacks. When that happens, add representative examples to the next evaluation version and keep the old results for comparison. A usable regression process gives the team a way to connect slower moving quality trends with individual release decisions. NIST’s guidance on testing and monitoring deployed systems