mlsanityData to 14 Oct 2026

SAMSA: Efficient Transformer for Many Data Modalities

arXiv 2408.05391 ↗First posted 10 Aug 2024cs.LGcited by 0

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

  1. 2017Attention Is All You Needcited by 60,361
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
  3. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
  4. 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,305
  5. 2016Semi-Supervised Classification with Graph Convolutional Networkscited by 11,361
  6. 2020End-to-End Object Detection with Transformerscited by 7,414
  7. 2016PointNet: Deep Learning on Point Sets for 3D Classification and Segmentationcited by 5,248
  8. 2017PointNet++: Deep Hierarchical Feature Learning on Point Sets in a Metric Spacecited by 4,401
  9. 2018How Powerful are Graph Neural Networks?cited by 4,393
  10. 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,673
  11. 2020Longformer: The Long-Document Transformercited by 3,413
  12. 2015ShapeNet: An Information-Rich 3D Model Repositorycited by 2,897
38 more
  1. 2016Categorical Reparameterization with Gumbel-Softmaxcited by 2,739
  2. 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,598
  3. 2021Efficiently Modeling Long Sequences with Structured State Spacescited by 2,465
  4. 2018Dynamic Graph CNN for Learning on Point Cloudscited by 2,223
  5. 2013Estimating or Propagating Gradients Through Stochastic Neurons for Conditional Computationcited by 2,079
  6. 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 2,022
  7. 2020Conformer: Convolution-augmented Transformer for Speech Recognitioncited by 1,863
  8. 2020Big Bird: Transformers for Longer Sequencescited by 1,684
  9. 2020Reformer: The Efficient Transformercited by 1,668
  10. 2020Rethinking Attention with Performerscited by 1,601
  11. 2019Root Mean Square Layer Normalizationcited by 1,480
  12. 2020Linformer: Self-Attention with Linear Complexitycited by 1,474
  13. 2020Point Transformercited by 1,470
  14. 2019KPConv: Flexible and Deformable Convolution for Point Cloudscited by 1,205
  15. 2016The Concrete Distribution: A Continuous Relaxation of Discrete Random Variablescited by 1,148
  16. 2020Efficient Transformers: A Surveycited by 790
  17. 2018PointCNN: Convolution On X-Transformed Pointscited by 764
  18. 2022Recipe for a General, Powerful, Scalable Graph Transformercited by 713
  19. 2020Long Range Arena: A Benchmark for Efficient Transformerscited by 700
  20. 2023Time-LLM: Time Series Forecasting by Reprogramming Large Language Modelscited by 700
  21. 2018PointConv: Deep Convolutional Networks on 3D Point Cloudscited by 657
  22. 2021Point-BERT: Pre-training 3D Point Cloud Transformers with Masked Point Modelingcited by 653
  23. 2021AST: Audio Spectrogram Transformercited by 643
  24. 2022Mixture-of-Experts with Expert Choice Routingcited by 623
  25. 2019Graph Transformer Networkscited by 523
  26. 2020Efficient Content-Based Sparse Attention with Routing Transformerscited by 471
  27. 2022Non-stationary Transformers: Exploring the Stationarity in Time Series Forecastingcited by 391
  28. 2017Residual Gated Graph ConvNetscited by 346
  29. 2020ReZero is All You Need: Fast Convergence at Large Depthcited by 264
  30. 2022Long Range Graph Benchmarkcited by 263
  31. 2018SpiderCNN: Deep Learning on Point Sets with Parameterized Convolutional Filterscited by 261
  32. 2021Efficient Training of Audio Transformers with Patchoutcited by 226
  33. 2019Stochastic Beams and Where to Find Them: The Gumbel-Top-k Trick for Sampling Sequences Without Replacementcited by 211
  34. 2018Deep k-Nearest Neighbors: Towards Confident, Interpretable and Robust Deep Learningcited by 207
  35. 2020Fast Differentiable Sorting and Rankingcited by 197
  36. 2022Mega: Moving Average Equipped Gated Attentioncited by 179
  37. 2023Exphormer: Sparse Transformers for Graphscited by 170
  38. 2021Self-attention Does Not Need O(n2) Memorycited by 154

50 most cited of 69 All 69 (JSON)

Built on by

Not cited yet.