Title
Nystromformer: A Nystrom-Based Algorithm For Approximating Self-Attention
Abstract
Transformers have emerged as a powerful tool for a broad range of natural language processing tasks. A key component that drives the impressive performance of Transformers is the self-attention mechanism that encodes the influence or dependence of other tokens on each specific token. While beneficial, the quadratic complexity of self-attention on the input sequence length has limited its application to longer sequences - a topic being actively studied in the community. To address this limitation, we propose Nystromformer - a model that exhibits favorable scalability as a function of sequence length. Our idea is based on adapting the Nystrom method to approximate standard self-attention with O(n) complexity. The scalability of Nystromformer enables application to longer sequences with thousands of tokens. We perform evaluations on multiple downstream tasks on the GLUE benchmark and IMDB reviews with standard sequence length, and find that our Nystromformer performs comparably, or in a few cases, even slightly better, than standard self-attention. On longer sequence tasks in the Long Range Arena (LRA) benchmark, Nystromformer performs favorably relative to other efficient self-attention methods. Our code is available at https://github.com/mlpen/Nystromformer.
Year
Venue
DocType
2021
AAAI 2021
Conference
Volume
Issue
ISSN
35
16
2159-5399
Citations 
PageRank 
References 
0
0.34
0
Authors
7
Name
Order
Citations
PageRank
Yunyang Xiong121.36
Zhanpeng Zeng200.68
Rudrasis Chakraborty34715.77
Mingxing Tan400.34
Glenn Fung523113.77
Yin Li679735.85
Vikas Singh756249.01