Non-entailed subsequences as a challenge for natural language inference

R. Thomas McCoy, Tal LinzenarXiv 2018 · OpenReview

Abstract

Neural network models have shown great success at natural language inference (NLI), the task of determining whether a premise entails a hypothesis. However, recent studies suggest that these models may rely on fallible heuristics rather than deep language understanding. We introduce a challenge set to test whether NLI systems adopt one such heuristic: assuming that a sentence entails all of its subsequences, such as assuming that "Alice believes Mary is lying" entails "Alice believes Mary." We evaluate several competitive NLI models on this challenge set and find strong evidence that they do rely on the subsequence heuristic.

Introduction

Natural Language Inference (NLI) is a fundamental task in NLP where a model must determine if a "premise" sentence entails a "hypothesis" sentence. While modern neural networks achieve high accuracy on large, crowdsourced datasets like MNLI, there is growing concern that these models are exploiting statistical regularities rather than demonstrating true linguistic understanding.

This paper investigates the subsequence heuristic: the flawed assumption that a sentence entails any of its contiguous subsequences. For example, a model might incorrectly predict that "Alice believes Mary is lying" entails "Alice believes Mary." Because human annotators rarely produce these specific types of non-entailed subsequences as negative examples in training data, models are often never forced to learn the underlying syntax, allowing them to rely on shallow pattern matching.

Methodology

To expose this vulnerability, we developed a controlled challenge dataset using NP/S sentences. These are syntactic structures where a verb (e.g., believed, heard, felt) can take either a noun phrase (NP) or a full sentence (S) as its complement. In the sentence "The judge heard the defendant was lying," the subsequence "The judge heard the defendant" is not entailed because the defendant is the subject of the embedded clause, not the direct object of the hearing.

We evaluated five bidirectional LSTM models, each pre-trained on different tasks to provide varied inductive biases:

  1. MNLI: Pre-trained on NLI.
  2. CCG: Pre-trained on syntactic supertagging.
  3. MS COCO: Pre-trained on image captioning.
  4. LM: Pre-trained on language modeling (WikiText-103).
  5. Random: A baseline with random weights.

All models were subsequently fine-tuned on the MNLI dataset to perform the standard three-way classification (entailment, contradiction, or neutral).

Key Results

Our evaluation reveals a stark contrast between performance on standard benchmarks and our targeted challenge set. While the models achieved respectable accuracies (61%–75%) on the standard MNLI development set, their performance collapsed on the NP/S challenge set, falling as low as 3%.

Table 1: Accuracy of NLI models on standard MNLI vs. the NP/S challenge set.

Analysis of the results suggests that models are largely blind to syntactic boundaries. If the words in the hypothesis appear in the premise in the same order, models overwhelmingly predict "entailment." Furthermore, we discovered that the models were relying on a "negation heuristic." When we removed all negation words (like "no" or "not") from the challenge examples, accuracy for all models dropped to nearly 0% (0.00 to 0.03). This indicates that any correct "non-entailment" predictions were likely triggered by simple keyword detection rather than syntactic parsing.

Discussion and Future Work

The results underscore the danger of relying solely on high-level benchmark scores to measure natural language understanding. A model can appear competent on a general dataset while failing completely on fundamental syntactic logic.

While this study is limited by its focus on a specific syntactic construction and BiLSTM architectures, it highlights a critical path for future research. We intend to expand this challenge set to include a broader range of heuristics, such as lexical overlap, and evaluate more modern architectures like Transformers to determine if these biases are inherent to the NLI task or specific to sequential processing models.

Summary updated

Abstract

Neural network models have shown great success at natural language inference (NLI), the task of determining whether a premise entails a hypothesis. However, recent studies suggest that these models may rely on fallible heuristics rather than deep language understanding. We introduce a challenge set to test whether NLI systems adopt one such heuristic: assuming that a sentence entails all of its subsequences, such as assuming that "Alice believes Mary is lying" entails "Alice believes Mary." We evaluate several competitive NLI models on this challenge set and find strong evidence that they do rely on the subsequence heuristic.
BibTeX
@misc{mccoy2018non,
  author = {R. Thomas McCoy and Tal Linzen},
  title = {{Non-entailed subsequences as a challenge for natural language inference}},
  year = {2018},
  eprint = {1811.12112},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1811.12112},
}

Loading related content...

Figure