计算机科学 > 机器学习
[提交于 2024年2月12日]
标题:FAST: Factorizable Attention for Speeding up Transformers
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要: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.
提交历史
来自:Ramani Duraiswami[v1] 2024年2月12日 星期一 18:59:39 UTC