TALM:具有长期记忆的动态树结构多智能体框架用于可扩展的代码生成
TALM: Dynamic Tree-Structured Multi-Agent Framework with Long-Term Memory for Scalable Code Generation
AI总结:
TALM通过动态树结构多智能体框架结合长期记忆机制,提升复杂代码生成任务中的推理性能和令牌效率。
摘要:
代理代码生成需要能够处理复杂上下文管理和多步推理的大型语言模型(LLMs)。先前的多智能体框架试图通过协作来解决这些挑战,但往往存在流程僵化和推理恢复成本高的问题。为克服这些限制,我们提出了TALM(具有长期记忆的树结构多智能体框架),一个动态框架,集成了结构化任务分解、局部重新推理和长期记忆机制。TALM采用可扩展的树状协作结构。父-子关系结合分割-整合策略,增强了推理灵活性,并在不同任务范围内实现了高效的错误纠正。此外,长期记忆模块能够进行语义查询和整合先前知识,通过经验重用支持隐含的自我改进。在HumanEval、BigCodeBench和ClassEval基准测试中,TALM在推理性能和令牌效率方面始终表现出色,突显了其在复杂代码生成任务中的稳健性和实用性。
英文摘要:
Agentic code generation requires large language models (LLMs) capable of complex context management and multi-step reasoning. Prior multi-agent frameworks attempt to address these challenges through collaboration, yet they often suffer from rigid workflows and high reasoning recovery costs. To overcome these limitations, we propose TALM (Tree-Structured Multi-Agent Framework with Long-Term Memory), a dynamic framework that integrates structured task decomposition, localized re-reasoning, and long-term memory mechanisms. TALM employs an extensible tree-based collaboration structure. The parent-child relationships, when combined with a divide-and-conquer strategy, enhance reasoning flexibility and enable efficient error correction across diverse task scopes. Furthermore, a long-term memory module enables semantic querying and integration of prior knowledge, supporting implicit self-improvement through experience reuse. Experimental results on HumanEval, BigCodeBench, and ClassEval benchmarks demonstrate that TALM consistently delivers strong reasoning performance and high token efficiency, highlighting its robustness and practical utility in complex code generation tasks.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。