mlsanityData to 7 Oct 2026

Transformers meet Stochastic Block Models: Attention with Data-Adaptive Sparsity and Cost

arXiv 2210.15541 ↗First posted 27 Oct 2022cs.LG cs.AIcited by 4

Not on the map. Why?

Abstract (arXiv)

To overcome the quadratic cost of self-attention, recent works have proposed various sparse attention modules, most of which fall under one of two groups: 1) sparse attention under a hand-crafted patterns and 2) full attention followed by a sparse variant of softmax such as α-entmax. Unfortunately, the first group lacks adaptability to data while the second still requires quadratic cost in training. In this work, we propose SBM-Transformer, a model that resolves both problems by endowing each attention head with a mixed-membership Stochastic Block Model (SBM). Then, each attention head data-adaptively samples a bipartite graph, the adjacency of which is used as an attention mask for each input. During backpropagation, a straight-through estimator is used to flow gradients beyond the discrete sampling step and adjust the probabilities of sampled edges based on the predictive loss. The forward and backward cost are thus linear to the number of edges, which each attention head can also choose flexibly based on the input. By assessing the distribution of graphs, we theoretically show that SBM-Transformer is a universal approximator for arbitrary sequence-to-sequence functions in expectation. Empirical evaluations under the LRA and GLUE benchmarks demonstrate that our model outperforms previous efficient variants as well as the original Transformer with full attention. Our implementation can be found in https://github.com/sc782/SBM-Transformer .

Key facts. Cited by 4 papers in the map (data through 7 Oct 2026). Builds on 39 of its 56 references that are in the map. First posted on arXiv 27 Oct 2022.

Builds on

39 of 56 references.

References · 39

  1. 2017Attention Is All You Needcited by 59,932
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  3. 2020Language Models are Few-Shot Learnerscited by 32,199
  4. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
  5. 2017Graph Attention Networkscited by 8,854
  6. 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,854
  7. 2016SQuAD: 100,000+ Questions for Machine Comprehension of Textcited by 4,115
  8. 2015Delving Deep into Rectifiers: Surpassing Human-Level Performance on ImageNet Classificationcited by 3,590
  9. 2020Longformer: The Long-Document Transformercited by 3,362
  10. 2017A Broad-Coverage Challenge Corpus for Sentence Understanding through Inferencecited by 2,665
  11. 2013Estimating or Propagating Gradients Through Stochastic Neurons for Conditional Computationcited by 2,031
  12. 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 1,979
27 more
  1. 2020Big Bird: Transformers for Longer Sequencescited by 1,673
  2. 2020Reformer: The Efficient Transformercited by 1,658
  3. 2020Rethinking Attention with Performerscited by 1,584
  4. 2019Generating Long Sequences with Sparse Transformerscited by 1,523
  5. 2020Linformer: Self-Attention with Linear Complexitycited by 1,462
  6. 2015Aligning Books and Movies: Towards Story-like Visual Explanations by Watching Movies and Reading Bookscited by 1,041
  7. 2019What Does BERT Look At? An Analysis of BERT's Attentioncited by 994
  8. 2020Efficient Transformers: A Surveycited by 784
  9. 2020Long Range Arena: A Benchmark for Efficient Transformerscited by 696
  10. 2019Defending Against Neural Fake Newscited by 553
  11. 2021Nystr"omformer: A Nystr"om-Based Algorithm for Approximating Self-Attentioncited by 468
  12. 2019Are Transformers universal approximators of sequence-to-sequence functions?cited by 404
  13. 2021Efficient Attentions for Long Document Summarizationcited by 342
  14. 2017Community Detection and Stochastic Block Modelscited by 317
  15. 2021Multi-Scale Vision Longformer: A New Vision Transformer for High-Resolution Image Encodingcited by 207
  16. 2018Scaling Neural Machine Translationcited by 204
  17. 2019Adaptively Sparse Transformerscited by 154
  18. 2018ListOps: A Diagnostic Dataset for Latent Tree Learningcited by 128
  19. 2018Learning long-range spatial dependencies with horizontal gated-recurrent unitscited by 98
  20. 2020Low-Rank Bottleneck in Multi-head Attention Modelscited by 88
  21. 2021Do Transformer Modifications Transfer Across Implementations and Applications?cited by 87
  22. 2020O(n) Connections are Expressive Enough: Universal Approximability of Sparse Transformerscited by 82
  23. 2021SparseBERT: Rethinking the Importance Analysis in Self-attentioncited by 46
  24. 2020SMYRF: Efficient Attention using Asymmetric Clusteringcited by 43
  25. 2013Hierarchical Block Structures and High-resolution Model Selection in Large Networkscited by 37
  26. 2020Sparse and Continuous Attention Mechanismscited by 37
  27. 2020SparseRT: Accelerating Unstructured Sparsity on GPUs for Deep Learning Inferencecited by 30

Built on by

Cited by year

Citing papers per year: 2023: 2; 2024: 1; 2025: 1.

4 papers.