Skip to main content
QUICK REVIEW

[Paper Review] Generating Token-Level Explanations for Natural Language Inference

James Thorne, Andreas Vlachos|arXiv (Cornell University)|Apr 24, 2019
Topic ModelingComputer Science18 references5 citations
TL;DR

This paper proposes a white-box method using Multiple Instance Learning (MIL) to generate token-level explanations for Natural Language Inference (NLI) by regularizing attention distributions in a neural model. Unlike simple attention thresholding, the MIL approach improves alignment with human-annotated explanations—boosting F1 by 6.68% in precision and 28.05% in recall for hypothesis explanations—while remaining orders of magnitude faster than black-box methods like LIME and Anchor.

ABSTRACT

The task of Natural Language Inference (NLI) is widely modeled as supervised sentence pair classification. While there has been a lot of work recently on generating explanations of the predictions of classifiers on a single piece of text, there have been no attempts to generate explanations of classifiers operating on pairs of sentences. In this paper, we show that it is possible to generate token-level explanations for NLI without the need for training data explicitly annotated for this purpose. We use a simple LSTM architecture and evaluate both LIME and Anchor explanations for this task. We compare these to a Multiple Instance Learning (MIL) method that uses thresholded attention make token-level predictions. The approach we present in this paper is a novel extension of zero-shot single-sentence tagging to sentence pairs for NLI. We conduct our experiments on the well-studied SNLI dataset that was recently augmented with manually annotation of the tokens that explain the entailment relation. We find that our white-box MIL-based method, while orders of magnitude faster, does not reach the same accuracy as the black-box methods.

Motivation & Objective

  • To generate token-level explanations for NLI models without requiring annotations for explanation generation.
  • To evaluate whether attention-based explanations align with human judgments of salient tokens in entailment.
  • To compare white-box MIL-based attention regularization against black-box methods (LIME, Anchor) and a fully supervised baseline.
  • To assess the trade-off between explanation quality and computational efficiency in NLI explanation generation.
  • To investigate whether attention mechanisms alone can produce reliable, human-aligned explanations for sentence pair entailment.

Proposed method

  • Uses a simple LSTM-based NLI model with independent sentence encoding and cross-sentence attention.
  • Applies thresholded attention to generate baseline token-level explanations.
  • Introduces a novel white-box method using Multiple Instance Learning (MIL) to regularize attention distributions toward human-annotated highlights.
  • Employs a MIL objective that encourages attention to focus on relevant tokens by treating each sentence pair as a bag of tokens.
  • Compares the MIL method against black-box explanation techniques: LIME and Anchor, which perturb inputs and train surrogate models.
  • Evaluates all methods on the e-SNLI dataset, which provides human-annotated token highlights for entailment justification.

Experimental results

Research questions

  • RQ1Can attention-based explanations in NLI models be improved to better align with human-annotated salient tokens without explicit supervision for explanation?
  • RQ2How does MIL regularization of attention compare to black-box explanation methods like LIME and Anchor in terms of fidelity to human judgments?
  • RQ3Does the proposed white-box method achieve better explanation quality than simple attention thresholding while maintaining computational efficiency?
  • RQ4Why do attention mechanisms in NLI models often fail to highlight tokens that humans consider important for entailment?
  • RQ5To what extent does the architecture's independence of premise and hypothesis encodings limit the quality of attention-based explanations?

Key findings

  • The MIL-regularized attention method improved F1 by 6.68% in precision and 28.05% in recall for hypothesis sentence explanations compared to simple attention thresholding.
  • Black-box methods (LIME and Anchor) outperformed all attention-based approaches in alignment with human judgments, with LIME achieving the highest F1 scores.
  • The fully supervised baseline showed high precision but low recall, favoring common words like 'man', 'woman', 'dog' over context-specific, label-correlated tokens.
  • Attention-based explanations were significantly less reliable than black-box methods, with LIME and Anchor showing higher F1 scores, indicating a weak correspondence between attention and feature importance.
  • The black-box explanation methods were orders of magnitude slower (64 seconds per instance) than the white-box MIL method (0.01 seconds per instance), highlighting a major efficiency advantage.
  • The poor performance of attention on premise sentences was attributed to the model’s independent encoding of premise and hypothesis, which fails to capture pairwise semantic dependencies like synonyms or entailment patterns.

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.