Stem: Rethinking Causal Information Flow in Sparse Attention

Lin Niu, Xin Luo, Linchuan Xie, Yifu Sun, Guanghua Yu +2 more
3/6/2026
cs.LGcs.AI

No confident code implementation found for this paper. 1 possible match can be shown below.

Abstract

The quadratic computational complexity of self-attention remains a fundamental bottleneck for scaling Large Language Models (LLMs) to long contexts, particularly during the pre-filling phase. In this paper, we rethink the causal attention mechanism from the perspective of information flow. Due to causal constraints, tokens at initial positions participate in the aggregation of every subsequent token. However, existing sparse methods typically apply a uniform top-k selection across all token positions within a layer, ignoring the cumulative dependency of token information inherent in causal architectures. To address this, we propose Stem, a novel, plug-and-play sparsity module aligned with information flow. First, Stem employs the Token Position-Decay strategy, applying position-dependent top-k within each layer to retain initial tokens for recursive dependencies. Second, to preserve information-rich tokens, Stem utilizes the Output-Aware Metric. It prioritizes high-impact tokens based on approximate output magnitude. Extensive evaluations demonstrate that Stem achieves superior accuracy with reduced computation and pre-filling latency.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 1 weaker match is hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{niu2026stem,
  title  = {Stem: Rethinking Causal Information Flow in Sparse Attention},
  author = {Lin Niu and Xin Luo and Linchuan Xie and Yifu Sun and Guanghua Yu and Jianchen Zhu and S Kevin Zhou},
  year   = {2026},
  eprint = {2603.06274},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2603.06274v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2603.06274.svg)](https://codeofpaper.com/paper/2603.06274)

Discussion