Abstract
Natural Language Inference (NLI) is a fundamental task in language understanding, requiring models to determine the relationship between a premise and a hypothesis. This paper introduces the Enhanced Sequential Inference Model (ESIM), demonstrating that carefully designed sequential LSTMs can surpass the performance of more complex, non-sequential architectures. By incorporating local inference modeling and a hybrid approach (HIM) that utilizes syntactic parse trees, the authors achieved a then-state-of-the-art accuracy of 88.6% on the Stanford Natural Language Inference (SNLI) dataset.
Introduction
The release of the Stanford Natural Language Inference (SNLI) dataset, containing over 570,000 sentence pairs, catalyzed the development of deep learning models for NLI. Early research trends moved away from sequential models like LSTMs toward complex decomposable or memory-augmented networks, under the assumption that sequential models had reached a performance ceiling. This work challenges that assumption by proposing a refined sequential architecture that focuses on local inference modeling and composition.
Methodology
The proposed framework consists of two primary models: the sequential ESIM and the Hybrid Inference Model (HIM). Both follow a four-stage pipeline:
- Input Encoding: Premise and hypothesis sentences are encoded using a bidirectional LSTM (BiLSTM) to capture local context.
- Local Inference Modeling: A "soft alignment" (attention) mechanism computes the relevance between every word in the premise and every word in the hypothesis.
- Enhancement of Local Inference: The model enhances the aligned vectors by explicitly calculating the difference ($a - \tilde{a}$) and the element-wise product ($a \odot \tilde{a}$) between original word vectors and their aligned counterparts. These are concatenated to form an enriched representation.
- Inference Composition: A second BiLSTM layer processes the enhanced vectors to capture global relationships. The final classification is performed after applying both max and average pooling.
The HIM model extends this by adding a parallel track using Tree-LSTMs, which process sentences based on their syntactic structure rather than just linear word order.
Key Insights and Results
A critical finding of this study is the importance of the enhancement step. Explicitly calculating differences and products helps the model identify contradictions and similarities more effectively. Furthermore, the combination of max and average pooling was found to be superior to using either alone.
The experimental results on the SNLI dataset were significant:
- HIM (Hybrid): Achieved a state-of-the-art 88.6% accuracy.
- ESIM (Sequential): Reached 88.0% accuracy, outperforming many complex non-sequential models of the time.
The visualization of attention weights confirms that the models successfully learn to align relevant words across the sentence pairs, which is foundational for accurate inference.
Discussion and Conclusion
The success of ESIM proves that the potential of sequential models like LSTMs was previously underestimated due to suboptimal architectural choices. While the inclusion of syntactic trees in HIM provided a performance boost, the sequential ESIM remains highly competitive and significantly more efficient to train (6 hours vs. 40 hours for HIM).
Future work may involve integrating external knowledge bases like WordNet to handle lexical-level inference and improving the model's robustness against complex linguistic phenomena such as negation, which remains a classic challenge in NLI.
Summary updated