{"_id":"iNjguiquqhWqsxBTe","bibbaseid":"gerami-hoover-dulepet-duraiswami-fastfactorizableattentionforspeedinguptransformers-2024","author_short":["Gerami, A.","Hoover, M.","Dulepet, P. S","Duraiswami, R."],"bibdata":{"bibtype":"article","type":"article","title":"FAST: Factorizable attention for speeding up transformers","author":[{"propositions":[],"lastnames":["Gerami"],"firstnames":["Armin"],"suffixes":[]},{"propositions":[],"lastnames":["Hoover"],"firstnames":["Monte"],"suffixes":[]},{"propositions":[],"lastnames":["Dulepet"],"firstnames":["Pranav","S"],"suffixes":[]},{"propositions":[],"lastnames":["Duraiswami"],"firstnames":["Ramani"],"suffixes":[]}],"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":"February","year":"2024","url":"http://arxiv.org/abs/2402.07901","archiveprefix":"arXiv","primaryclass":"cs.LG","eprint":"2402.07901","bibtex":"@ARTICLE{Gerami2024-ax,\ntitle = \"{FAST: Factorizable attention for speeding up transformers}\",\nauthor = \"Gerami, Armin and Hoover, Monte and Dulepet, Pranav S and\nDuraiswami, Ramani\",\njournal = \"arXiv [cs.LG]\",\nabstract = \"Motivated by the factorization inherent in the original fast\nmultipole method and the improved fast Gauss transform we\nintroduce a factorable form of attention that operates\nefficiently in high dimensions. This approach reduces the\ncomputational and memory complexity of the attention\nmechanism in transformers from $O(N^2)$ to $O(N)$. In\ncomparison to previous attempts, our work presents a linearly\nscaled attention mechanism that maintains the full\nrepresentation of the attention matrix without compromising\non sparsification and incorporates the all-to-all\nrelationship between tokens. We explore the properties of our\nnew attention metric and conduct tests in various standard\nsettings. Results indicate that our attention mechanism has a\nrobust performance and holds significant promise for diverse\napplications where self-attention is used.\",\nmonth = feb,\nyear = 2024,\nurl = \"http://arxiv.org/abs/2402.07901\",\narchivePrefix = \"arXiv\",\nprimaryClass = \"cs.LG\",\neprint = \"2402.07901\"\n}\n\n","author_short":["Gerami, A.","Hoover, M.","Dulepet, P. S","Duraiswami, R."],"key":"Gerami2024-ax-1","id":"Gerami2024-ax-1","bibbaseid":"gerami-hoover-dulepet-duraiswami-fastfactorizableattentionforspeedinguptransformers-2024","role":"author","urls":{"Paper":"http://arxiv.org/abs/2402.07901"},"metadata":{"authorlinks":{}},"html":""},"bibtype":"article","biburl":"https://bibbase.org/f/seukWgbyP3XRfXmER/2024.bib","dataSources":["qtgNWHiRoxNnAGrEq"],"keywords":[],"search_terms":["fast","factorizable","attention","speeding","transformers","gerami","hoover","dulepet","duraiswami"],"title":"FAST: Factorizable attention for speeding up transformers","year":2024}