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

Atomizer: 一种基于大语言模型的协作多智能体框架,用于意图驱动的复合提交解缠

Atomizer: An LLM-based Collaborative Multi-Agent Framework for Intent-Driven Commit Untangling

College of Computer Science and Technology, National University of Defense Technology(国防科技大学计算机学院);State Key Laboratory of Complex and Critical Software Environment(复杂与关键软件环境国家重点实验室)

Kangchen Zhu, Zhiliang Tian, Shangwen Wang, Mingyue Leng, Xiaoguang Mao

AI总结:

Atomizer通过意图导向的思考链策略和协作多智能体框架,有效解决复合提交解缠中的语义意图识别和多轮细化问题,提升解缠效果。

摘要:

复合提交,即纠缠多个无关关切的问题,在软件开发中普遍存在,并显著阻碍程序理解和维护。现有的自动化解缠方法,特别是最先进的基于图聚类的方法,从根本上受到两个问题的限制。(1) 它们过度依赖结构信息,无法把握变更背后的至关重要的语义意图,(2) 它们作为“单次通过”算法,缺乏人类审查过程中固有的反思和细化机制。为克服这些挑战,我们引入Atomizer,一种新的协作多智能体框架,用于复合提交解缠。为解决语义缺陷,Atomizer采用面向意图的思考链(IO-CoT)策略,促使大语言模型(LLMs)根据代码的结构和语义信息推断每个代码变更的意图。为克服“单次通过”分组的限制,我们采用两个智能体建立一个分组-审查员协作细化循环,通过迭代细化分组,直到集群中的所有变更共享相同的语义意图。在两个基准C#和Java数据集上的广泛实验表明,Atomizer显著优于几个代表性的基线。在平均情况下,它在C#数据集上超过最先进的基于图的方法超过6.0%,在Java数据集上超过5.5%。这种优势在复杂提交上尤为明显,其中Atomizer的表现优势扩大到超过16%。

英文摘要:

Composite commits, which entangle multiple unrelated concerns, are prevalent in software development and significantly hinder program comprehension and maintenance. Existing automated untangling methods, particularly state-of-the-art graph clustering-based approaches, are fundamentally limited by two issues. (1) They over-rely on structural information, failing to grasp the crucial semantic intent behind changes, and (2) they operate as ``single-pass'' algorithms, lacking a mechanism for the critical reflection and refinement inherent in human review processes. To overcome these challenges, we introduce Atomizer, a novel collaborative multi-agent framework for composite commit untangling. To address the semantic deficit, Atomizer employs an Intent-Oriented Chain-of-Thought (IO-CoT) strategy, which prompts large language models (LLMs) to infer the intent of each code change according to both the structure and the semantic information of code. To overcome the limitations of ``single-pass'' grouping, we employ two agents to establish a grouper-reviewer collaborative refinement loop, which mirrors human review practices by iteratively refining groupings until all changes in a cluster share the same underlying semantic intent. Extensive experiments on two benchmark C# and Java datasets demonstrate that Atomizer significantly outperforms several representative baselines. On average, it surpasses the state-of-the-art graph-based methods by over 6.0% on the C# dataset and 5.5% on the Java dataset. This superiority is particularly pronounced on complex commits, where Atomizer's performance advantage widens to over 16%.

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

↑