Making AI Systems Transparent and Explainable
This lesson explains how the people affected by AI decisions, and the organisations responsible for them, can understand how a system works and why it produced a result.
Learning outcomes
After completing this lesson, you will be able to:
- Distinguish transparency from explainability.
- Distinguish interpretable models from black-box models.
- Distinguish SageMaker Model Cards from AWS AI Service Cards.
- Describe the trade-offs between accuracy and interpretability.
Transparency versus explainability
Transparency and explainability are related but apply at different levels. Transparency is about the system as a whole: being open that AI is being used, what data it was trained on, what it is intended for, and its limitations and risks. A customer told that they are chatting with an AI assistant is an example. Explainability is about individual outputs: understanding why the model produced a particular answer, such as which factors led to a loan being declined. The following table summarises the difference.
| Term | Meaning |
|---|---|
| Transparency | Openness about the system: that AI is used, what data it was trained on, its intended uses, limitations and risks |
| Explainability | Understanding why the model produced a particular output |
Transparency or explainability?
Interpretable versus black-box models
Models differ in how easily their decisions can be understood. Interpretable models, such as linear regression and decision trees, can be explained directly: you can read the weight given to each input or follow the path of decisions that led to an answer. They are often less accurate on complex tasks.
Black-box models, such as deep neural networks and foundation models, are often more accurate, but their internal workings are too complex to read. They are explained after the fact, with techniques such as SHAP attributions from SageMaker Clarify, which estimate how much each input contributed to a prediction. For regulated decisions that must be explained, an interpretable model may be preferred even at some cost in accuracy. The following table summarises the differences.
For generative AI, explainability practices include sources and citations through RAG, agent reasoning traces, confidence indicators and documented limitations.
Interpretable or black-box?
Documentation tools
Documentation supports transparency, and AWS provides tools for different kinds. SageMaker Model Cards document your own models: their intended use, training data, evaluation results and risk rating. AWS AI Service Cards document AWS's own AI services, describing their intended uses, limitations and the responsible AI choices made in their design. Bedrock evaluation reports and lineage information provide evidence of a model's quality and where its data came from. The following table summarises the tools.
| Tool | Documents |
|---|---|
| SageMaker Model Cards | Your models' intended use, training data, evaluation and risk rating |
| AWS AI Service Cards | AWS's own AI services: intended use, limitations and responsible AI design |
| Bedrock evaluation reports, lineage | Evidence of quality and data origins |
Documenting AI
Trade-offs and human-centred design
Transparency involves trade-offs, and AI systems should be designed around the people who use them. The following list describes the principal considerations.
- More accurate, complex models are usually less interpretable, so regulated decisions may favour simpler models.
- Revealing too much about a model can help attackers.
- Tell users when they interact with AI, explain decisions in plain language, let people contest outcomes and give feedback.
- Keep people in the loop for high-impact decisions.
Human-centred design
Explaining a declined application
A customer asks why their credit card application was declined. The lender's model is a gradient-boosted tree, accurate but not directly interpretable. SageMaker Clarify's SHAP values show how each feature pushed this particular decision:
| Feature | Contribution to "decline" |
|---|---|
| Credit utilisation 92% | Strongly towards decline |
| Two missed payments in the last year | Towards decline |
| Stable employment for six years | Towards approve |
| Postcode | Negligible (checked, because it could be a proxy for protected characteristics) |
The lender turns this into a plain-language explanation for the customer, offers a route to human review, and documents the model's intended use and limitations in a SageMaker Model Card. For the generative AI assistant on the same website, transparency means telling customers they are talking to AI and showing citations for its answers; AWS AI Service Cards document AWS's own services in the same spirit.
What is the difference between transparency and explainability?
Show answer
Transparency is openness about how a system is built and used, such as its data and limits. Explainability is the ability to say why the model produced a particular output.
Exam Tips
Remember for the exam
- To document a model's intended use, risks and evaluation, use SageMaker Model Cards.
- AWS's documentation of the intended use and limits of its own AI services is AWS AI Service Cards.
- To explain which features drove a prediction, use SageMaker Clarify (SHAP).
- More accurate models are often less interpretable.
- To show the sources behind generated answers, use RAG with citations.
- For high-impact decisions, keep a person in the loop to review and override.