Automating Patch Set Generation from Code Review Comments Using Large Language Models

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Rahman, Tajmilur, Singh, Rahul, Sultan, Mir Yousuf
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866916278360342528
author Rahman, Tajmilur
Singh, Rahul
Sultan, Mir Yousuf
author_facet Rahman, Tajmilur
Singh, Rahul
Sultan, Mir Yousuf
contents The advent of Large Language Models (LLMs) has revolutionized various domains of artificial intelligence, including the realm of software engineering. In this research, we evaluate the efficacy of pre-trained LLMs in replicating the tasks traditionally performed by developers in response to code review comments. We provide code contexts to five popular LLMs and obtain the suggested code-changes (patch sets) derived from real-world code-review comments. The performance of each model is meticulously assessed by comparing their generated patch sets against the historical data of human-generated patch-sets from the same repositories. This comparative analysis aims to determine the accuracy, relevance, and depth of the LLMs' feedback, thereby evaluating their readiness to support developers in responding to code-review comments. Novelty: This particular research area is still immature requiring a substantial amount of studies yet to be done. No prior research has compared the performance of existing Large Language Models (LLMs) in code-review comments. This in-progress study assesses current LLMs in code review and paves the way for future advancements in automated code quality assurance, reducing context-switching overhead due to interruptions from code change requests.
format Preprint
id arxiv_https___arxiv_org_abs_2406_04346
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Automating Patch Set Generation from Code Review Comments Using Large Language Models
Rahman, Tajmilur
Singh, Rahul
Sultan, Mir Yousuf
Software Engineering
Artificial Intelligence
The advent of Large Language Models (LLMs) has revolutionized various domains of artificial intelligence, including the realm of software engineering. In this research, we evaluate the efficacy of pre-trained LLMs in replicating the tasks traditionally performed by developers in response to code review comments. We provide code contexts to five popular LLMs and obtain the suggested code-changes (patch sets) derived from real-world code-review comments. The performance of each model is meticulously assessed by comparing their generated patch sets against the historical data of human-generated patch-sets from the same repositories. This comparative analysis aims to determine the accuracy, relevance, and depth of the LLMs' feedback, thereby evaluating their readiness to support developers in responding to code-review comments. Novelty: This particular research area is still immature requiring a substantial amount of studies yet to be done. No prior research has compared the performance of existing Large Language Models (LLMs) in code-review comments. This in-progress study assesses current LLMs in code review and paves the way for future advancements in automated code quality assurance, reducing context-switching overhead due to interruptions from code change requests.
title Automating Patch Set Generation from Code Review Comments Using Large Language Models
topic Software Engineering
Artificial Intelligence
url https://arxiv.org/abs/2406.04346