paper-with-me

홈 › Papers

Fast RoPE Attention: Combining the Polynomial Method and Fast Fourier Transform

2025-05-17 · Josh Alman, Zhao Song

The transformer architecture has been widely applied to many machine learning tasks. A main bottleneck in the time to perform transformer computations is a task called attention computation. [Alman and Song, NeurIPS 2023] have shown that in the bounded entry regime, there is an almost linear time algorithm to approximate the attention computation. They also proved that the bounded entry assumption is necessary for a fast algorithm assuming the popular Strong Exponential Time Hypothesis. A new version of transformer which uses position embeddings has recently been very successful. At a high level, position embedding enables the model to capture the correlations between tokens while taking into account their position in the sequence. Perhaps the most popular and effective version is Rotary Position Embedding (RoPE), which was proposed by [Su, Lu, Pan, Murtadha, Wen, and Liu, Neurocomputing 2024]. A main downside of RoPE is that it complicates the attention computation problem, so that previous techniques for designing almost linear time algorithms no longer seem to work. In this paper, we show how to overcome this issue, and give a new algorithm to compute the RoPE attention in almost linear time in the bounded entry regime. (Again, known lower bounds imply that bounded entries are necessary.) Our new algorithm combines two techniques in a novel way: the polynomial method, which was used in prior fast attention algorithms, and the Fast Fourier Transform.

📄 PDF Abstract BibTeX arXiv:2505.11892

Code (0)

등록된 구현이 없습니다.

Tasks

Position

Methods 이 논문이 사용한 방법론

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$…
Attention 설명 없음

Similar Papers 제목 키워드 기반

Fast Gradient Computation for RoPE Attention in Almost Linear Time

2024-12-23 · Yifang Chen, Jiayan Huo, Xiaoyu Li, YIngyu Liang 외

The Rotary Position Embedding (RoPE) mechanism has become a powerful enhancement to the Transformer architecture, which enables models to capture token relationships when encoding positional information. However, the RoP…

PolySketchFormer: Fast Transformers via Sketching Polynomial Kernels

2023-10-02 · Praneeth Kacham, Vahab Mirrokni, Peilin Zhong

The quadratic time and memory complexity inherent to self-attention mechanisms, with respect to sequence length, presents a critical computational bottleneck in the training and deployment of large-scale Transformer-base…

Language ModelingLanguage Modelling

Implicit Regularization of Accelerated Methods in Hilbert Spaces

2019-05-30 · NeurIPS 2019 12 · Nicolò Pagliana, Lorenzo Rosasco

We study learning properties of accelerated gradient descent methods for linear least-squares in Hilbert spaces. We analyze the implicit regularization properties of Nesterov acceleration and a variant of heavy-ball in t…

Efficient non-conjugate Gaussian process factor models for spike count data using polynomial approximations

2019-06-07 · Stephen L. Keeley, David M. Zoltowski, Yiyi Yu, Jacob L. Yates 외

Gaussian Process Factor Analysis (GPFA) has been broadly applied to the problem of identifying smooth, low-dimensional temporal structure underlying large-scale neural recordings. However, spike trains are non-Gaussian, …

Variational Inference

PADRe: A Unifying Polynomial Attention Drop-in Replacement for Efficient Vision Transformer

2024-07-16 · Pierre-David Letourneau, Manish Kumar Singh, Hsin-Pai Cheng, Shizhong Han 외

We present Polynomial Attention Drop-in Replacement (PADRe), a novel and unifying framework designed to replace the conventional self-attention mechanism in transformer models. Notably, several recent alternative attenti…

2D Object DetectionComputational EfficiencyGPUimage-classification+4