PoNet: Pooling Network for Efficient Token Mixing in Long Sequences

Chao-Hong Tan, Qian Chen, Wen Wang, Qinglin Zhang, Siqi Zheng +1 more
10/6/2021
cs.CLcs.AIcs.LG
transformer-attention

Official code: lxchtan/PoNet (33 stars, Python, Apache-2.0, last commit 2023-05-23).

Abstract

Transformer-based models have achieved great success in various NLP, vision, and speech tasks. However, the core of Transformer, the self-attention mechanism, has a quadratic time and memory complexity with respect to the sequence length, which hinders applications of Transformer-based models to long sequences.

Show full abstract

Many approaches have been proposed to mitigate this problem, such as sparse attention mechanisms, low-rank matrix approximations and scalable kernels, and token mixing alternatives to self-attention. We propose a novel Pooling Network (PoNet) for token mixing in long sequences with linear complexity. We design multi-granularity pooling and pooling fusion to capture different levels of contextual information and combine their interactions with tokens. On the Long Range Arena benchmark, PoNet significantly outperforms Transformer and achieves competitive accuracy, while being only slightly slower than the fastest model, FNet, across all sequence lengths measured on GPUs. We also conduct systematic studies on the transfer learning capability of PoNet and observe that PoNet achieves 95.7% of the accuracy of BERT on the GLUE benchmark, outperforming FNet by 4.5% relative. Comprehensive ablation analysis demonstrates effectiveness of the designed multi-granularity pooling and pooling fusion for token mixing in long sequences and efficacy of the designed pre-training tasks for PoNet to learn transferable contextualized language representations.

View on arXivView PDF

Code Implementations(1)

lxchtan/PoNetOfficial100%
Apache-2.0

Official code for ICLR 2022 paper: "PoNet: Pooling Network for Efficient Token Mixing in Long Sequences".

336Python, ShellOct 5, 20213 years agoApache-2.0

Similar Papers

Cite this paper

@article{tan2021ponet,
  title  = {PoNet: Pooling Network for Efficient Token Mixing in Long Sequences},
  author = {Chao-Hong Tan and Qian Chen and Wen Wang and Qinglin Zhang and Siqi Zheng and Zhen-Hua Ling},
  year   = {2021},
  eprint = {2110.02442},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2110.02442}
}

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

Discussion