arXiv cs.AI· Yu Zhao, Zekun Zhang, Fan Jiang, Bo Zeng, Xintong Wang, Chonghan Liu, Shimin Shan, Yichao Du, Yu Liu·· 13 小时前AI 评分42
LISA:面向高效长上下文推理的线性索引稀疏注意力
LISA: Linear-Indexed Sparse Attention for Efficient Long-Context Reasoning
AI 导读
LISA 是一种即插即用的自注意力替代方案,无需完整预训练,通过线性注意力分支与 Lightning Indexer 动态选取相关 token 的稀疏注意力分支经学习门控融合。
正文 · 原文
Abstract:Long chain-of-thought (CoT) reasoning models such as DeepSeek-R1 keep lengthening their inference chains under test-time scaling, yet standard self-attention incurs quadratic cost in context length, making long-CoT deployment costly in production. We therefore introduce LISA (Linear-Indexed Sparse Attention), a plug-and-play replacement for self-attention that requires no full pretraining. LISA combines a linear-attention branch for long-range memory with a Lightning Indexer that dynamically selects the most relevant tokens for a sparse self-attention branch. The two branches are fused through a learned gate, so the model retains broad context while focusing computation on informative tokens.
We train LISA in two stages. In Stage 1, a linear-attention branch is integrated with sliding-window attention and distilled from a frozen teacher's full-attention distribution. In Stage 2, the Lightning Indexer replaces the static window and is trained with a per-head KL-divergence objective to mimic teacher attention patterns. The resulting model reduces eager-mode self-attention computation from quadratic in sequence length to linear in the number of generated tokens and the selected context budget.
Experiments on DeepSeek-distilled Qwen models show that LISA cuts measured eager-mode mean sample latency by 23.9% at 16K context without degrading long-context reasoning quality. Across nine mathematical and code reasoning benchmarks, the gated LISA-1.5B model improves the equal-weight benchmark average by 4.2 percentage points relative to the full-attention baseline.
| Comments: | 20 pages, 10 figures |
| Subjects: | Artificial Intelligence (cs.AI) |
| Report number: | LISA-v2-2026 |
| Cite as: | arXiv:2607.19358 [cs.AI] |
| (or arXiv:2607.19358v2 [cs.AI] for this version) | |
| https://doi.org/10.48550/arXiv.2607.19358 arXiv-issued DOI via DataCite |
Submission history
From: Zhao Yu [view email]
[v1]
Fri, 29 May 2026 03:05:29 UTC (161 KB)
[v2]
Tue, 27 Oct 2026 13:29:13 UTC (194 KB)
来源:arXiv cs.AI · arxiv.org