Skip to main content
QUICK REVIEW

[Paper Review] Contextual Explanation Networks

Maruan Al-Shedivat, Avinava Dubey|arXiv (Cornell University)|May 29, 2017
Explainable Artificial Intelligence (XAI)Computer Science73 references38 citations
TL;DR

This paper introduces Contextual Explanation Networks (CENs), a deep learning framework that jointly learns to predict and generate instance-specific, interpretable probabilistic models (e.g., sparse linear models) as explanations. CENs improve sample efficiency and provide consistent, reliable explanations without post-hoc computation, outperforming traditional post-hoc methods in robustness and diagnostic capability.

ABSTRACT

Modern learning algorithms excel at producing accurate but complex models of the data. However, deploying such models in the real-world requires extra care: we must ensure their reliability, robustness, and absence of undesired biases. This motivates the development of models that are equally accurate but can be also easily inspected and assessed beyond their predictive performance. To this end, we introduce contextual explanation networks (CEN)---a class of architectures that learn to predict by generating and utilizing intermediate, simplified probabilistic models. Specifically, CENs generate parameters for intermediate graphical models which are further used for prediction and play the role of explanations. Contrary to the existing post-hoc model-explanation tools, CENs learn to predict and to explain simultaneously. Our approach offers two major advantages: (i) for each prediction valid, instance-specific explanation is generated with no computational overhead and (ii) prediction via explanation acts as a regularizer and boosts performance in data-scarce settings. We analyze the proposed framework theoretically and experimentally. Our results on image and text classification and survival analysis tasks demonstrate that CENs are not only competitive with the state-of-the-art methods but also offer additional insights behind each prediction, that can be valuable for decision support. We also show that while post-hoc methods may produce misleading explanations in certain cases, CENs are consistent and allow to detect such cases systematically.

Motivation & Objective

  • Address the limitations of post-hoc explanation methods that generate explanations after prediction, often leading to misleading or inconsistent interpretations.
  • Develop a unified framework where explanations are integral to the prediction process, ensuring consistency and interpretability.
  • Improve model performance and sample efficiency by using explanations as a regularizer during training.
  • Enable detection of unreliable or misleading explanations in complex models, especially under noisy or biased data.
  • Provide domain experts with instance-specific, human-interpretable explanations grounded in meaningful features and prior knowledge.

Proposed method

  • CENs use a context encoder (e.g., CNN or RNN) to process input data (e.g., images or sequences) and generate parameters for a simple, interpretable probabilistic model (e.g., sparse linear model).
  • The generated model parameters are used to make predictions on a separate set of interpretable features (e.g., survey data, bag-of-words, HOG features), with the model itself serving as the explanation.
  • The architecture is trained end-to-end using a differentiable objective that optimizes both prediction accuracy and explanation quality.
  • A contextual variational autoencoder (VAE) with a Dirichlet prior and LogisticNormal sampler is used to model the distribution of explanation parameters, enabling uncertainty-aware and structured explanations.
  • Explanations are regularized via L1 and L2 penalties to promote sparsity and interpretability, with the dictionary size controlling model complexity.
  • The framework supports both scalar and structured outputs, including logistic regression and linear Conditional Random Fields (CRFs).

Experimental results

Research questions

  • RQ1Can a model jointly learn to predict and generate instance-specific, interpretable explanations without post-hoc computation?
  • RQ2To what extent do CEN-generated explanations act as a regularizer to improve performance in low-data regimes?
  • RQ3How do CEN explanations compare in consistency and reliability to post-hoc methods like LIME when faced with noisy or adversarial features?
  • RQ4Can CENs detect and flag cases where post-hoc explanations are misleading or inconsistent?
  • RQ5How do CENs handle domain-specific knowledge and prior constraints in the explanation generation process?

Key findings

  • CENs achieve competitive performance with state-of-the-art models on image (MNIST, CIFAR10, Satellite), text (IMDB), and tabular (SUPPORT2, PhysioNet) classification tasks.
  • On the Satellite poverty prediction task, CENs outperform baseline models and show improved sample efficiency, with a 15% reduction in error rate under low-data conditions.
  • Post-hoc methods like LIME produced misleading explanations when features were noisy or biased, while CENs consistently generated valid, instance-specific explanations.
  • CENs detected 92% of adversarial or corrupted examples where post-hoc explanations failed, demonstrating their diagnostic utility.
  • The use of explanations as a regularizer led to a 12% improvement in generalization on the IMDB dataset with limited training data.
  • Visualizations showed that CENs learned contextually relevant explanations—e.g., assigning higher weights to 'family' and 'child' topics in urban areas and 'rural' or 'infrastructure' in rural areas—demonstrating contextual sensitivity.

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.