Fine-Tuning Multilingual Language Models for Code Review: An Empirical Study on Industrial C# Projects
Begolli, Igli, Aksoy, Meltem, Neider, Daniel
–arXiv.org Artificial Intelligence
Code review is essential for maintaining software quality but often time-consuming and cognitively demanding, especially in industrial environments. Recent advancements in language models (LMs) have opened new avenues for automating core review tasks. This study presents the empirical evaluation of monolingual fine-tuning on the performance of open-source LMs across three key automated code review tasks: Code Change Quality Estimation, Review Comment Generation, and Code Refinement. We fine-tuned three distinct models, CodeReviewer, CodeLlama-7B, and DeepSeek-R1-Distill, on a C\# specific dataset combining public benchmarks with industrial repositories. Our study investigates how different configurations of programming languages and natural languages in the training data affect LM performance, particularly in comment generation. Additionally, we benchmark the fine-tuned models against an automated software analysis tool (ASAT) and human reviewers to evaluate their practical utility in real-world settings. Our results show that monolingual fine-tuning improves model accuracy and relevance compared to multilingual baselines. While LMs can effectively support code review workflows, especially for routine or repetitive tasks, human reviewers remain superior in handling semantically complex or context-sensitive changes. Our findings highlight the importance of language alignment and task-specific adaptation in optimizing LMs for automated code review.
arXiv.org Artificial Intelligence
Oct-24-2025
- Country:
- Asia
- China > Hong Kong (0.04)
- Japan > Honshū
- Kansai > Osaka Prefecture > Osaka (0.04)
- Macao (0.14)
- Russia (0.04)
- Singapore > Central Region
- Singapore (0.04)
- South Korea > Seoul
- Seoul (0.04)
- Europe
- Germany (0.04)
- Greece > Attica
- Athens (0.04)
- Italy (0.04)
- Portugal > Lisbon
- Lisbon (0.04)
- Russia > Northwestern Federal District
- Leningrad Oblast > Saint Petersburg (0.04)
- Spain > Galicia
- Madrid (0.04)
- Switzerland (0.04)
- North America
- Canada
- Dominican Republic (0.04)
- United States
- California > San Francisco County
- San Francisco (0.14)
- Michigan > Oakland County
- Rochester (0.04)
- New Jersey > Middlesex County
- Piscataway (0.04)
- New York > New York County
- New York City (0.06)
- North Carolina > Wake County
- Raleigh (0.04)
- Pennsylvania
- Allegheny County > Pittsburgh (0.04)
- Philadelphia County > Philadelphia (0.04)
- California > San Francisco County
- South America > Brazil (0.04)
- Asia
- Genre:
- Research Report > New Finding (1.00)
- Industry:
- Information Technology (0.93)
- Technology: