RepoGenReflex: Enhancing Repository-Level Code Completion with Verbal Reinforcement and Retrieval-Augmented Generation
Jicheng Wang, Yifeng He, Hao Chen

TL;DR
RepoGenReflex is a novel framework that improves repository-level code completion by dynamically selecting optimal results through Retrieval-Augmented Generation combined with Verbal Reinforcement Learning, validated on a new real-world benchmark.
Contribution
It introduces RepoGenReflex, a dynamic, generic framework that enhances code completion accuracy by integrating RAG and VRL, along with a new benchmark RepoGenEval for evaluation.
Findings
Significant accuracy improvements over baseline methods.
Consistent performance across diverse code completion scenarios.
Enhanced relevance and robustness in code suggestions.
Abstract
In real-world software engineering tasks, solving a problem often requires understanding and modifying multiple functions, classes, and files across a large codebase. Therefore, on the repository level, it is crucial to extract the relevant information to achieve accurate code completion effectively. Existing code completion tools have achieved some success, but they struggle to optimize the retrieval and generation process dynamically. In this paper, we propose RepoGenReflex, a generic, dynamic, effective framework to address this challenge. By leveraging the Retrieval-Augmented Generation (RAG) enhanced with Verbal Reinforcement Learning (VRL), it can dynamically choose the optimal results for repository-level code completion. RepoGenReflex uses Reflector to give directional feedback to the next loop. RepoGenReflex chooses the optimal results stored in the Experience cache based on…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsIntelligent Tutoring Systems and Adaptive Learning · Software Engineering Research
