arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2601.05109cs.DCcs.MA
收藏

Nalar:一个代理服务框架

Nalar: Workflow-Aware Management of Agentic Applications

UT Austin(德克萨斯大学奥斯汀分校);Cisco Research(思科研究)

Saurabh Agarwal, Marco Laju, Donghyun Son, Nitin Kedia, Myungjin Lee, Jayanth Srinivasa, Aditya Akella

AI总结:

Nalar是一个高效代理服务框架,通过分离工作流规范与执行,实现异构代理应用的可扩展、高效和基于策略的服务,显著提升性能和稳定性。

摘要:

LLM驱动的代理应用越来越多地自动化复杂的多步骤任务,但高效地服务它们仍然具有挑战性,因为组件异构、动态且模型驱动的控制流、长时间运行的状态以及不可预测的延迟。Nalar是一个从零开始构建的代理服务框架,它清晰地将工作流规范与执行分离,同时提供运行时可见性和控制所需的必要功能,以实现稳健的性能。Nalar保留了完整的Python表达力,使用轻量级的自动生成的存根,将代理和工具调用转换为携带依赖性和上下文元数据的未来。一个受管理的状态层将逻辑状态与物理放置解耦,使安全的重用、迁移和一致的重试行为成为可能。两级控制架构结合了全局策略计算与本地事件驱动的执行,以支持在演变的工作流中适应性的路由、调度和资源管理。这些机制共同使Nalar能够提供可扩展、高效且基于策略的服务,而无需开发者承担编排逻辑的负担。在三个代理工作负载中,Nalar将尾部延迟降低了34-74%,实现了高达2.9倍的速度提升,维持了80 RPS,而基线失败,且可扩展到130,000个未来,控制开销低于500毫秒。

英文摘要:

LLM-driven agentic applications automate complex, multi-step tasks, but serving them efficiently remains difficult due to heterogeneous components, dynamic model-driven control flow, long-lived state, and highly variable latencies. Nalar is a serving framework for agent workflows that separates workflow specification from execution while providing the runtime visibility and control needed for robust performance. Nalar preserves ordinary Python interfaces and control flow through lightweight auto-generated stubs that turn agent and tool invocations into futures carrying dependency and execution-context metadata. A two-level control architecture combines global policy computation with local event-driven enforcement to support adaptive routing, scheduling, and resource management across evolving workflows. A workflow-aware KV-cache layer enables the runtime to manage cache placement and lifetime. Together, these mechanisms enable scalable, efficient, policy-driven serving of heterogeneous agentic applications without burdening developers with orchestration logic. Across three agentic workloads, Nalar reduces tail latency by 34-74% and achieves up to 3.38x speedups.

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

↑