Testing AI and machine-learning features
Test a feature that learned its rules from examples: judge it with criteria and fresh data, and watch for memorising, drift and cheap tricks.
L1–L4 are part of the Pro pass
L0 Explain simply
Analogy: judging a student's essay. A maths test has one right answer, so marking is easy. An essay has no single right answer. A marker uses criteria. Is it clear? Does it use examples? Does it answer the question? A careful school also asks more than one marker.
Daily List is a to-do list app. Leo adds a helper that flags tasks as urgent. He did not write rules for it. He showed it many tasks that people had already marked urgent or not. It found its own pattern. This is machine learning: a feature whose rules come from examples and not from a written rule. It is one part of what people call (AI).
Tom cannot open the helper and read its rules. It will also be wrong sometimes, even when it works well. So Tom does not ask, "Is every answer right?" He asks, "Is it right often enough, on new tasks, for good reasons, and for everyone?" That is judging by criteria, as with an essay.
Tom looks for three traps. Did the helper only learn its examples by heart? That is overfitting. Does it keep changing after release? That is a . Did it find a cheap trick that earns a good score without doing the job? That is .
The picture has limits. An essay marker may explain a mark; some models are interpretable and others need explanation methods whose fidelity must be checked. A marked essay stays marked, but a self-learning helper may change. And Tom marks thousands of essays at once, so he judges rates over many cases and not one case.
(SYNTHETIC / TRAINING ONLY: Daily List and every person named in this lesson are invented.)
PLAIN WORDS · 1 in this section
- overfitting
- learning examples by heart instead of learning the pattern
PICTURE IT
The picture is the one the lesson above opens with. The table below shows how each part of it matches the software.
THE REAL JOB Judging a feature that has no single right answer by clear criteria, fresh examples and several checks.
- Agree the criteria
- Use fresh examples
- Add a second marker
- Watch after release
HOW THE PICTURE MAPS
| In the picture | In the software |
|---|---|
| An essay with no single right answer | A model output with no written rule |
| The marking criteria | The pass marks and checks Tom agrees first |
| A student who memorised last year's exam | An overfitted model |
| A second and third marker | Held-back tasks and a plain baseline |
| A student who never learned the subject and fails every exam | A model that fits too little: low scores on both sets, with no gap |
WHERE THIS PICTURE STOPS
- An essay marker can explain a mark. A model cannot.
- A marked essay stays marked. A self-learning model can change.
- One marker reads one essay. Tom judges rates over many cases.
HOOK
Mark it like an essay.
REMEMBER IT THIS WAY
A sequence: the real steps, in order.
Tom's question has four parts: right often enough, on new tasks, for good reasons, and for everyone.
| In the trick | What it stands for |
|---|---|
| often enough | Is it right often enough, with pass marks Tom agrees first |
| new tasks | Tasks the model has never seen |
| for everyone | Judges rates over many cases |
TELL A FRIEND
Judging an essay: criteria, fresh examples, more than one marker. A student who memorised last year's exam does well only on old questions.
OFTEN MIXED UP WITH How do you know the right answer? Test oracles. The oracles lesson asks how to tell a result is right. This lesson asks how to judge a feature when no rule says what right is.
PRACTISE AND KEEP
Sources for this topic — 12 sources
- Market practice
Certified Tester Artificial Intelligence Testing Syllabus v1.0 (International Software Testing Qualifications Board) ↗ — International Software Testing Qualifications Board (ISTQB) · Mirror copy of the publisher PDF (ISTQB syllabus CT-AI v1.0, 1 October 2021), version checked against the document's own front matter, read in full text: the contents list puts risks of pre-trained models and transfer learning in section 1.8.3, side effects and reward hacking in 2.6, and overfitting and underfitting in 3.5
Text read in full from a mirror copy of the publisher PDF (ISTQB syllabus CT-AI v1.0, 1 October 2021), version checked against the document's own front matter. The page at this URL was not opened. Licence terms were not read, so put it in your own words and do not quote it. Superseded by version 2.0.
- Market practice
Certified Tester Artificial Intelligence Testing certification page, version 2.0 (International Software Testing Qualifications Board) ↗ — International Software Testing Qualifications Board (ISTQB) · Version 2.0 of the certificate covers testing AI systems, including machine learning and generative AI (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Version: Version 2.0. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
Artificial Intelligence Risk Management Framework, version 1.0 (National Institute of Standards and Technology) ↗ — National Institute of Standards and Technology · The Measure function: test sets, metrics and the limits of generalisation are documented during test, evaluation, verification and validation (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
Concrete Problems in AI Safety (Amodei and others, 2016, arXiv 1606.06565) ↗ — arXiv · Reward hacking and negative side effects come from a badly chosen objective (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Version: arXiv preprint, 2016. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
ISTQB Glossary help PDF (CT-AI keywords) ↗ — ISTQB · Glossary excerpt (search excerpt, page not opened): a pseudo-oracle is an independently derived variant of the test item used for comparison. Version 2.0 of the syllabus keeps back-to-back testing as objective AI-6.1.10 (K2), read in full text from a mirror copy of the publisher PDF (ISTQB syllabus CT-AI v2.0, 17 April 2026), version checked against the document's own front matter.
Found through a web search; the page was not opened (search excerpt, page not opened). Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
CT-AI v2.0: The New Standard for Testing AI Systems ↗ — TestCollab · Glossary excerpt (search excerpt, page not opened): a pseudo-oracle is an independently derived variant of the test item used for comparison. Version 2.0 of the syllabus keeps back-to-back testing as objective AI-6.1.10 (K2), read in full text from a mirror copy of the publisher PDF (ISTQB syllabus CT-AI v2.0, 17 April 2026), version checked against the document's own front matter.
Found through a web search; the page was not opened (search excerpt, page not opened). Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
ISTQB releases CT-AI syllabus version 2.0 ↗ — ISTQB · Glossary excerpt (search excerpt, page not opened): a pseudo-oracle is an independently derived variant of the test item used for comparison. Version 2.0 of the syllabus keeps back-to-back testing as objective AI-6.1.10 (K2), read in full text from a mirror copy of the publisher PDF (ISTQB syllabus CT-AI v2.0, 17 April 2026), version checked against the document's own front matter.
Found through a web search; the page was not opened (search excerpt, page not opened). Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
DeepXplore: Automated Whitebox Testing of Deep Learning Systems ↗ — Pei et al. (arXiv 1705.06640) · Definition from the DeepXplore paper's description of adversarial images (search excerpt, page not opened). Version 2.0 of the syllabus covers adversarial testing as objective AI-6.1.4 (K2), read in full text from a mirror copy of the publisher PDF (ISTQB syllabus CT-AI v2.0), version checked against the document's own front matter.
Found through a web search; the page was not opened (search excerpt, page not opened). Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
Certified Tester Artificial Intelligence Testing Syllabus v2.0 (International Software Testing Qualifications Board) ↗ — International Software Testing Qualifications Board (ISTQB) · Mirror copy of the publisher PDF (ISTQB syllabus CT-AI v2.0, 17 April 2026), version checked against the document's own front matter, read in full text: section 4.1.1 (AI-4.1.1, K2) compares the testability of locked and adaptive AI systems; a locked system does not change behaviour after release and an adaptive system can
Actual iSQI-hosted publisher PDF and version front matter inspected. Exact section/page coverage and limits are recorded in the v35 Specialist analysis ledger. Simplified source statements are contextualised separately in lessons, not silently represented as universal technical laws. No source figure or extended copyrighted extract copied.
- Market practice
Technical report 29119-11:2020 on testing AI-based systems, catalogue entry (International Organization for Standardization) ↗ — International Organization for Standardization · Technical report 29119-11:2020, edition 1, published 2020-11: guidelines on the testing of AI-based systems (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). The standard text is sold, so put any detail in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
Technical report 29119-11:2020, national listing (Standards Council of Canada) ↗ — Standards Council of Canada · Publish date 2020-11-26; the report covers the test oracle problem, black-box testing across the life cycle, white-box testing for neural networks, and test environments and scenarios; an AI-based system has at least one AI component (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). The standard text is sold, so put any detail in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
Certified Tester Artificial Intelligence Testing Syllabus v2.0 (International Software Testing Qualifications Board) ↗ — International Software Testing Qualifications Board (ISTQB) · Mirror copy of the publisher PDF (ISTQB syllabus CT-AI v2.0, 17 April 2026), read in full text: section 6.1.9 (AI-6.1.9, K2) A/B testing compares the response of two program variants to the same inputs; it is one approach to the test oracle problem using the existing system as a partial oracle; it generates no test cases; it can test updates of AI-based systems against agreed acceptance criteria; and it relies on statistical tests over multiple runs
Actual iSQI-hosted publisher PDF and version front matter inspected. Exact section/page coverage and limits are recorded in the v35 Specialist analysis ledger. Simplified source statements are contextualised separately in lessons, not silently represented as universal technical laws. No source figure or extended copyrighted extract copied.
Deepest material on this page: L4 — Standards & sources. Where a topic stops short of implementation depth, that is a deliberate coverage decision, not an oversight — see coverage.