SAMSA: Efficient Transformer for Many Data Modalities
Not on the map. Why?
Abstract (arXiv)
The versatility of self-attention mechanism earned transformers great success in almost all data modalities, with limitations on the quadratic complexity and difficulty of training. Efficient transformers, on the other hand, often rely on clever data-modality-dependent construction to get over the quadratic complexity of transformers. This greatly hinders their applications on different data modalities, which is one of the pillars of contemporary foundational modeling. In this paper, we lay the groundwork for efficient foundational modeling by proposing SAMSA - SAMpling-Self-Attention, a context-aware linear complexity self-attention mechanism that works well on multiple data modalities. Our mechanism is based on a differentiable sampling without replacement method we discovered. This enables the self-attention module to attend to the most important token set, where the importance is defined by data. Moreover, as differentiability is not needed in inference, the sparse formulation of our method costs little time overhead, further lowering computational costs. In short, SAMSA achieved competitive or even SOTA results on many benchmarks, while being faster in inference, compared to other very specialized models. Against full self-attention, real inference time significantly decreases while performance ranges from negligible degradation to outperformance. We release our source code in the repository: https://github.com/HySonLab/SAMSA
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 69 of its 87 references that are in the map. First posted on arXiv 10 Aug 2024.
Builds on
69 of 87 references.
References · 69
- 2017Attention Is All You Needcited by 60,361
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
- 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,305
- 2016Semi-Supervised Classification with Graph Convolutional Networkscited by 11,361
- 2020End-to-End Object Detection with Transformerscited by 7,414
- 2016PointNet: Deep Learning on Point Sets for 3D Classification and Segmentationcited by 5,248
- 2017PointNet++: Deep Hierarchical Feature Learning on Point Sets in a Metric Spacecited by 4,401
- 2018How Powerful are Graph Neural Networks?cited by 4,393
- 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,673
- 2020Longformer: The Long-Document Transformercited by 3,413
- 2015ShapeNet: An Information-Rich 3D Model Repositorycited by 2,897
38 more
- 2016Categorical Reparameterization with Gumbel-Softmaxcited by 2,739
- 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,598
- 2021Efficiently Modeling Long Sequences with Structured State Spacescited by 2,465
- 2018Dynamic Graph CNN for Learning on Point Cloudscited by 2,223
- 2013Estimating or Propagating Gradients Through Stochastic Neurons for Conditional Computationcited by 2,079
- 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 2,022
- 2020Conformer: Convolution-augmented Transformer for Speech Recognitioncited by 1,863
- 2020Big Bird: Transformers for Longer Sequencescited by 1,684
- 2020Reformer: The Efficient Transformercited by 1,668
- 2020Rethinking Attention with Performerscited by 1,601
- 2019Root Mean Square Layer Normalizationcited by 1,480
- 2020Linformer: Self-Attention with Linear Complexitycited by 1,474
- 2020Point Transformercited by 1,470
- 2019KPConv: Flexible and Deformable Convolution for Point Cloudscited by 1,205
- 2016The Concrete Distribution: A Continuous Relaxation of Discrete Random Variablescited by 1,148
- 2020Efficient Transformers: A Surveycited by 790
- 2018PointCNN: Convolution On X-Transformed Pointscited by 764
- 2022Recipe for a General, Powerful, Scalable Graph Transformercited by 713
- 2020Long Range Arena: A Benchmark for Efficient Transformerscited by 700
- 2023Time-LLM: Time Series Forecasting by Reprogramming Large Language Modelscited by 700
- 2018PointConv: Deep Convolutional Networks on 3D Point Cloudscited by 657
- 2021Point-BERT: Pre-training 3D Point Cloud Transformers with Masked Point Modelingcited by 653
- 2021AST: Audio Spectrogram Transformercited by 643
- 2022Mixture-of-Experts with Expert Choice Routingcited by 623
- 2019Graph Transformer Networkscited by 523
- 2020Efficient Content-Based Sparse Attention with Routing Transformerscited by 471
- 2022Non-stationary Transformers: Exploring the Stationarity in Time Series Forecastingcited by 391
- 2017Residual Gated Graph ConvNetscited by 346
- 2020ReZero is All You Need: Fast Convergence at Large Depthcited by 264
- 2022Long Range Graph Benchmarkcited by 263
- 2018SpiderCNN: Deep Learning on Point Sets with Parameterized Convolutional Filterscited by 261
- 2021Efficient Training of Audio Transformers with Patchoutcited by 226
- 2019Stochastic Beams and Where to Find Them: The Gumbel-Top-k Trick for Sampling Sequences Without Replacementcited by 211
- 2018Deep k-Nearest Neighbors: Towards Confident, Interpretable and Robust Deep Learningcited by 207
- 2020Fast Differentiable Sorting and Rankingcited by 197
- 2022Mega: Moving Average Equipped Gated Attentioncited by 179
- 2023Exphormer: Sparse Transformers for Graphscited by 170
- 2021Self-attention Does Not Need O(n2) Memorycited by 154
50 most cited of 69 All 69 (JSON)
Built on by
Not cited yet.