mlsanityData to 7 Oct 2026

S2O: Early Stopping for Sparse Attention via Online Permutation

arXiv 2602.22575 ↗First posted 26 Feb 2026cs.LG cs.AIcited by 1

Not on the map. Why?

Abstract (arXiv)

Attention scales quadratically with sequence length, fundamentally limiting long-context inference. Existing block-granularity sparsification can reduce latency, but coarse blocks impose an intrinsic sparsity ceiling, making further improvements difficult even with carefully engineered designs. We present S2O, which performs early stopping for sparse attention via online permutation. Inspired by virtual-to-physical address mapping in memory systems, S2O revisits and factorizes FlashAttention execution, enabling inference to load non-contiguous tokens rather than a contiguous span in the original order. Motivated by fine-grained structures in attention heatmaps, we transform explicit permutation into an online, index-guided, discrete loading policy; with extremely lightweight preprocessing and index-remapping overhead, it concentrates importance on a small set of high-priority blocks. Building on this importance-guided online permutation for loading, S2O further introduces an early-stopping rule: computation proceeds from high to low importance; once the current block score falls below a threshold, S2O terminates early and skips the remaining low-contribution blocks, thereby increasing effective sparsity and reducing computation under a controlled error budget. As a result, S2O substantially raises the practical sparsity ceiling. On Llama-3.1-8B under a 128K context, S2O reduces single-operator MSE by 3.82× at matched sparsity, and reduces prefill compute density by 3.31× at matched MSE; meanwhile, it preserves end-to-end accuracy and achieves 7.51× attention and 3.81× end-to-end speedups.

Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Builds on 27 of its 32 references that are in the map. First posted on arXiv 26 Feb 2026.

Builds on

27 of 32 references.

References · 27

  1. 2020Longformer: The Long-Document Transformercited by 3,362
  2. 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,551
  3. 2023Efficient Streaming Language Models with Attention Sinkscited by 2,115
  4. 2024RULER: What's the Real Context Size of Your Long-Context Language Models?cited by 1,270
  5. 2024Quest: Query-Aware Sparsity for Efficient Long-Context LLM Inferencecited by 487
  6. 2024MInference 1.0: Accelerating Pre-filling for Long-Context LLMs via Dynamic Sparse Attentioncited by 375
  7. 2024LongBench v2: Towards Deeper Understanding and Reasoning on Realistic Long-context Multitaskscited by 367
  8. 2024Extreme Compression of Large Language Models via Additive Quantizationcited by 223
  9. 2025Sparse VideoGen: Accelerating Video Diffusion Transformers with Spatial-Temporal Sparsitycited by 204
  10. 2018Online normalizer calculation for softmaxcited by 154
  11. 2024Accelerating Diffusion Transformers with Token-wise Feature Cachingcited by 143
  12. 2024Learning-to-Cache: Accelerating Diffusion Transformer via Layer Cachingcited by 138
15 more
  1. 2025XAttention: Block Sparse Attention with Antidiagonal Scoringcited by 131
  2. 2024MiniCache: KV Cache Compression in Depth Dimension for Large Language Modelscited by 122
  3. 2025FlexPrefill: A Context-Aware Sparse Attention Mechanism for Efficient Long-Sequence Inferencecited by 121
  4. 2024Adaptive Caching for Faster Video Generation with Diffusion Transformerscited by 100
  5. 2025Sparse VideoGen2: Accelerate Video Generation with Sparse Attention via Semantic-Aware Permutationcited by 100
  6. 2025MMInference: Accelerating Pre-filling for Long-Context VLMs via Modality-Aware Permutation Sparse Attentioncited by 26
  7. 2024ABQ-LLM: Arbitrary-Bit Quantized Inference Acceleration for Large Language Modelscited by 22
  8. 2025BLADE: Block-Sparse Attention Meets Step Distillation for Efficient Video Generationcited by 13
  9. 2025ERTACache: Error Rectification and Timesteps Adjustment for Efficient Diffusioncited by 11
  10. 2024FoldGPT: Simple and Effective Large Language Model Compression Schemecited by 9
  11. 2024GQSA: Group Quantization and Sparsity for Accelerating Large Language Model Inferencecited by 5
  12. 2025Error Propagation Mechanisms and Compensation Strategies for Quantized Diffusioncited by 5
  13. 2025Sparser Block-Sparse Attention via Token Permutationcited by 5
  14. 2025AnchorAttention: Difference-Aware Sparse Attention with Stripe Granularitycited by 4
  15. 2025Accelerating Prefilling via Decoding-time Contribution Sparsitycited by 4

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2026: 1.

1 paper.