paper-with-me

Papers

AI-Driven Code Refactoring: Using Graph Neural Networks to Enhance Software Maintainability

2025-04-14 · Gopichand Bandarupalli

This study explores Graph Neural Networks (GNNs) as a transformative tool for code refactoring, using abstract syntax trees (ASTs) to boost software maintainability. It analyzes a dataset of 2 million snippets from CodeSearchNet and a custom 75000-file GitHub Python corpus, comparing GNNs against rule-based SonarQube and decision trees. Metrics include cyclomatic complexity (target below 10), coupling (target below 5), and refactoring precision. GNNs achieve 92% accuracy, reducing complexity by 35% and coupling by 33%, outperforming SonarQube (78%, 16%) and decision trees (85%, 25%). Preprocessing fixed 60% of syntax errors. Bar graphs, tables, and AST visuals clarify results. This offers a scalable AI-driven path to cleaner codebases, which is crucial for software engineering.

📄 PDF Abstract BibTeX arXiv:2504.10412

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

RefAgent: A Multi-agent LLM-based Framework for Automatic Software Refactoring

2025-11-05 · Khouloud Oueslati, Maxime Lamothe, Foutse Khomh arxiv

Large Language Models (LLMs) have substantially influenced various software engineering tasks. Indeed, in the case of software refactoring, traditional LLMs have shown the ability to reduce development time and enhance c…

Do Design Metrics Capture Developers Perception of Quality? An Empirical Study on Self-Affirmed Refactoring Activities

2019-07-10 · Eman Abdullah AlOmar, Mohamed Wiem Mkaouer, Ali Ouni, Marouane Kessentini

Background. Refactoring is a critical task in software maintenance and is generally performed to enforce the best design and implementation practices or to cope with design defects. Several studies attempted to detect re…

Predicting the Impact of Batch Refactoring Code Smells on Application Resource Consumption

2023-06-27 · Asif Imran, Tevfik Kosar, Jaroslaw Zola, Muhammed Fatih Bulut

Automated batch refactoring has become a de-facto mechanism to restructure software that may have significant design flaws negatively impacting the code quality and maintainability. Although automated batch refactoring t…

CPU

AgRefactor: Self-Evolving Agentic Workflow for HLS Compatibility and Performance

2026-06-29 · Yang Zou, Zijian Ding, Yizhou Sun, Jason Cong arxiv

High-Level Synthesis (HLS) provides a fast path from concepts to silicon, but converting real-world software into synthesizable HLS code remains challenging due to restrictive language support and the gap between softwar…

Teaching Code Refactoring Using LLMs

2025-08-12 · Anshul Khairnar, Aarya Rajoju, Edward F. Gehringer arxiv

This Innovative Practice full paper explores how Large Language Models (LLMs) can enhance the teaching of code refactoring in software engineering courses through real-time, context-aware feedback. Refactoring improves c…