Interpretability

Interpretability asks whether a model’s behavior can be understood in terms useful for debugging, scientific reasoning, or decision support. It is not the same as correctness.

A local explanation often tries to approximate model behavior around one input:

but gradients, attention maps, feature importances, and counterfactuals can all be misleading if they are not validated.

Common Methods

  • Feature importance for tabular or engineered features.
  • Saliency or gradient-based attribution.
  • Attention inspection.
  • Counterfactual examples.
  • Example-based explanations through nearest neighbors.
  • Mechanistic or structural analysis for scientific models.

Explanation Contract

FieldQuestion
Object explainedprediction, representation, attention pattern, failure case, or dataset artifact
Scopeone example, a slice, one class, one target, or the whole model
Methodgradient, perturbation, attention, example-based, concept-based, mechanistic
Faithfulness checkwhether changing the highlighted evidence changes the model output
Stability checkwhether the explanation survives small label-preserving perturbations
Usedebugging, scientific hypothesis, trust, or communication

Interpretability evidence should say what it explains and what it does not explain.

Faithfulness Tests

One simple perturbation test removes or masks the alleged evidence:

where is the highlighted feature set. A strong explanation should cause a meaningful output change when is removed and a smaller change when irrelevant features are removed.

For counterfactuals:

The counterfactual is useful only if is plausible under the domain constraints.

Method Risks

MethodUseful ForRisk
Attention mapinspecting token or residue interactionsattention is not automatically causal
Gradient attributionlocal sensitivitysaturated or noisy gradients
Feature importancetabular/debugging settingscorrelated features and leakage
Counterfactualdecision boundary probinginvalid or unrealistic changes
Nearest neighborsrepresentation inspectiondataset duplicates and spurious similarity
Mechanistic analysismodel internalsoverclaiming from small circuits or examples

Computational Biology Examples

ExplanationCheck Before Trusting
important atom or substructurechemical state, scaffold leakage, activity cliff
important residue or pocket contactreceptor state, residue indexing, ligand-defined pocket
attention between sequence positionshomolog/template leakage and contact-map agreement
docking interaction explanationpose quality, interaction fingerprint, receptor preparation
protein representation clusterfamily split, sequence identity, annotation source

Checks

  • Is the explanation faithful to the model or only plausible to humans?
  • Does removing the highlighted feature change the prediction?
  • Is the explanation stable under small input perturbations?
  • Does the explanation reflect data leakage or shortcut features?
  • Is interpretability being used for debugging, scientific insight, or user trust?
  • Are explanations evaluated on failures as well as successes?
  • Does the explanation respect domain constraints such as chemistry, geometry, or sequence validity?