Merge-Bench: Resolve Merge Conflicts with Large Language Models

Benedikt Schesch, Michael D. Ernst
5/25/2026
cs.LG
benchmark-datasetrlrlhf-rlvr-dpo

No confident code implementation found for this paper.

Abstract

This paper applies machine learning to the difficult and important task of version control merging. (1) We constructed a dataset, Merge-Bench, of 7938 real-world merge conflict hunks from 1439 GitHub repositories. The ground truth is the merge resolution that developers committed to the repository.

Show full abstract

Our dataset construction methodology is scalable to arbitrary amounts of data since no manual labeling is required. (2) We trained a model, LLMergeJ, to resolve merge conflicts in Java programs. Our approach uses Group Relative Policy Optimization (GRPO), an online reinforcement learning method, to train a Large Language Model (LLM). (3) We performed two evaluations of the performance of LLMs on resolving merge conflicts. On Java programs, LLMergeJ with 14B parameters outperforms 3 commercial LLMs, trailing only Gemini 2.5 Pro. Across 11 programming languages, commercial LLM performance is largely stable from language to language. The best models correctly resolve less than 60% of merge conflicts.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{schesch2026mergebench,
  title  = {Merge-Bench: Resolve Merge Conflicts with Large Language Models},
  author = {Benedikt Schesch and Michael D. Ernst},
  year   = {2026},
  eprint = {2605.25890},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2605.25890v1}
}

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/2605.25890.svg)](https://codeofpaper.com/paper/2605.25890)

Discussion