[Paper Review] How to Explain Individual Classification Decisions
This paper proposes a general framework to explain individual classification decisions by computing local explanation vectors—essentially, the gradient of class probability with respect to input features—enabling instance-specific interpretability for any black-box classifier. The method uses Parzen window density estimation to approximate the classifier and derive feature-wise influence scores, demonstrating effectiveness across diverse models and real-world applications like drug discovery and digit classification.
After building a classifier with modern tools of machine learning we typically have a black box at hand that is able to predict well for unseen data. Thus, we get an answer to the question what is the most likely label of a given unseen data point. However, most methods will provide no answer why the model predicted the particular label for a single instance and what features were most influential for that particular instance. The only method that is currently able to provide such explanations are decision trees. This paper proposes a procedure which (based on a set of assumptions) allows to explain the decisions of any classification method.
Motivation & Objective
- To address the lack of instance-level interpretability in modern black-box classifiers, especially where global feature importance fails to capture local decision dynamics.
- To develop a method that explains *why* a specific data point received a particular classification label, not just which features are globally important.
- To extend explanation capabilities beyond decision trees to any nonlinear, kernel-based, or complex classifier, including SVMs and k-NN.
- To provide a practical, model-agnostic approach for generating local, feature-wise influence scores that reflect the contribution of each input feature to a single prediction.
- To validate the method in real-world scenarios, such as drug design, where explanations must align with domain-specific chemical knowledge.
Proposed method
- Define explanation vectors as the gradient of the probability of incorrect classification with respect to input features, derived from the Bayes classifier’s conditional probability distribution.
- Use Parzen window density estimation to approximate the classifier’s decision function, enabling analytical computation of local gradients even when the original model is non-differentiable.
- Estimate the local explanation vector at a test point by computing the difference in weighted contributions of training points from the predicted class versus the opposite class.
- Apply kernel smoothing (e.g., RBF kernel) to model the local density around a test instance, with bandwidth selection influencing the fidelity of the gradient approximation.
- Derive the explanation vector using a closed-form expression involving sums over training points in the predicted class and the complementary class, weighted by kernel distances.
- Use cross-validation to select optimal bandwidth (σ) for the Parzen window, balancing approximation accuracy and local sensitivity.
Experimental results
Research questions
- RQ1Can we generate instance-specific explanations for any black-box classifier, even when the model does not output probabilities?
- RQ2How do local explanation vectors reflect feature interactions and decision boundaries in nonlinear models such as SVMs and Gaussian Process Classifiers?
- RQ3To what extent do the explanation vectors capture local peculiarities that are masked in global feature importance methods?
- RQ4Can the method produce explanations that align with domain-specific knowledge, such as toxicophores in drug discovery?
- RQ5How does the choice of Parzen window bandwidth affect the quality and interpretability of the estimated explanation vectors?
Key findings
- The proposed method successfully generates local explanation vectors that accurately reflect the influence of individual features on a single prediction, even for complex models like SVMs and k-NN.
- Explanation vectors computed via Parzen window approximation closely follow the non-linear decision boundaries of the underlying classifier, as demonstrated on synthetic and real data.
- For the USPS digit dataset, the method identified that the central loop of digit '2' and the lack of a lower loop in '8' were key distinguishing features, consistent with human intuition.
- In the Ames mutagenicity dataset, the explanation vectors highlighted known toxicophores (e.g., nitroaromatics) as major contributors to classification, validating alignment with chemical domain knowledge.
- The choice of bandwidth in Parzen window estimation critically affects explanation quality: too small leads to zero gradients in class interiors, too large distorts directionality and misrepresents local influences.
- The method outperforms global feature selection in capturing local, instance-dependent feature relevance, such as when one feature dominates near decision boundaries while both contribute jointly in other regions.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.