模型与实验室 4.0 · 优秀 2026-10-30 · 论文

Latent Sparse Attention: Towards Subquadratic Ultra-Long Context Attention

智能体长程任务推动上下文进入百万 token 量级,全注意力开销不可行,现有稀疏索引器要么仍是平方复杂度要么在超长上下文掉精度LSA 将 key 在学习到的隐空间中分层聚类,query 只对簇层级打分而非逐 key 打分,同时加速 prefilldecode 与训练;提供蒸馏适配预训练模型的 D-LSA 与仅用下一 token 损失原生训练的 N-LSA在 GLM-5.3-FLASH(QWEN-3.8-27B)10M token 下,D-LSA 单层注意力 prefill 提速 22.7 倍(对比全注意力 72.4 倍)decode 4.6 倍(42.5 倍)且任务精度相当;N-LSA 在 128k token 以 1.6 倍单层训练提速匹配全注意力精度

打开原文回到归档

Latent Sparse Attention: Towards Subquadratic Ultra-Long Context Attention

  • ID: 44de35dd
  • 原文链接: https://arxiv.org/abs/2610.42147
  • PDF: https://arxiv.org/pdf/2610.42147v1
  • 作者: Ales Kubicek, Andrea Caciolai, Liangzu Peng, Sukrit Sumant, Benjamin Hoover, Fraser Greenlee, Ruairidh M. Battleday, Radim Urban, Torsten Hoefler, James C. R. Whittington
  • 日期: 2026-10-30
  • 更新: 2026-10-30
  • 分类: models
  • 来源类型: paper
  • 标签: long-context, sparse-attention, efficiency, inference-optimization
  • 质量评分: 4/5
  • 抓取时间: 2026-11-03T12:23:02Z

中文导读

智能体长程任务推动上下文进入百万 token 量级,全注意力开销不可行,现有稀疏索引器要么仍是平方复杂度要么在超长上下文掉精度LSA 将 key 在学习到的隐空间中分层聚类,query 只对簇层级打分而非逐 key 打分,同时加速 prefilldecode 与训练;提供蒸馏适配预训练模型的 D-LSA 与仅用下一 token 损失原生训练的 N-LSA在 GLM-5.3-FLASH(QWEN-3.8-27B)10M token 下,D-LSA 单层注意力 prefill 提速 22.7 倍(对比全注意力 72.4 倍)decode 4.6 倍(42.5 倍)且任务精度相当;N-LSA 在 128k token 以 1.6 倍单层训练提速匹配全注意力精度

为什么值得关注

LSA 隐空间分层聚类稀疏注意力:10M token 下 prefill 单层提速 22.7 倍且精度不掉 该文与本库分类 models(标签 long-context, sparse-attention, efficiency, inference-optimization)主题直接相关;关注理由见上方导读,量化结果均来自论文摘要,详见下方 English Abstract。

关键信息

  • 论文标题:Latent Sparse Attention: Towards Subquadratic Ultra-Long Context Attention
  • 作者:Ales Kubicek, Andrea Caciolai, Liangzu Peng, Sukrit Sumant, Benjamin Hoover, Fraser Greenlee, Ruairidh M. Battleday, Radim Urban, Torsten Hoefler, James C. R. Whittington
  • arXiv:https://arxiv.org/abs/2610.42147
  • 发布时间:2026-10-30
  • arXiv 分类:cs.AI
  • 关联标签:long-context, sparse-attention, efficiency, inference-optimization

English Abstract

Agentic workflows are increasingly shifting towards long-horizon tasks, such as open-ended scientific work, where models benefit from long context windows. However, at ultra-long context (above 1M tokens), full attention is prohibitively expensive. A promising approach is sparse attention, in which a dedicated indexer selects a subset of keys for the attention. Yet current methods of indexing either still have quadratic cost in context size or lose accuracy at ultra-long context scale. We address this with Latent Sparse Attention (LSA), an efficient attention method that maintains accuracy at ultra-long context. In LSA, keys are hierarchically clustered in a learned latent space, and queries score the hierarchy of clusters instead of scoring every key, making prefill, decode and training faster at long context. We propose two variants, Distilled-LSA (D-LSA), which can be applied to pre-trained models via distillation, and Native-LSA (N-LSA), which is trained natively on the next-token loss alone. On GLM-5.3-FLASH (QWEN-3.8-27B) at 10M tokens, D-LSA speeds up one attention layer by 22.7x (72.4x) in prefill and 4.6x (42.5x) in decode over its original sparse attention (full attention), while keeping similar accuracy across a variety of tasks. N-LSA matches the accuracy of full attention with a training speedup of 1.6x per layer at 128k tokens. LSA offers practical and efficient attention for models to benefit from ultra-long context.

English Summary

Agentic long-horizon workloads push contexts past 1M tokens, where full attention is prohibitively expensive and existing sparse-attention indexers either stay quadratic or lose accuracy at that scale. Latent Sparse Attention (LSA) hierarchically clusters keys in a learned latent space so queries score cluster hierarchies instead of every key, accelerating prefill, decode and training. Distilled-LSA adapts pre-trained models via distillation; Native-LSA trains natively on next-token loss alone. On GLM-5.3-FLASH (QWEN-3.8-27B) at 10M tokens, D-LSA speeds one attention layer 22.7x (72.4x) in prefill and 4.6x (42.5x) in decode over the original sparse (full) attention with similar accuracy across tasks; N-LSA matches full-attention accuracy with 1.6x per-layer training speedup at 128k tokens.

Obsidian Notes

  • 内容由 opencli arxiv paper 拉取 arXiv 元数据与摘要生成。
  • 中文导读与价值判断均锚定在条目已有摘要、论文摘要、作者、日期与分类信息上;未补充论文摘要之外的实验细节。