Open Source
Software Refactoring Research with Large Language Models: A Systematic Literature Review
arXiv cs.SE0 views
arXiv:2611.14027v1 Announce Type: new Abstract: Background: Code refactoring is the improvement of code internally without changing the external functionalities of the program. Due to its exhaustive nature, developers often avoid manually refactoring code. Researchers have since looked into utilizing LLMs to automate the task of refactoring. Aim and Method: Despite the promising results, there is a lack of clear un- derstanding of LLMs' effectiveness in automated refactoring. Result: From our literature review we found that: (i) there are various tools that different studies use to enhance and study LLM-driving refactoring, with tools that were used to detect code smells, generate code bases, and compare refactoring outcomes. (ii) Various datasets were collected from multiple open- source projects in multiple programming languages for analysis. These platforms included GitHub, Apache, and F-Droid, with the most popular language collec- ted and analyzed being Java. (iii) One-Shot, Few-Shot, Context-Specific, and Chain-of-Thought prompting methods have been shown to be the most effective depending on the language used. In some instances, being capable of reducing code smell by up to 89%. (iv) The definition of "accuracy" varies significantly across the literature surveyed, as this depends on the context of the study, thus calling for a need to have a standardized measurement for Accuracy. (v) The most often mentioned code smells were Large Class and Long Method, with a lot of studies also not specifying, while the most often applied refactoring type is Extract Method, showing promising results in using LLM to perform this refactoring type. (vi) When working with LLMs, they often generate erroneous code, struggle with more complex refactoring, and often misunderstand the developers' requests and miss refactoring requests.
Source:https://arxiv.org/abs/2611.14027PreviousOpenRE-Bench: A Benchmark Harness for Multi-Agent Requirements Engineering with Mined GitHub IssuesNextDEIA: Evidence-Grounded Crash Repair with Change-Aware Test Design for HarmonyOS ArkTS
Related posts

Reverse Engineering Tools: A Free Starter Kit for Your First Binary
0dev.to
Antalia-2 Mini: A 7.6-million-parameter Turkish text-to-speech model trained entirely on synthetic speech
0arXiv cs.SD
Emilia2: A Large-Scale Dataset for Controllable Long-Form Speech Generation
0arXiv cs.SD
Asymptotically good codes from Siegel modular varieties
0arXiv math.IT
On the Concavity of R\'enyi Entropy and R\'enyi Entropy Power along Heat Flows on Manifolds
0arXiv math.IT
Multimodal Judges Flag, Humans Decide: A Review-and-Edit Framework for AI-Generated Product Video Ads
0arXiv cs.HC