Explainable AI (XAI) Beginner 10 minutes

A Taxonomy of Explanation Methods

Intrinsic or post-hoc, global or local, model-agnostic or model-specific.

Your progress in the track0%

The three axes

AxisFirst endSecond end
TimingIntrinsic: the model is transparent by naturePost-hoc: we explain a trained model
ScopeGlobal: the behaviour of the whole modelLocal: a single prediction
DependenceModel-agnosticModel-specific

A map of the methods in this track

MethodTimingScopeDependence
Linear regression, small trees, GAMIntrinsicGlobal and localSpecific
Permutation importancePost-hocGlobalAgnostic
PDP and ALEPost-hocGlobalAgnostic
LIMEPost-hocLocalAgnostic
SHAPPost-hocLocal, aggregated for globalAgnostic and specific
Counterfactual ExplanationsPost-hocLocalMostly agnostic
Saliency maps and Grad-CAMPost-hocLocalSpecific

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

  1. Classify SHAP for a single example.

    Post-hoc, local, and model-agnostic in its general form (KernelSHAP), with forms specific to trees and networks.

  2. Classify a decision tree of depth 3.

    An intrinsically interpretable model that gives both a global and a local explanation.

Sources and references

  1. Molnar — Interpretable Machine Learning
  2. Arrieta et al. — Explainable Artificial Intelligence (XAI): Concepts, taxonomies...

Complete the lesson