Stanford Natural Language Inference corpus

SNLI

The first large dataset for natural language inference (NLI); it made training neural models on this task possible, and later studies exposed its labelling biases.

Evaluation benchmarkEnglish
TypeEvaluation benchmark
LanguageEnglish
Year2015
OrganisationStanford University
SizeAbout 570,000 labelled sentence pairs (premise and hypothesis): entailment, contradiction, neutral
LicenceCC BY-SA 4.0
AvailabilityDirectly available

What you need to know

  • The premises are image captions (Flickr30k), so the domain is limited.
  • A model that sees only the hypothesis can beat the random baseline by a wide margin because of labelling patterns.

Example

PremiseHypothesisLabel
A man is playing the guitar on stageA man is playing a musical instrumentEntailment
A man is playing the guitar on stageThe man is asleepContradiction
A man is playing the guitar on stageThe man is famousNeutral

Labelling bias

Researchers noticed that annotators usually write contradiction hypotheses with negation ("no", "not"), so the model learns that "negation means contradiction" without real understanding. This is a general lesson: always check a "hypothesis only" baseline.

References

  1. Bowman, S. R., Angeli, G., Potts, C., & Manning, C. D. (2015). A large annotated corpus for learning natural language inference. EMNLP 2015 arxiv.org/abs/1508.05326
  2. Gururangan, S. et al. (2018). Annotation Artifacts in Natural Language Inference Data. NAACL 2018 arxiv.org/abs/1803.02324

Check the dataset's license and terms of use at its official source before publishing or commercial use; some datasets are available for research only.