Baseline Needs More Love: On Simple Word-Embedding-Based Models and Associated Pooling Mechanisms

Dinghan Shen, Guoyin Wang, Wenlin Wang, Martin Renqiang Min, Qinliang Su +4 more
5/24/2018
368 citations
cs.CLcs.AIcs.LG

Official code: dinghanshen/SWEM (286 stars, Python, TensorFlow, last commit 2022-12-17).

Abstract

Many deep learning architectures have been proposed to model the compositionality in text sequences, requiring a substantial number of parameters and expensive computations. However, there has not been a rigorous evaluation regarding the added value of sophisticated compositional functions.

Show full abstract

In this paper, we conduct a point-by-point comparative study between Simple Word-Embedding-based Models (SWEMs), consisting of parameter-free pooling operations, relative to word-embedding-based RNN/CNN models. Surprisingly, SWEMs exhibit comparable or even superior performance in the majority of cases considered. Based upon this understanding, we propose two additional pooling strategies over learned word embeddings: (i) a max-pooling operation for improved interpretability; and (ii) a hierarchical pooling operation, which preserves spatial (n-gram) information within text sequences. We present experiments on 17 datasets encompassing three tasks: (i) (long) document classification; (ii) text sequence matching; and (iii) short text tasks, including classification and tagging. The source code and datasets can be obtained from https:// github.com/dinghanshen/SWEM.

View on arXivView PDF

Code Implementations(1)

dinghanshen/SWEMOfficial100%
TensorFlow

The Tensorflow code for this ACL 2018 paper: "Baseline Needs More Love: On Simple Word-Embedding-Based Models and Associated Pooling Mechanisms"

28651Python, Jupyter NotebookMay 12, 20183 years ago
deep-learningnatural-language-processingrepresentation-learningtensorflow

Similar Papers

Cite this paper

@article{shen2018baseline,
  title  = {Baseline Needs More Love: On Simple Word-Embedding-Based Models and Associated Pooling Mechanisms},
  author = {Dinghan Shen and Guoyin Wang and Wenlin Wang and Martin Renqiang Min and Qinliang Su and Yizhe Zhang and Chunyuan Li and Ricardo Henao and Lawrence Carin},
  year   = {2018},
  eprint = {1805.09843},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1805.09843}
}

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/1805.09843.svg)](https://codeofpaper.com/paper/1805.09843)

Discussion