arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2405.04219cs.CLcs.AIcs.MAcs.SE
收藏

软件开发智能体的迭代经验精炼

Iterative Experience Refinement of Software-Developing Agents

Tsinghua University(清华大学);Beijing University of Posts and Telecommunications(北京邮电大学);Siemens(西门子);Dalian University of Technology(大连理工大学)

Chen Qian, Jiahao Li, Yufan Dang, Wei Liu, YiFei Wang, Zihao Xie, Weize Chen, Cheng Yang, Yingli Zhang, Zhiyuan Liu, Maosong Sun

AI总结:

针对 LLM 软件开发智能体静态经验难以适应任务的问题,提出迭代经验精炼框架及连续、累积两种模式,并通过启发式经验剔除以少量高质量经验提升稳定性与性能。

摘要:

由大型语言模型(LLM)驱动的自主智能体在软件开发等多种场景中展现出实现高度自主性的显著潜力。近期研究表明,LLM智能体可以利用过去的经验来减少错误并提高效率。然而,静态经验范式依赖于通过启发式方式获得的固定过去经验集合,缺乏迭代精炼,因此限制了智能体的适应性。本文提出 Iterative Experience Refinement(迭代经验精炼)框架,使 LLM 智能体能够在任务执行过程中迭代地精炼经验。我们提出两种基本模式:连续模式,基于一个任务批次内最近的经验进行精炼;累积模式,跨此前所有任务批次获取经验。结合我们提出的启发式经验剔除方法,该方法优先保留高质量且频繁使用的经验,从而有效管理经验空间并提升效率。大量实验表明,尽管连续模式可能产生更优结果,但累积模式提供更稳定的性能。此外,经验剔除有助于仅使用高质量子集的 11.54% 即可取得更好的性能。

英文摘要:

Autonomous agents powered by large language models (LLMs) show significant potential for achieving high autonomy in various scenarios such as software development. Recent research has shown that LLM agents can leverage past experiences to reduce errors and enhance efficiency. However, the static experience paradigm, reliant on a fixed collection of past experiences acquired heuristically, lacks iterative refinement and thus hampers agents' adaptability. In this paper, we introduce the Iterative Experience Refinement framework, enabling LLM agents to refine experiences iteratively during task execution. We propose two fundamental patterns: the successive pattern, refining based on nearest experiences within a task batch, and the cumulative pattern, acquiring experiences across all previous task batches. Augmented with our heuristic experience elimination, the method prioritizes high-quality and frequently-used experiences, effectively managing the experience space and enhancing efficiency. Extensive experiments show that while the successive pattern may yield superior results, the cumulative pattern provides more stable performance. Moreover, experience elimination facilitates achieving better performance using just 11.54% of a high-quality subset.

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

↑