Model testing in depth: risks, documents, attacks, drift, fit and comparison tests
Match each model risk to a test, review a model card, run adversarial tests, spot drift, find overfitting, and compare two versions with A/B and back-to-back tests.
L1–L4 are part of the Pro pass
L0 Explain simply
Analogy: a garage checking a car. A garage does not run one test on a car. It checks the brakes, the tyres, the paperwork, how the car handles a bad road, and how it ages. It compares the car with last year's model.
A machine learning model needs the same range of checks. Leo, the developer, has a model that picks the urgent tasks in Daily List, a to-do list app. Tom, the tester, has a list of risks and a test for each.
The risks include bias and tricks that fool the model. A model can fit its training data too closely. A model that was right last year can be wrong now. Tom also reads the model's papers. He compares the new version with the old.
The picture has a limit. A garage can see a worn tyre. Some models can be inspected directly; others require more indirect evidence, alongside behavioural tests.
(SYNTHETIC / TRAINING ONLY: Daily List and every person named in this lesson are invented.)
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 Choosing which model test fits which risk and reading the scores correctly.
- Check function
- Read the documents
- Attack the inputs
- Watch for drift
- Compare versions
HOW THE PICTURE MAPS
| In the picture | In the software |
|---|---|
| Checking the brakes | Smoke and function tests of a new model |
| Reading the service book | Reviewing the model card and documents |
| Driving on a bad road | Adversarial and fuzz testing |
| Wear that builds with the miles | Drift testing |
| Comparing with last year’s model | A/B and back-to-back testing |
WHERE THIS PICTURE STOPS
- A garage can see a worn tyre; some models are interpretable, while others require indirect evidence.
- A car has a fixed design, but a model may keep changing.
HOOK
Brakes, book, bad road, miles, last year.
REMEMBER IT THIS WAY
A sequence: the real steps, in order.
Smoke, documents, attack, drift, compare: one check for each risk.
| In the trick | What it stands for |
|---|---|
| Smoke | smoke testing |
| Documents | documents |
| Attack | adversarial testing |
| Drift | drift testing |
| Compare | back-to-back testing |
TELL A FRIEND
Check a model like a car. Test how it works, read its papers, try it on bad roads, watch it age, and compare it with last year’s model.
OFTEN MIXED UP WITH Precision, recall, drift and the right metric for a model. That lesson explains the scores of a model. This lesson says which tests to run for which model risk and how to read fit and drift.
PRACTISE AND KEEP
Sources for this topic — 9 sources
- Market practice
Certified Tester Artificial Intelligence Testing Syllabus v2.0 (International Software Testing Qualifications Board) ↗ — International Software Testing Qualifications Board (ISTQB) · Section 6.1.1: ML model risks and the testing that mitigates them, including ethical, side-effects, reward hacking, fuzz, performance, smoke and regression testing; version 2.0 GA (17 April 2026), mirror copy of the publisher PDF, version checked against front matter, opened
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
Certified Tester Artificial Intelligence Testing Syllabus v2.0 (International Software Testing Qualifications Board) ↗ — International Software Testing Qualifications Board (ISTQB) · Section 6.1.2: ML model documentation and review: model cards, datasheets for datasets, a checklist of eight content areas and five review aims; version 2.0 GA (17 April 2026), mirror copy of the publisher PDF, version checked against front matter, opened
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
Certified Tester Artificial Intelligence Testing Syllabus v2.0 (International Software Testing Qualifications Board) ↗ — International Software Testing Qualifications Board (ISTQB) · Section 6.1.4: adversarial testing of ML systems: adversarial examples, black-box testing with an equivalent model and transferability, brute force, white-box, manual and automated generation; version 2.0 GA (17 April 2026), mirror copy of the publisher PDF, version checked against front matter, opened
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
Certified Tester Artificial Intelligence Testing Syllabus v2.0 (International Software Testing Qualifications Board) ↗ — International Software Testing Qualifications Board (ISTQB) · Section 6.1.7: drift testing: data drift and concept drift, dynamic testing with user feedback and static testing of distributions; version 2.0 GA (17 April 2026), mirror copy of the publisher PDF, version checked against front matter, opened
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
Certified Tester Artificial Intelligence Testing Syllabus v2.0 (International Software Testing Qualifications Board) ↗ — International Software Testing Qualifications Board (ISTQB) · Section 6.1.8: testing for overfitting and underfitting with validation and test data and learning curves; version 2.0 GA (17 April 2026), mirror copy of the publisher PDF, version checked against front matter, opened
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
Certified Tester Artificial Intelligence Testing Syllabus v2.0 (International Software Testing Qualifications Board) ↗ — International Software Testing Qualifications Board (ISTQB) · Section 6.1.9: A/B testing for ML systems: two variants, partial test oracle, acceptance criteria, self-learning systems, statistical techniques; version 2.0 GA (17 April 2026), mirror copy of the publisher PDF, version checked against front matter, opened
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
Certified Tester Artificial Intelligence Testing Syllabus v2.0 (International Software Testing Qualifications Board) ↗ — International Software Testing Qualifications Board (ISTQB) · Section 6.1.10: back-to-back testing for ML systems: a pseudo-oracle, independence from the system under test, and the difference from A/B testing; version 2.0 GA (17 April 2026), mirror copy of the publisher PDF, version checked against front matter, opened
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.
- Simplified educational illustration
Payments Signal editorial teaching models — Payments Signal
What this simplifies: Daily List, Sam, Nina, Tom, Mei, Leo and Lily are invented, and so are the numbers and examples in this lesson. The lesson is a simplified teaching view; the syllabus and the standards it names go into more detail. This lesson is not a certification of the International Software Testing Qualifications Board (ISTQB) and is not accredited exam preparation.
Used wherever diagrams, scenarios, figures, or example values are didactic constructions rather than sourced facts; every such use carries a simplifications disclosure. All people, companies, banks, and list entries in examples are fictional.
- Market practice
scikit-learn 1.9.1 — Validation curves and learning curves ↗ — scikit-learn developers · Actual scikit-learn 1.9.1 user guide §3.5.1–3.5.2 read 6 November 2026: validation-score selection and learning curves varying training-sample counts. Complete substantive page text read; linked API pages and embedded figures not reviewed or reproduced.
Returned exact title/URL and version1.9.1 verified. This review does not claim opening linked API pages or visually reviewing/reproducing the embedded figures.
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.