arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2505.23946cs.AIcs.LGcs.MAcs.SE
收藏

经验教训:用于代码大语言模型学习与改进的多智能体框架

Lessons Learned: A Multi-Agent Framework for Code LLMs to Learn and Improve

Rensselaer Polytechnic Institute(拉特兰理工学院);Massachusetts Institute of Technology(麻省理工学院);Michigan State University(密歇根州立大学);MIT-IBM Watson AI Lab, IBM Research(MIT-IBM沃森人工智能实验室,IBM研究院)

Yuanzhe Liu, Ryan Deng, Tim Kaler, Xuhao Chen, Charles E. Leiserson, Yao Ma, Jie Chen

AI总结:

针对代码大语言模型性能互补问题,提出基于经验教训的多智能体协作框架,通过征集、存储与选择机制,使小型模型团队超越大型模型。

摘要:

近期研究表明,大语言模型(LLMs)具备不同的技能并擅长不同的任务。事实上,我们观察到它们的性能差异出现在多个粒度层面。例如,在代码优化任务中,代码大语言模型擅长不同的优化类别,且没有哪一个模型能全面主导其他模型。这一观察引发了一个问题:在事先不知道多个大语言模型智能体互补优势的情况下,如何利用它们来解决编码问题。我们认为,一个智能体团队可以从彼此的成功与失败中学习,从而提升自身性能。因此,经验教训(lesson)是智能体在集体解决过程中产生并传递给其他智能体的知识。我们提出了一种基于经验教训的协作框架,设计了经验教训的征集—存储—选择机制,并证明了一组带有经验教训的小型大语言模型团队能够超越一个规模大得多的大语言模型以及其他多智能体协作方法。

英文摘要:

Recent studies show that LLMs possess different skills and specialize in different tasks. In fact, we observe that their varied performance occur in several levels of granularity. For example, in the code optimization task, code LLMs excel at different optimization categories and no one dominates others. This observation prompts the question of how one leverages multiple LLM agents to solve a coding problem without knowing their complementary strengths a priori. We argue that a team of agents can learn from each other's successes and failures so as to improve their own performance. Thus, a lesson is the knowledge produced by an agent and passed on to other agents in the collective solution process. We propose a lesson-based collaboration framework, design the lesson solicitation--banking--selection mechanism, and demonstrate that a team of small LLMs with lessons learned can outperform a much larger LLM and other multi-LLM collaboration methods.

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

↑