Reasoning about Entailment with Neural Attention
Written for the Research library (claude-opus-5-5) from the paper text, in our own words: the license "arXiv — non-exclusive license to distribute" does not allow redistributing the text itself. Original — arxiv.org/pdf/1509.06664
Summary
Recognizing textual entailment (RTE) means deciding whether a premise sentence entails a hypothesis, contradicts it, or is unrelated to it. Earlier strong systems relied on hand-built features, complex NLP pipelines and external resources. End-to-end neural networks had not beaten simple lexical baselines. The authors use the large SNLI corpus to train an LSTM model that does not encode the two sentences separately. Instead, a second LSTM reads the hypothesis starting from the memory state that the first LSTM reached after reading the premise, which they call conditional encoding. They then add attention over the premise's output vectors. One version uses a single attention step. Another uses word-by-word attention, where each hypothesis token softly aligns with premise words. A two-way variant also attends with the sentences swapped. The conditional model already beats a feature-engineered lexicalized classifier. Word-by-word attention reaches 83.5% accuracy, a new state of the art on SNLI for a generic differentiable model. Visualized attention weights show sensible word and phrase alignments. Because the method needs only tokenization, it is not tied to any particular language.
Key points
- Dataset: Stanford Natural Language Inference (SNLI), with three classes: ENTAILMENT, NEUTRAL, CONTRADICTION. The previous neural baseline (Bowman et al., 2015) scored 77.6%.
- The conditional-encoding LSTM achieves 80.9%, which is 2.7 points above the lexicalized feature-based classifier.
- Word-by-word attention adds 2.6 more points and reaches 83.5% accuracy on SNLI.
- Inputs are fixed word2vec embeddings. About 12.1k SNLI words have no word2vec vector, so their embeddings are trained, giving roughly 3.65M tunable parameters.
- No POS tags or dependency parses are needed. The authors suggest transfer learning, hierarchical attention for longer texts, and entailment over non-language sequences as future work.
Cited by
- Quantifying Attention Flow in Transformers
- Analysis Methods in Neural Language Processing: A Survey
- Don't Take the Premise for Granted: Mitigating Artifacts in Natural Language Inference
- e-SNLI: Natural Language Inference with Natural Language Explanations
- Breaking NLI Systems with Sentences that Require Simple Lexical Inferences
- Discourse Parsing with Attention-based Hierarchical Neural Networks
- Natural Language Inference by Tree-Based Convolution and Heuristic Matching
- Explainable Prediction of Medical Codes from Clinical Text
- The LAMBADA dataset: Word prediction requiring a broad discourse context
- Lessons from Natural Language Inference in the Clinical Domain
- Reasoning with Sarcasm by Reading In-Between
- Analyzing the Structure of Attention in a Transformer Language Model
- A Multiscale Visualization of Attention in the Transformer Model
- Bilateral Multi-Perspective Matching for Natural Language Sentences
- Inference is Everything: Recasting Semantic Resources into a Unified Evaluation Framework
- Attention is not not Explanation
Cite
@misc{rocktaschel2015reasoning,
title = {{Reasoning about Entailment with Neural Attention}},
author = {Rocktaschel, Tim and Grefenstette, Edward and Hermann, Karl Moritz and Kovcisky, Tomavs and Blunsom, Phil},
year = {2015},
doi = {10.48550/arxiv.1509.06664},
eprint = {1509.06664},
archivePrefix = {arXiv},
url = {https://doi.org/10.48550/arxiv.1509.06664}
}References
- Gabor Angeli and Christopher D Manning. Naturalli: Natural logic inference for common sense reasoning. In EMNLP, 2014. find
- Dzmitry Bahdanau, Kyunghyun Cho, and Yoshua Bengio. Neural machine translation by jointly learning to align and translate. In ICLR, 2015. find our card
- Islam Beltagy, Stephen Roller, Pengxiang Cheng, Katrin Erk, and Raymond J. Mooney. Representing meaning with a combination of logical form and vectors. arXiv preprint arXiv:1505.06816, 2015. — [arXiv:1505.06816](https://arxiv.org/abs/1505.06816) find
- Samuel R Bowman, Gabor Angeli, Christopher Potts, and Christopher D Manning. A large annotated corpus for learning natural language inference. In EMNLP, 2015. find
- Jan Chorowski, Dzmitry Bahdanau, Dmitriy Serdyuk, Kyunghyun Cho, and Yoshua Bengio. Attention-based models for speech recognition. In NIPS, 2015. find our card
- Ido Dagan, Oren Glickman, and Bernardo Magnini. The pascal recognising textual entailment challenge. In Machine Learning Challenges. Lecture Notes in Computer Science, volume 3944, pages 177–190. Springer, 2006. find
- Alex Graves. Generating sequences with recurrent neural networks. arXiv preprint arXiv:1308.0850, 2013. find
- Alex Graves and Jürgen Schmidhuber. Framewise phoneme classification with bidirectional lstm and other neural network architectures. Neural Networks, 18(5):602–610, 2005. find
- Alex Graves, Greg Wayne, and Ivo Danihelka. Neural turing machines. arXiv preprint arXiv:1410.5401, 2014. find
- Edward Grefenstette, Karl Moritz Hermann, Mustafa Suleyman, and Phil Blunsom. Learning to transduce with unbounded memory. In NIPS, 2015. find
- Karl Moritz Hermann, Tomáš Kočiský, Edward Grefenstette, Lasse Espeholt, Will Kay, Mustafa Suleyman, and Phil Blunsom. Teaching machines to read and comprehend. In NIPS, 2015. find our card
- Sepp Hochreiter and Jürgen Schmidhuber. Long short-term memory. Neural computation, 9(8):1735–1780, 1997. find
- Baotian Hu, Zhengdong Lu, Hang Li, and Qingcai Chen. Convolutional neural network architectures for matching natural language sentences. In NIPS, pages 2042–2050, 2014. find
- Sergio Jimenez, George Duenas, Julia Baquero, Alexander Gelbukh, Av Juan Dios Bátiz, and Av Mendizábal. Unal-nlp: Combining soft cardinality features for semantic textual similarity, relatedness and entailment. In SemEval 2014, page 732, 2014. find
- Armand Joulin and Tomas Mikolov. Inferring algorithmic patterns with stack-augmented recurrent nets. arXiv preprint arXiv:1503.01007, 2015. find
- Diederik Kingma and Jimmy Ba. Adam: A method for stochastic optimization. In ICLR, 2015. find
- Alice Lai and Julia Hockenmaier. Illinois-lh: A denotational and distributional approach to semantics. In SemEval 2014, page 329, 2014. find
- Marco Marelli, Luisa Bentivogli, Marco Baroni, Raffaella Bernardi, Stefano Menini, and Roberto Zamparelli. Semeval-2014 task 1: Evaluation of compositional distributional semantic models on full sentences through semantic relatedness and textual entailment. In SemEval 2014, 2014. find our card
- Tomas Mikolov, Ilya Sutskever, Kai Chen, Greg S Corrado, and Jeff Dean. Distributed representations of words and phrases and their compositionality. In NIPS, pages 3111–3119, 2013. find
- Volodymyr Mnih, Nicolas Heess, Alex Graves, et al. Recurrent models of visual attention. In NIPS, pages 2204–2212, 2014. find
- Alexander M Rush, Sumit Chopra, and Jason Weston. A neural attention model for abstractive sentence summarization. In EMNLP, 2015. find
- Richard Socher, Eric H Huang, Jeffrey Pennin, Christopher D Manning, and Andrew Y Ng. Dynamic pooling and unfolding recursive autoencoders for paraphrase detection. In NIPS, pages 801–809, 2011. find
- Sainbayar Sukhbaatar, Arthur Szlam, Jason Weston, and Rob Fergus. End-to-end memory networks. arXiv preprint arXiv:1503.08895, 2015. find
- Ilya Sutskever, Oriol Vinyals, and Quoc VV Le. Sequence to sequence learning with neural networks. In NIPS, pages 3104–3112, 2014. find
- Oriol Vinyals, Lukasz Kaiser, Terry Koo, Slav Petrov, Ilya Sutskever, and Geoffrey Hinton. Grammar as a foreign language. In NIPS, 2014. find
- Oriol Vinyals, Meire Fortunato, and Navdeep Jaitly. Pointer networks. In NIPS, 2015. find
- Kelvin Xu, Jimmy Ba, Ryan Kiros, Kyunghyun Cho, Aaron Courville, Ruslan Salakhutdinov, Richard Zemel, and Yoshua Bengio. Show, attend and tell: Neural image caption generation with visual attention. In ICML, 2015. find our card
- Wenpeng Yin and Hinrich Schütze. Convolutional neural network for paraphrase identification. In NAACL-HLT, pages 901–911, 2015. find
- Wojciech Zaremba, Ilya Sutskever, and Oriol Vinyals. Recurrent neural network regularization. arXiv preprint arXiv:1409.2329, 2014. find our card
- Jiang Zhao, Tian Tian Zhu, and Man Lan. Ecnu: One stone two birds: Ensemble of heterogenous measures for semantic relatedness and textual entailment. In SemEval 2014, page 271, 2014. find