CAST: Clustering Self-Attention using Surrogate Tokens for Efficient Transformers
Not on the map. Why?
Abstract (arXiv)
The Transformer architecture has shown to be a powerful tool for a wide range of tasks. It is based on the self-attention mechanism, which is an inherently computationally expensive operation with quadratic computational complexity: memory usage and compute time increase quadratically with the length of the input sequences, thus limiting the application of Transformers. In this work, we propose a novel Clustering self-Attention mechanism using Surrogate Tokens (CAST), to optimize the attention computation and achieve efficient transformers. CAST utilizes learnable surrogate tokens to construct a cluster affinity matrix, used to cluster the input sequence and generate novel cluster summaries. The self-attention from within each cluster is then combined with the cluster summaries of other clusters, enabling information flow across the entire input sequence. CAST improves efficiency by reducing the complexity from O(N2) to O(α N) where N is the sequence length, and α is constant according to the number of clusters and samples per cluster. We show that CAST performs better than or comparable to the baseline Transformers on long-range sequence modeling tasks, while also achieving higher results on time and memory efficiency than other efficient transformers.
Key facts. No citing papers in the map yet (data through 13 Oct 2026). Builds on 25 of its 40 references that are in the map. First posted on arXiv 6 Feb 2024.
Builds on
25 of 40 references.
References · 25
- 2017Attention Is All You Needcited by 60,106
- 2020Language Models are Few-Shot Learnerscited by 32,320
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,043
- 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,111
- 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,637
- 2020Longformer: The Long-Document Transformercited by 3,393
- 2020Big Bird: Transformers for Longer Sequencescited by 1,681
- 2020Reformer: The Efficient Transformercited by 1,662
- 2020Rethinking Attention with Performerscited by 1,594
- 2019Generating Long Sequences with Sparse Transformerscited by 1,538
- 2020Linformer: Self-Attention with Linear Complexitycited by 1,469
- 2021MLP-Mixer: An all-MLP Architecture for Visioncited by 1,442
13 more
- 2015Effective Approaches to Attention-based Neural Machine Translationcited by 1,025
- 2020Long Range Arena: A Benchmark for Efficient Transformerscited by 697
- 2021FNet: Mixing Tokens with Fourier Transformscited by 346
- 2019Utilizing BERT for Aspect-Based Sentiment Analysis via Constructing Auxiliary Sentencecited by 121
- 2018Learning long-range spatial dependencies with horizontal gated-recurrent unitscited by 98
- 2021Luna: Linear Unified Nested Attentioncited by 96
- 2019Leveraging BERT for Extractive Text Summarization on Lecturescited by 63
- 2020SMYRF: Efficient Attention using Asymmetric Clusteringcited by 43
- 2021Transformer Acceleration with Dynamic Sparse Attentioncited by 19
- 2022Classification of Long Sequential Data using Circular Dilated Convolutional Neural Networkscited by 13
- 2022ChordMixer: A Scalable Neural Attention Model for Sequences with Different Lengthscited by 9
- 2022Paramixer: Parameterizing Mixing Links in Sparse Factors Works Better than Dot-Product Self-Attentioncited by 6
- 2021Sparse Factorization of Large Square Matricescited by 2
Built on by
Not cited yet.