Enhancing Repository-Level Code Completion with Reinforcement Learning in Real-World Scenarios
New in Deep reinforcement learning methods; no direction yet. Deep reinforcement learning methods
Abstract (arXiv)
The rapid development of large language models (LLMs) for code, which closely aligns with the practical needs of real-world software development, has sparked growing attention in repository-level code completion. However, existing Code LLMs present challenges in focusing on suitable contexts from the repository and in deeply reasoning about cross-file dependencies. To address these challenges, we propose a novel reinforcement learning framework for repository-level code completion. To better understand both in-file and cross-file contexts, we employ identifier-driven intent recognition to capture completion intent, thereby improving the model's performance in real-world scenarios. To enhance cross-file reasoning, we propose a reward-driven completion learning to effectively reward in complex repository completion scenarios. To guide LLMs in completing code that aligns with intended functionality and repository context, we introduce a selective-exploration strategy that directs the model to focus on low-confidence, high-reward tokens, promoting the exploration of valuable, underexplored completion patterns. Experimental results show that our approach significantly improves the performance of Code LLMs. The code and the dataset are available at https://github.com/zhenlongDai/RepoCompletion.
Key facts. No citing papers in the map yet (data through 24 Nov 2026). Builds on 22 of its 39 references that are in the map. Submitted 5 Nov 2026.
Builds on
22 of 39 references.
References · 22
- 2023Direct Preference Optimization: Your Language Model is Secretly a Reward Modelcited by 8,494
- 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 6,685
- 2022Competition-Level Code Generation with AlphaCodecited by 1,510
- 2021CodeXGLUE: A Machine Learning Benchmark Dataset for Code Understanding and Generationcited by 765
- 2024A Survey on Large Language Models for Code Generationcited by 695
- 2022InCoder: A Generative Model for Code Infilling and Synthesiscited by 510
- 2022DS-1000: A Natural and Reliable Benchmark for Data Science Code Generationcited by 471
- 2023RepoCoder: Repository-Level Code Completion Through Iterative Retrieval and Generationcited by 387
- 2023RepoBench: Benchmarking Repository-Level Code Auto-Completion Systemscited by 384
- 2024CodeAgent: Enhancing Code Generation with Tool-Integrated Agent Systems for Real-World Repo-level Coding Challengescited by 291
- 2023CrossCodeEval: A Diverse and Multilingual Benchmark for Cross-File Code Completioncited by 193
- 2022Multi-lingual Evaluation of Code Generation Modelscited by 162
10 more
- 2023CodePlan: Repository-level Coding using LLMs and Planningcited by 152
- 2022CoCoMIC: Code Completion By Jointly Modeling In-file and Cross-file Contextcited by 68
- 2022PanGu-Coder: Program Synthesis with Function-Level Language Modelingcited by 52
- 2022CodeFill: Multi-token Code Completion by Jointly Learning from Structure and Naming Sequencescited by 51
- 2024Dataflow-Guided Retrieval Augmentation for Repository-Level Code Completioncited by 42
- 2024HumanEval Pro and MBPP Pro: Evaluating Large Language Models on Self-invoking Code Generationcited by 42
- 2024REPOFUSE: Repository-Level Code Completion with Fused Dual Contextcited by 33
- 2024MPCODER: Multi-user Personalized Code Generator with Explicit and Implicit Style Representation Learningcited by 14
- 2024FT2Ra: A Fine-Tuning-Inspired Approach to Retrieval-Augmented Code Completioncited by 10
- 2026Learner-Tailored Program Repair: A Solution Generator with Iterative Edit-Driven Retrieval Enhancementcited by 1
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2024RLCoder: Reinforcement Learning for Repository-Level Code Completion
- 2024RepoGenReflex: Enhancing Repository-Level Code Completion with Verbal Reinforcement and Retrieval-Augmented Generation
- 2026AlignCoder: Aligning Retrieval with Target Intent for Repository-Level Code Completion
- 2025One Tool Is Enough: Reinforcement Learning for Repository-Level LLM Agents
- 2026From Guessing to Placeholding: A Cost-Theoretic Framework for Uncertainty-Aware Code Completion
- 2025From Context to Intent: Reasoning-Guided Function-Level Code Completion
- 2024Repoformer: Selective Retrieval for Repository-Level Code Completion
- 2023RepoFusion: Training Code Models to Understand Your Repository