Interpretability in machine learning is the degree to which a human can understand how a model maps inputs to outputs and predict how it will behave on new cases. In Explainable AI, it is the central goal: making model decisions understandable enough that people can trust, debug, audit and improve the system.
Model interpretability can come from the model itself, when its structure is simple enough to read, or from post-hoc methods that analyze an opaque model after training. Practitioners also distinguish explanations of a single prediction from explanations of the model as a whole, because the two answer different questions.
What interpretability means in machine learning
Interpretability in machine learning means that the reasoning behind predictions is accessible to a specific audience at a useful level of detail. It is therefore relative to the reader: a coefficient table is transparent to a statistician and meaningless to a loan applicant.
Many authors separate interpretability, the property of a model that can be understood directly, from explainability, the practice of generating explanations for any model. The terms are often used interchangeably, but the distinction matters when a regulator asks whether a decision can be justified from the model itself or only from an approximation of it.
Three dimensions describe any interpretability approach, as the table below shows.
| Dimension | Options | Question it answers |
|---|---|---|
| Timing | Intrinsic or post-hoc | Is the model readable or explained afterward |
| Scope | Local or global | One prediction or overall behavior |
| Dependence | Model-specific or model-agnostic | Does the method need model internals |
Intrinsically interpretable models
Intrinsically interpretable models are designed so that their structure is the explanation. Linear and logistic regression expose one weight per feature, shallow decision trees show explicit rules, and generalized additive models show the shape of each feature’s effect.
Modern variants close much of the accuracy gap. An explainable boosting machine fits boosted shape functions per feature plus a few pairwise interactions, and a concept bottleneck model forces predictions through human-named concepts. On tabular data, these models often match black-box accuracy, which weakens the common assumption that accuracy must be traded for transparency.
| Model family | How it is read | Typical limitation |
|---|---|---|
| Sparse linear model | Signed weight per feature | Misses nonlinear effects |
| Shallow decision tree | Readable if-then rules | Unstable under small data changes |
| Generalized additive model | Plotted effect per feature | Few interactions by design |
| Rule list | Ordered list of conditions | Coarse decision boundaries |
| Prototype network | Similarity to learned examples | Prototypes can be hard to name |
Post-hoc explanation methods
Post-hoc methods explain an already trained opaque model, such as a gradient-boosted ensemble or a deep network, without changing it. They differ in what they measure and how much they cost to compute.
Feature attribution assigns each input a share of the prediction. Shapley values, estimated by KernelSHAP or computed exactly for trees by TreeSHAP, offer a principled game-theoretic split. LIME fits a local linear surrogate, while gradient-based saliency methods such as Grad-CAM highlight influential image regions. Global tools include permutation feature importance, partial dependence and accumulated local effects.
| Method | Scope | Main strength | Main caution |
|---|---|---|---|
| SHAP | Local and global | Consistent additive attribution | Costly; baseline choice matters |
| LIME | Local | Works on any model | Unstable across runs |
| Permutation importance | Global | Simple and model-agnostic | Misleads with correlated features |
| Saliency maps | Local | Visual for images | May ignore the model entirely |
| Counterfactuals | Local | Actionable what-if answers | Many valid answers exist |
Mechanistic interpretability in neural networks
Mechanistic interpretability tries to reverse-engineer the internal algorithms of neural networks, especially large language models, rather than attribute outputs to inputs. It treats neurons, attention heads and learned directions as components of a circuit that can be identified and tested.
Key techniques include probing classifiers, the logit lens, activation patching and circuit analysis, which has identified structures such as induction heads. A major obstacle is polysemanticity, where one neuron responds to unrelated concepts; sparse autoencoders address it by decomposing activations into more interpretable features. The field is young, and findings on small models do not always transfer to frontier-scale systems.
Choosing an interpretability approach
The right approach depends on who needs the explanation and what decision it supports. A data scientist debugging leakage needs global importance and interaction plots, a customer needs a short local reason, and an auditor needs evidence that the explanation is stable and faithful.
The decision table below maps typical situations to a sensible starting point. In every case, explanations should be validated against held-out data and reviewed by a domain expert before they are shown to end users.
| Situation | Recommended approach | Reason |
|---|---|---|
| High-stakes tabular decision | Intrinsically interpretable model | Reasons come from the model itself |
| Debugging a complex ensemble | SHAP with global summary plots | Reveals leakage and dominant drivers |
| Image classifier review | Saliency maps plus occlusion tests | Visual check with a sanity test |
| Customer-facing reason codes | Local attribution or counterfactuals | Short and actionable per case |
| Large language model research | Probing and activation patching | Tests internal causal structure |
Limitations and evaluation pitfalls
The deepest risk is an unfaithful explanation: a plausible story that does not reflect what the model actually computes. Explanation faithfulness must be tested, for example by removing features ranked as important and confirming that predictions change accordingly.
- Correlation, not causation: attributions describe the model, not the real world.
- Rashomon effect: many equally accurate models can tell different stories.
- Correlated features split or swap credit unpredictably.
- Manipulable explanations: models can be tuned to look fair under LIME or SHAP.
- Confirmation bias: users accept explanations that match their expectations.
Regulation raises the stakes. Credit and insurance decisions often require reasons for adverse outcomes, and the EU AI Act sets transparency obligations for high-risk systems. For high-stakes decisions, many experts recommend an interpretable model by default and a black box only when it is clearly better.
The short version
Interpretability is about seeing why a model decided what it did. Some models are like a clear recipe. You can read every step. Others are like a sealed machine. You can only test them from the outside.
For sealed models, people use tools that point to the inputs that mattered most. These tools help, but they can be wrong. Good practice is to check the explanation, not just believe it.
Where it makes a difference
A regional bank uses a gradient-boosted model to score small-business loan applications. The model is accurate, but regulators require clear reasons for every rejection, and loan officers distrust scores they cannot question.
The data science team adds TreeSHAP explanations to each decision and reviews global importance plots. They discover that the postal code of the applicant ranks among the top drivers, acting as a proxy for protected attributes. They remove it, retrain, and confirm that accuracy drops by less than one percentage point.
They then compare the result with an explainable boosting machine, which performs almost equally well and can be read directly. The bank adopts it for production, and rejection letters now list the three strongest factors in plain language.