Sub topic 9
Model Cards Alongside Datasheets and System Documentation
Prerequisites and scope
This chapter assumes you have read the earlier chapters on model card sections, training data documentation, and limitations. You should know what a model card is and why intended use and limitations matter. You should also be comfortable with basic supervised learning, Markdown, and Git.
A model card describes one trained model. Most real systems involve more than that: the data the model learned from, the software around it, the people who use it, and the process that keeps it running. No single document covers all of these well. This chapter shows which document answers which question, where they overlap, and how to link them so they stay consistent.
Why one document is not enough
Consider a support ticket classifier. Four different readers might ask four different questions:
- A data scientist asks: "Can I reuse the training data for another task?"
- A product manager asks: "What happens to a customer when the model is wrong?"
- An auditor asks: "Who approved this and what was tested before release?"
- An engineer asks: "What does the service do when the model times out?"
A model card can answer parts of each question, but it is the wrong place for most of them. If you stuff dataset collection methods, service architecture, and approval history into a model card, it becomes long, hard to review, and quickly out of date. If you leave them out, nobody documents them.
The usual solution is a small set of focused documents that reference each other. Each document has one subject and one owner.
The main document types
Model cards
A model card documents a trained model: its version, intended use, evaluation results (including per-group results), and limitations. It was proposed in the 2019 paper "Model Cards for Model Reporting". Its subject is the model artifact. Its main reader is someone deciding whether to use that model.
Datasheets for datasets
A datasheet documents a dataset. The idea comes from the paper "Datasheets for Datasets" (Gebru et al.), which borrowed from the practice in electronics of shipping a datasheet with every component. A datasheet is organized around the life of the data:
- Motivation: why the dataset was created and who funded it.
- Composition: what the records are, how many, and whether they contain personal or sensitive information.
- Collection process: how the data was gathered, over what period, and whether people consented.
- Preprocessing and labeling: how raw data was cleaned, and who labeled it under which guidelines.
- Uses: what the dataset has been used for and what it should not be used for.
- Distribution and maintenance: how it is shared, under what license, and who maintains it.
Its subject is the dataset. Its main reader is someone deciding whether to train or evaluate on that data. The same dataset can feed many models, so one datasheet can serve many model cards.
System cards and system documentation
A model rarely acts alone. A deployed system may combine several models, rules, thresholds, human reviewers, and user interface choices. The term "system card" is used by some organizations for documentation at this level. There is no single standard format, so treat it as a role rather than a template. System documentation typically covers:
- The components and how they connect, including which models are called and in what order.
- Decision logic outside the model, such as score thresholds or fallback rules.
- Where humans review or override outputs.
- Monitoring, incident handling, and rollback.
- Risks that arise from the combination, which no single model card can show.
Its subject is the whole system in its deployment context.
Other related documents
Several other documents often sit next to these:
- Data statements, which focus on language datasets and describe the speakers and annotators.
- Impact assessments, which a regulation or an internal policy may require before deployment.
- Runbooks, which tell on-call engineers what to do when the system misbehaves.
- Changelogs, which record what differs between releases.
Comparing the documents
| Document | Subject | Main question | Typical owner | Changes when |
|---|---|---|---|---|
| Datasheet | A dataset | Is this data suitable for my purpose? | Data owner or curator | Data is added, relabeled, or removed |
| Model card | A trained model version | Is this model suitable for my purpose? | Model developer | A new model version is trained or re-evaluated |
| System documentation | A deployed system | How does the whole thing behave and who is accountable? | Product or platform team | Components, thresholds, or processes change |
The "changes when" column matters in practice. Documents that change at different rates should live in different files, so a threshold change does not force a rewrite of the dataset description.
How the documents relate
Information flows in a chain. The datasheet feeds the model card's training data section. The model card feeds the system documentation's component descriptions and risk analysis.
The feedback arrows are important. A production incident often reveals a limitation that was never written down. That finding should flow back into the model card, and into the datasheet if the cause lies in the data.
Avoiding duplication: link, don't copy
Copied text drifts. If the model card repeats the dataset's collection description and the datasheet is later corrected, the two now disagree. A better pattern is to keep a short summary in the model card and link to the datasheet for the details.
Compare two ways to write the training data section.
Copying the details:
## Training data
Tickets were collected from the helpdesk between 2022 and 2024 by
the support operations team. Labels were assigned by three
contractors using a 40-page guideline. Personal names were removed
with a regex-based tool. Tickets from enterprise customers were
oversampled by 2x. (...many more details...)Summarizing and linking:
## Training data
120k anonymized English tickets from 2022-2024, labeled into five
queues. Enterprise tickets are oversampled 2x, so the label
distribution differs from live traffic.
Full details: [datasheet v2.0](../datasheets/support-tickets.md)The second version keeps the facts a model user needs for a quick judgment, such as size, language, and the oversampling that affects interpretation. It leaves the rest to the document that owns it. Always pin the link to a version of the datasheet, as the example does, so a reader knows which description matches this model.
What the model card must still say
Linking is not a license to be vague. Some information belongs in the model card even if a datasheet exists, because it describes the relationship between this model and that data:
- Which dataset version and which split were used for training, validation, and testing.
- Any filtering or sampling applied specifically for this model.
- Any known mismatch between the training data and the intended deployment population.
For example, a datasheet may say "tickets from 2022-2024". The model card should say "the model was trained on 2022-2023 only and tested on 2024". That fact is about the model, not the dataset.
Linking documents with metadata
Plain prose links break when files move. Machine-readable references are more reliable. You can record the related documents in the card's front matter and check them automatically. The following script reads a model card's front matter and verifies that every referenced document exists. It assumes the PyYAML package is installed.
import sys
from pathlib import Path
import yaml
def read_front_matter(path: Path) -> dict:
text = path.read_text(encoding="utf-8")
if not text.startswith("---"):
return {}
_, block, _ = text.split("---", 2)
return yaml.safe_load(block) or {}
def check_links(card_path: Path) -> list:
meta = read_front_matter(card_path)
problems = []
for key in ("datasheet", "system_doc"):
target = meta.get(key)
if not target:
problems.append(f"missing field: {key}")
elif not (card_path.parent / target).exists():
problems.append(f"{key} points to a missing file: {target}")
return problems
if __name__ == "__main__":
issues = check_links(Path(sys.argv[1]))
if issues:
raise SystemExit("\n".join(issues))
print("All linked documents found.")A card that passes this check might start like this:
---
datasheet: ../datasheets/support-tickets.md
system_doc: ../systems/ticket-routing.md
---
# support-ticket-classifierThe paths are relative to the card's directory. The check confirms that files exist, not that their content is current. Treat it as a minimum guard against broken links.
Common mistakes
- Treating the model card as the system card. A model with a good per-group accuracy table can still cause harm if the system sends every low-confidence prediction straight to an automated action. That risk lives in the system documentation.
- Documenting the dataset only inside the model card. When a second model uses the same data, the description is copied, and the two copies diverge. Write the datasheet once.
- Unversioned references. "See the datasheet" is ambiguous after the datasheet changes. Reference a version or a commit.
- Orphaned documents. A datasheet with no owner is never updated. Name an owner and a contact in every document.
- Duplicated risk statements that disagree. If the model card says the model is unsuitable for medical triage and the system documentation describes a medical triage deployment, someone must resolve the conflict before release.
Deciding which document gets a fact
When you are unsure where a fact belongs, ask who would have to change it:
- If it changes when the data changes, it belongs in the datasheet.
- If it changes when you retrain or re-evaluate, it belongs in the model card.
- If it changes when you alter thresholds, components, or processes, it belongs in the system documentation.
- If it changes with every release regardless of the cause, put it in the changelog and link to it.
Worked example: tracing one risk across documents
Suppose evaluation shows the classifier performs worse on tickets under five words.
- The datasheet records that short tickets make up 3% of the data. This is a fact about composition.
- The model card reports accuracy for short tickets separately and lists the weakness under limitations. This is a fact about the model's behavior.
- The system documentation states that tickets under five words skip automatic routing and go to a human queue. This is a mitigation, and it is a decision about the system.
Each document records the part of the story that it owns, and each links to the others. A reader who starts at any one of them can follow the links to the full picture.
Exercise
Your team trains a second model on the same ticket dataset. Where should the dataset's collection process be described, and what should the new model card contain about the data?
Show answer
The collection process belongs in the dataset's datasheet, which is written once and versioned. The new model card should give a short summary (size, language, time range), link to the pinned datasheet version, and state model-specific facts: the splits used, any filtering or sampling applied for this model, and known mismatches with the intended deployment population.
Exercise
A model card reports strong per-group accuracy, but the deployed service automatically closes tickets when the model's confidence is above 0.9. Which document should describe the closing rule, and why?
Show answer
The system documentation. The rule is a decision about thresholds and automated actions in the deployed system, not a property of the trained model. The model card should still state how confidence scores behave (for example, whether they are calibrated), and should link to the system documentation so readers see the rule.