A Taxonomy of Explanation Methods
Intrinsic or post-hoc, global or local, model-agnostic or model-specific.
The three axes
| Axis | First end | Second end |
|---|---|---|
| Timing | Intrinsic: the model is transparent by nature | Post-hoc: we explain a trained model |
| Scope | Global: the behaviour of the whole model | Local: a single prediction |
| Dependence | Model-agnostic | Model-specific |
A map of the methods in this track
| Method | Timing | Scope | Dependence |
|---|---|---|---|
| Linear regression, small trees, GAM | Intrinsic | Global and local | Specific |
| Permutation importance | Post-hoc | Global | Agnostic |
| PDP and ALE | Post-hoc | Global | Agnostic |
| LIME | Post-hoc | Local | Agnostic |
| SHAP | Post-hoc | Local, aggregated for global | Agnostic and specific |
| Counterfactual Explanations | Post-hoc | Local | Mostly agnostic |
| Saliency maps and Grad-CAM | Post-hoc | Local | Specific |
Types of explanation output
- Feature attribution: how much did each feature contribute?
- Examples: similar cases from training, or prototypical examples.
- Counterfactual explanation: what is the smallest change that flips the decision?
- Concepts: does the model use a human concept such as “striped”?
- A surrogate model: a simple model that imitates the complex one.
Start with the question: what does this audience need to know, and for what decision? Then choose the method.
Lesson terms
- Post-hoc explanation
- An explanation produced after the model is trained, without changing its structure.
- Local explanation
- An explanation of a single prediction for a specific example.
- Model-agnostic methods
- Explanation methods that rely only on the model's inputs and outputs.
Abstract
Explanation methods are classified along several axes. Intrinsic means a model that is transparent by nature, and post-hoc means explaining a trained model. Global describes the behaviour of the whole model, and local explains a single prediction. Model-agnostic methods treat the model as a black box, and model-specific methods use its internal structure, such as gradients. Defining the question first makes choosing the method easier.
Review questions
-
Classify SHAP for a single example.
Post-hoc, local, and model-agnostic in its general form (KernelSHAP), with forms specific to trees and networks.
-
Classify a decision tree of depth 3.
An intrinsically interpretable model that gives both a global and a local explanation.
Sources and references
Complete the lesson
You have completed all the lessons in the track! You can now request the track completion certificate.
Request the certificate