arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2606.06453cs.AI
收藏

Vortex: 面向AI Agent的高效可编程稀疏注意力服务

Vortex: Efficient and Programmable Sparse Attention Serving for AI Agents

Carnegie Mellon University(卡内基梅隆大学);Rice University(Rice大学);National University of Singapore(新加坡国立大学)

Zhuoming Chen, Xinrui Zhong, Qilong Feng, Ranajoy Sadhukhan, Yang Zhou, Michael Qizhe Shieh, Zhihao Jia, Beidi Chen

AI总结:

提出Vortex系统,通过Python嵌入式前端语言和面向页面的张量抽象,结合高效后端,实现稀疏注意力算法的快速原型设计、部署和评估,显著提升吞吐量。

摘要:

随着生成长度的增长,稀疏注意力对于服务大型语言模型(LLMs)变得越来越重要。然而,大规模部署和评估新的稀疏注意力算法仍然高度工程密集,这减慢了人类研究人员和AI Agent探索稀疏注意力设计的速度。为了应对这一挑战,我们提出了Vortex,一个系统,它结合了在面向页面的张量抽象之上的Python嵌入式前端语言,用于表达广泛的稀疏注意力算法,以及一个紧密集成到现代LLM服务栈中的高效后端。Vortex能够快速原型设计、部署和评估稀疏注意力算法,有效地将其理论效率提升转化为实际吞吐量的改进。因此,Vortex大大加速了稀疏注意力算法的设计和迭代。首先,AI Agent使用Vortex自动生成和优化多样化的算法,最佳算法在保持准确性的同时,吞吐量比全注意力高出高达3.46倍。其次,Vortex将稀疏注意力扩展到新兴架构和非常大的模型,这些模型原本难以实验,在基于MLA的GLM-4.7-Flash上实现了高达4.7倍的吞吐量提升,在229B参数的MiniMax-M2.7上实现了1.37倍的提升(在NVIDIA B200 GPU上)。

英文摘要:

Sparse attention is becoming increasingly important for serving large language models (LLMs) as generation lengths continue to grow. However, deploying and evaluating new sparse attention algorithms at scale remains highly engineering-intensive, slowing both human researchers and AI agents in exploring the sparse attention design. To address this challenge, we present Vortex, a system that combines a Python-embedded frontend language atop a page-centric tensor abstraction for expressing a broad range of sparse attention algorithms, with an efficient backend tightly integrated into modern LLM serving stacks. Vortex enables rapid prototyping, deployment, and evaluation of sparse attention algorithms, effectively translating their theoretical efficiency gains into real-world throughput improvements. As a result, Vortex substantially accelerates the design and iteration of sparse attention algorithms. First, AI agents use Vortex to automatically generate and refine diverse algorithms, the best reaching up to $3.46\times$ higher throughput than full attention while preserving accuracy. Second, Vortex extends sparse attention to emerging architectures and very large models that are otherwise hard to experiment with, reaching up to $4.7\times$ higher throughput on the MLA-based GLM-4.7-Flash and $1.37\times$ on the 229B-parameter MiniMax-M2.7 on NVIDIA B200 GPUs.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑