Regression Gates for AI Systems
In this article
- Write a release policy that compares a candidate with a versioned baseline run under the same conditions and returns PASS, BLOCK or REVIEW.
- Explain why a broken hard invariant or a critical slice below its minimum decides the outcome whatever the overall pass rate does.
- Triage a failed condition before any threshold changes, and tell a result that needs a rerun from one that settles the decision.
- Write a gate exception with one condition, an owner and an expiry, and say what it can never cover.
- Terms defined here: gate exception.
Overview
The eval results are in, the new version scores higher than the old one, and someone asks: does it ship? The gain may be noise, one case may have broken a rule that must never bend, and one group of customers may be worse off while the total rises.
Brightline, an invented home-internet provider, runs a support assistant on its website. It answers customers and can look up an order, issue a refund of at most $50 and hand a conversation to a person on the support team. The team wants to move it from model version orbit-flash-2 to orbit-flash-3 (both names invented), and on the 200-case release set the candidate passes 182 cases (91%) against the baseline's 176 (88%). The company, its cases and all numbers here are made up.
The whole picture: a gate is a policy written before the run. It compares the candidate with a recorded baseline run under the same conditions and returns PASS, BLOCK or REVIEW. Some conditions decide on their own, whatever the average does. A failure is investigated before anyone touches a threshold, and the only way to let one through is a written exception with an owner and an end date.
Sign in to keep reading
The rest of this article opens with an account. An account also keeps your progress and quiz results on every device, and lets you follow news for up to five topics.
Still to read in this article
- From one rule to a policy
- A baseline is a recorded run, not a number
- The policy, written before the run
- Brightline's run
- Triage before thresholds
- Gate exceptions
- In production
- Common mistakes
- Sources
- Check yourself, 5 questions