The Stanford Natural Language Inference (SNLI) Corpus

The Corpus

The SNLI corpus (version 1.0) is a collection of 570k human-written English sentence pairs manually labeled for balanced classification with the labels entailment, contradiction, and neutral, supporting the task of natural language inference (NLI), also known as recognizing textual entailment (RTE). We aim for it to serve both as a benchmark for evaluating representational systems for text, especially including those induced by representation learning methods, as well as a resource for developing NLP models of any kind.

The following paper introduces the corpus in detail. If you use the corpus in published work, please cite it:

Samuel R. Bowman, Gabor Angeli, Christopher Potts, and Christopher D. Manning. 2015. A large annotated corpus for learning natural language inference. In Proceedings of the 2015 Conference on Empirical Methods in Natural Language Processing (EMNLP). [pdf] [bib]

Here are a few example pairs taken from the devtest portion of the corpus. Each has the judgments of five turkers and a consensus judgment.

A man inspects the uniform of a figure in some East Asian country. contradiction
The man is sleeping
An older and younger man smiling. neutral
Two men are smiling and laughing at the cats playing on the floor.
A black race car starts up in front of a crowd of people. contradiction
A man is driving down a lonely road.
A soccer game with multiple males playing. entailment
Some men are playing a sport.
A smiling costumed woman is holding an umbrella. neutral
A happy woman in a fairy costume holds an umbrella.

The corpus is distributed in both JSON lines and tab separated value files, which are packaged together (with a readme) here:

Download: SNLI 1.0 (zip, ~100MB)
Creative Commons License
The Stanford Natural Language Inference Corpus by The Stanford NLP Group is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
Based on a work at

The corpus includes content from the Flickr 30k corpus (also released under an Attribution-ShareAlike licence), which can be cited by way of this paper:

Peter Young, Alice Lai, Micah Hodosh, and Julia Hockenmaier. 2014. From image descriptions to visual denotations: new similarity metrics for semantic inference over event descriptions. Transactions of the Association for Computational Linguistics 2: 67--78.

About 4k sentences in the training set have captionIDs and pairIDs beginning with 'vg_'. These come from a pilot data collection effort that used data from the VisualGenome corpus, which is still under construction as of the release of SNLI. For more information on VisualGenome, see:

Published results

The following table reflects our informal attempt to catalog published 3-class classification results on the SNLI test set. Reported parameter counts do not include word embeddings. We welcome additional contributions.

Three-way classification

Publication Model Train (% acc) Test (% acc)
Feature-based models
Bowman et al. '15 Unlexicalized features 49.4 50.4
Bowman et al. '15 + Unigram and bigram features 99.7 78.2
Sentence encoding-based models
Bowman et al. '15 100D LSTM encoders (221k params) 84.8 77.6
Bowman et al. '16 300D LSTM encoders (3.0m params) 83.9 80.6
Vendrov et al. '15 1024D GRU encoders w/ unsupervised 'skip-thoughts' pre-training (15m params) 98.8 81.4
Mou et al. '15 300D Tree-based CNN encoders (3.5m params) 83.3 82.1
Bowman et al. '16 300D SPINN-NP encoders (3.7m params) 89.2 83.2
Other neural network models
Rocktäschel et al. '15 100D LSTMs w/ word-by-word attention (252k params) 85.3 83.5
Wang & Jiang '15 300D mLSTM word-by-word attention model (1.9m params) 92.0 86.1
Cheng et al. '16 300D LSTMN with deep attention fusion (1.4m params) 92.1 89.0

Related Research

Related Resources at Stanford NLP

Contact Information

For any comments or questions, please email Sam and Gabor.