Reviewing model documentation
Why This Matters
You cannot read a model like code: it is millions of numbers, and its behaviour depends on data you may never see. Documentation is the main way anyone can understand what a model is for, what it was trained on, how it was tested and where it should not be used. Reviewing it is one of the cheapest and most effective tests there is, and for high-risk systems in the EU it is a condition for going live.
What you will learn
- Why model documentation matters more for ML than for conventional software
- Model cards and datasheets for datasets
- What a review checks, with a checklist, and how to review a real model card
Syllabus: AI-6.1.2.
Why documentation matters for ML
- ML code is hard to inspect, and the model itself is a black box.
- Models depend on data: the same code trained on other data is a different model.
- Transparency is needed to trace behaviour, decisions and data lineage: which data, which version, which choices.
Regulation makes it concrete: the EU AI Act requires clear documentation of decisions, limitations and interpretability, and for high-risk systems a documentation audit is often a prerequisite for deployment.
Two common formats
- Model cards: a short document per model with its intended uses, evaluation results (including per group) and ethical considerations.
- Datasheets for datasets: per dataset, its motivation (why was it created?), composition (what is in it?), collection process and recommended uses.
The review checklist
| Section | What should be there |
|---|---|
| General | Identifier, description, developer, version, date, contact, licence, hardware requirements |
| Design | Assumptions, technical decisions, algorithm |
| Usage | Intended and secondary uses, intended users, self-learning approach, bias, ethics, safety, transparency, thresholds, platform, data and concept drift |
| Datasets | Features, source, collection, availability, preprocessing, labels, size, privacy, security, bias and fairness, restrictions |
| Testing | Test dataset details, independence of the test data, results, test activities performed |
| Functional | Performance measures, validation dataset, thresholds, actual performance |
| Non-functional | Scalability, reliability, availability, efficiency, maintainability, AI robustness |
| Operational | Deployment plan and environment, compute, monitoring, retraining, update and rollback, deprecation, security, explainability |
The goals of the review: find gaps and inconsistencies, improve clarity, support testing and deployment, and verify regulatory compliance.
Hands-on: review a model card
Here is the model card of the practice loan model, as a team might have written it. Review it with the checklist. Use what you know about the model from the earlier lessons.
Loan Approval Model v2
Description. Predicts whether a loan application should be approved. Developed by the Risk Analytics team. Version 2.0, released 2026-04-17.
Intended use. Automated approval of personal loan applications for all customers.
Model. Scoring model with an approval threshold of 60. Improved over v1: gender and name are no longer used, removing bias.
Training data. 50 historical loan applications from New York, Los Angeles, Chicago, Houston and Phoenix. Cleaned before training.
Performance. Accuracy 70% on the test set.
Limitations. None known.
Show review findings
Gaps:
- General: no contact, licence or hardware requirements.
- Usage: “all customers” with no limits; nothing about intended users (automated with or without human review?), thresholds per use, or drift monitoring. “Automated approval” of loans is high-risk under the EU AI Act and needs human oversight.
- Datasets: no features listed, no source or collection period, no description of the cleaning (which defects, how many rows dropped, how missing values were imputed), no labelling process, nothing about privacy or about the population (ages, incomes).
- Testing: no description of the test set (size, source, independence from training data), no metrics other than accuracy, no results per group.
- Functional: no precision and recall, no acceptance thresholds, no margin of error. “70%” on what? (On 40 cases the 95% interval is roughly 54% to 82%.)
- Non-functional and operational: completely missing: no robustness, no monitoring, no retraining or rollback plan.
Inconsistencies and claims that testing contradicts:
- “Removing bias”: lesson 35 showed v2 still penalises zip code 10001 (approval ratio 0.50) and age. Removing gender and name did not remove bias; the claim must go or be backed with a fairness evaluation per group.
- “Improved over v1”: on the test set v2 is worse than v1 on accuracy, precision and recall (lesson 49). It is fairer on gender, not better in general.
- “Limitations: none known”: the model ignores employment history (a v2 regression), has a cliff edge at an income of $50,000 (lesson 45), lowers the score for incomes above $250,000 (lesson 46), and has never seen applicants from Boston, Miami, Denver or Seattle, who are 78% of production (lesson 37).
- “Cleaned before training” while the model card says 50 applications: the cleaning removes duplicates, so how many were used?
The review alone would block this model for a high-risk deployment. That is the point of reviewing documentation: it is cheap, and it forces the questions that testing then answers.
Exam-style questions
1. What is the main content of a model card?
- A. The source code of the model
- B. Intended uses, evaluation results and ethical considerations
- C. The hardware invoice
- D. The test scripts
Show answer
2. Why is reviewing model documentation particularly important for ML models?
- A. ML models do not need testing if they are documented
- B. Models are black boxes that depend on their data, so documentation is the main way to understand and trust them
- C. Documentation replaces the test set
- D. Regulations forbid testing ML models
Show answer
3. Which document describes a dataset’s motivation, composition, collection process and recommended uses?
- A. A model card
- B. A datasheet for datasets
- C. A test plan
- D. A risk register