Explainability vs interpretability: why AI models make decisions

Updated

Interpretability and explainability are two related but distinct approaches to making AI decisions understandable to humans. Interpretability focuses on transparency of a model's inner workings, while explainability provides justifications for outputs after a prediction is made. Both are essential for trust, debugging, fairness, and regulatory compliance.

Explainability vs interpretability: why AI models make decisions
Photo: Auckland Museum Collections from Auckland, Aotearoa New Zealand, CC BY 2.0

Two paths to understanding AI decisions

Explainable artificial intelligence (XAI) is a set of processes and methods that allow human users to comprehend and trust the results created by machine learning algorithms, as described in IBM's explainable AI overview. XAI helps characterize model accuracy, fairness, transparency, and outcomes in AI-powered decision making.

AI interpretability is a related but different concept. It focuses on understanding the inner workings of a model, such as its architecture, features, and how it combines them to deliver predictions, according to IBM's interpretability page. An interpretable model's decision-making process is easily understood by humans, which requires disclosure of its internal operations.

In practice, explainability is about verification: providing reasons for outputs after predictions are made, often using natural language. Interpretability is about transparency before the decision. White-box models (like simple decision trees) are interpretable, while black-box models (like deep neural networks) can only be explained with additional methods.

Why transparency matters

The lack of understanding of complex models creates the need for methods that explain decisions. NIST published a report on the four principles of explainable artificial intelligence as NISTIR 8312, highlighting the importance of this topic for trustworthy AI systems, as shown on the NIST publication page. The report emphasizes that explanations must be meaningful to the intended audience.

Platform tools illustrate how explanations are applied in practice. Google Cloud's Vertex Explainable AI offers example-based explanations that retrieve similar training examples to show why a model made a specific inference, helping developers debug errors, detect anomalies, and improve models, as detailed in the Vertex Explainable AI overview. This approach uses nearest neighbor search to find comparable inputs from the training set.

Methods for local explanations

LIME explains the predictions of any classifier by learning an interpretable model locally around the prediction, as stated in the arXiv abstract for LIME. It perturbs the input data and fits a simple model to approximate the black box's behavior in that neighborhood, providing feature importance for a single instance.

SHAP (SHapley Additive exPlanations) offers a unified framework for interpreting predictions, assigning each feature an importance value for a particular prediction, as described in the arXiv abstract for SHAP. It unifies six existing methods and provides a unique solution with desirable properties, making it a widely used tool for explaining model outputs.

The challenge of defining interpretability

There is little consensus on what interpretable machine learning actually entails or how to measure it, according to the position paper Towards A Rigorous Science of Interpretable Machine Learning. The authors argue for a taxonomy and a more rigorous science to evaluate interpretability, noting that current explanations are often used qualitatively to assess safety or non-discrimination.

Because interpretability lacks a formal definition, practitioners must choose evaluation criteria based on their application. Some use human-grounded tests, others use functionality or model-level criteria. This ambiguity complicates comparisons between methods and can lead to misleading conclusions about a model's trustworthiness.

How LIME explains a predictionStep 1: Select an instance to explain; Step 2: Perturb the input data; Step 3: Fit a simple interpretable model; Step 4: Show feature importance valuesHow LIME explains a predictionSelect an instance to explainPerturb the input dataFit a simple interpretable modelShow feature importance values
How LIME explains a prediction
Comparison of interpretability and explainability
AspectInterpretabilityExplainability
FocusInner workings of the modelReasons for a specific output
GoalTransparency of architecture and featuresVerification after prediction
Typical modelsWhite-box models (decision trees, linear models)Any model, but often black-box
MethodsDirectly inspectable logicPost-hoc techniques like LIME and SHAP
Human roleUser sees the internal stepsUser receives justifications in natural language

Frequently asked questions

What is the difference between interpretability and explainability?

Interpretability focuses on understanding a model's internal architecture and logic, while explainability focuses on providing reasons for a model's outputs, usually after the prediction is made.

Why do AI models need explanations?

Explanations help build trust, debug errors, detect biases, comply with regulations, and allow affected people to challenge decisions. They are especially important in healthcare, finance, and other high-stakes domains.

What are LIME and SHAP?

LIME and SHAP are post-hoc methods that explain individual predictions. LIME learns a local interpretable model around a specific prediction, while SHAP assigns each feature an importance value based on game theory.

Are all AI models interpretable?

No. White-box models like decision trees are interpretable by design, while black-box models like deep neural networks are not. For black-box models, explainability techniques are used to approximate their behavior.

What platforms provide explainability features?

Some cloud platforms, such as Google Cloud's Vertex AI, provide feature attributions and example-based explanations to help users understand model decisions. Standardization of these methods is still an open research area.