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

Yuxin Ren, Maxwell D Collins, Miao Hu, Huanrui Yang
5/15/2026
cs.LGcs.AI
transformer-attentiondistillation

No confident code implementation found for this paper.

Abstract

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{ren2026from,
  title  = {From Sparsity to Simplicity: Enabling Simpler Sequential Replacements via Sparse Attention Distillation},
  author = {Yuxin Ren and Maxwell D Collins and Miao Hu and Huanrui Yang},
  year   = {2026},
  eprint = {2605.18865},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2605.18865v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2605.18865.svg)](https://codeofpaper.com/paper/2605.18865)

Discussion