Skip to main content
QUICK REVIEW

[Paper Review] Inverse Classification for Comparison-based Interpretability in Machine Learning

Thibault Laugel, Marie‐Jeanne Lesot|arXiv (Cornell University)|Dec 22, 2017
Explainable Artificial Intelligence (XAI)Computer Science17 references46 citations
TL;DR

This paper proposes Growing Spheres, a model- and data-agnostic post-hoc interpretability method that explains individual classifier predictions by finding the closest counterfactual instance (nearest neighbor of opposite class) under a sparsity-constrained distance metric. The method generates sparse, comparison-based explanations by iteratively growing spheres in the input space to locate minimal perturbations that flip predictions, demonstrating effectiveness on image and tabular data with high sparsity (≤7.9% features used).

ABSTRACT

In the context of post-hoc interpretability, this paper addresses the task of explaining the prediction of a classifier, considering the case where no information is available, neither on the classifier itself, nor on the processed data (neither the training nor the test data). It proposes an instance-based approach whose principle consists in determining the minimal changes needed to alter a prediction: given a data point whose classification must be explained, the proposed method consists in identifying a close neighbour classified differently, where the closeness definition integrates a sparsity constraint. This principle is implemented using observation generation in the Growing Spheres algorithm. Experimental results on two datasets illustrate the relevance of the proposed approach that can be used to gain knowledge about the classifier.

Motivation & Objective

  • To address the challenge of interpreting black-box classifier predictions when no information about the model or training data is available.
  • To develop a post-hoc interpretability approach that explains individual predictions through comparison with the closest instance of a different class.
  • To ensure explanations are sparse and locally meaningful by incorporating a sparsity constraint into the distance metric.
  • To provide insights into the local decision boundary of complex classifiers without relying on model internals or training data.
  • To validate the method on real-world datasets and demonstrate its ability to reveal classifier behavior, including potential biases or inaccuracies.

Proposed method

  • The method formulates the explanation task as finding the minimal perturbation to an input instance that flips its predicted class, under a sparsity-constrained distance metric.
  • It employs the Growing Spheres algorithm, which incrementally expands a hypersphere around the input instance to locate the nearest counterfactual instance (i.e., a point of different class).
  • The algorithm uses a local search strategy that explores the input space by generating new observations through controlled perturbations, guided by the classifier’s output.
  • The cost function balances proximity to the original instance and sparsity of the perturbation, favoring explanations that modify only a few features.
  • The search terminates when a counterfactual instance is found, ensuring the explanation is both close and sparse.
  • The approach is entirely model-agnostic and requires only inference access to the classifier, not its architecture or training data.

Experimental results

Research questions

  • RQ1How can we explain a single prediction of a black-box classifier without access to its internal structure or training data?
  • RQ2What is the most effective way to generate sparse, locally relevant counterfactual explanations for model predictions?
  • RQ3Can a generative, instance-based approach like Growing Spheres reliably locate minimal perturbations that flip a classifier’s prediction?
  • RQ4To what extent do the generated explanations reflect the local decision boundary of the classifier, even when the model is complex or non-linear?
  • RQ5How do the explanations compare to human intuition in terms of feature relevance, especially in perceptually meaningful tasks like digit recognition?

Key findings

  • The Growing Spheres algorithm successfully identified counterfactual instances that required minimal, sparse perturbations to flip the prediction, with 100% of test instances explainable using at most 62 features (7.9% of total features).
  • In the digit classification task, the method correctly identified that changes to the bottom-left region of digits (e.g., closing or opening the loop) were most influential in flipping predictions between 8 and 9.
  • Despite high classifier accuracy (0.98 AUC), the model exhibited non-intuitive behavior, such as treating top-right pixel changes as influential, indicating potential boundary inaccuracies.
  • The generated counterfactuals were not always visually plausible (e.g., noisy or distorted digits), suggesting the classifier learned decision boundaries that differ from human concept understanding.
  • The method provided meaningful insights into feature relevance in a news popularity prediction task, revealing locally important features without model access.
  • The approach demonstrated robustness and interpretability in real-world applications, confirming its utility for gaining knowledge about black-box classifiers in data- and model-agnostic settings.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.