arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2602.13692cs.OScs.MA
收藏

ThunderAgent: 一个简单、快速且程序感知的智能推理系统

ThunderAgent: A Simple, Fast and Program-Aware Agentic Inference System

Georgia Institute of Technology(佐治亚理工学院);Individual Researcher(独立研究者);University of Illinois Urbana-Champaign(伊利诺伊大学厄巴纳-香槟分校);Carnegie Mellon University(卡内基梅隆大学);Together AI

Hao Kang, Ziyang Li, Weili Xu, Xinyu Yang, Yinfang Chen, Junxiong Wang, Beidi Chen, Tushar Krishna, Chenfeng Xu, Simran Arora

AI总结:

提出ThunderAgent系统,通过LLM程序抽象统一管理KV缓存和工具资源,实现程序感知调度,在编码、路由和科学发现任务中吞吐量提升1.5-3.9倍,磁盘内存节省高达4.2倍。

摘要:

大型语言模型(LLM)现在被用于驱动复杂的多轮智能工作流。现有系统通过松散组合独立组件(如LLM推理引擎vLLM和工具编排器Kubernetes)来运行智能推理。尽管智能工作流涉及多个LLM和工具请求,但这些系统按请求单独调度和分配资源,缺乏对工作流的端到端认知,导致KV缓存和工具执行环境管理次优。为应对这些挑战,我们提出ThunderAgent,一个快速、简单且程序感知的智能推理系统。我们首先将智能工作流抽象为LLM程序,实现对异构资源(包括KV缓存、系统状态以及磁盘内存和网络端口等外部工具资产)的统一视图。基于此抽象,ThunderAgent引入了程序感知调度器和工具资源管理器,旨在最大化KV缓存命中率、缓解内存不平衡并支持异步环境准备。在编码、路由和科学发现智能体上的评估表明,与最先进的推理系统相比,ThunderAgent在服务中实现了1.5-3.6倍的吞吐量提升,在强化学习 rollout 中实现了1.8-3.9倍的提升,并节省了高达4.2倍的磁盘内存。为促进可重复性和支持未来发展,我们在以下网址开源了整个ThunderAgent的系统实现:this https URL。

英文摘要:

Large language models(LLMs) are now used to power complex multi-turn agentic workflows. Existing systems run agentic inference by loosely assembling isolated components: an LLM inference engine (e.g., vLLM) and a tool orchestrator (e.g., Kubernetes). Although agentic workflows involve multiple LLM and tool requests, these systems schedule and allocate resources separately on a per-request basis, without end-to-end knowledge of the workflow. This leads to sub-optimal management of KV cache and tool execution environments. To address the challenges, we propose ThunderAgent, a fast, simple, and program-aware agentic inference system. We first abstract agentic workflows as LLM Programs, enabling a unified view of heterogeneous resources, including KV caches, system states, and external tool assets such as disk memory and network ports. Built upon this abstraction, ThunderAgent introduces a program-aware scheduler and a tool resource manager designed to maximize KV cache hit rates, mitigate memory imbalances, and enable asynchronous environment preparation. Evaluations across coding, routing, and scientific discovery agents demonstrate that ThunderAgent achieves 1.5-3.6x throughput improvements in serving, 1.8-3.9x in RL rollout, and up to 4.2x disk memory savings compared to state-of-the-art inference systems. To facilitate reproducibility and support future development, we open-source the system implementations of the whole ThunderAgent at: https://github.com/Agentic-Kinetics/ThunderAgent.

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

↑