跳到正文
arXiv (AI + Vision + Imaging)· Yangsheng Deng, Xinjing Huang, Yulong Wang, Yunzhuo Liu, Jun Hu, Shuyong Tang, Junchi Zeng, Mingji Han, Ray Ying, Key Zhang, Luo Mai·精选AI 评分58

HyScale提出长上下文训练系统,将学习型稀疏注意力训练提速2.07倍

HyScale: Scaling Long-Context Training for Learned Sparse Attention

AI 导读

论文提出面向学习型稀疏注意力的长上下文训练系统HyScale,核心是把选择输出视为索引集合而非激活,并用HyTopK在计算中直接求每个query的精确top-k、用selection replay在重计算时复用前向选择结果。

推荐理由

论文提出把稀疏注意力选择结果当作索引而非激活来复用,在1M token序列上把训练加速约2倍,为长上下文训练瓶颈提供可迁移的系统思路。

正文 · 原文

arXiv:2610.32057v1 Announce Type: new Abstract: We present HyScale, a long-context training system for learned sparse attention. Learned sparse attention is a promising architecture for million-token contexts, widely adopted in production since DeepSeek-V3.2. Selection, however, grows into the training bottleneck. For each query, it scores every previous token whereas sparse attention reads only $k$; worse, current systems materialize a full score table and repeat selection during recomputation. Our key insight is that the output of selection is not an activation, but rather a set of indices. Building on it, HyScale introduces HyTopK and selection replay. HyTopK finds each query's exact top-$k$ on the fly without a score table, while selection replay reuses forward-pass selection in recomputation. Together with holistic system optimizations tackling end-to-end training challenges, HyScale speeds up GLM-5.1 training on 1M-token sequences by 2.07$\times$ over Megatron-LM on 512 H20 GPUs. It also speeds up the CSA layers of DeepSeek-V4-Flash and the QSA layers of Qwen3.8-Flash-Next by 2.01$\times$ and 1.57$\times$ at 1M tokens on 32 H800 GPUs.

来源:arXiv (AI + Vision + Imaging) · arxiv.org