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

Enhancing Sentence Embedding with Generalized Pooling

About

Pooling is an essential component of a wide variety of sentence representation and embedding models. This paper explores generalized pooling methods to enhance sentence embedding. We propose vector-based multi-head attention that includes the widely used max pooling, mean pooling, and scalar self-attention as special cases. The model benefits from properly designed penalization terms to reduce redundancy in multi-head attention. We evaluate the proposed model on three different tasks: natural language inference (NLI), author profiling, and sentiment classification. The experiments show that the proposed model achieves significant improvement over strong sentence-encoding-based methods, resulting in state-of-the-art performances on four datasets. The proposed approach can be easily implemented for more problems than we discuss in this paper.

Qian Chen, Zhen-Hua Ling, Xiaodan Zhu• 2018

Related benchmarks

TaskDatasetResultRank
Natural Language InferenceSNLI (test)
Accuracy86.6
681
Natural Language InferenceMultiNLI matched (test)
Accuracy73.8
65
Natural Language InferenceMultiNLI Mismatched
Accuracy74
60
Natural Language InferenceMultiNLI mismatched (test)
Accuracy74
56
Sentiment ClassificationYelp
Accuracy66.55
24
Natural Language InferenceMultiNLI matched (in-domain)
Accuracy73.8
8
Author ProfilingAge
Accuracy82.63
7
Showing 7 of 7 rows

Other info

Code

Follow for update