基于可证明预算保守的检索条件拓扑选择多智能体代码生成
Retrieval-Conditioned Topology Selection with Provable Budget Conservation for Multi-Agent Code Generation
AI总结:
本文提出RGAO架构,通过提取代码结构复杂度向量实现多智能体代码生成系统的拓扑选择,结合复杂度条件LLM路由与形式资源代数,实现可证明的预算保守性,降低误路由率并提升代码检索效率。
摘要:
多智能体LLM系统在代码生成中面临根本性的路由问题:最优编排拓扑依赖于待修改代码的结构复杂度,但现有系统在选择拓扑时未咨询代码库。我们提出了Retrieval-Guided Adaptive Orchestration (RGAO),一种通过从分层代码索引中提取结构复杂度向量在选择编排拓扑前闭合此循环的架构。RGAO在Code-Agent多智能体框架内运行,其子智能体由具有六维预算向量的正式合同所约束。我们的主要贡献是将两种先前独立的研究方向——基于复杂度的LLM路由和形式资源代数——结合起来,从而产生一种单独无法实现的性质:在检索条件动态拓扑选择下可证明的预算保守性。具体而言,我们贡献了:(1) 一种基于复杂度的拓扑路由器,将代理测量的误路由率从30.1%降至8.2%;(2) 一种具有结构归纳守恒定理的预算代数;以及(3) 一种分层代码检索引擎。实证评估显示了亚毫秒级DAG构建和线性树索引可扩展性。
英文摘要:
Multi-agent LLM systems for code generation face a fundamental routing problem: the optimal orchestration topology depends on the structural complexity of the code under modification, yet existing systems select topologies without consulting the codebase. We present Retrieval-Guided Adaptive Orchestration (RGAO), an architecture that closes this loop by extracting a structural complexity vector from a hierarchical code index before selecting the orchestration topology. RGAO operates within Code-Agent, a multi-agent framework whose sub-agents are governed by formal contracts with six-dimensional budget vectors. Our headline contribution is the composition of two previously separate lines of work -- complexity-conditioned LLM routing and formal resource algebras -- yielding a property neither admits alone: provable budget conservation under retrieval-conditioned dynamic topology selection. Concretely we contribute: (1) a complexity-conditioned topology router that reduces proxy-measured misrouting from 30.1% to 8.2%; (2) a budget algebra with a structural-induction conservation theorem; and (3) a hierarchical code retrieval engine. Empirical evaluation demonstrates sub-millisecond DAG construction and linear tree-index scalability.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。