Efficient Long Sequence Modeling via State Space Augmented Transformer

Simiao Zuo, Xiaodong Liu, Jian Jiao, Denis Charles, Eren Manavoglu +2 more
12/15/2022
cs.CLcs.LG
transformer-attention

Official code: microsoft/EfficientLongSequenceModeling (53 stars, Python, MIT, last commit 2023-01-19).

Abstract

Transformer models have achieved superior performance in various natural language processing tasks. However, the quadratic computational cost of the attention mechanism limits its practicality for long sequences.

Show full abstract

There are existing attention variants that improve the computational efficiency, but they have limited ability to effectively compute global information. In parallel to Transformer models, state space models (SSMs) are tailored for long sequences, but they are not flexible enough to capture complicated local information. We propose SPADE, short for $\underline{\textbf{S}}$tate s$\underline{\textbf{P}}$ace $\underline{\textbf{A}}$ugmente$\underline{\textbf{D}}$ Transform$\underline{\textbf{E}}$r. Specifically, we augment a SSM into the bottom layer of SPADE, and we employ efficient local attention methods for the other layers. The SSM augments global information, which complements the lack of long-range dependency issue in local attention methods. Experimental results on the Long Range Arena benchmark and language modeling tasks demonstrate the effectiveness of the proposed method. To further demonstrate the scalability of SPADE, we pre-train large encoder-decoder models and present fine-tuning results on natural language understanding and natural language generation tasks.

View on arXivView PDF

Code Implementations(1)

MIT
536Python, ShellDec 14, 20223 years agoMIT

Similar Papers

Cite this paper

@article{zuo2022efficient,
  title  = {Efficient Long Sequence Modeling via State Space Augmented Transformer},
  author = {Simiao Zuo and Xiaodong Liu and Jian Jiao and Denis Charles and Eren Manavoglu and Tuo Zhao and Jianfeng Gao},
  year   = {2022},
  eprint = {2212.08136},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2212.08136}
}

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

Discussion