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

HiveMind: 为并发LLM代理工作负载提供操作系统启发的调度

HiveMind: OS-Inspired Scheduling for Concurrent LLM Agent Workloads

Sperix Labs(Sperix实验室);VIA Cybersecurity Lab(VIA网络安全实验室);KNUST(科罗纳大学);Quantum and Assistive Technologies Lab(量子与辅助技术实验室)

Justice Owusu Agyemang, Jerry John Kponyo, Obed Kwasi Somuah, Elliot Amponsah, Godfred Manu Addo Boakye, Kwame Opuni-Boachie Obour Agyekum

AI总结:

HiveMind通过引入五个操作系统启发的调度原语,解决并发LLM代理在共享API端点时的资源竞争问题,显著降低失败率并减少浪费计算。

摘要:

当多个LLM编码代理共享一个速率限制的API端点时,它们表现出类似于无调度操作系统进程竞争CPU、内存和I/O的资源竞争模式。在一次激励性事件中,11个并行代理中有3个因连接重置和HTTP 502错误而失败,尽管API有足够的总体容量顺序服务所有11个。我们提出了HIVE-MIND,一个透明的HTTP代理,应用五个操作系统启发的调度原语——准入控制、速率限制跟踪、AIMD回压与断路器、令牌预算管理和优先级队列——以消除由无协调并行执行导致的失败模式。代理不需要对现有代理代码进行任何修改,并通过自动检测的提供者配置支持Anthropic、OpenAI和本地模型API。我们的评估在七个场景(5-50个并发代理)中显示,无协调代理在竞争下失败率为72-100%,而HIVE-MIND将失败率降低到0-18%,并消除48-100%的浪费计算。消融研究揭示,透明重试——而不是准入控制——是单个最关键的原语,但原语在组合使用时效果最佳。对Ollama的现实验证表明,HIVE-MIND在每个请求中添加的代理开销低于3毫秒。该系统在MIT许可下开源。

英文摘要:

When multiple LLM coding agents share a rate-limited API endpoint, they exhibit resource contention patterns analogous to unscheduled OS processes competing for CPU, memory, and I/O. In a motivating incident, 3 of 11 parallel agents died from connection resets and HTTP 502 errors - a 27% failure rate - despite the API having sufficient aggregate capacity to serve all 11 sequentially. We present HIVEMIND, a transparent HTTP proxy that applies five OS-inspired scheduling primitives - admission control, rate-limit tracking, AIMD backpressure with circuit breaking, token budget management, and priority queuing - to eliminate the failure modes caused by uncoordinated parallel execution. The proxy requires zero modifications to existing agent code and supports Anthropic, OpenAI, and local model APIs via auto-detected provider profiles. Our evaluation across seven scenarios (5-50 concurrent agents) shows that uncoordinated agents fail at 72-100% rates under contention, while HIVEMIND reduces failures to 0-18% and eliminates 48-100% of wasted compute. An ablation study reveals that transparent retry - not admission control - is the single most critical primitive, but the primitives are most effective in combination. Real-world validation against Ollama confirms that HIVEMIND adds under 3ms of proxy overhead per request. The system is open-source under the MIT license.

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

↑