Enhancing Sentence Embedding with Generalized Pooling

Qian Chen, Zhen-Hua Ling, Xiaodan Zhu
6/26/2018
cs.CLcs.AIcs.LG
transformer-attention

Official code: lukecq1231/generalized-pooling (20 stars, Python, BSD-3-Clause, last commit 2022-10-04).

Abstract

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations(1)

BSD-3-Clause

Enhancing Sentence Embedding with Generalized Pooling

203Python, ShellJun 11, 20184 years agoBSD-3-Clause

Similar Papers

Cite this paper

@article{chen2018enhancing,
  title  = {Enhancing Sentence Embedding with Generalized Pooling},
  author = {Qian Chen and Zhen-Hua Ling and Xiaodan Zhu},
  year   = {2018},
  eprint = {1806.09828},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1806.09828}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1806.09828.svg)](https://codeofpaper.com/paper/1806.09828)

Discussion