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

SSA: Sparse Sparse Attention by Aligning Full and Sparse Attention Outputs in Feature Space

About

Sparse attention reduces the quadratic complexity of full self-attention but faces two challenges: (1) an attention gap, where applying sparse attention to full-attention-trained models causes performance degradation due to train-inference distribution mismatch, and (2) a capability gap, where models trained purely with sparse attention lack complete gradient flow, preventing them from matching full-attention performance. We propose SSA (Sparse Sparse Attention), a training framework that integrates both sparse and full attention with bidirectional attention-output alignment. We prove that the approximation error scales linearly with the attention mass dropped under sparse attention, and show that SSA's alignment objective substantially reduces this quantity compared to baselines. Experiments demonstrate that SSA achieves state-of-the-art performance under both inference modes, adapts smoothly to varying sparsity budgets, and demonstrates superior long-context capabilities.

Zhenyi Shen, Junru Lu, Lin Gui, Jiazheng Li, Yulan He, Di Yin, Xing Sun• 2025

Related benchmarks

TaskDatasetResultRank
Commonsense ReasoningHellaSwag
HellaSwag Accuracy58.5
897
Commonsense ReasoningPIQA
Accuracy74.54
400
Commonsense ReasoningARC Challenge
Accuracy38.65
259
Commonsense ReasoningARC-E
Accuracy69.97
249
Language ModelingWikiText
Wikitext PPL15.28
151
Long-context UnderstandingLongBench
Score (32k)19.55
22
RetrievalNeedle-in-A-Haystack RULER
Success Rate (4K Context)100
22
Showing 7 of 7 rows

Other info

Follow for update