paper-with-me

홈 › Papers

Nyströmformer: A Nyström-Based Algorithm for Approximating Self-Attention

2021-02-07 · Yunyang Xiong, Zhanpeng Zeng, Rudrasis Chakraborty, Mingxing Tan, Glenn Fung, Yin Li, Vikas Singh

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 Nystr\"{o}mformer -- a model that exhibits favorable scalability as a function of sequence length. Our idea is based on adapting the Nystr\"{o}m method to approximate standard self-attention with $O(n)$ complexity. The scalability of Nystr\"{o}mformer 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 Nystr\"{o}mformer 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, Nystr\"{o}mformer performs favorably relative to other efficient self-attention methods. Our code is available at https://github.com/mlpen/Nystromformer.

📄 PDF Abstract BibTeX arXiv:2102.03902

Code (10)

mlpen/Nystromformer 공식 구현 pytorch
JeremyZhao1998/Nystromformer-Paddle paddle
MindSpore-scientific-2/code-10/tree/main/nystrom-attention mindspore
Rishit-dagli/Nystromformer tf
facebookresearch/xformers pytorch
lucidrains/nystrom-attention pytorch
nellish123/contrib mindspore
pwc-1/Paper-9/tree/main/2/nystromformer mindspore
yangyucheng000/University/tree/main/model-1/nystromformer mindspore
yxzwang/normalized-information-payload pytorch

Tasks

Natural Language InferenceQuestion AnsweringSemantic Textual SimilaritySentiment Analysis

Methods 이 논문이 사용한 방법론

Linear Layer A Linear Layer is a projection $\mathbf{XW + b}$.
Absolute Position Encodings Absolute Position Encodings are a type of position embeddings for [Transformer-based models] where positional encodings are…
Position-Wise Feed-Forward Layer 설명 없음
Nyströmformer 설명 없음
Attention 설명 없음
Dense Connections Dense Connections, or Fully Connected Connections, are a type of layer in a deep neural network that use a linear operation where every input is connected to every output…
BPE Byte Pair Encoding, or BPE, is a subword segmentation algorithm that encodes rare and unknown words as sequences of subword units. The intuition is that various word…
Softmax The Softmax output function transforms a previous layer's output into a vector of probabilities. It is commonly used for multiclass classification. Given an input vector $x$…

Similar Papers 제목 키워드 기반

Beyond Nyströmformer -- Approximation of self-attention by Spectral Shifting

2021-03-09 · Madhusudan Verma

Transformer is a powerful tool for many natural language tasks which is based on self-attention, a mechanism that encodes the dependence of other tokens on each specific token, but the computation of self-attention is a …

Spectral Clustering using Eigenspectrum Shape Based Nystrom Sampling

2020-07-21 · Djallel Bouneffouf

Spectral clustering has shown a superior performance in analyzing the cluster structure. However, its computational complexity limits its application in analyzing large-scale data. To address this problem, many low-rank …

Clustering

Nystrom Method for Approximating the GMM Kernel

2016-07-12 · Ping Li

The GMM (generalized min-max) kernel was recently proposed (Li, 2016) as a measure of data similarity and was demonstrated effective in machine learning tasks. In order to use the GMM kernel for large-scale datasets, the…

BIG-bench Machine Learning

Diffusion Maps meet Nyström

2018-02-23 · N. Benjamin Erichson, Lionel Mathelin, Steven L. Brunton, J. Nathan Kutz

Diffusion maps are an emerging data-driven technique for non-linear dimensionality reduction, which are especially useful for the analysis of coherent structures and nonlinear embeddings of dynamical systems. However, th…

Dimensionality ReductionTime SeriesTime Series Analysis

Boosting Nyström Method

2023-02-21 · Keaton Hamm, Zhaoying Lu, Wenbo Ouyang, Hao Helen Zhang

The Nystr\"{o}m method is an effective tool to generate low-rank approximations of large matrices, and it is particularly useful for kernel-based learning. To improve the standard Nystr\"{o}m approximation, ensemble Nyst…