arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2603.16104cs.MAcs.AIcs.DB
收藏

高效代理工作流的LLM服务:数据系统视角

Efficient LLM Serving for Agentic Workflows: A Data Systems Perspective

National University of Singapore(新加坡国立大学)

Noppanat Wadlom, Junyi Shen, Yao Lu

AI总结:

本文从数据系统视角重新思考LLM和服务,提出Helium框架,通过主动缓存和缓存感知调度提升代理工作流效率,实现1.56倍速度提升。

摘要:

代理工作流由一系列相互依赖的LLM调用组成,已成为现代AI系统的主要工作负载。由于推测和并行探索,这些工作流表现出大量重叠提示和中间结果的冗余。现有LLM服务系统如vLLM专注于优化单个推理调用,忽视跨调用依赖,导致显著低效。本文从数据系统视角重新思考LLM和代理服务,引入Helium框架,将代理工作负载建模为查询计划,并将LLM调用视为第一类操作符。Helium整合主动缓存和缓存感知调度,以最大化提示、KV状态和工作流之间的重用。通过这些技术,Helium将经典查询优化原理与LLM服务结合,从而在各种工作负载上实现比现有最佳代理服务系统快1.56倍的速度提升。我们的结果表明,跨工作流的端到端优化对于可扩展且高效的基于LLM的代理至关重要。

英文摘要:

Agentic workflows are composed of sequences of interdependent Large Language Model (LLM) calls, and they have become a dominant workload in modern AI systems. These workflows exhibit extensive redundancy from overlapping prompts and intermediate results due to speculative and parallel exploration. Existing LLM serving systems, such as vLLM, focus on optimizing individual inference calls and overlook cross-call dependencies, leading to significant inefficiencies. This paper rethinks LLM and agent serving from a data systems perspective and introduces Helium, a workflow-aware serving framework that models agentic workloads as query plans and treats LLM invocations as first-class operators. Helium integrates proactive caching and cache-aware scheduling to maximize reuse across prompts, KV states, and workflows. Through these techniques, Helium bridges classic query optimization principles with LLM serving, achieving up to 1.56x speedup over state-of-the-art agent serving systems on various workloads. Our results demonstrate that end-to-end optimization across workflows is essential for scalable and efficient LLM-based agents.

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

↑