Exploring the Potential of ChatGPT in Automated Code Refinement: An Empirical Study
Not on the map. Why?
Abstract (arXiv)
Code review is an essential activity for ensuring the quality and maintainability of software projects. However, it is a time-consuming and often error-prone task that can significantly impact the development process. Recently, ChatGPT, a cutting-edge language model, has demonstrated impressive performance in various natural language processing tasks, suggesting its potential to automate code review processes. However, it is still unclear how well ChatGPT performs in code review tasks. To fill this gap, in this paper, we conduct the first empirical study to understand the capabilities of ChatGPT in code review tasks, specifically focusing on automated code refinement based on given code reviews. To conduct the study, we select the existing benchmark CodeReview and construct a new code review dataset with high quality. We use CodeReviewer, a state-of-the-art code review tool, as a baseline for comparison with ChatGPT. Our results show that ChatGPT outperforms CodeReviewer in code refinement tasks. Specifically, our results show that ChatGPT achieves higher EM and BLEU scores of 22.78 and 76.44 respectively, while the state-of-the-art method achieves only 15.50 and 62.88 on a high-quality code review dataset. We further identify the root causes for ChatGPT's underperformance and propose several strategies to mitigate these challenges. Our study provides insights into the potential of ChatGPT in automating the code review process, and highlights the potential research directions.
Key facts. Cited by 44 papers in the map (data through 7 Oct 2026). First posted on arXiv 15 Sep 2023.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2024: 15; 2025: 21; 2026: 8.
44 papers.
Sort:
By area:
- 2024Large Language Models for Education: A Survey and Outlookcited by 185
- 2025On the Use of Agentic Coding: An Empirical Study of Pull Requests on GitHubcited by 53
- 2024CYCLE: Learning to Self-Refine the Code Generationcited by 39
- 2024Automatic Programming: Large Language Models and Beyondcited by 35
- 2025LessLeak-Bench: A First Investigation of Data Leakage in LLMs Across 83 Software Engineering Benchmarkscited by 34
- 2024RMCBench: Benchmarking Large Language Models' Resistance to Malicious Codecited by 27
- 2024ProSec: Fortifying Code LLMs with Proactive Security Alignmentcited by 24
- 2024A Deep Dive Into Large Language Model Code Generation Mistakes: What and Why?cited by 9
- 2024Model Editing for LLMs4Code: How Far are We?cited by 8
- 2025CODESYNC: Synchronizing Large Language Models with Dynamic Code Evolution at Scalecited by 8
- 2025LLMs' Reshaping of People, Processes, Products, and Society in Software Development: A Comprehensive Exploration with Early Adopterscited by 8
- 2025LAURA: Enhancing Code Review Generation with Context-Enriched Retrieval-Augmented LLMcited by 8
32 more
- 2024Prompting and Fine-tuning Large Language Models for Automated Code Review Comment Generationcited by 7
- 2024An Insight into Security Code Review with LLMs: Capabilities, Obstacles, and Influential Factorscited by 6
- 2024Instruct or Interact? Exploring and Eliciting LLMs' Capability in Code Snippet Adaptation Through Prompt Engineeringcited by 6
- 2025Large Language Models are Qualified Benchmark Builders: Rebuilding Pre-Training Datasets for Advancing Code Intelligence Taskscited by 6
- 2024Looking into Black Box Code Language Modelscited by 5
- 2024Leveraging Reviewer Experience in Code Review Comment Generationcited by 4
- 2025Issue-Oriented Agent-Based Framework for Automated Review Comment Generationcited by 4
- 2024Survey of Natural Language Processing for Education: Taxonomy, Systematic Review, and Future Trendscited by 3
- 2024CodeCloak: A Method for Evaluating and Mitigating Code Leakage by LLM Code Assistantscited by 3
- 2024Log Parsing using LLMs with Self-Generated In-Context Learning and Self-Correctioncited by 3
- 2025Benchmarking AI Models in Software Engineering: A Review, Search Tool, and Unified Approach for Elevating Benchmark Qualitycited by 3
- 2025CodeReviewQA: The Code Review Comprehension Assessment for Large Language Modelscited by 3
- 2025EduAdapt: A Question Answer Benchmark Dataset for Evaluating Grade-Level Adaptability in LLMscited by 3
- 2026Are We All Using Agents the Same Way? An Empirical Study of Core and Peripheral Developers Use of Coding Agentscited by 3
- 2025SDLog: A Deep Learning Framework for Detecting Sensitive Information in Software Logscited by 2
- 2025SAEL: Leveraging Large Language Models with Adaptive Mixture-of-Experts for Smart Contract Vulnerability Detectioncited by 2
- 2025Code Review Without Borders: Evaluating Synthetic vs. Real Data for Review Recommendationcited by 1
- 2026Understanding the Limits of Automated Evaluation for Code Review Bots in Practicecited by 1
- 2025Towards Refining Developer Questions using LLM-Based Named Entity Recognition for Developer Chatroom Conversationscited by 0
- 2025Unify and Triumph: Polyglot, Diverse, and Self-Consistent Generation of Unit Tests with LLMscited by 0
- 2025Improving Automated Secure Code Reviews: A Synthetic Dataset for Code Vulnerability Flawscited by 0
- 2025Fine-Tuning Multilingual Language Models for Code Review: An Empirical Study on Industrial C# Projectscited by 0
- 2025Fine-Tuning Code Language Models to Detect Cross-Language Bugscited by 0
- 2025TGPR: Tree-Guided Policy Refinement for Robust Self-Debugging of LLMscited by 0
- 2025A Comparison of Conversational Models and Humans in Answering Technical Questions: the Firefox Casecited by 0
- 2025Agentic LLMs for REST API Test Amplification: A Comparative Study Across Cloud Applicationscited by 0
- 2026Improving MPI Error Detection and Repair with Large Language Models and Bug Referencescited by 0
- 2026Fine-grained Approaches for Confidence Calibration of LLMs in Automated Code Revisioncited by 0
- 2026Enhancing Large Language Models with Retrieval Augmented Generation for Software Testing and Inspection Automationcited by 0
- 2026Software Self-Extension with SelfEvolve: an Agentic Architecture for Runtime Code Generationcited by 0
- 2026CIT-CAD: Constraint Intent Tree-based CAD Code Generation and Verificationcited by 0
- 2026CRJudgeBench: Can AI Detect Plausible but Invalid Code Reviews?cited by 0
- 2026CRJudgeBench: Can AI Detect Plausible but Invalid Code Reviews?29 Sep 2026
- 2026CIT-CAD: Constraint Intent Tree-based CAD Code Generation and Verification7 Sep 2026
- 2026Understanding the Limits of Automated Evaluation for Code Review Bots in Practice27 Apr 2026
- 2026Enhancing Large Language Models with Retrieval Augmented Generation for Software Testing and Inspection Automation16 Apr 2026
- 2026Fine-grained Approaches for Confidence Calibration of LLMs in Automated Code Revision8 Apr 2026
- 2026Improving MPI Error Detection and Repair with Large Language Models and Bug References2 Apr 2026
- 2026Software Self-Extension with SelfEvolve: an Agentic Architecture for Runtime Code Generation6 Feb 2026
- 2026Are We All Using Agents the Same Way? An Empirical Study of Core and Peripheral Developers Use of Coding Agents27 Jan 2026
- 2025LAURA: Enhancing Code Review Generation with Context-Enriched Retrieval-Augmented LLM1 Dec 2025
- 2025Issue-Oriented Agent-Based Framework for Automated Review Comment Generation1 Nov 2025
- 2025Agentic LLMs for REST API Test Amplification: A Comparative Study Across Cloud Applications31 Oct 2025
- 2025A Comparison of Conversational Models and Humans in Answering Technical Questions: the Firefox Case24 Oct 2025
32 more
- 2025EduAdapt: A Question Answer Benchmark Dataset for Evaluating Grade-Level Adaptability in LLMs20 Oct 2025
- 2025TGPR: Tree-Guided Policy Refinement for Robust Self-Debugging of LLMs8 Oct 2025
- 2025On the Use of Agentic Coding: An Empirical Study of Pull Requests on GitHub18 Sep 2025
- 2025Code Review Without Borders: Evaluating Synthetic vs. Real Data for Review Recommendation5 Sep 2025
- 2025SAEL: Leveraging Large Language Models with Adaptive Mixture-of-Experts for Smart Contract Vulnerability Detection30 Jul 2025
- 2025Fine-Tuning Code Language Models to Detect Cross-Language Bugs29 Jul 2025
- 2025Fine-Tuning Multilingual Language Models for Code Review: An Empirical Study on Industrial C# Projects25 Jul 2025
- 2025SDLog: A Deep Learning Framework for Detecting Sensitive Information in Software Logs20 May 2025
- 2025Large Language Models are Qualified Benchmark Builders: Rebuilding Pre-Training Datasets for Advancing Code Intelligence Tasks28 Apr 2025
- 2025Improving Automated Secure Code Reviews: A Synthetic Dataset for Code Vulnerability Flaws22 Apr 2025
- 2025CodeReviewQA: The Code Review Comprehension Assessment for Large Language Models20 Mar 2025
- 2025Unify and Triumph: Polyglot, Diverse, and Self-Consistent Generation of Unit Tests with LLMs20 Mar 2025
- 2025Benchmarking AI Models in Software Engineering: A Review, Search Tool, and Unified Approach for Elevating Benchmark Quality7 Mar 2025
- 2025LLMs' Reshaping of People, Processes, Products, and Society in Software Development: A Comprehensive Exploration with Early Adopters6 Mar 2025
- 2025Towards Refining Developer Questions using LLM-Based Named Entity Recognition for Developer Chatroom Conversations2 Mar 2025
- 2025CODESYNC: Synchronizing Large Language Models with Dynamic Code Evolution at Scale23 Feb 2025
- 2025LessLeak-Bench: A First Investigation of Data Leakage in LLMs Across 83 Software Engineering Benchmarks10 Feb 2025
- 2024Instruct or Interact? Exploring and Eliciting LLMs' Capability in Code Snippet Adaptation Through Prompt Engineering23 Nov 2024
- 2024ProSec: Fortifying Code LLMs with Proactive Security Alignment19 Nov 2024
- 2024Prompting and Fine-tuning Large Language Models for Automated Code Review Comment Generation15 Nov 2024
- 2024Model Editing for LLMs4Code: How Far are We?11 Nov 2024
- 2024A Deep Dive Into Large Language Model Code Generation Mistakes: What and Why?3 Nov 2024
- 2024RMCBench: Benchmarking Large Language Models' Resistance to Malicious Code23 Sep 2024
- 2024Leveraging Reviewer Experience in Code Review Comment Generation17 Sep 2024
- 2024Looking into Black Box Code Language Models5 Jul 2024
- 2024Log Parsing using LLMs with Self-Generated In-Context Learning and Self-Correction5 Jun 2024
- 2024Automatic Programming: Large Language Models and Beyond3 May 2024
- 2024CodeCloak: A Method for Evaluating and Mitigating Code Leakage by LLM Code Assistants13 Apr 2024
- 2024CYCLE: Learning to Self-Refine the Code Generation27 Mar 2024
- 2024Large Language Models for Education: A Survey and Outlook26 Mar 2024
- 2024An Insight into Security Code Review with LLMs: Capabilities, Obstacles, and Influential Factors29 Jan 2024
- 2024Survey of Natural Language Processing for Education: Taxonomy, Systematic Review, and Future Trends15 Jan 2024
- 2025On the Use of Agentic Coding: An Empirical Study of Pull Requests on GitHubcited by 53
- 2025Issue-Oriented Agent-Based Framework for Automated Review Comment Generationcited by 4
- 2026Are We All Using Agents the Same Way? An Empirical Study of Core and Peripheral Developers Use of Coding Agentscited by 3
- 2025Agentic LLMs for REST API Test Amplification: A Comparative Study Across Cloud Applicationscited by 0
- 2026Software Self-Extension with SelfEvolve: an Agentic Architecture for Runtime Code Generationcited by 0
- 2026Software Self-Extension with SelfEvolve: an Agentic Architecture for Runtime Code Generation6 Feb 2026
- 2026Are We All Using Agents the Same Way? An Empirical Study of Core and Peripheral Developers Use of Coding Agents27 Jan 2026
- 2025Issue-Oriented Agent-Based Framework for Automated Review Comment Generation1 Nov 2025
- 2025Agentic LLMs for REST API Test Amplification: A Comparative Study Across Cloud Applications31 Oct 2025
- 2025On the Use of Agentic Coding: An Empirical Study of Pull Requests on GitHub18 Sep 2025
- 2024Large Language Models for Education: A Survey and Outlookcited by 185
- 2024CYCLE: Learning to Self-Refine the Code Generationcited by 39
- 2024Automatic Programming: Large Language Models and Beyondcited by 35
- 2025LessLeak-Bench: A First Investigation of Data Leakage in LLMs Across 83 Software Engineering Benchmarkscited by 34
- 2024A Deep Dive Into Large Language Model Code Generation Mistakes: What and Why?cited by 9
- 2024Model Editing for LLMs4Code: How Far are We?cited by 8
- 2025LLMs' Reshaping of People, Processes, Products, and Society in Software Development: A Comprehensive Exploration with Early Adopterscited by 8
- 2024Prompting and Fine-tuning Large Language Models for Automated Code Review Comment Generationcited by 7
- 2024Instruct or Interact? Exploring and Eliciting LLMs' Capability in Code Snippet Adaptation Through Prompt Engineeringcited by 6
- 2025Large Language Models are Qualified Benchmark Builders: Rebuilding Pre-Training Datasets for Advancing Code Intelligence Taskscited by 6
- 2024Looking into Black Box Code Language Modelscited by 5
- 2024Leveraging Reviewer Experience in Code Review Comment Generationcited by 4
12 most cited of 29 All 29 (JSON)
- 2026CRJudgeBench: Can AI Detect Plausible but Invalid Code Reviews?29 Sep 2026
- 2026CIT-CAD: Constraint Intent Tree-based CAD Code Generation and Verification7 Sep 2026
- 2026Understanding the Limits of Automated Evaluation for Code Review Bots in Practice27 Apr 2026
- 2026Fine-grained Approaches for Confidence Calibration of LLMs in Automated Code Revision8 Apr 2026
- 2026Improving MPI Error Detection and Repair with Large Language Models and Bug References2 Apr 2026
- 2025A Comparison of Conversational Models and Humans in Answering Technical Questions: the Firefox Case24 Oct 2025
- 2025EduAdapt: A Question Answer Benchmark Dataset for Evaluating Grade-Level Adaptability in LLMs20 Oct 2025
- 2025Code Review Without Borders: Evaluating Synthetic vs. Real Data for Review Recommendation5 Sep 2025
- 2025Fine-Tuning Code Language Models to Detect Cross-Language Bugs29 Jul 2025
- 2025Fine-Tuning Multilingual Language Models for Code Review: An Empirical Study on Industrial C# Projects25 Jul 2025
- 2025SDLog: A Deep Learning Framework for Detecting Sensitive Information in Software Logs20 May 2025
- 2025Large Language Models are Qualified Benchmark Builders: Rebuilding Pre-Training Datasets for Advancing Code Intelligence Tasks28 Apr 2025
12 newest of 29 All 29 (JSON)