Rover: Context-aware Conflict Resolution with LLM
Qingyu Zhang, Junzhe Li, Jiayi Lin, Changhua Luo, Chenxiong Qian

TL;DR
Rover is a novel system that combines program analysis and large language models to improve conflict resolution in code merging by capturing inter-file dependencies and contextual information.
Contribution
It introduces MtCPG, a new graph-based representation for context-aware prompts, and demonstrates Rover's superior performance over existing methods.
Findings
Rover achieves higher similarity to ground-truth resolutions at multiple levels.
Rover outperforms standalone LLMs, MergeGen, and WizardMerge in conflict resolution.
The system effectively captures inter-file dependencies to guide accurate conflict resolution.
Abstract
Code merging is a significant challenge, particularly in large-scale projects. Existing solutions, including program analysis and machine learning, show promise but face critical limitations. Program analysis lacks the ability to infer developers' intentions, relying on conservative strategies that offload unresolved conflicts for manual handling. Meanwhile, model-based approaches struggle with conflicts involving complex code dependencies due to insufficient contextual awareness. To address these gaps, we introduce Rover, a novel conflict resolution system that integrates program analysis with large language models (LLMs). To obtain context-aware prompts, we propose Multi-layer Code Property Graph (MtCPG), a new representation capturing inter-file dependencies and enabling contextual analysis for a given conflict. Using graph connectivity algorithms, Rover further clusters conflicting…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
