Hive:一种用于算法和任务级扩展的多智能体基础设施
Hive: A Multi-Agent Infrastructure for Algorithm- and Task-Level Scaling
AI总结:
Hive通过算法和任务级扩展提升智能体系统性能,通过Logits Cache减少冗余计算并提升采样速度,Agent-Aware Scheduling优化资源分配,降低热点缺失率。
摘要:
大型语言模型正被部署为复杂智能体系统,其规模随任务复杂度增加而扩展。尽管已有研究广泛探讨了模型和系统级扩展,但算法和任务级扩展仍被忽视,限制了智能体系统的潜力。在算法层面,增加推理时间计算可提升工作流容量,但引入跨路径冗余:多个推理分支中的重叠计算。在任务层面,复杂任务可分解为子问题并委托给多个智能体以提高可扩展性和并行性。然而,现有基础设施的调度不考虑多个智能体的存在,错失优化资源分配的机会。我们提出Hive,一种多智能体基础设施,支持算法和任务级扩展。Hive具有描述前端,捕获每个智能体的行为并支持测试时间扩展算法。利用此规范,我们的后端引入两种关键机制:Logits Cache通过重用冗余采样路径的中间logits来缓解算法层面的跨路径冗余,以及Agent-Aware Scheduling根据智能体贡献高效分配计算和KV-cache资源。实验表明,Logits Cache在重新采样时平均提速1.11×-1.76×,Agent-Aware Scheduling将热点缺失率降低33%-51%。
英文摘要:
Large language models are increasingly deployed as complex agentic systems that scale with task complexity. While prior work has extensively explored model- and system-level scaling, algorithm- and task-level scaling remain largely unaddressed, constraining the full potential of agentic systems. At the algorithm level, allocating additional inference-time computation can enhance workflow capacity but introduces cross-path redundancy: overlapping computations across multiple reasoning branches. At the task level, complex tasks can be decomposed into subproblems and delegated across multiple agents for improved scalability and parallelism. However, existing infrastructures' scheduling is unaware of the existence of multiple agents, missing opportunities to optimize resource allocation. We propose Hive, a multi-agent infrastructure that enables algorithm- and task-level scaling. Hive features a description frontend that captures per-agent behavior and supports test-time scaling algorithms. Leveraging this specification, our backend introduces two key mechanisms: Logits Cache that reuses intermediate logits across redundant sampling paths to mitigate cross-path redundancy at the algorithm level, and Agent-Aware Scheduling that efficiently allocates compute and KV-cache resources according to agent contributions at the task level. Experiments show that Logits Cache achieves an average speedup of $1.11\times$-$1.76\times$ for re-sampling, and Agent-Aware Scheduling reduces the hotspot miss rate by $33\%$-$51\%$.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。