AAIR lesson 6: AI testing and operation
A model is ready for use only when testing against criteria set in advance shows that it behaves acceptably, and it stays fit for use only while someone watches how it behaves. That is the substance of two AAIR subtopics: 2B, model training, testing and validation, and 2C, implementation, maintenance and decommissioning. Three facts organise the lesson. A model learns its behaviour from training data, so training is a risk event. A single test result proves little unless the acceptance threshold was fixed beforehand. And an AI system can change its risk profile without any code change, through drift.
Training: where behaviour is created
Training is the step in which a model’s behaviour is formed from data. From a risk view the questions are about control rather than mathematics:
- Who may start a training run, with what data, and who approves it? An unapproved retraining run is a change to production behaviour.
- Is the training data suitable? Gaps, errors, bias and poisoned records all end up in the model (lesson 7 covers data quality).
- Is the process reproducible? Recording code version, data version, settings and results lets the organisation explain, repeat or roll back a result.
- Is there leakage? If test data was visible during training, performance looks better than it will be.
Testing and validation: different questions
Testing and validation are often used loosely together, but the kinds of evidence differ and are worth studying separately. A useful way to keep them apart is to ask what each answers.
| Evidence | Question it answers |
|---|---|
| Performance testing on held-out data | Does it work on cases it has not seen? |
| Fairness testing | Are outcomes comparable across affected groups? |
| Robustness and adversarial testing | How does it behave on odd, noisy or hostile input? |
| Security testing | Can the system or its data be attacked? |
| Independent validation | Does someone not involved in building it agree the evidence supports use? |
| User acceptance and pilot | Does it work in the real process with real people? |
A model can pass one row and fail another, so the test plan should match the risks identified at design. Independent validation relates to the three lines model: the team that built a system should not be the only one to judge it. Whatever the result, the decision rests on acceptance criteria defined before testing. Without them a test yields a number, not a decision. See the qualitative vs quantitative page for how measured results are turned into ratings.
Implementation and maintenance
Implementation moves the system into real use. Sensible controls are a documented go-live approval, a staged rollout to a limited group first, training for the people who will use it, and a fallback process if behaviour proves unacceptable.
Maintenance is where AI differs most from conventional systems. Behaviour can change in three ways:
- The organisation retrains or tunes the model.
- A provider updates a hosted model, which may happen without the customer’s own change record.
- Drift. The world moves away from the training data, so accuracy or fairness degrades on a system nobody touched. Data drift is a change in the inputs; concept drift is a change in the relationship between inputs and the right answer.
Therefore AI risk belongs in change management: retraining, prompt or configuration changes, provider version changes and new data sources should each trigger a defined review. Monitoring, covered again in lesson 10, supplies the evidence that drift is occurring.
Worked example: a demand forecast at a 200-person retailer
A 200-person retailer deploys a model forecasting weekly stock needs. Before launch, the team tested it on last year’s sales and the result met the written threshold. Eighteen months later a competitor opens nearby and buying habits shift. Forecast errors grow, shelves empty, and nobody notices for weeks because no one was assigned to review accuracy.
An analyst reviewing the case identifies the gaps. No monitoring threshold existed after go-live, so nothing alerted anyone. No owner was named for model performance. Retraining happened ad hoc without a change record. The fix: assign a model owner, track forecast error weekly against a limit, schedule a periodic revalidation, and require a change ticket for any retraining. The model itself was never faulty at launch; the process around it was incomplete.
Decommissioning
Retiring a system does not end its risk. A decommissioning plan should address:
- The model artefact, which encodes what it learned and may be sensitive.
- Training and operational data, with retention and deletion duties.
- Records of past decisions, which may need to stay explainable and defensible.
- Dependencies, such as downstream processes, integrations and access accounts.
- The register entry, updated to show retired status.
Removing a person’s record from a dataset does not remove its influence from a model already trained on it, which is a reason to plan data handling before training begins.
Easy to confuse
- Testing vs validation. Testing produces evidence; validation judges whether the evidence supports the intended use, ideally independently.
- Drift vs a defect. A system can degrade with no bug and no change.
- Retraining vs routine maintenance. Retraining changes behaviour and needs change control.
- Switching off vs decommissioning. The data, artefact and decision records remain.
Key points
- Training is a risk event: control who runs it, on what data, and record versions.
- Each kind of testing answers a different question, and acceptance criteria must precede testing.
- Independent validation supports separation between builders and reviewers.
- Drift lets risk change without any system change, so ongoing monitoring and periodic revalidation are needed.
- Change management must capture retraining, provider updates, configuration and data source changes.
- Decommissioning covers the artefact, data, decision records and dependencies.
Check yourself
Question 1. A vendor tells a customer that its hosted language model was upgraded last night. The customer's validation evidence covers the previous version. What should the risk professional recommend?
- A. Accept the change because the vendor supports the product
- B. Extend the model to more business units
- C. Treat it as a change, reassess the impact and revalidate in proportion to the use case
- D. Wait for the next annual audit
Show answer
Answer: C
A changed model means earlier validation may no longer apply, so the change should go through change management with reassessment proportional to the use case. Ignoring it relies on invalid evidence, rolling out wider compounds the exposure, and the vendor’s assurance alone is not independent evidence.
Want more questions like this? Full AAIR practice tests →
Question 2. A fraud model met its accuracy target a year ago. Since then customer behaviour has shifted and fraudsters have adopted new tactics, but nothing in the system has been modified. Which mechanism BEST explains a likely fall in detection?
- A. A coding defect introduced by a patch
- B. A failed deployment
- C. Test data leakage
- D. Drift in the data and in fraud patterns
Show answer
Answer: D
Real-world data moving away from the training data is drift, which degrades performance with no modification to the system. A coding defect or failed deployment would mean something changed or was wrong at release, and test leakage affects the original evaluation rather than a later decline.
Want more questions like this? Full AAIR practice tests →
Question 3. A project team reports that its model scored 91 on the validation set but has not said what score is acceptable. What is the main weakness?
- A. No acceptance criteria were defined in advance, so the result supports no decision
- B. The score is too high to be credible
- C. The test set must be larger
- D. The model needs more training
Show answer
Answer: A
Without acceptance criteria set beforehand, a score cannot support a go or no-go decision, which is the purpose of validation. The score itself may be fine, and neither a larger test set nor more training addresses the missing decision basis.
Want more questions like this? Full AAIR practice tests →
This lesson covers subtopics 2B and 2C of Domain 2 (AI Life Cycle Risk Management, 21%). Review the life cycle risk recap when finished.