Learning outcomes
After this lesson, you will be able to:
- Distinguish a model, an individual prediction, and a decision-making system.
- Explain why interpretability depends on the model, task, and audience.
- Distinguish models interpretable by design from post-hoc analysis.
- Differentiate global model understanding from a local explanation.
- Assess explanations for comprehensibility, faithfulness, stability, and usefulness.
- Formulate a question before selecting an XAI method.
1. What exactly is a model?
In machine learning, a model is a computational construct that transforms input data into a prediction, score, or other output after training. A credit-risk model, for example, receives application data and returns an estimated probability of default. Do not confuse the model with its surrounding system: the interface, bank policy, approval threshold, employee, and appeal process may affect the outcome without being part of the model itself.
There is no single definition accepted by all researchers. State explicitly what is being interpreted and for whom. One specialist may mean understandable coefficients; another may mean tracing an individual decision; a third may mean testing behaviour across many cases.
2. Interpretability and explaining a prediction
Compare two questions: “How does the model work overall?” and “Why did it assign this application a high risk score?” The first concerns global understanding; the second concerns a local explanation of one result.
A linear model is relatively understandable by design: features are multiplied by coefficients and combined. Yet explaining one applicant still requires examining that instance's feature contributions. Conversely, a post-hoc local explanation can be generated for a complex neural network whose internal structure remains difficult to inspect.
A post-hoc explanation analyses a trained model. It may estimate feature contributions, fit a local approximation, or show output sensitivity to inputs. This is an additional analysis procedure, not a transformation of the original model into a transparent one.
3. Interpretability by design and post-hoc analysis
Linear regression, a small decision tree, or a model with a limited set of meaningful rules can be inspected directly: read coefficients, follow a branch, or test a rule. Yet a simple model family does not guarantee that a particular implementation is easy to understand. Many features, correlations, and complicated preprocessing can obscure it.
For ensembles, boosting models, and neural networks, analysts often use post-hoc methods. LIME fits a local surrogate around an instance. SHAP estimates feature contributions relative to a selected background distribution. Results depend on assumptions, sampling, perturbation schemes, and the definition of contribution.
It is inaccurate to say “the model is interpretable because we ran SHAP.” Say instead: “We generated a post-hoc SHAP explanation for this model and question, and separately examined its limitations.”
4. Dependence on audience and task
A developer wants to debug errors and understand transformations. A risk analyst checks behaviour across groups. A customer needs a concise, verifiable reason for a decline. An auditor needs documented procedures, controls, and reproducibility.
| Audience | Main question | Useful output |
|---|---|---|
| Developer | Why does the model behave unexpectedly? | Diagnostics of features, transformations, and errors |
| Analyst | Does behaviour align with policy? | Global patterns and group checks |
| Customer | What influenced this decision? | A concise, factually faithful local explanation |
| Auditor | Can the process be verified? | Documentation, reproducibility, and traceability |
One explanation format need not serve everyone. A coefficient table may help an analyst but not a customer. “Income was insufficient” may be understandable, but does not prove that the model actually used income in that way.
Ask not only “How interpretable is this model?” but “How understandable is it to this audience, for this task, under these conditions?”
5. Running example: credit risk
A model estimates late-payment risk from debt burden, payment history, employment duration, and income. For one application it returns 0.72. The bank uses a 0.60 threshold and sends the application for additional review.
- System level. Who set the threshold? Which rules follow the prediction? Can an employee review it? These are process questions, not only model questions.
- Global level. Which features and relationships affect risk overall? Does behaviour differ across groups? Where do errors occur?
- Local level. Which inputs are associated with this 0.72 score? How does the prediction change under permissible input changes?
- Validation. Compare the explanation with actual model behaviour using controlled changes and stability tests.
If debt burden is identified as the main factor, this does not prove that reducing debt guarantees approval. The model may use feature interactions, the threshold may remain unchanged, and the proposed change may be unrealistic. Association with a prediction is not a real-world causal effect.
6. Assessing interpretation quality
- Comprehensibility. Can the intended audience read the explanation correctly?
- Faithfulness. Does it reflect actual model behaviour rather than a convenient story?
- Stability. Does the main conclusion persist under small, permissible changes?
- Scope. Is it clear whether the claim applies to one instance, a group, or the whole model?
- Usefulness. Does it help debugging, auditing, decision-making, or communication?
- Verifiability. Can the analysis be reproduced and checked experimentally?
Criteria can conflict. A concise explanation is readable but may omit interactions; a detailed one may overwhelm. Stability does not guarantee faithfulness: a method can consistently repeat an inaccurate approximation.
7. Common mistakes and limits
- Confusing the model with the system: thresholds and human actions affect outcomes.
- Treating a local explanation as a description of the entire model.
- Taking a visualisation or feature ranking as proof.
- Equating feature importance with causality.
- Ignoring the audience, model version, and method settings.
8. Practice: an explanation brief
Task
Choose a credit-risk, demand-forecasting, ticket-classification, or defect-detection model. Before selecting an XAI method, complete this brief:
- Name the object: model, individual prediction, or whole system.
- Formulate one global and one local question.
- Describe the audience and its decision.
- Suggest an analysis method and justify the choice.
- State two limitations and one validation method.
Self-assessment
You have distinguished the model from the threshold and process; separated global and local questions; identified the audience; avoided claiming causality from association; and proposed a faithfulness or stability check.
Takeaway
Interpretability is not a magical yes-or-no property. It is a relationship between model structure, the research question, the audience, and conditions of use. The next lesson will distinguish interpretability from explainability more precisely before we study models whose structures can be inspected directly.