研究团队开源面向1000万词元上下文的稀疏注意力方法
一支研究团队发布了用于训练和服务超长上下文模型的开源稀疏注意力方法,包括内核、SGLang 集成、论文和实现细节。团队称,对Qwen 3.8 27B的注意力进行稀疏化后未观察到准确率损失;仅使用下一词预测损失训练稀疏注意力,可达到与完整注意力相同的验证损失且速度更快。扩展至1000万词元上下文时,团队称部分特定任务出现准确率下降,而大多数任务(包括NIAH)未受影响。
此次发布开放了方法、内核、SGLang 集成、论文和实现细节。团队称,该方法可用于较小的开放权重模型,从而降低本地硬件处理更长上下文的成本;其当前工作主要面向H200和B300 GPU及更大规模的系统。
I am on the team behind the attached open-source research on novel approaches to attention - specifically we show:
• You can sparsify the attention of Qwen 3.8 27B without observed loss on accuracy
• Extending context up to 10M tokens loses accuracy on some specific tasks - but most, like NIAH is still fine (interesting insights)
• You can natively train sparse attention on next-token prediction loss alone and achieve the same validation loss as full attention - but faster
Hope the community likes it - while we focus on H200/B300 GPUs and larger scale system - I wanted to share our research here as well - as it can be applied to small open-weight models (making longer context cheaper on local hardware)
Everything is fully open: kernels / SGLang integration / paper / details
Hope you find it interesting / useful!
(No hype - we try to be as transparent as possible)