What is local interpretability?
Local interpretability is the ability to explain which input features determined a single prediction and in which direction, such as why one application was rejected, rather than the model's overall behaviour.
Unlike global interpretability, which shows which features a model relies on in general, local interpretation gives the reasons for one decision. A feature unimportant overall can still be decisive in one case.
- Topic
- Responsible AI and governance
- Also known as
- Local explanation
How local interpretability works
- Select the single prediction to explain.
- Perturb inputs around it and observe the model's response.
- Fit a simple interpretable surrogate in that neighbourhood or assign each feature a contribution value.
- Show the user the most influential features and their direction.
In more detail
Non-perturbation and model-specific methods
Local explanation methods fall into two main families: perturbation-based approaches (LIME, KernelSHAP), which treat the model as a black box; gradient- or structure-based approaches (Integrated Gradients, TreeSHAP), which exploit internal access for faster and more stable attributions. In tree ensembles, TreeSHAP computes exact Shapley values in polynomial time without noisy sampling.
Out-of-distribution sampling and feature dependence
Perturbation-based explanations assume feature independence and can create unrealistic out-of-distribution samples, for instance, pairing an impossible age and income combination, which distorts surrogate weights. Explainability tools should therefore be paired with feature-correlation checks and domain constraints so explanations remain faithful to real data.
Counterfactual explanations and actionable feedback
Attribution methods show which features drove the current prediction, whereas counterfactual explanations show actionable changes that would alter the outcome. In regulated consumer decisions, pairing a local attribution plot with concrete counterfactual recourse helps users understand both why a decision happened and what can change it.
Local interpretability in large language models
In large language models, local interpretability shifts from tabular features to token-level attributions, attention patterns and mechanistic activation tracing. Because a single prompt can contain thousands of tokens, naive perturbation is prohibitively expensive; teams rely on gradient attributions or sparse autoencoder features alongside confidence calibration.
Commonly confused terms
| Term | How it differs |
|---|---|
| Global interpretability | Global interpretability explains the overall feature weights and decision patterns a model relies on across the whole dataset, whereas local interpretability explains why one specific prediction turned out as it did. |
| Counterfactual explanation | Local interpretability identifies which existing input features pushed a given prediction up or down; counterfactual explanations show the smallest realistic change to the input that would flip the outcome (for example how much income would need to rise for approval). |
| Inherently interpretable model | Interpretable models (such as shallow decision trees or linear models) are transparent by design without extra tools, whereas local interpretability methods like LIME and SHAP are usually post-hoc approximations built on top of black-box models. |
Why local interpretability matters for on-premises AI
The paper introducing LIME proposes explaining any classifier's predictions by learning an interpretable model locally around the prediction, stressing that understanding the reasons behind predictions matters for trust and deployment decisions. The SHAP framework assigns each feature an importance value for a particular prediction, unifying several explanation methods. A book on interpretable machine learning notes such model-agnostic methods explain individual predictions while methods like permutation importance describe general relations.
An insurer's claims review team sees, for each file the model flags, a local explanation of the features that most drove the decision and starts its review there.
Common questions
Are local explanations always reliable?
No. They are approximations and different methods can explain the same prediction differently; compare several for critical decisions.
Can a local explanation be shown to customers?
Yes, if translated into plain language. For decisions covered by the right to explanation it must be understandable to the person.
Related terms
- Global interpretability
- Feature attribution
- Local Interpretable Model-agnostic Explanations
- SHapley Additive exPlanations
- Explainable AI
- Counterfactual explanation
Sources
- Ribeiro, Singh and Guestrin, "Why Should I Trust You?": Explaining the Predictions of Any Classifier, 2016
- Lundberg and Lee, A Unified Approach to Interpreting Model Predictions, 2017
- Molnar, Interpretable Machine Learning
In the glossary: Glossary, D to L