Conference proceeding
MERC-Annot: Automated Annotation of Modification-Eliciting Code Review Comments with Large Language Models
Proceedings of the 17th International Conference on Internetware, pp.536-547
ACM Other Conferences
Internetware '26: The 17th International Conference on Internetware, 17th (Gold Coast, Queensland, 18/07/2026–20/07/2026)
21/11/2026
Metrics
1 Record Views
Abstract
There has been a growing interest in using Large Language Models (LLMs) for code review owing to their proven proficiency in code comprehension. A primary objective of most review tasks is to generate what we call modification-eliciting review comments (MERCs) that explicitly identify modification-required issues in source code. For LLMs to effectively generate MERCs, they often require post-training with a special dataset comprising MERCs, which is, however, not available. As manual annotation of MERCs is too laborious and costly to be a viable solution, the main contribution of this paper is an automated data annotation method MERC-Annot, which can automatically construct a special dataset comprising MERCs (i.e,MERC-dataset) by utilizing LLMs to identify MERCs from existing datasets. Experiments with the commonly used CodeReviewer dataset comprising more than 150K review entries show that MERC-Annot surpasses state-of-the-art methods with impressive performance in identifying MERCs. Validation on a dataset collected from active open-source projects further confirms the robustness and generalizability of MERC-Annot in real-world scenarios. To verify and evaluate the effect of MERC-Annot regarding improving LLMs’ code review ability, we first fine-tune several of the latest LLMs using MERC-dataset to build a new model MERC-Reviewer. We then enhance the model training effect through KTO alignment by feeding the review comments identified as NMERCs (i.e., review comments that do not elicit modifications) to LLMs, resulting in another model MERC-Reviewer-Aligned. The evaluation results show that MERC-Reviewer-Aligned slightly outperforms MERC-Reviewer, while both models have improved significantly compared to the base models in terms of generating MERCs. Human evaluation confirms that both models identify issues more accurately and tend to generate review comments that better describe the issues contained in the code than the base models.
Details
- Title
- MERC-Annot: Automated Annotation of Modification-Eliciting Code Review Comments with Large Language Models
- Creators
- Yongda Yu - Nanjing UniversityLei Zhang - Nanjing UniversityGuoping Rong - Nanjing UniversityHaifeng Shen - Southern Cross UniversityJiahao Zhang - Nanjing UniversityHaoxiang Yan - Nanjing UniversityGuohao Shi - Nanjing UniversityDong Shao - Nanjing UniversityHe Zhang - Nanjing University
- Contributors
- Hong Mei (Editor)Jian Lv (Editor)Lei Bu (Editor) - Nanjing UniversityZhi Jin (Editor)Ge Li (Editor)Xuandong Li (Editor)Schahram Dustdar (Editor) - TU WienMauro Pezzè (Editor) - University of Italian SwitzerlandCarlo Ghezzi (Editor)Sumi Helal (Editor)Xin Xia (Editor)Thomas Zimmermann (Editor) - University of California, Irvine
- Publication Details
- Proceedings of the 17th International Conference on Internetware, pp.536-547
- Conference
- Internetware '26: The 17th International Conference on Internetware, 17th (Gold Coast, Queensland, 18/07/2026–20/07/2026)
- Series
- ACM Other Conferences
- Publisher
- ACM; NY, USA
- Number of pages
- 13
- Identifiers
- 991013420543002368
- Copyright
- © 2026 Copyright held by the owner/author(s).
- Academic Unit
- Faculty of Science and Engineering
- Language
- English
- Resource Type
- Conference proceeding