Learning to Explain: An Information-Theoretic Perspective on Model Interpretation

Jianbo Chen, Le Song, Martin J. Wainwright, Michael I. Jordan

TL;DR

L2X (Learning to Explain) is a novel framework that interprets complex machine learning models by identifying the most informative features for each specific prediction. By framing explanation as an information-theoretic optimization problem and using a "global" explainer network, it provides high-quality interpretations orders of magnitude faster than popular methods like LIME or SHAP.

What Problem Does This Paper Address?

As machine learning models—particularly deep neural networks—become more complex, they become "black boxes." While they offer high accuracy, it is often unclear why a model made a specific decision. This is a major hurdle for deployment in high-stakes fields like medicine or criminal justice.

Existing interpretation methods generally fall into two camps:

  1. Gradient-based methods: These look at how small changes in input affect the output. However, they are often tied to specific model architectures and can be noisy.
  2. Local additive approximations (e.g., LIME, SHAP): These try to fit a simple, linear model around a specific data point. While effective, they are computationally "heavy" because they require thousands of new model evaluations for every single explanation you want to generate.

The authors identify a gap: we need a method that is model-agnostic (works on any black box), efficient (fast enough for real-time use), and capable of capturing non-linear feature interactions.

Methods

The authors introduce instancewise feature selection. Instead of finding which features are important for the dataset on average, they find which $k$ features are most important for a specific example $x$.

The Information-Theoretic Core

The core idea is to maximize the Mutual Information between the selected features ($X_S$) and the model's response ($Y$). Intuitively, the "best" explanation is the subset of features that reduces the uncertainty about the model's prediction the most.

Key Technical Innovations:

  • Variational Approximation: Directly calculating mutual information is mathematically intractable. The authors derive a variational lower bound, allowing them to optimize the objective using a neural network (the "explainer").
  • The Explainer Network: Unlike LIME, which solves a new optimization problem for every instance, L2X trains a single "explainer" function. Once trained, generating an explanation for a new image or text snippet requires only a single forward pass through this network.
  • Gumbel-Softmax Trick: Selecting a discrete subset of features is a non-differentiable operation, which usually breaks backpropagation. The authors use a continuous relaxation (the Gumbel-softmax or "Concrete" distribution) to make the feature selection process end-to-end trainable via standard gradient descent.

Datasets

The researchers validated L2X across a variety of synthetic and real-world benchmarks:

  • Synthetic Data: XOR, "Orange Skin," Nonlinear Additive, and "Switch Feature" datasets. These were specifically designed to have known "ground truth" important features that vary per instance.
  • IMDB Movie Reviews: Used for sentiment analysis. The goal was to identify the specific words or sentences that caused the model to label a review as positive or negative.
  • MNIST: Handwritten digit classification, specifically focusing on distinguishing between similar digits like 3 and 8 by identifying key pixels.

Key Insights and Ideas

  • Global Learning for Local Explanations: This is the "aha" moment. By training a global model to predict local importance, the computational burden is shifted from the "explaining" stage to a one-time "training" stage. This makes L2X viable for real-time applications where LIME would be too slow.
  • Moving Beyond Linearity: Most existing tools assume that a model behaves linearly in a small neighborhood. L2X makes no such assumption; it simply looks for the most informative features, allowing it to capture complex, non-linear interactions (like the XOR relationship) that linear approximations miss.
  • The "Switch Feature" Challenge: The authors demonstrated that L2X excels in scenarios where the important features change completely based on the input (e.g., if Feature A is positive, look at B; if A is negative, look at C). Global feature selection methods fail here, but L2X succeeds.

Key Results

  • Superior Accuracy: On synthetic datasets where the "true" important features are known, L2X consistently outperformed LIME, SHAP, and DeepLIFT in identifying the correct features (measured by the median rank of influential features).
Median rank of selected features across synthetic datasets
  • Massive Speedup: In the "explaining" stage, L2X was roughly 100x to 1000x faster than SHAP and LIME. Explaining 10,000 samples took seconds with L2X, compared to hours for the sampling-based alternatives.
Clock time comparison for generating explanations
  • Human Alignment: On the IMDB dataset, humans were asked to predict the sentiment of a review based only on the 10 words selected by L2X. Humans reached 84.4% accuracy, indicating that L2X picks words that are genuinely meaningful to people.
  • Post-hoc Verification: When the model was re-run using only the features selected by L2X, it maintained over 90% of its original accuracy, proving that the selected features were indeed the ones driving the decisions.

Limitations and Future Work

  • Fixed $k$: Currently, the user must pre-specify the number of features ($k$) to select. In reality, some explanations might need 3 features while others need 10. Future work could involve learning the optimal $k$ dynamically.
  • Training Requirement: L2X requires a training phase on a large set of (potentially unlabeled) data. If you only need to explain a single, one-off prediction, the overhead of training the explainer might not be worth it.
  • Variational Gap: The method relies on a variational approximation; if the variational family is not rich enough to approximate the model's behavior, the quality of explanations may suffer.

Summary updated

BibTeX
@inproceedings{chen2018learning,
  author = {Jianbo Chen and Le Song and Martin J. Wainwright and Michael I. Jordan},
  title = {{Learning to Explain: An Information-Theoretic Perspective on Model Interpretation}},
  booktitle = {International Conference on Machine Learning},
  year = {2018},
  url = {https://openreview.net/forum?id=HyEisiZdZS},
}
Figure