CONGRA: Benchmarking Automatic Conflict Resolution

Qingyu Zhang, Liangcai Su, Kai Ye, Chenxiong Qian
9/21/2024
2 citations
cs.SEcs.LG
benchmark-dataset

Official code: HKU-System-Security-Lab/ConGra (9 stars, Python, last commit 2024-06-13).

Abstract

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations(1)

This is the official repository for the ConGra dataset and benchmark. In this repository, we provide a large-scale multilingual conflict resolution dataset, as well as the benchmark reproduce steps.

90PythonJun 5, 20242 years ago

Similar Papers

Cite this paper

@article{zhang2024congra,
  title  = {CONGRA: Benchmarking Automatic Conflict Resolution},
  author = {Qingyu Zhang and Liangcai Su and Kai Ye and Chenxiong Qian},
  year   = {2024},
  eprint = {2409.14121},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2409.14121v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2409.14121.svg)](https://codeofpaper.com/paper/2409.14121)

Discussion