Sub topic 2
What a Model Card Is and Where It Came From
This chapter assumes you know the difference between training, validation, and test data, and that you have used common metrics such as accuracy, precision, and recall. You should also be comfortable reading basic Python, Markdown, and version-control changes.
The problem with an undocumented model
A machine learning model is more than a file of learned parameters. Its behavior depends on the data used to train it, the task it was built for, and the conditions under which it was tested.
A single score does not describe all of that behavior. For example, an image classifier might report 94% accuracy on a test set. That number does not tell you:
- Which images were included in the test set.
- Whether the model works for the people or environments where you plan to use it.
- Which errors are most common.
- Whether the model is suitable for high-impact decisions.
- Who can answer questions about the model.
- When the model or its evaluation last changed.
Without this information, downstream users may reuse a model outside its tested purpose. Auditors may be unable to reproduce its results. Engineers may deploy it without knowing its known failure cases.
Documentation turns these assumptions into information that another person can inspect before reuse.
The model card idea
A model card is a structured document that describes a machine learning model and the conditions around its use. It travels with the model, much like a product label travels with a physical product.
A card normally records the model's identity, intended use, training data, evaluation results, limitations, and relevant risks. The exact headings vary between teams and platforms. The important property is that the document describes the model from the perspective of people deciding whether and how to use it.
The card should answer practical questions:
- What does this model do?
- What does it not do?
- What data shaped its behavior?
- How was it evaluated?
- Under which conditions does it perform poorly?
- What risks should a user consider?
A model card is not a certification of safety or quality. Publishing one does not make a model fair, accurate, or appropriate for every task. It makes claims and evidence visible so that others can make better decisions.
Where model cards came from
The model card concept was formalized in the 2019 paper Model Cards for Model Reporting by Margaret Mitchell and other researchers. The authors argued that benchmark results alone were not enough to communicate how models behave in real settings.
The proposal came from growing concern about models being reused in contexts that differed from their original evaluation. A model could perform well on an aggregate benchmark while behaving differently across demographic groups, languages, lighting conditions, or other relevant conditions.
The paper proposed reporting:
- The model's intended use and out-of-scope uses.
- Details about its development and training data.
- Performance on relevant evaluation sets.
- Results broken down across groups and conditions.
- Known limitations and ethical considerations.
This approach connected technical reporting with accountability. It asked model developers to document not only what a model can do, but also where its evidence ends.
How a card fits into a model's life
A model card is part of a larger chain of documentation. The model's training data may have a dataset document. A complete product may need system-level documentation describing user interfaces, human review, and operational controls. The model card focuses on the model itself.
The following flow shows how the card supports a reuse decision:
The card should evolve with the model. A new training dataset, changed preprocessing step, or new evaluation result can change what the card needs to say. Versioning the card with the model helps users connect claims to a specific release.
A useful mental model
Think of a model card as a boundary around the model's claims:
- Inside the boundary are uses, conditions, and results supported by evidence.
- Outside the boundary are uses that require additional testing or should not be attempted.
- The boundary can change when the model, data, or evidence changes.
The next chapters examine the sections that make this boundary concrete, including intended use, training data, metrics, limitations, and machine-readable metadata.
Exercise
Why is a model card more useful than reporting only a model's overall accuracy?
Show answer
It records the model's purpose, evaluation conditions, limitations, and risks, so a user can judge whether the model fits a particular use rather than relying on one aggregate score.