FAST: Factorizable attention for speeding up transformers. Gerami, A., Hoover, M., Dulepet, P. S, & Duraiswami, R. arXiv [cs.LG], February, 2024.
FAST: Factorizable attention for speeding up transformers [link]Paper  abstract   bibtex   
Motivated by the factorization inherent in the original fast multipole method and the improved fast Gauss transform we introduce a factorable form of attention that operates efficiently in high dimensions. This approach reduces the computational and memory complexity of the attention mechanism in transformers from $O(N^2)$ to $O(N)$. In comparison to previous attempts, our work presents a linearly scaled attention mechanism that maintains the full representation of the attention matrix without compromising on sparsification and incorporates the all-to-all relationship between tokens. We explore the properties of our new attention metric and conduct tests in various standard settings. Results indicate that our attention mechanism has a robust performance and holds significant promise for diverse applications where self-attention is used.
@ARTICLE{Gerami2024-ax,
title         = "{FAST: Factorizable attention for speeding up transformers}",
author        = "Gerami, Armin and Hoover, Monte and Dulepet, Pranav S and
Duraiswami, Ramani",
journal       = "arXiv [cs.LG]",
abstract      = "Motivated by the factorization inherent in the original fast
multipole method and the improved fast Gauss transform we
introduce a factorable form of attention that operates
efficiently in high dimensions. This approach reduces the
computational and memory complexity of the attention
mechanism in transformers from $O(N^2)$ to $O(N)$. In
comparison to previous attempts, our work presents a linearly
scaled attention mechanism that maintains the full
representation of the attention matrix without compromising
on sparsification and incorporates the all-to-all
relationship between tokens. We explore the properties of our
new attention metric and conduct tests in various standard
settings. Results indicate that our attention mechanism has a
robust performance and holds significant promise for diverse
applications where self-attention is used.",
month         =  feb,
year          =  2024,
url           = "http://arxiv.org/abs/2402.07901",
archivePrefix = "arXiv",
primaryClass  = "cs.LG",
eprint        = "2402.07901"
}

Downloads: 0