2026

SAS: Simple Attention Sparsification via End-to-End Optimization of Context Ranking

Li, Zhiwei, Zhu, Lei, Gu, Hao et al.

Understand

Post-training attention sparsification reduces the quadratic cumulative attention cost of pretrained Transformers by selecting a small set of context units (tokens or blocks) for each query.

  • Existing trainable methods usually use a lightweight selector to score context units, followed by hard Top-K selection that blocks gradients from the language modeling loss.
  • Consequently, these methods commonly distill layer-wise dense attention distributions.
  • Although this encourages the selector to rank context units by dense attention weights in the original model, the ranking is not directly aligned with their impact on predictions under a fixed attention budget (i.e., the number of attended context units per query), potentially wasting the limited budget on less useful units.

Reading the bibliography…