A large annotated corpus for learning natural language inference

Samuel R. Bowman, Gabor Angeli, Christopher Potts, Christopher D. Manning

Abstract

Natural Language Inference (NLI) is a fundamental task in language understanding, yet progress has been hindered by the lack of large-scale, high-quality datasets. This paper introduces the Stanford Natural Language Inference (SNLI) corpus, a collection of 570,000 human-written sentence pairs grounded in visual context. We demonstrate that this increase in scale allows neural network models, particularly LSTMs, to achieve performance competitive with traditional feature-engineered systems.

Introduction

Determining the logical relationship between a premise and a hypothesis—whether one entails, contradicts, or is neutral toward the other—is central to natural language understanding. Historically, NLI research relied on small datasets like the Recognizing Textual Entailment (RTE) challenges, which often contained fewer than 1,000 examples. Such limited data necessitated hand-crafted features and linguistic rules, as deep learning models lacked sufficient signal to generalize. Furthermore, existing datasets often suffered from ambiguity due to a lack of grounded context.

The SNLI Corpus

To address these limitations, we developed the SNLI corpus. By leveraging the Flickr30k dataset, we provided annotators with image captions as "premises." This grounding ensures that both the premise and the human-generated hypothesis refer to the same real-world scene, resolving common coreference ambiguities. Annotators were tasked with writing three hypotheses for each caption: one that is definitely true (entailment), one that might be true (neutral), and one that is definitely false (contradiction). The resulting dataset contains 570,152 pairs, two orders of magnitude larger than previous resources. Quality control was maintained through a validation phase where 10% of the data was re-annotated by four additional workers, yielding high consensus rates.

Experimental Methodology

We evaluated several model classes on the SNLI task. These included traditional baselines (e.g., edit distance), lexicalized classifiers using N-gram and POS features, and neural network models. The neural models represent sentences as fixed-length vectors (embeddings) before passing them through a series of non-linear layers for classification.

Figure 4: The generic architecture for the neural network models evaluated on the SNLI corpus.

As shown in Figure 4, the architecture involves separate sentence models for the premise and hypothesis, which feed into a multi-layer perceptron (MLP) with tanh activations, culminating in a 3-way softmax classifier.

Results and Discussion

The scale of SNLI fundamentally changes the performance landscape for NLI models. While traditional lexicalized classifiers perform well, neural models—specifically Long Short-Term Memory (LSTM) networks—show remarkable robustness. The LSTM model achieved 77.6% accuracy, nearly matching the 78.2% of the best feature-rich classifier.

Figure 6: Learning curves showing accuracy as a function of the number of training pairs used.

A critical insight from our analysis is the relationship between data volume and model performance. As illustrated in Figure 6, traditional unlexicalized and lexicalized models tend to plateau as training data increases. In contrast, the LSTM's performance continues to improve steadily, suggesting that neural architectures are better positioned to exploit massive datasets.

Furthermore, we found that SNLI serves as an excellent source for transfer learning. Models pre-trained on SNLI and fine-tuned on the smaller SICK dataset showed a significant accuracy boost (from 71.3% to 80.8%), indicating that the corpus captures broad, generalizable linguistic knowledge.

Conclusion

The SNLI corpus provides the first large-scale benchmark for natural language inference, enabling the effective use of deep learning techniques in this domain. While models still face challenges with complex compositional semantics and world knowledge, the transition from feature engineering to data-driven representation learning marks a significant step forward for the field. Future work will focus on more sophisticated interaction mechanisms between premise and hypothesis representations.

Summary updated

BibTeX
@inproceedings{bowman2015large,
  author = {Samuel R. Bowman and Gabor Angeli and Christopher Potts and Christopher D. Manning},
  title = {{A large annotated corpus for learning natural language inference}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2015},
  doi = {10.18653/v1/d15-1075},
}
Figure