The price of precision: the cost of preprocessing for automated code revision in code review
Open Access
- 15 December 2025
- journal article
- research article
- Published by Springer Nature in Empirical Software Engineering
- Vol. 31 (2) , 47
Abstract
Code review is a widespread practice in software engineering during which developers examine each other’s source code changes to identify potential issues and improve code quality. Among the automated techniques proposed by researchers to reduce the manual workload of code review, Automated Code Revision (ACR) aims to automatically address reviewers’ feedback by producing a revised version of the code. Transformer-based language models have demonstrated state-of-the-art results in ACR. The performance of these models, however, is significantly influenced by the quality and preparation of the training and evaluation data. We present several systematic analyses of prevalent preprocessing steps, examined both cumulatively and in isolation, across three established preprocessing pipelines and two dataset splitting strategies (time-level vs. project-level). Our study spans across models of different scales: OpenNMT (small), T5 and CodeReviewer (mid-sized), LoRA-tuned CodeLLaMA-7B (large), and GPT-3.5-Turbo (large, black-box). Using datasets up to 496k training records, we evaluate and statistically compare models’ performance using exact match ratio (EXM), CodeBLEU, and Levenshtein ratio. Our findings show that preprocessing may be a significant component in the success of the different techniques: OpenNMT relies on heavy preprocessing; T5 benefits from light filtering (selective removal of records); CodeReviewer performs best when trained on larger, less aggressively filtered data; CodeLLaMA-7B and ChatGPT-3.5 Turbo are largely indifferent to preprocessing. Overall, the effectiveness of ACR tools depends on aligning preprocessing with model scale and training setup. In general, small models need abstraction, mid-sized ones benefit from light filtering, and large-scale models perform best when trained on the original, unprocessed form of the code.Keywords
Funding Information
- University of Zurich
This publication has 32 references indexed in Scilit:
- Fine-tuning and prompt engineering for large language models-based code review automationInformation and Software Technology, 2024
- Generation-based Code Review Automation: How Far Are We?2023
- Impacts of data preprocessing and selection on energy consumption prediction model of HVAC systems based on deep learningEnergy and Buildings, 2022
- DeepReview: Automatic Code Review Using Deep Multi-instance Learning2019
- An empirical study of the impact of modern code review practices on software qualityEmpirical Software Engineering, 2015
- Impact of Peer Code Review on Peer Impression Formation: A Survey2013
- Expectations, outcomes, and challenges of modern code review2013
- Software inspections: an effective verification processIEEE Software, 1989
- Use of Ranks in One-Criterion Variance AnalysisJournal of the American Statistical Association, 1952
- The Use of Ranks to Avoid the Assumption of Normality Implicit in the Analysis of VarianceJournal of the American Statistical Association, 1937