Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

Learning Natural Language Inference using Bidirectional LSTM model and Inner-Attention

About

In this paper, we proposed a sentence encoding-based model for recognizing text entailment. In our approach, the encoding of sentence is a two-stage process. Firstly, average pooling was used over word-level bidirectional LSTM (biLSTM) to generate a first-stage sentence representation. Secondly, attention mechanism was employed to replace average pooling on the same sentence for better representations. Instead of using target sentence to attend words in source sentence, we utilized the sentence's first-stage representation to attend words appeared in itself, which is called "Inner-Attention" in our paper . Experiments conducted on Stanford Natural Language Inference (SNLI) Corpus has proved the effectiveness of "Inner-Attention" mechanism. With less number of parameters, our model outperformed the existing best sentence encoding-based approach by a large margin.

Yang Liu, Chengjie Sun, Lei Lin, Xiaolong Wang• 2016

Related benchmarks

TaskDatasetResultRank
Natural Language InferenceSNLI (test)
Accuracy85
681
Sentiment AnalysisSST-5 (test)
Accuracy50.4
173
Natural Language InferenceSNLI (train)
Accuracy86.4
154
Sentiment AnalysisSST-2 (test)
Accuracy88.2
136
Natural Language InferenceSNLI 1.0 (test)
Accuracy84.2
19
Natural Language InferenceSNLI 1.0 (train)
Accuracy84.5
9
Showing 6 of 6 rows

Other info

Code

Follow for update