Stockertim Dictionary · Artificial intelligence · Technology
Regression testing
Also called regression tests, regression test
In short
Regression testing means re-running earlier tests after any change to a system, such as a new prompt, model or document, to confirm that nothing that used to work has broken.
- Advanced
- Process
- Checked
In detail
In software, a regression is a fault in something that previously worked. AI systems are especially prone to them, because changes ripple in hard-to-predict ways: a reworded prompt fixes one case and breaks three others, an updated model handles dates differently, a new document in the retrieval collection changes which passages are found. Regression testing catches these before users do.
The core is a fixed test set of tasks with expected results, covering ordinary cases and every failure seen before. After any change, the whole set is run and the results compared with the last accepted run. Tests may check final answers, individual steps such as the right tool being called, or both. Because AI outputs vary, tests often run several times or score against a rubric rather than requiring identical text.
A team agrees in advance what counts as a pass: for example no fall in overall score and no new failure on critical cases. Changes that fail are held back. The test set grows every time a new fault is found, so the same mistake is caught automatically next time.
Worked example
Kite & Co Accountants updates the prompt behind its invoice agent and reruns its 120-task regression suite.
- Before the change: 112 / 120 = 93.3% passed
- After the change: 109 / 120 = 90.8% passed
- Change: 112 - 109 = 3 fewer passes, including one critical case on VAT.
The change is held back until the three new failures are fixed, and the VAT case stays in the suite.
In practice
Teams run regression suites automatically whenever a prompt, model, tool or document collection changes, block releases that fail and add each new incident as a test.
Watch out
- Passing the cases you just fixed is not regression testing; rerun everything.
- A model update from a provider is a change too, even if nobody on the team made it.
Learn it properly
Official sources
- NIST AI RMF Playbook · National Institute of Standards and Technology
- Guidelines for secure AI system development · National Cyber Security Centre
Facts last checked on 3 November 2026.
Education, not advice: the Stockertim Dictionary explains what terms mean. It never recommends buying or selling anything.