Improving automated code reviews: Learning from experience

Modern code review is a critical quality assurance process that is widely adopted in both industry and open source software environments. This process can help newcomers learn from the feedback of experienced reviewers; however, it often brings a large workload and stress to reviewers. To alleviate...

Full description

Saved in:
Bibliographic Details
Main Authors: LIN, Hong Yi, THONGTANUNAM, Patanamon, TREUDE, Christoph, CHAROENWET, Wachiraphan
Format: text
Language:English
Published: Institutional Knowledge at Singapore Management University 2024
Subjects:
Online Access:https://ink.library.smu.edu.sg/sis_research/8882
https://ink.library.smu.edu.sg/context/sis_research/article/9885/viewcontent/3643991.3644910_pvoa_cc_by.pdf
Tags: Add Tag
No Tags, Be the first to tag this record!
Institution: Singapore Management University
Language: English
id sg-smu-ink.sis_research-9885
record_format dspace
spelling sg-smu-ink.sis_research-98852024-07-19T00:28:32Z Improving automated code reviews: Learning from experience LIN, Hong Yi THONGTANUNAM, Patanamon TREUDE, Christoph CHAROENWET, Wachiraphan Modern code review is a critical quality assurance process that is widely adopted in both industry and open source software environments. This process can help newcomers learn from the feedback of experienced reviewers; however, it often brings a large workload and stress to reviewers. To alleviate this burden, the field of automated code reviews aims to automate the process, teaching large language models to provide reviews on submitted code, just as a human would. A recent approach pre-trained and fine-tuned the code intelligent language model on a large-scale code review corpus. However, such techniques did not fully utilise quality reviews amongst the training data. Indeed, reviewers with a higher level of experience or familiarity with the code will likely provide deeper insights than the others. In this study, we set out to investigate whether higher-quality reviews can be generated from automated code review models that are trained based on an experience-aware oversampling technique. Through our quantitative and qualitative evaluation, we find that experience-aware oversampling can increase the correctness, level of information, and meaningfulness of reviews generated by the current state-of-the-art model without introducing new data. The results suggest that a vast amount of high-quality reviews are underutilised with current training strategies. This work sheds light on resource-efficient ways to boost automated code review models. 2024-04-01T07:00:00Z text application/pdf https://ink.library.smu.edu.sg/sis_research/8882 info:doi/10.1145/3643991.3644910 https://ink.library.smu.edu.sg/context/sis_research/article/9885/viewcontent/3643991.3644910_pvoa_cc_by.pdf http://creativecommons.org/licenses/by-nc-nd/4.0/ Research Collection School Of Computing and Information Systems eng Institutional Knowledge at Singapore Management University Code Review Review Comments Neural Machine Translation Software Engineering
institution Singapore Management University
building SMU Libraries
continent Asia
country Singapore
Singapore
content_provider SMU Libraries
collection InK@SMU
language English
topic Code Review
Review Comments
Neural Machine Translation
Software Engineering
spellingShingle Code Review
Review Comments
Neural Machine Translation
Software Engineering
LIN, Hong Yi
THONGTANUNAM, Patanamon
TREUDE, Christoph
CHAROENWET, Wachiraphan
Improving automated code reviews: Learning from experience
description Modern code review is a critical quality assurance process that is widely adopted in both industry and open source software environments. This process can help newcomers learn from the feedback of experienced reviewers; however, it often brings a large workload and stress to reviewers. To alleviate this burden, the field of automated code reviews aims to automate the process, teaching large language models to provide reviews on submitted code, just as a human would. A recent approach pre-trained and fine-tuned the code intelligent language model on a large-scale code review corpus. However, such techniques did not fully utilise quality reviews amongst the training data. Indeed, reviewers with a higher level of experience or familiarity with the code will likely provide deeper insights than the others. In this study, we set out to investigate whether higher-quality reviews can be generated from automated code review models that are trained based on an experience-aware oversampling technique. Through our quantitative and qualitative evaluation, we find that experience-aware oversampling can increase the correctness, level of information, and meaningfulness of reviews generated by the current state-of-the-art model without introducing new data. The results suggest that a vast amount of high-quality reviews are underutilised with current training strategies. This work sheds light on resource-efficient ways to boost automated code review models.
format text
author LIN, Hong Yi
THONGTANUNAM, Patanamon
TREUDE, Christoph
CHAROENWET, Wachiraphan
author_facet LIN, Hong Yi
THONGTANUNAM, Patanamon
TREUDE, Christoph
CHAROENWET, Wachiraphan
author_sort LIN, Hong Yi
title Improving automated code reviews: Learning from experience
title_short Improving automated code reviews: Learning from experience
title_full Improving automated code reviews: Learning from experience
title_fullStr Improving automated code reviews: Learning from experience
title_full_unstemmed Improving automated code reviews: Learning from experience
title_sort improving automated code reviews: learning from experience
publisher Institutional Knowledge at Singapore Management University
publishDate 2024
url https://ink.library.smu.edu.sg/sis_research/8882
https://ink.library.smu.edu.sg/context/sis_research/article/9885/viewcontent/3643991.3644910_pvoa_cc_by.pdf
_version_ 1814047696643686400