GRACE: Generating Concise and Informative Contrastive Sample to Explain Neural Network Model's Prediction

Thai Le, Suhang Wang, Dongwon Lee

TL;DR

GRACE (GeneRAting Constrastive samplEs) is a novel framework designed to explain neural network predictions on tabular data by answering the intuitive question: "Why was this classified as X rather than Y?" By generating a minimally-modified "what-if" version of a data point, GRACE provides concise, natural-language explanations that help non-experts make 60% more accurate decisions compared to traditional feature-importance methods like LIME.

What Problem Does This Paper Address?

While Explainable AI (XAI) has made huge strides in computer vision and NLP, tabular data—the bread and butter of healthcare, finance, and cybersecurity—remains a challenge. Most existing tools provide "feature importance scores," which can be overwhelming or redundant when features are high-dimensional and inter-correlated. For example, telling a user that both "frequency of !" and "frequency of !!!" are important is redundant and confusing.

Furthermore, most XAI tools are built for researchers, not "lay users." A lay user doesn't want a weight coefficient; they want a contrastive explanation. They want to know the minimum change required to reach a different outcome (e.g., "If your debt were $500 lower, your loan would have been approved").

Methods

GRACE combines "explanation by intervention" (from causality) and "contrastive explanation" (from philosophy). The framework follows a three-step process:

  1. Entropy-Based Feature Ranking: To avoid redundancy, GRACE ranks features not just by their influence on the model, but by their "Symmetrical Uncertainty." This ensures that the features chosen for the explanation aren't just powerful, but also provide unique, non-overlapping information.
  2. Contrastive Sample Generation: Using a gradient-based approach, GRACE iteratively perturbs the most important features of an input $x$ to find a new point $\tilde{x}$ that crosses the model's decision boundary. It aims to minimize the distance between the two points while strictly limiting the number of features changed (conciseness).
  3. Natural Language Generation: Finally, it translates the difference between the original and the contrastive sample into a human-readable template, such as: "Had [Feature A] been 7.0 points lower, the patient would have been diagnosed as benign rather than malignant."

Datasets

The authors evaluated GRACE on 11 public datasets from the UCI Machine Learning Repository, categorized by scale:

  • Small (<30 features): eegeye, diabetes, cancer95, phoneme, segment, magic.
  • Medium (30–100 features): biodeg, spam, cancer92.
  • Large (>100 features): mfeat (216 features), musk (166 features).

Key Insights and Ideas

  • Redundancy is the Enemy of Clarity: Standard gradient methods might highlight five different features that all represent the same underlying signal. By using entropy-based selection, GRACE ensures the explanation is "informative" by picking features that aren't mutually predictable.
  • Fidelity vs. Conciseness: There is a trade-off between how many features you change and how likely you are to actually flip the model's prediction. GRACE manages this by gradually increasing the number of features allowed to change ($K$) until a contrastive sample is successfully found.
  • Human-Centric Design: The paper argues that humans naturally think in counterfactuals. By providing a concrete "alternative reality" (the contrastive sample), the model's logic becomes much more tangible than an abstract heatmap or bar chart.

Key Results

  • Extreme Conciseness: On the mfeat dataset (216 features), GRACE-Gradient found contrastive samples by changing fewer than 3 features on average, whereas baselines like DeepFool often required changing almost all features to achieve similar fidelity.
  • Superior Fidelity: GRACE maintained an average fidelity (the ability to actually cross the decision boundary) of around 0.8 even with a very small budget of perturbed features.
  • Human Decision-Making: In user studies on Amazon Mechanical Turk, participants using GRACE explanations were 60% more accurate in predicting how to change a sample to reach a desired outcome compared to those using LIME. Users also rated GRACE as significantly more intuitive and friendly.

Limitations and Future Work

  • White-Box Requirement: Currently, GRACE requires access to the model's gradients (a "white-box" setting). The authors suggest extending this to black-box settings in future work.
  • The "Unrealistic Sample" Risk: Because the model intervenes on features independently, it could theoretically generate an unrealistic contrastive sample (e.g., a "pregnant man"). The authors acknowledge the need to incorporate conditional dependencies between features to ensure generated samples are always "physically" possible.
  • Task Scope: The current version is optimized for multinomial classification; the authors plan to adapt the framework for regression and clustering tasks.

Summary updated

BibTeX
@inproceedings{le2020grace,
  author = {Thai Le and Suhang Wang and Dongwon Lee},
  title = {{GRACE: Generating Concise and Informative Contrastive Sample to Explain Neural Network Model's Prediction}},
  booktitle = {ACM SIGKDD Conference on Knowledge Discovery and Data Mining},
  year = {2020},
  doi = {10.1145/3394486.3403066},
}
Figure