mlsanityData to 7 Oct 2026

From Sparsity to Simplicity: Enabling Simpler Sequential Replacements via Sparse Attention Distillation

arXiv 2605.18865 ↗First posted 15 May 2026cs.LG cs.AIcited by 0

Not on the map. Why?

Abstract (arXiv)

Self-attention serves as the core foundation of large-scale transformer pretraining, but its quadratic token interaction cost makes inference expensive. Replacing attention with simpler sequential modules is appealing, yet naive substitution is often lossy, especially at larger scales. This paper revisits attention replacement through the lens of sparsity. Based on the observation of diverse sparsity patterns across transformer layers, we posit that pretrained transformers decompose the complex token dependency across tokens into various sequence-to-sequence mappings of diverse complexities, where some layer functionalities can be approximated and replaced with much simpler sequential modules without loss. We evaluate this premise using a plug-and-play layer-wise distillation framework to approximate and replace attention functionalities in pretrained vision transformer models. Controlled group-wise replacements under a fixed training budget reveal a clear pattern: substituting layers with sparser attention incurs substantially smaller accuracy drops than replacing denser ones. We further impose explicit attention sparsity on the pretrained ViT via AViT-style token retention and perform sparsity-guided distillation for sequential replacing models, where we see increasing teacher sparsity consistently reduces the student-teacher gap. The proposed method achieves efficient attention replacement for reduced parameter size and latency through the guidance of attention sparsity.

Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 27 of its 33 references that are in the map. First posted on arXiv 15 May 2026.

Builds on

27 of 33 references.

References · 27

  1. 2017Attention Is All You Needcited by 59,932
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  3. 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,456
  4. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
  5. 2015Distilling the Knowledge in a Neural Networkcited by 10,076
  6. 2023Mamba: Linear-Time Sequence Modeling with Selective State Spacescited by 4,616
  7. 2020Training data-efficient image transformers & distillation through attentioncited by 4,560
  8. 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,611
  9. 2023Efficient Streaming Language Models with Attention Sinkscited by 2,115
  10. 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 1,979
  11. 2021MLP-Mixer: An all-MLP Architecture for Visioncited by 1,441
  12. 2020MiniLM: Deep Self-Attention Distillation for Task-Agnostic Compression of Pre-Trained Transformerscited by 1,414
15 more
  1. 2019TinyBERT: Distilling BERT for Natural Language Understandingcited by 1,153
  2. 2021DynamicViT: Efficient Vision Transformers with Dynamic Token Sparsificationcited by 849
  3. 2024SnapKV: LLM Knows What You are Looking for Before Generationcited by 848
  4. 2023H2O: Heavy-Hitter Oracle for Efficient Generative Inference of Large Language Modelscited by 805
  5. 2020Efficient Transformers: A Surveycited by 784
  6. 2023Retentive Network: A Successor to Transformer for Large Language Modelscited by 594
  7. 2020MobileBERT: a Compact Task-Agnostic BERT for Resource-Limited Devicescited by 476
  8. 2019Reducing Transformer Depth on Demand with Structured Dropoutcited by 434
  9. 2024PyramidKV: Dynamic KV Cache Compression based on Pyramidal Information Funnelingcited by 420
  10. 2021AdaViT: Adaptive Tokens for Efficient Vision Transformercited by 360
  11. 2019On the Relationship between Self-Attention and Convolutional Layerscited by 299
  12. 2024The Mamba in the Llama: Distilling and Accelerating Hybrid Modelscited by 120
  13. 2024What Matters in Transformers? Not All Attention is Neededcited by 83
  14. 2024RNNs are not Transformers (Yet): The Key Bottleneck on In-context Retrievalcited by 62
  15. 2021Leveraging redundancy in attention with Reuse Transformerscited by 33

Built on by

Not cited yet.