paper-with-me

Papers

ReCode: Improving LLM-based Code Repair with Fine-Grained Retrieval-Augmented Generation

2025-09-02 · Yicong Zhao, Shisong Chen, Jiacheng Zhang, Zhixu Li arxiv

Recent advances in large language models (LLMs) have demonstrated impressive capabilities in code-related tasks, such as code generation and automated program repair. Despite their promising performance, most existing approaches for code repair suffer from high training costs or computationally expensive inference. Retrieval-augmented generation (RAG), with its efficient in-context learning paradigm, offers a more scalable alternative. However, conventional retrieval strategies, which are often based on holistic code-text embeddings, fail to capture the structural intricacies of code, resulting in suboptimal retrieval quality. To address the above limitations, we propose ReCode, a fine-grained retrieval-augmented in-context learning framework designed for accurate and efficient code repair. Specifically, ReCode introduces two key innovations: (1) an algorithm-aware retrieval strategy that narrows the search space using preliminary algorithm type predictions; and (2) a modular dual-encoder architecture that separately processes code and textual inputs, enabling fine-grained semantic matching between input and retrieved contexts. Furthermore, we propose RACodeBench, a new benchmark constructed from real-world user-submitted buggy code, which addresses the limitations of synthetic benchmarks and supports realistic evaluation. Experimental results on RACodeBench and competitive programming datasets demonstrate that ReCode achieves higher repair accuracy with significantly reduced inference cost, highlighting its practical value for real-world code repair scenarios.

📄 PDF Abstract BibTeX arXiv:2509.02330

Code (0)

등록된 구현이 없습니다.

Tasks

Code GenerationProgram RepairCode Repair

Similar Papers 제목 키워드 기반

A Syntax-Guided Edit Decoder for Neural Program Repair

2021-06-15 · Qihao Zhu, Zeyu Sun, Yuan-an Xiao, Wenjie Zhang 외

Automated Program Repair (APR) helps improve the efficiency of software development and maintenance. Recent APR techniques use deep learning, particularly the encoder-decoder architecture, to generate patches. Though exi…

Code CompletionCode GenerationDecoderProgram Repair

ReCode: Unify Plan and Action for Universal Granularity Control

2025-10-27 · Zhaoyang Yu, Jiayi Zhang, Huixue Su, Yufan Zhao 외 arxiv

Real-world tasks require decisions at varying granularities, and humans excel at this by leveraging a unified cognitive representation where planning is fundamentally understood as a high-level form of action. However, c…

Code Generation

ReCode: Reinforcing Code Generation with Reasoning-Process Rewards

2025-08-07 · Lishui Fan, Yu Zhang, Mouxiang Chen, Zhongxin Liu arxiv

In practice, rigorous reasoning is often a key driver of correct code, while Reinforcement Learning (RL) for code generation often neglects optimizing reasoning quality. Bringing process-level supervision into RL is appe…

Reinforcement LearningCode Generation

Improving LLM-Assisted Secure Code Generation through Retrieval-Augmented-Generation and Multi-Tool Feedback

2026-01-01 · Vidyut Sriram, Sawan Pandita, Achintya Lakshmanan, Aneesh Shamraj 외 arxiv

Large Language Models (LLMs) can generate code but often introduce security vulnerabilities, logical inconsistencies, and compilation errors. Prior work demonstrates that LLMs benefit substantially from structured feedba…

Semantic RetrievalCode Generation

Learner-Tailored Program Repair: A Solution Generator with Iterative Edit-Driven Retrieval Enhancement

2026-01-13 · Zhenlong Dai, Zhuoluo Zhao, Hengning Wang, Xiu Tang 외 arxiv

With the development of large language models (LLMs) in the field of programming, intelligent programming coaching systems have gained widespread attention. However, most research focuses on repairing the buggy code of p…

Program Repair