Explainable AI (XAI) Beginner 11 minutes

Why Explainability Matters

Trust, error detection, fairness and legal accountability: the motivations for explanation and its audiences.

Your progress in the track0%

Motivations for explanation

  1. Diagnosing errors: does the model rely on the real cause or on a spurious shortcut?
  2. Justified trust: we want neither blind trust nor blind rejection.
  3. Fairness: do sensitive attributes or their proxies affect the decision?
  4. Accountability and compliance: many regulatory frameworks require transparency and human oversight.
  5. Knowledge discovery: sometimes an explanation reveals a new scientific pattern worth studying.

The audience determines the explanation

AudienceQuestionUseful type of explanation
The developerWhere does the model fail?Feature importance, saliency maps, error analysis
The expert (a physician)Is the reason clinically plausible?Influential regions, similar cases
The person affected by the decisionWhy was my application rejected? And what do I change?A simple counterfactual explanation
The auditor and the regulatorIs the system documented and controlled?Model cards, evaluation reports

Examples of shortcuts

  • A wolf-versus-dog classifier that relied on the snow in the background (an example in the LIME paper).
  • Chest X-ray models that learned hospital markers or the type of device instead of the disease (Zech et al., 2018).

Warning

An explanation is not a guarantee of correctness. A convincing explanation of a wrong decision may increase misplaced trust. That is why we later discuss the faithfulness of explanations, that is, whether it really reflects what happens inside the model.

Lesson terms

Shortcut learning
The model relying on spurious signals associated with the class in the training data instead of the real features of the concept.
Interpretability
The degree to which a human can understand why the model made a decision or predict its behaviour.

Abstract

We need explanation to detect model errors and spurious shortcuts, to build justified trust among users, to audit fairness, and to meet legal and regulatory requirements. Explanation differs by audience: the developer needs diagnosis, the physician a plausible clinical reason, the patient or customer an understandable reason and what they can change, and the auditor documentation. A famous example: a model that recognizes wolves from the snow in the background.

Review questions

  1. Name three motivations for explanation.

    Detecting errors and shortcuts, building justified trust, and accountability and regulatory compliance.

  2. Why does the right explanation for a physician differ from the right explanation for a developer?

    Because the physician needs a clinical reason that can be verified, and the developer needs technical details to diagnose the model.

Sources and references

  1. Doshi-Velez & Kim — Towards A Rigorous Science of Interpretable Machine Learning
  2. Molnar — Interpretable Machine Learning
  3. Geirhos et al. — Shortcut Learning in Deep Neural Networks

Complete the lesson