Skip to main content
QUICK REVIEW

[Paper Review] Enhancing Sentence Embedding with Generalized Pooling

Qian Chen, Zhen-Hua Ling|arXiv (Cornell University)|Jun 26, 2018
Topic ModelingComputer Science37 references59 citations
TL;DR

The paper introduces vector-based multi-head generalized pooling with penalty terms to reduce redundancy, achieving state-of-the-art sentence embeddings on SNLI, MultiNLI, Yelp, and Age datasets.

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. 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.

Motivation & Objective

  • Motivate improved sentence embeddings through generalized pooling that can capture multiple aspects of a sentence.
  • Extend scalar attention/pooling to vector-based multi-head attention to enrich representations.
  • Introduce penalty terms to reduce redundancy across attention heads and sentence embeddings.
  • Evaluate the approach on natural language inference, author profiling, and sentiment classification datasets.
  • Demonstrate significant performance gains over strong sentence-encoding baselines across multiple datasets.

Proposed method

  • Build a BiLSTM-based sequence encoder with word and character embeddings.
  • Develop vector-based multi-head attention that produces multiple attention vectors, concatenated into the final sentence representation.
  • Provide three penalty terms to encourage diversity among attention heads and their outputs (on parameter matrices, attention matrices, and sentence embeddings).
  • Fuse sentence embeddings for NLI via concatenation and element-wise operations, then feed to a two-layer MLP with shortcut connections for classification.
  • Train end-to-end with cross-entropy loss; share MLP architecture across tasks for sentence- and pair-based classifications.

Experimental results

Research questions

  • RQ1Does vector-based multi-head attention improve sentence embeddings over scalar attention methods?
  • RQ2What is the impact of penalization terms on reducing redundancy across attention heads and improving performance?
  • RQ3How does the generalized pooling approach perform across NLI, author profiling, and sentiment classification tasks compared to strong baselines?
  • RQ4Which dataset-specific settings (e.g., number of heads, head dimension, training regime) maximize gains?

Key findings

  • Achieves state-of-the-art SNLI accuracy of 86.6% on the test set (vs. 86.3% for the prior best).
  • On MultiNLI, reaches 73.8% in-domain and 74.0% cross-domain accuracy (best cross-domain result at 74.0%).
  • On Yelp and Age datasets, the generalized pooling model attains 66.55% (Yelp) and 82.63% (Age), both surpassing strong baselines.
  • Vector-based attention with more heads outperforms scalar attention; the 9-head model reached best dev accuracy (86.8% vs. 86.4% for scalar).
  • Penalization terms notably improve performance across datasets, with parameter-matrix penalization giving the largest gains on several tasks.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.