Automating Code Review with AI: A High-Quality Dataset Approach

Thursday 20 March 2025


Code review is a crucial step in software development, ensuring that code meets quality standards and is maintainable over time. However, the process can be laborious and prone to errors, especially as software projects grow in complexity.


Researchers have been working on automating code review, using artificial intelligence (AI) models to analyze code changes and provide feedback. But these models are only as good as the data they’re trained on – and existing datasets are often noisy and unrefined.


A new approach aims to address this issue by curating a high-quality dataset of code reviews. The method involves evaluating the quality of existing review comments, identifying areas for improvement, and then reformulating them to make them clearer, more concise, and more actionable.


The researchers used a large language model to analyze over 20,000 code review comments, assessing factors such as clarity, concision, and civil tone. They found that many of the original comments were unclear or poorly written, making it difficult for developers to understand what changes needed to be made.


By reformulating these comments, the team aimed to create a dataset that could be used to train AI models to generate better review comments in the future. The results are promising – the curated dataset shows significant improvements in comment quality, with clearer and more concise language.


To test the effectiveness of the curated dataset, the researchers trained two AI models on it: one for generating review comments and another for refining code changes. The results were striking – the models generated accurate and helpful review comments, and were able to refine code changes with precision.


This approach has significant implications for software development. By using high-quality datasets to train AI models, developers can automate code review tasks more effectively, freeing up human reviewers to focus on higher-level tasks such as design and architecture. This could lead to faster and more efficient development cycles, allowing teams to deliver high-quality software more quickly.


The researchers are already exploring ways to apply this approach to other areas of software engineering, including bug detection and debugging. As AI models continue to advance, it’s likely that we’ll see even more innovative applications of code review automation in the future.


For now, however, the focus is on refining the dataset and improving the accuracy of the AI models. With a high-quality dataset in place, developers can start to reap the benefits of automated code review – clearer feedback, faster development cycles, and higher-quality software.


Cite this article: “Automating Code Review with AI: A High-Quality Dataset Approach”, The Science Archive, 2025.


Code Review, Artificial Intelligence, Automation, Software Development, Quality Standards, Maintainability, Machine Learning, Natural Language Processing, Dataset Curation, Ai Models


Reference: Oussama Ben Sghaier, Martin Weyssow, Houari Sahraoui, “Harnessing Large Language Models for Curated Code Reviews” (2025).


Leave a Reply