Sub topic 8
Limitations, Risks, and Ethical Considerations
Assume you know the basics of supervised machine learning, including training, validation, and test sets, common metrics such as accuracy and recall, Python, Markdown, and version control. This chapter focuses on how to document what a model cannot reliably do and what could go wrong when people use it.
Separate limitations from risks
A limitation is a property of the model, data, or evaluation that reduces reliability. For example, a text classifier may perform poorly on short messages because its training data contained few short messages.
A risk is a possible harmful result caused by a limitation, a misuse, or a failure in the surrounding process. If the classifier routes an urgent complaint to the wrong queue, a customer may wait too long for help.
An ethical consideration asks who may be affected, whether the effects are distributed fairly, and whether the use respects privacy, autonomy, and other responsibilities. These categories overlap, but separating them makes the card more useful.
| Category | Example statement | Action for a user |
|---|---|---|
| Limitation | Performance was not measured on messages shorter than five words. | Do not assume reliable results for those messages. |
| Risk | Urgent messages may be routed to a lower-priority queue. | Keep human review for urgent cases. |
| Ethical consideration | Errors may affect language groups differently. | Review group-level results before deployment. |
Record the source of each limitation
A useful model card connects each limitation to evidence. Check the following areas:
- Training data: Which populations, languages, locations, time periods, and conditions are represented?
- Labels: Who created the labels, what instructions did they follow, and where might labels be subjective?
- Evaluation: Which data was held out for testing, and does it resemble production data?
- Model behavior: Which inputs produce low confidence, unstable predictions, or systematic errors?
- Operations: What happens when the model receives missing, unusual, outdated, or adversarial input?
- Change over time: Could user behavior, language, prices, policies, or other conditions change after evaluation?
Avoid vague claims such as “may be biased.” State the mechanism and the evidence. For example, write that the test set contains only English-language tickets and that non-English performance is unknown. If a claim has not been tested, label it as unknown rather than presenting it as a measured fact.
Report unequal performance
Overall metrics can hide important differences. A model with 90 percent overall accuracy may perform well for one group and poorly for another. Report metrics by relevant groups and conditions when the data and privacy rules allow it.
from collections import defaultdict
def accuracy_by_group(y_true, y_pred, groups):
correct = defaultdict(int)
total = defaultdict(int)
for truth, prediction, group in zip(y_true, y_pred, groups):
total[group] += 1
correct[group] += int(truth == prediction)
return {
group: correct[group] / total[group]
for group in total
}
y_true = [1, 0, 1, 1, 0, 0]
y_pred = [1, 0, 1, 1, 1, 1]
groups = ["a", "a", "a", "b", "b", "b"]
print(accuracy_by_group(y_true, y_pred, groups))This prints perfect accuracy for group a and one-third accuracy for group b. The overall result is four correct predictions out of six, or about 0.67. Reporting only the overall value would hide the unequal result.
Choose groups and conditions based on the real use case, not only on the fields that are easiest to collect. Useful conditions may include language, region, device type, input length, lighting, age range, or time period. Explain small sample sizes and avoid publishing sensitive group information when it could identify people.
Describe risks and safeguards
For every important risk, document the affected people, the likely failure, its severity, and the control that reduces it. Controls may include human review, confidence thresholds, an appeal process, rate limits, access restrictions, monitoring, or a rule that prevents automated decisions in high-impact cases.
A model card should also state out-of-scope uses. “Not for medical diagnosis” is clearer than “use responsibly.” Explain what a downstream user must not do and what they should do instead.
Keep ethical claims specific and current
Do not claim that a model is unbiased, safe, or ethical based on one test. State what was tested, under which conditions, and what remains unknown. Protect personal information in examples and metrics. Record who reviewed the card, which version they reviewed, and what changed since the previous version.
When a model, dataset, threshold, or intended use changes, reassess the limitations and risks. A model card is part of governance, not a one-time disclaimer.
Exercise
A classifier has high overall accuracy but much lower recall for one language group. What should the model card say?
Show answer
It should report recall by language group, describe the evaluation data and sample sizes, state that the model may miss more positive cases for that group, and document safeguards such as human review or additional evaluation before deployment.