Explainable AI — AIF-C01
What Explainable AI means for AWS AIF-C01: feature attribution, SageMaker Clarify, SHAP values, and how explainability differs from transparency.
WHAT IT IS
Explainable AI (XAI) refers to techniques and tools that help humans understand the cause of a machine learning model's prediction — answering the question "why did the model produce this output?" Amazon SageMaker Clarify implements a model-agnostic feature attribution approach to explainability, using an implementation of SHAP (Shapley Additive Explanations), which assigns each input feature an importance value for a particular prediction.
Mental model
Think of a prediction as a verdict and explainability as the reasoning the model must show its work for. Just as a decision-maker who cannot explain their reasoning is difficult to audit or correct, a model that cannot show which inputs drove its output is difficult to trust, debug, or improve. SageMaker Clarify frames explanations as answers to why questions: "Why did the model predict a loan rejection for this applicant?" or "Which features had the largest influence on this outcome?"
This framing — drawn from philosophy and cognitive science — centers on contrastive explanation: why did event X happen instead of expected event Y? In practice, X is the example being explained and Y is a baseline representing an uninformative or average example in the dataset.
When to use it
| Scenario | Use explainability | Use transparency (alone) |
|---|---|---|
| Debugging a model that makes surprising predictions | Yes — feature attribution shows which inputs drove the wrong output | No — transparency describes the system but does not trace individual predictions |
| Auditing a deployed model for regulatory compliance | Yes — per-instance SHAP explanations support audit trails | Partial — transparency enables informed stakeholder choices, but does not substitute for per-prediction reasoning |
| Communicating overall model behavior to internal stakeholders before deployment | Yes — global feature importance shows model characteristics as a whole | Yes — transparency informs stakeholders about what the system does |
| Building consumer or regulator trust in model decisions | Yes — explanations support human decision-making and help consumers trust predictions | Yes — but transparency without explainability may be insufficient when decisions affect individuals |
SageMaker Clarify supports explainability both before deployment (understanding model characteristics as a whole) and after deployment (debugging predictions in real time via online explainability at a SageMaker endpoint). It also extends beyond tabular data to computer vision and natural language processing using the same SHAP algorithm.
COMMON MISCONCEPTION
Explainability and transparency are the same thing.
AWS defines these as distinct responsible AI dimensions. Transparency means enabling stakeholders to make informed choices about their engagement with an AI system — it is about disclosure and openness at the system level. Explainability means understanding and evaluating system outputs — it is about tracing the cause of a specific prediction. A system can be transparent (its architecture and training data are described publicly) without being explainable (you still cannot tell why it rejected a particular loan application). Confusing the two leads candidates to treat documentation or model cards as substitutes for feature attribution, which they are not.
A second common confusion: assuming explainability requires access to model internals. SageMaker Clarify explicitly uses a model-agnostic approach — it can explain predictions without requiring visibility into the model's weights or architecture.
How it shows up on the exam
The exam tests whether candidates can distinguish the purpose of explainability from adjacent responsible AI concepts. Questions in this space tend to describe a scenario — a model making decisions that affect people, a regulator asking why an applicant was denied, a data scientist trying to debug unexpected behavior — and ask which tool or principle addresses it.
Candidates who conflate explainability with transparency may reach for broad governance or disclosure answers when the scenario calls for feature attribution. The signal phrases to watch for are "why did the model predict," "which features influenced," "per-instance explanation," "audit a decision," and "trust a prediction." These phrases point toward explainability and tools like SageMaker Clarify.
The exam also tests the scope of explainability: SageMaker Clarify can explain model behavior before deployment (whole-model characteristics) and during inference (individual predictions at a deployed endpoint), and it works across tabular, computer vision, and NLP modalities.
Related concepts
- AI Hallucination — when a model produces confident but incorrect outputs; explainability can help detect and debug these failures by surfacing which features drove an erroneous prediction.
- Bias and Fairness — SageMaker Clarify addresses both bias detection and explainability as related but distinct capabilities; understanding feature attribution can reveal whether protected attributes are driving unfair outcomes.
- Human Oversight — explainability is a prerequisite for effective human oversight; humans cannot meaningfully review or intervene in model decisions they cannot understand.
Sources
Every claim on this page traces to the public exam blueprint and official documentation: