# A large annotated corpus for learning natural language inference

Researchers built a 570K-pair corpus that lets NLI models train at scale

Samuel R. Bowman, Gabor Angeli, Christopher Potts, Christopher D. Manning · arXiv · 2015-8-21

- **Problem** Earlier NLI datasets were either hand-labeled but tiny or large but noisy, so learned models could not be trained well. Fully automatic labels and unclear labels from event coreference also limited them.
- **Method** The Stanford Natural Language Inference corpus is built by crowdsourcing sentence pairs from Flickr30k captions. Workers write one entailment, one neutral and one contradiction hypothesis per premise, and about 10% of pairs get five labels.
- **Results** On the SNLI test set in 3-class classification, the lexicalized classifier reaches 78.2 and the LSTM RNN reaches 77.6.

## Why existing NLI resources fall short

Earlier NLI resources were either hand-labeled but tiny or large but noisy, which limits how well learned models can be trained and compared. The RTE challenge sets have fewer than a thousand examples each, and the SICK data reaches only 4,500 training examples, with some spurious patterns introduced by its partly automatic construction. Denotation Graph contains millions of pairs but was labeled by fully automatic methods, so it is best used as supplementary training data.

A subtler problem affects even purely human-labeled corpora: when events or entities are not clearly coreferent, the correct label of a pair can change. A pair about a boat sinking in the Pacific and another about a boat sinking in the Atlantic can be labeled contradiction if both sentences describe one event, and neutral if they do not. Labeling each pair individually cannot resolve this, so one convention has to be chosen for the whole corpus, and either choice creates its own problems.

Assuming that events are coreferent produces counterintuitive labels for unrelated sentences, while refusing that assumption restricts contradictions to broad universal claims. Entity coreference raises the same issue: a tourist visiting New York and a tourist visiting the city is an entailment only if the two places are assumed to be the same.

## How the corpus was collected

Workers were free to write new sentences instead of editing existing ones, which the authors found yields richer examples without sacrificing consistency. Images were not used during collection, so each label has to be recoverable from the text alone.

Data was gathered on Amazon Mechanical Turk, where each task showed one premise caption and asked for three hypotheses, one each for entailment, neutral and contradiction, so the classes stay balanced. The task instructions asked for one caption that is definitely true, one that might be true and one that is definitely false, and the accompanying FAQ was extended during collection to forbid techniques such as reusing a sentence across prompts.

About 2,500 workers contributed.

The premises are Flickr30k captions, about 160k captions for about 30k images, written by people other than the photographers, and they tend to describe scenes literally. A pilot set of about 4k pairs, whose premises come from VisualGenome, appears only in the training split and carries identifiers prefixed with vg.

The corpus contains 570,152 pairs in total, with 550,152 for training and 10,000 each for development and test. Premises average 14.1 tokens and hypotheses 8.3, and hypotheses cluster at around seven words.

## Validation and gold labels

Validation covers about 10% of the data, with each pair given to four extra annotators so that every pair has five labels, including the label of the original author. An early batch showed random guessing, so those judgments were removed and the qualification was closed to about 30 trusted workers.

Placeholder pairs stay in the distribution but are excluded from training and from evaluation in the experiments reported here.

Four extra judgments were collected for 56,941 examples, and 98% of these reach a three-annotator consensus while 58% have unanimous agreement from all five annotators. Table 3 gives 56,951 validated pairs, against 56,941 in the text. Fleissκ over examples with five annotations is 0.70 overall, 0.77 for contradiction, 0.72 for entailment and 0.60 for neutral.

The authors expect these κ values to be conservative, given the large and unevenly used pool of annotators. The gold label matches the label of the original author in 91.2% of cases, and differs in 6.8%.

## Baselines from the Excitement Open Platform

The Excitement Open Platform supplies a simple edit-distance system and a classifier, and the classifier is tested both bare and with its full set of lexical resources. Each algorithm is trained separately on each corpus, and for SNLI and SICK the labels are collapsed to two classes by mapping contradiction and unknown to nonentailment. The edit-distance system tunes the weights of three case-insensitive operations on the training data after stop words are removed.

On the SNLI test set the most-frequent-class baseline reaches 66%, the edit-distance system 71.9 and the bare classifier 72.2, while the classifier with lexical resources reaches 75.0. These are 2-class scores, so they are not directly comparable with the 3-class scores reported for the lexicalized and neural models.

## Lexicalized classifier and feature ablations

The classifier is a simple linear model over six feature types, three unlexicalized and three lexicalized. The unlexicalized features are a BLEU score of hypothesis against premise with n-grams from 1 to 4, a real-valued length difference, and word overlap counts over all words and over content-word classes. The lexicalized features are indicators for each hypothesis unigram and bigram, cross-unigrams for word pairs sharing a POS tag, and cross-bigrams for bigram pairs whose second words share a POS tag.

In 3-class classification on the SNLI test set, the full lexicalized model reaches 78.2, while the unlexicalized model reaches 50.4. Removing the cross-bigram features and keeping only the cross-unigrams lowers test accuracy from 78.2 to 71.6. The full model reaches 99.7 on its training data, so it fits that data almost perfectly.

The authors read the cross-bigram gain as evidence that the classifier learns structures such as explicit negation and adjective modification without alignment or tree transformations. They note that a similar benefit of bigram features was reported earlier for sentiment analysis, and they expect richer models to do better while arguing that with enough data, cross-bigrams under the noisy POS overlap constraint can be effective.

## Sentence embedding models with a shared classifier

Each sentence is encoded without seeing the other, so the model produces one vector for the premise and one for the hypothesis. The two 100d vectors feed a classifier made of three 200d tanh layers and a three-way softmax, trained jointly with the encoder, and the design is based on a one-layer model from Bowman et al. 2015.

The three encoders are a sum of word embeddings, a plain RNN and an LSTM RNN, each producing 100d phrase and sentence embeddings. Word embeddings start from the 300d GloVe vectors trained on 840B tokens and are fine-tuned, with an extra tanh layer mapping them into the 100d space. All encoders are trained with AdaDelta minibatch SGD until development performance stops improving.

The L2 strength is tuned separately for each model, and dropout at a fixed rate is applied to the inputs and outputs of the sentence models but not to their internal connections.

Training and test accuracy are 79.3 and 75.3 for the sum of words model, 73.1 and 72.2 for the plain RNN, and 84.8 and 77.6 for the LSTM RNN. The sum of words model trails the lexicalized classifier, which the authors tie to its lack of sensitivity to word order, even though pretrained vectors help it with rare words. The LSTM is far ahead of the plain RNN and close to the lexicalized model on the test set, where it scores 77.6 against 78.2, and its score moves by up to 0.5% between evaluation steps near the stopping point.

The lexicalized model fits its training data almost perfectly, while the train-test gap for the neural models is small, which suggests that higher-capacity versions could be worth exploring.

## How training set size changes the picture

Models are trained to convergence on increasing numbers of SNLI training pairs, and the curves show that corpus size matters for both the LSTM and the lexicalized model. The y-axis starts near random chance, 33%, and the minibatch size of 64 used for the LSTM sets a lower bound on the data that model can be trained on.

With only 100 training examples, the cross-bigram classifier already beats the unlexicalized classifier, and the authors were struck by how quickly that happens. Its top-weighted features at that size tend to be high-precision entailments, such as playing implying outside and a banana implying person eating. The authors argue that because few spurious entailments receive large weights, these features boost accuracy when they fire.

At the full training size the LSTM and the lexicalized model perform similarly, but the LSTM curve is steeper, which the authors take to mean it may gain more from larger datasets.

## Where the models fail

Errors common to all the models point to lexical relations, phrase-level composition, world knowledge and context-specific inference as weak spots.

A race car driver leaping from a burning car is labeled as entailing a driver escaping danger, but both the lexicalized classifier and the LSTM predict neutral, which the authors link to world knowledge. A girl throwing sand toward the ocean is wrongly predicted to entail that a girl cannot stand the ocean, which the authors attribute to distributional associations between throws and can't stand.

Hypotheses largely keep the topic and focus structure of their premises, which helps coherence but gives models a cue they can misuse, as in a soup-bowl pair that all models mishandle. A man wearing arm protection being bitten by a German shepherd dog is wrongly labeled entailment against a man biting a dog, and the authors suggest that models with explicit syntactic or semantic structure should handle such cases better.

## Transfer from SNLI to SICK

The parameters of the SNLI-trained LSTM RNN initialize a new model that is trained only on the SICK training split. The softmax layer and the embeddings of words that appear in SICK but not in SNLI are initialized anew, with GloVe vectors for the latter, and the hyperparameters carry over except the L2 strength, which is retuned. The AdaDelta accumulators are transferred as well, which lowers the starting learning rates so that the model does not learn too quickly after transfer.

Under the SNLI-only regime the LSTM scores 42.0 on the SICK training split and 46.7 on the SICK test split, while training on SICK alone reaches 100.0 and 71.3. The transfer model reaches 80.8 test accuracy on SICK, with 99.9 on its training split.

The authors report that the transfer result surpasses the EOP models, which are 2-class scores, and approaches the 84.6% of Lai and Hockenmaier 2014 and an 84% level of interannotator agreement. Those figures come from a different system and an approximate ceiling, so they are not a controlled comparison with the transferred model.

## Limits of transfer to RTE-3

The same transfer method was applied to the RTE-3 challenge, whose training set has 800 examples. The small set did not let the model adapt to the genre of text in that corpus, and no training configuration gave competitive performance. The authors suggest that further research on transfer learning with small data sets and neural models might improve this.

## Limitations

Pairs without a gold label, about 2% of cases, are excluded from the training and evaluation reported here. The authors expect the Fleissκ agreement values to understate agreement because of the large and unevenly used annotator pool. Only models designed to scale to SNLI's size without modification were evaluated, and a fuller comparison of approaches is left to future work.

The EOP scores in Table 4 are 2-class, while the lexicalized and neural results are 3-class, so the two sets of numbers are not interchangeable. The LSTM's test scores depend on the stopping point, with variation of up to 0.5% between evaluation steps.

## Paper info

- **Authors**: Samuel R. Bowman, Gabor Angeli, Christopher Potts, Christopher D. Manning
- **Venue**: arXiv · Preprint
- **First published**: 2015-8-21
- **Added**: 2026-11-12
- **Updated**: 2015-8-21
- **Version**: v1
- **arXiv**: 1508.05326
- **Category**: cs.CL
- **Original paper terms**: [arXiv non-exclusive 1.0](https://arxiv.org/licenses/nonexclusive-distrib/1.0/)
- **What we show**: Paper info and commentary

[Original paper ↗](https://arxiv.org/abs/1508.05326v1) · [PDF ↗](https://arxiv.org/pdf/1508.05326v1)

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

## Quote from the paper

Samuel R. Bowman, Gabor Angeli, Christopher Potts, Christopher D. Manning (2015). A large annotated corpus for learning natural language inference. arXiv:1508.05326v1. https://arxiv.org/abs/1508.05326v1

**BibTeX**

```
@misc{bowman2015large,
  title = {{A large annotated corpus for learning natural language inference}},
  author = {Samuel R. Bowman and Gabor Angeli and Christopher Potts and Christopher D. Manning},
  year = {2015},
  eprint = {1508.05326},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1508.05326v1}
}
```

## Other paper commentary

- [Recent Trends in Deep Learning Based Natural Language Processing](https://refivu.com/en/papers/6cdbf953-5aaa-4de2-9e22-528902a11655-recent-trends-in-deep-learning-based-natural-language.md)
- [A Broad-Coverage Challenge Corpus for Sentence Understanding through Inference](https://refivu.com/en/papers/6a9a87c0-1034-4d6f-8def-43a3279e4725-a-broad-coverage-challenge-corpus-for-sentence-understanding.md)
- [Character-level Convolutional Networks for Text Classification](https://refivu.com/en/papers/7b769c87-9db2-455d-a744-b9548d185e67-character-level-convolutional-networks-for-text.md)
- [Bidirectional LSTM-CRF Models for Sequence Tagging](https://refivu.com/en/papers/7f421939-0d02-43b3-b25f-86a13896fd18-bidirectional-lstm-crf-models-for-sequence-tagging.md)
- [VQA: Visual Question Answering](https://refivu.com/en/papers/52c3e601-1542-4d3e-bc47-1d51fb1b7a5e-vqa-visual-question-answering.md)
- [BERTopic: Neural topic modeling with a class-based TF-IDF procedure](https://refivu.com/en/papers/3eb59114-35a2-4294-982a-129e3bf9019b-bertopic-neural-topic-modeling-with-a-class-based.md)
- [Learning to Prompt for Vision-Language Models](https://refivu.com/en/papers/c492cb20-7c19-4275-b139-f97eecec7359-learning-to-prompt-for-vision-language-models.md)
- [Soft Actor-Critic Algorithms and Applications](https://refivu.com/en/papers/27323517-0997-4493-a852-d624d86c70dd-soft-actor-critic-algorithms-and-applications.md)
- [Model Cards for Model Reporting](https://refivu.com/en/papers/9ad193b1-a348-4853-9835-2faeecfe0dc1-model-cards-for-model-reporting.md)
- [Segment Anything in Medical Images](https://refivu.com/en/papers/505368c7-a7cf-4cc6-b939-a8043e6cf7cd-segment-anything-in-medical-images.md)
- [Multi-Agent Actor-Critic for Mixed Cooperative-Competitive Environments](https://refivu.com/en/papers/cdbfc66c-b5f8-47cf-8741-06704dc59cc0-multi-agent-actor-critic-for-mixed-cooperative-competitive.md)
- [Pruning Filters for Efficient ConvNets](https://refivu.com/en/papers/54826eca-5fee-4b64-b058-a4fcd92f8178-pruning-filters-for-efficient-convnets.md)

## Terms in this paper

- [dropout](https://refivu.com/en/terms/db73f75bbdd3-dropout)
- [LSTM](https://refivu.com/en/terms/ba10547646d9-lstm)
- [transfer learning](https://refivu.com/en/terms/9c71d6928a00-transfer-learning)
- [GloVe](https://refivu.com/en/terms/8a6b3410f3dd-glove)
- [Flickr30K](https://refivu.com/en/terms/3460b37ae772-flickr30k)
- [Adadelta](https://refivu.com/en/terms/f8ccffb7eddb-adadelta)
- [natural language inference](https://refivu.com/en/terms/6645756fb938-natural-language-inference)
- [SNLI](https://refivu.com/en/terms/9c627a5593c8-snli)
- [L2 regularization](https://refivu.com/en/terms/60e7f644f7c5-l2-regularization)
- [entailment](https://refivu.com/en/terms/3ef94f8ba8b5-entailment)
- [gold label](https://refivu.com/en/terms/8cd91aac62e6-gold-label)

---

AI-written text can contain mistakes. [Refivu](https://refivu.com/en/papers/7e4b0424-7bbb-49b5-a1e2-69bf72d8d16b-a-large-annotated-corpus-for-learning-natural-language)
