Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

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

About

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.

Yuxin Ren, Maxwell D Collins, Miao Hu, Huanrui Yang• 2026

Related benchmarks

TaskDatasetResultRank
Image ClassificationImageNet-1k (val)
Top-1 Accuracy80.5
920
Image ClassificationCIFAR-100--
204
Image ClassificationiNaturalist 18
Overall Accuracy71.2
151
Image ClassificationiNaturalist 2019
Top-1 Acc76.9
122
Image ClassificationStanford Cars
Top-1 Accuracy92.9
98
Image ClassificationFlowers-102
Top-1 Accuracy98.1
25
Image ClassificationImageNet
Top-1 Accuracy79.3
6
Showing 7 of 7 rows

Other info

Follow for update