Elamur Research
☰
home / papers / 2017 / Supervised Learning of Universal Sentence Representations from Natural Language Inference Data

Supervised Learning of Universal Sentence Representations from Natural Language Inference Data

Written for the Research library (claude-opus-5-5) from the paper text. Original — aclanthology.org/D17-1070.pdf

Summary

Pretrained word embeddings are standard in NLP, but there was still no widely adopted way to get general-purpose vectors for whole sentences. Unsupervised encoders such as SkipThought and FastSent were the main options. The authors ask whether supervised training could do for sentences what ImageNet pretraining does for computer vision, and they propose natural language inference as the source task. They train on the SNLI corpus, which has 570k labeled English sentence pairs. A shared encoder turns the premise and the hypothesis into separate vectors. These are combined by concatenation, element-wise product and absolute difference, and an MLP classifies the pair. They compare seven encoder designs: LSTM/GRU variants, BiLSTM with mean or max pooling, a self-attentive network and a hierarchical ConvNet. The BiLSTM with max pooling transfers best. They freeze its embeddings and fit only a simple classifier on each downstream task. On this broad benchmark suite it outperforms SkipThought, even though it uses far less training data and trains in under a day on one GPU. This suggests that NLI can act as a general pretraining task for sentence encoders. The encoder is released as InferSent.

Key points

  • Training setup: SNLI has three labels (entailment, contradiction, neutral). Word inputs are frozen 300-d GloVe vectors trained on Common Crawl 840B. Training uses SGD with mini-batches of 64, and the classifier is an MLP with one hidden layer of 512 units.
  • Comparison with SkipThought: InferSent trains on 570k sentence pairs, while SkipThought trains on 64M sentences. Training takes under a day, compared with about a month for SkipThought-LN. On STS14, InferSent's cosine similarity reaches a Pearson score of 0.68, against 0.29 for SkipThought and 0.44 for SkipThought-LN.
  • SICK results (new state of the art): SICK-R reaches a Pearson score of 0.885, above the previous 0.868 (Tai et al.). SICK-E reaches 86.3% accuracy, above the previous hand-engineered best of 84.5% and the 80.8% of earlier SNLI→SICK fine-tuning.
  • COCO image-caption retrieval (with ResNet-101 features): Caption retrieval R@1 is 42.4, compared with 37.9 for SkipThought. Image retrieval R@1 is 33.2, compared with 30.6. These scores are close to m-CNN, which is trained directly on the retrieval task.
  • Source-task comparison: NLI-trained encoders beat encoders trained on other supervised data, namely COCO captions, dictionary definitions, NMT, PPDB and SST. The code is at github.com/facebookresearch/InferSent.

Our summary of the paper, in our own words — not its text. The work belongs to its authors; read it at the links above.

Fields: Natural language processing

Cited by

617 papers of our library cite it (of the 140673 whose bibliographies we read); 54 of them have a page here, 563 not yet.

Cite

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.18653/v1/d17-1070 · arXiv 1705.02364

@inproceedings{conneau2017supervised,
  title = {{Supervised Learning of Universal Sentence Representations from Natural Language Inference Data}},
  author = {Conneau, Alexis and Kiela, Douwe and Schwenk, Holger and Barrault, Loïc and Bordes, Antoine},
  booktitle = {Proceedings of the 2017 Conference on Empirical Methods in Natural Language Processing},
  year = {2017},
  doi = {10.18653/v1/d17-1070},
  eprint = {1705.02364},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.18653/v1/d17-1070}
}

References

1 references, 1 of them with a card of ours. ↗ leads to the work, «find» searches for one we have no id for yet.

  1. Eneko Agirre, Carmen Banea, Claire Cardie, Daniel Cer, Mona Diab, Aitor Gonzalez-Agirre, Weiwei Guo, Rada Mihalcea, German Rigau, and Janyce Wiebe. 2014. Semeval-2014 task 10: Multilingual semantic textual similarity. In Proceedings of the 8th International Workshop on Semantic Evaluation (SemEval 2… find our card