Hostname: page-component-74656f9884-skzmx Total loading time: 0 Render date: 2026-11-05T17:36:31.430Z Has data issue: false hasContentIssue false

Sentence embeddings in NLI with iterative refinement encoders

Published online by Cambridge University Press:  31 July 2019

Aarne Talman*
Affiliation:
Department of Digital Humanities, University of Helsinki, Finland
Anssi Yli-Jyrä
Affiliation:
Department of Digital Humanities, University of Helsinki, Finland
Jörg Tiedemann
Affiliation:
Department of Digital Humanities, University of Helsinki, Finland
*
*Corresponding author. Email: aarne.talman@helsinki.fi
Rights & Permissions [Opens in a new window]

Abstract

Sentence-level representations are necessary for various natural language processing tasks. Recurrent neural networks have proven to be very effective in learning distributed representations and can be trained efficiently on natural language inference tasks. We build on top of one such model and propose a hierarchy of bidirectional LSTM and max pooling layers that implements an iterative refinement strategy and yields state of the art results on the SciTail dataset as well as strong results for Stanford Natural Language Inference and Multi-Genre Natural Language Inference. We can show that the sentence embeddings learned in this way can be utilized in a wide variety of transfer learning tasks, outperforming InferSent on 7 out of 10 and SkipThought on 8 out of 9 SentEval sentence embedding evaluation tasks. Furthermore, our model beats the InferSent model in 8 out of 10 recently published SentEval probing tasks designed to evaluate sentence embeddings’ ability to capture some of the important linguistic properties of sentences.

Information

Type
Article
Copyright
© Cambridge University Press 2019 
Figure 0

Figure 1 Overall NLI architecture.

Figure 1

Figure 2 Architecture of the HBMP sentence encoder (where T = 4).

Figure 2

Table 1. SNLI test accuracies (%) of different architectures

Figure 3

Table 2. SNLI test accuracies (%)

Figure 4

Table 3. MultiNLI test accuracies (%)

Figure 5

Table 4. SciTail test accuracies (%)

Figure 6

Table 5. Model performance by F-score, comparing HBMP to InferSent (Conneau et al. 2017) (our implementation)

Figure 7

Table 6. SNLI confusion matrices for HBMP and InferSent

Figure 8

Table 7. SciTail confusion matrices for HBMP and InferSent based on the development set

Figure 9

Table 8. MultiNLI-matched confusion matrices for HBMP and InferSent based on the development set

Figure 10

Table 9. MultiNLI-mismatched confusion matrices for HBMP and InferSent

Figure 11

Table 10. MultiNLI-mm linguistic error analysis (accuracy %), comparing our HBMP results to the InferSent Conneau et al. (2017) results (our implementation). Number of sentence pairs with the linguistic label in brackets after the label name

Figure 12

Table 11. Breaking NLI scores (accuracy %)

Figure 13

Table 12. Transfer learning test results for the HBMP model on a number of SentEval downstream sentence embedding evaluation tasks

Figure 14

Table 13. SentEval probing task results (accuracy %)