Why and when should you pool? Analyzing Pooling in Recurrent Architectures

Pratyush Maini, Keshav Kolluru, Danish Pruthi, Mausam
5/1/2020
cs.CLcs.LG

Official code: dair-iitd/PoolingAnalysis (9 stars, Python, last commit 2020-11-20).

Abstract

Pooling-based recurrent neural architectures consistently outperform their counterparts without pooling. However, the reasons for their enhanced performance are largely unexamined.

Show full abstract

In this work, we examine three commonly used pooling techniques (mean-pooling, max-pooling, and attention), and propose max-attention, a novel variant that effectively captures interactions among predictive tokens in a sentence. We find that pooling-based architectures substantially differ from their non-pooling equivalents in their learning ability and positional biases--which elucidate their performance benefits. By analyzing the gradient propagation, we discover that pooling facilitates better gradient flow compared to BiLSTMs. Further, we expose how BiLSTMs are positionally biased towards tokens in the beginning and the end of a sequence. Pooling alleviates such biases. Consequently, we identify settings where pooling offers large benefits: (i) in low resource scenarios, and (ii) when important words lie towards the middle of the sentence. Among the pooling techniques studied, max-attention is the most effective, resulting in significant performance gains on several text classification tasks.

View on arXivView PDF

Code Implementations(1)

[EMNLP'20][Findings] Official Repository for the paper "Why and when should you pool? Analyzing Pooling in Recurrent Architectures."

91PythonApr 30, 20206 years ago
analyzing-poolingemnlp2020lstmpositional-biasrecurrent-architectures+2 more

Similar Papers

Cite this paper

@article{maini2020when,
  title  = {Why and when should you pool? Analyzing Pooling in Recurrent Architectures},
  author = {Pratyush Maini and Keshav Kolluru and Danish Pruthi and Mausam},
  year   = {2020},
  eprint = {2005.00159},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2005.00159}
}

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

Discussion