Posing Fair Generalization Tasks for Natural Language Inference

Atticus Geiger, Ignacio Cases, Lauri Karttunen, Christopher Potts

Abstract

Deep learning models for semantics are generally evaluated using naturalistic corpora. Adversarial methods, in which models are evaluated on new examples with known semantic properties, have begun to reveal that good performance at these naturalistic tasks can hide serious shortcomings. However, we should insist that these evaluations be fair—that the models are given data sufficient to support the requisite kinds of generalization. In this paper, we define and motivate a formal notion of fairness in this sense. We then apply these ideas to natural language inference by constructing very challenging but provably fair artificial datasets and showing that standard neural models fail to generalize in the required ways; only task-specific models that jointly compose the premise and hypothesis are able to achieve high performance, and even these models do not solve the task perfectly.

Introduction

Deep learning models frequently achieve human-level performance on Natural Language Inference (NLI) benchmarks. However, their robustness is often called into question by "adversarial" examples—slight perturbations that preserve logic but cause model failure. This raises a fundamental question: is the model failing due to architectural flaws, or because the training data was insufficient to learn the underlying rules? This paper introduces a formal framework for Fair Generalization to resolve this ambiguity.

Formalizing Fairness via Composition Trees

The researchers formalize the learning process using Composition Trees, which mathematically describe how complex meanings are built from smaller parts.

A composition tree illustrating how semantic relations are recursively composed from lexical items like "every" and "animal".

A task is defined as "fair" if the training data exposes every "intermediate function" of a composition tree to every possible "intermediate input." To verify this, the authors define a "perfect" baseline model that memorizes every intermediate step seen during training. A dataset is fair if this baseline can achieve 100% accuracy on the test set, ensuring the "rules of the game" are fully present in the data.

The NLI Task and Dataset

To create a realistic NLI task, the authors utilized a variant of Natural Logic, which calculates semantic relations (e.g., entailment, contradiction, or neutrality) by composing lexical relations through projectivity signatures. They generated an artificial dataset with a controlled vocabulary of 100 nouns, verbs, adjectives, and adverbs, alongside quantifiers and negation.

Examples of the compositional NLI task, showing relations between sentences and their constituent phrases like "happily kicks" and "tall kid".

The resulting dataset is massive in potential complexity, with the composition tree defining over $10^{26}$ distinct examples. This scale ensures that models must learn the underlying logic rather than simply memorizing sentences.

Key Insights: The Information Bottleneck

Standard models, such as LSTMs and Transformers, typically encode the premise and hypothesis into separate vectors, only comparing them at the final stage. The authors argue this creates an "information bottleneck" that prevents the recursive, step-by-step comparison required for logical reasoning. In contrast, models that align the premise and hypothesis early and compose them jointly (e.g., CompTreeNN) perform significantly better.

Experimental Results

The researchers compared several architectures on the most challenging version of their fair task:

Model Train Acc Test Acc
CBoW (Bag of Words) 88.0% 54.0%
LSTM Encoder 98.4% 52.5%
Attention LSTM 73.7% 47.3%
CompTreeNN (Task-Specific) 99.7% 80.2%
CompTreeNTN (Task-Specific) 99.9% 90.3%

Standard models failed significantly, hovering near chance despite the data being provably sufficient to solve the task. Task-specific models like the CompTreeNTN, which uses a neural tensor network for joint composition, reached ~90% accuracy. However, even these models fell short of the 100% "perfect" score guaranteed by the fairness definition.

Conclusion

By ensuring data is "fair," this work proves that the failure of standard models in NLI is often due to a fundamental architectural inability to perform recursive logical composition. While task-specific joint composition models show promise, a major future challenge remains: developing general-purpose models that can autonomously discover these recursive patterns without hard-coded alignment structures.

Summary updated

BibTeX
@inproceedings{geiger2019posing,
  author = {Atticus Geiger and Ignacio Cases and Lauri Karttunen and Christopher Potts},
  title = {{Posing Fair Generalization Tasks for Natural Language Inference}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2019},
  doi = {10.18653/v1/d19-1456},
}
Figure