Acceptance criteria for AI-based systems
Why This Matters
“The model must be accurate” cannot be tested. Nobody can say when it passes, so it never fails, and the discussion happens after go-live instead of before. Good acceptance criteria for AI look different from those for conventional software: they are statistical, they have thresholds, and they cover more than correctness. This lesson shows how to write them.
What you will learn
- Why acceptance criteria for AI are usually statistical or threshold-based
- Examples of acceptance criteria for each quality characteristic from lesson 6
- How to turn a vague requirement into a testable criterion
Syllabus: AI-2.2.1.
Not pass/fail, but how often and how well
A conventional acceptance criterion is binary: “the invoice total includes VAT”. A single counterexample is a failure. AI-based systems are wrong some of the time by design, so their criteria are:
- statistical: “at least 95% of the images classified correctly”
- probabilistic: “with 95% confidence, recall is above 90%”
- threshold-based: “responds within 1 second”, “hands over control within 0.5 seconds”
A good criterion names what is measured, on which data or in which situation, and the threshold. For statistical criteria, the size of the test set and the confidence level matter too; lesson 44 shows how to calculate them.
Examples per quality characteristic
The syllabus gives examples for each characteristic. They show the pattern: measurable, with a number, in a defined situation.
| Characteristic | Example acceptance criteria |
|---|---|
| AI functional correctness | The image recognition model achieves at least 95% accuracy. The defect-prediction model achieves at least 90% recall. |
| Functional adaptability | The engine management system adapts within 20 seconds after the aircraft crosses an altitude threshold. After a user has watched three documentaries, at least 40% of the recommendations on their home page are documentaries. |
| User controllability | A supervisor can take control of a drone within 0.5 seconds of a distress signal. A farm system alerts the farmer when sensors degrade by 30%, and deactivates itself at 50% if the farmer does not respond. |
| Transparency | Sufficient information about a third-party model and the origin of its data is available. The prediction endpoint returns the identifier of the deployed model version and a link to its documentation. |
| AI robustness | The response time of a prediction stays under 1 second during a 30-second database outage. An edge device switches to a reduced-power mode instead of crashing when it exceeds 85 °C. |
| Intervenability | The production line shuts down within 0.5 seconds of a breach of the safety zone. An engineer has a 30-second window to veto critical automated actions in the power grid. |
| Societal and ethical risk mitigation | The model does not discriminate between ethnic groups, measured with a stated fairness metric. The chatbot refuses harmful requests in at least 95% of the red-team tests. |
| Safety | The non-AI steering components meet ASIL C of ISO 26262-6. An explainability tool maps input to output with at least 99.9% accuracy. Control signals that exceed the limits by more than 10% are corrected within 0.15 seconds. |
Notice that most of these criteria are not about the model’s accuracy at all. An AI system can be accepted or rejected on how fast humans can take over, on what it does when the database goes down, or on how it treats different groups.
From vague to testable
A method that works for almost any vague requirement:
- Which quality characteristic is it about? “Accurate” is functional correctness; “fair” is societal and ethical risk mitigation; “safe to use” can be several.
- Which metric measures it? Accuracy, recall, a fairness metric, a time in seconds.
- On which data, or in which situation? The test set, a specific group, a database outage, night time.
- What threshold must it meet? And for statistical criteria: with which confidence?
Example. “The fraud model must catch fraud.”
- Characteristic: AI functional correctness.
- Metric: recall on fraud (the share of real fraud cases flagged), because missing fraud is the expensive error; plus precision, because too many false alarms overload the investigators (lesson 18).
- Data: an independent test set of at least 2,000 recent transactions, labelled by the fraud team.
- Threshold: recall of at least 90% and precision of at least 60%, at 95% confidence.
Result: “On an independent test set of at least 2,000 labelled transactions from the last three months, the fraud model achieves a recall of at least 90% and a precision of at least 60%, at a 95% confidence level.”
Exercise
Rewrite each vague requirement into one or more testable acceptance criteria. Name the quality characteristic.
- “The chatbot must be safe.”
- “The loan model must be fair.”
- “Users must be able to stop the system.”
- “The model must keep working when things go wrong.”
Show suggested answer
There are many good answers; these show the pattern.
- Societal and ethical risk mitigation. “On the red-team regression set of at least 300 harmful prompts, the chatbot refuses at least 98%, and never gives dosage advice for prescription medicines.” (Lesson 29 shows where such a set comes from.)
- Societal and ethical risk mitigation. “On the test set, the approval rate for any gender or age group differs by no more than 5 percentage points from the overall approval rate, for applicants with the same income and credit score.” Any fairness criterion needs a defined metric; there are several, and they can contradict each other, so the choice is a business and legal decision (lesson 35).
- User controllability (or intervenability, if it is about preventing harm). “A support agent can disable automated replies for a conversation in one action, taking effect within 2 seconds.”
- AI robustness. “When the feature store is unavailable, the API returns a valid fallback answer within 1 second, flagged as a fallback, instead of an error.” And: “With 5% of the input fields missing, accuracy drops by no more than 3 percentage points.”
Exam-style questions
1. Which is the best acceptance criterion for an image recognition model?
- A. The model should recognise images well
- B. The model achieves at least 95% accuracy on an independent test set of 1,000 labelled images
- C. The model is better than the previous version
- D. The model never makes a mistake
Show answer
2. “An engineer has a 30-second window to veto critical automated actions in the power grid.” Which quality characteristic does this acceptance criterion address?
- A. Intervenability
- B. Functional adaptability
- C. Transparency
- D. AI functional correctness
Show answer
3. Why are acceptance criteria for AI-based systems often statistical rather than binary?
- A. AI-based systems cannot be measured
- B. AI-based systems are expected to make some errors, so criteria set an acceptable level of performance instead of requiring perfection
- C. Binary criteria are not allowed by the EU AI Act
- D. Statistical criteria are easier to write