Posing Fair Generalization Tasks for Natural Language Inference

Atticus Geiger, Ignacio Cases, Lauri Karttunen, Christopher Potts · DOI

TL;DR

This paper introduces a formal definition of "fairness" in evaluation datasets for Natural Language Inference (NLI) to ensure models are truly learning compositional semantics, not just exploiting dataset artifacts. They demonstrate that standard neural models fail on these fair, challenging NLI tasks, while specialized compositional models show improved, though not perfect, performance, highlighting architectural limitations.

What Problem Does This Paper Address?

Deep learning models for Natural Language Inference (NLI) are typically evaluated on naturalistic datasets. While achieving high accuracy on these datasets might suggest models have mastered NLI, recent adversarial testing has revealed that many state-of-the-art models rely on brittle, superficial solutions that fail to generalize. This raises a crucial question: are these models truly learning the underlying semantic compositionality, or are they exploiting dataset biases? The authors argue that current evaluations might not be "fair" because the data might not provide sufficient information for models to learn the required generalizations. This paper aims to address this by defining and operationalizing a notion of fairness in evaluation tasks to rigorously probe the compositional generalization capabilities of NLI models.

Methods

The core contribution is the formalization of "fairness" in evaluation datasets. This is achieved by first defining composition trees, which recursively break down how semantic representations are built from smaller parts, analogous to how arithmetic expressions are evaluated. A baseline learning model is then introduced, which perfectly learns a function if given a composition tree and training data that exposes every intermediate function to all its possible inputs. This baseline model defines a property of fairness: a dataset is fair if this baseline model can perfectly learn the target function from it.

Using this definition, the authors construct provably fair artificial datasets for NLI. They employ a natural logic framework, which allows for direct reasoning over natural language expressions by defining semantic relations between words and phrases and joint projectivity signatures that describe how semantic operators interact compositionally. This framework enables the creation of complex, yet controllable, NLI tasks.

Datasets

The paper introduces newly constructed artificial datasets for Natural Language Inference (NLI). These datasets are designed to be "fair" according to the authors' formal definition, meaning they provide sufficient information for a hypothetical perfect compositional learner to succeed. The datasets are based on a fragment of natural language and leverage a natural logic framework. The authors also mention using a training set of 500,000 examples and test/development sets of 10,000 examples each for their experiments.

Key Insights and Ideas

  • Fairness is Crucial for Rigorous Evaluation: Simply achieving high accuracy on naturalistic datasets is insufficient. Evaluations must be "fair" by providing enough data to support the required generalizations, otherwise, failures could be due to data limitations, not just model limitations.
  • Compositional Reasoning is Hard: Standard neural architectures, even with attention mechanisms, struggle with the recursive, compositional nature of natural language inference. They often bottleneck premise and hypothesis representations, hindering deep semantic interaction.
  • Task-Specific Architectures Excel: Models explicitly designed with a recursive, aligned tree structure (CompTreeNN and CompTreeNTN) show significantly better performance on fair, challenging NLI tasks, suggesting that architectural inductive biases are critical for compositional reasoning.
  • Lexical Semantics vs. Compositional Semantics: The authors deliberately simplify lexical semantics in their artificial datasets to isolate and test compositional reasoning abilities, highlighting that even with trivialized lexical components, compositional tasks remain difficult for many models.

Key Results

The paper evaluates six different model architectures on their challenging, fair NLI task.

  • Standard Models Fail: CBOW, TreeNN, and LSTM encoder models perform poorly, achieving accuracies around 53-54% on the test set. The Attention LSTM model also struggles, with test accuracy around 47%.
  • Specialized Models Improve: The CompTreeNN and CompTreeNTN models, which incorporate compositional tree structures, achieve significantly higher test accuracies of approximately 80% and 90%, respectively.
  • Volatility: Both CompTreeNN and CompTreeNTN exhibit large confidence intervals, indicating sensitivity to random initialization, suggesting that while they perform better, they are not perfectly robust.
  • Intermediate Predictions Matter: For standard models, making intermediate predictions during training significantly improves performance on harder generalization tasks, suggesting they are learning to leverage compositional structure when explicitly guided. CompTreeNN and CompTreeNTN, however, achieve high performance with or without intermediate predictions, demonstrating their inherent compositional capability.

Limitations and Future Work

  • Model Volatility: The authors acknowledge that their specialized models (CompTreeNN and CompTreeNTN) show significant volatility, indicated by large confidence intervals. This suggests that while they perform better, they are not yet fully robust and may require further tuning or architectural improvements.
  • Cumbersome Architectures: The task-specific models that perform well are described as "cumbersome for real-world tasks." The future work direction is to develop more general-purpose models that can learn recursive composition without hard-coded aligned tree structures.
  • Perfect Solution Not Achieved: Even the best-performing models (CompTreeNN and CompTreeNTN) do not achieve perfect performance on the fair NLI task, suggesting that there might be other compositional functions or more complex interactions that current models cannot fully capture. The authors believe that a different compositional function might solve the task perfectly.

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