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

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Ren, Yuxin, Collins, Maxwell D, Hu, Miao, Yang, Huanrui
Format: Preprint
Published: 2026
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866914579037028352
author Ren, Yuxin
Collins, Maxwell D
Hu, Miao
Yang, Huanrui
author_facet Ren, Yuxin
Collins, Maxwell D
Hu, Miao
Yang, Huanrui
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2605_18865
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle From Sparsity to Simplicity: Enabling Simpler Sequential Replacements via Sparse Attention Distillation
Ren, Yuxin
Collins, Maxwell D
Hu, Miao
Yang, Huanrui
Machine Learning
Artificial Intelligence
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.
title From Sparsity to Simplicity: Enabling Simpler Sequential Replacements via Sparse Attention Distillation
topic Machine Learning
Artificial Intelligence
url https://arxiv.org/abs/2605.18865