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

一种面向智能体LLM服务的策略驱动运行时层

A Policy-Driven Runtime Layer for Agentic LLM Serving

University of California, Santa Cruz(加州大学圣克鲁兹分校)

Rui Zhang, Chaeeun Kim, Liting Hu

AI总结:

针对多智能体LLM系统中跨层策略难以高效实现的问题,提出在框架与引擎之间插入智能体运行时层,通过四个原语支持任意智能体感知策略,并在KV缓存策略CacheSage上验证了有效性。

摘要:

多智能体LLM系统已成为主流生产工作负载,但服务栈并非为其构建。上层的智能体框架知道智能体身份、角色、模式和调度结构,但从未看到引擎级事件;下层的服务引擎看到每个事件但对智能体一无所知。许多跨层策略依赖于两者:前缀缓存、批处理整形、推测执行、公平性、工具结果记忆、安全执行等。每个策略都存在于两层之间的缝隙中,目前通过向某一邻域打补丁来解决。我们认为这个缝隙最好通过架构变更而非点修复来解决:在框架和引擎之间插入第三层,即智能体运行时层,暴露四个原语(观察、评分、预测、行动),任何智能体感知策略都可以插入其中,并以智能体身份作为共享坐标。我们将九个具体策略映射到该层,并在具有最大即时服务成本杠杆的策略上深入验证了该抽象:跨会话的KV缓存,实例化为CacheSage,它在线学习每工作负载的智能体转移矩阵,并用于基于存活的驱逐和步间预取。在五个真实多智能体工作负载上的初步结果显示,与未修改的服务栈相比,缓存命中率提升13到37个百分点,平均TTFT降低12%到29%,吞吐量提高6%到14%。

英文摘要:

Multi-agent LLM systems have become the dominant production workload, but the serving stack was not built for them. The agent framework above knows agent identities, role, schemas, and dispatch structure but never sees an engine-level event; the serving engine below sees every event but knows nothing about agents. A surprising number of cross-cutting policies depend on both: prefix caching, batch shaping, speculative execution, fairness, tool-result memoization, safety enforcement, and more. Each lives in the seam between the two layers and is currently solved by a one-off patch into one neighbor or the other. We argue this seam is best addressed by an architectural change rather than point fixes: insert a third tier, an agent runtime layer, between the framework and the engine, exposing four primitives (observe, score, predict, act) into which any agent-aware policy plugs, with agent identity as the shared coordinate. We map nine concrete policies onto the layer and validate the abstraction in depth on the one with the largest immediate serving-cost lever: KV caching across sessions, instantiated as CacheScout, which learns the per-workload agent transition matrix online and uses it for survival-based eviction and between-step prefetch. Preliminary results on five real multi-agent workloads show +13 to +37 pp cache hit-rate lift, 12% to 29% lower mean TTFT, and 6% to 14% higher throughput over an unmodified serving stack.

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

↑