arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2409.14121cs.SEcs.LG
收藏

CONGRA:自动冲突解决基准测试

CONGRA: Benchmarking Automatic Conflict Resolution

The University of Hong Kong(香港大学)

Qingyu Zhang, Liangcai Su, Kai Ye, Chenxiong Qian

AI总结:

针对软件合并冲突解决缺乏难度分级与大规模基准的问题,提出ConGra基准方案,基于代码操作分类构建含44,948个冲突的数据集,评估LLMs并发现两个反直觉现象。

摘要:

解决合并不同软件版本产生的冲突是一项具有挑战性的任务。为了减少手动合并的开销,研究人员开发了各种基于程序分析的工具,但这些工具只能解决特定类型的冲突,应用范围有限。随着语言模型的发展,研究人员将冲突代码视为文本,从理论上讲,这几乎可以解决所有类型的冲突。然而,缺乏有效的冲突难度分级方法阻碍了对大型语言模型(LLMs)的全面评估,使得难以深入理解其局限性。此外,在评估LLMs在自动冲突解决中的性能时,明显缺乏大规模开放基准。为了解决这些问题,我们引入了ConGra,这是一种CONflict-GRAded基准测试方案,旨在评估软件合并工具在不同复杂度冲突场景下的性能。我们提出了一种基于代码操作对冲突进行分类的新方法,并利用该方法基于来自34个真实世界项目的44,948个冲突构建了一个大规模评估数据集。我们使用该数据集评估了最先进的LLMs在冲突解决任务上的表现。通过使用该数据集,我们评估了多个最先进的LLMs和代码LLMs的性能,最终发现了两个违反直觉但富有洞察力的现象。ConGra将在https://github.com/HKU-System-Security-Lab/ConGra发布。

英文摘要:

Resolving conflicts from merging different software versions is a challenging task. To reduce the overhead of manual merging, researchers develop various program analysis-based tools which only solve specific types of conflicts and have a limited scope of application. With the development of language models, researchers treat conflict code as text, which theoretically allows for addressing almost all types of conflicts. However, the absence of effective conflict difficulty grading methods hinders a comprehensive evaluation of large language models (LLMs), making it difficult to gain a deeper understanding of their limitations. Furthermore, there is a notable lack of large-scale open benchmarks for evaluating the performance of LLMs in automatic conflict resolution. To address these issues, we introduce ConGra, a CONflict-GRAded benchmarking scheme designed to evaluate the performance of software merging tools under varying complexity conflict scenarios. We propose a novel approach to classify conflicts based on code operations and use it to build a large-scale evaluation dataset based on 44,948 conflicts from 34 real-world projects. We evaluate state-of-the-art LLMs on conflict resolution tasks using this dataset. By employing the dataset, we assess the performance of multiple state-of-the-art LLMs and code LLMs, ultimately uncovering two counterintuitive yet insightful phenomena. ConGra will be released at https://github.com/HKU-System-Security-Lab/ConGra.

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

↑