Local Interpretation
When a model makes a prediction about one specific case—this email, this patient, this loan applicant—you usually want to know why that particular decision happened, not just what the model “generally” cares about. Local interpretation is the set of tools that explain an individual prediction in human terms.
What “local” means (and what it doesn’t)A local interpretation focuses on a single input example (or a small neighborhood of similar examples) and attributes the prediction to the input features. It’s different from global interpretation, which summarizes model behavior across the whole dataset. Local explanations answer questions like: “Why was this transaction flagged as fraud?” or “Why did the model predict high house price for this one home?”
How local explanations are producedMany popular methods work by approximating the model near the specific example:
- LIME fits a simple, interpretable surrogate model (like a sparse linear model) around the point by perturbing inputs and weighting nearby samples more.
- SHAP computes Shapley values, distributing “credit” for the prediction among features in a way grounded in cooperative game theory.
- Counterfactual explanations describe the smallest changes needed to flip the prediction (e.g., “If income were $5k higher and utilization 3% lower, the loan would be approved”).
Local interpretation supports debugging (catching leakage or spurious signals), compliance and auditability (credit scoring, medical triage), and user trust. If ignored, a model can look accurate while relying on brittle shortcuts—like ZIP code acting as a proxy for sensitive attributes—leading to unfair or unsafe decisions.
# Example you’ll see in practice (Python)
# shap.Explainer(model)(X_row) # local attributions for one prediction
Local interpretation is an explainability approach that accounts for a model’s behavior for a single input instance by attributing the specific prediction to particular features or feature values (e.g., per-example feature attributions or a local surrogate explanation). It matters because supervised models are deployed decision-by-decision; local interpretation supports debugging, compliance, and user trust by revealing why a specific prediction was made and surfacing spurious or sensitive drivers.
Think of a doctor explaining one specific diagnosis to one specific patient. They don’t describe everything they know about medicine. They explain the few signs that mattered this time.
That’s what Local Interpretation means in AI. It’s an explanation for a single prediction, focused on one case. For example, if a loan model says “no,” a local interpretation might point to the applicant’s high debt and short job history as the key reasons. If a spam filter flags one email, it might be because of certain phrases and a suspicious link. It helps people trust, question, and act on individual decisions.