mlsanityData to 7 Oct 2026

RLCoder: Reinforcement Learning for Repository-Level Code Completion

arXiv 2407.19487 ↗First posted 28 Jul 2024cs.SEcited by 44

Not on the map. Why?

Abstract (arXiv)

Repository-level code completion aims to generate code for unfinished code snippets within the context of a specified repository. Existing approaches mainly rely on retrieval-augmented generation strategies due to limitations in input sequence length. However, traditional lexical-based retrieval methods like BM25 struggle to capture code semantics, while model-based retrieval methods face challenges due to the lack of labeled data for training. Therefore, we propose RLCoder, a novel reinforcement learning framework, which can enable the retriever to learn to retrieve useful content for code completion without the need for labeled data. Specifically, we iteratively evaluate the usefulness of retrieved content based on the perplexity of the target code when provided with the retrieved content as additional context, and provide feedback to update the retriever parameters. This iterative process enables the retriever to learn from its successes and failures, gradually improving its ability to retrieve relevant and high-quality content. Considering that not all situations require information beyond code files and not all retrieved context is helpful for generation, we also introduce a stop signal mechanism, allowing the retriever to decide when to retrieve and which candidates to retain autonomously. Extensive experimental results demonstrate that RLCoder consistently outperforms state-of-the-art methods on CrossCodeEval and RepoEval, achieving 12.2% EM improvement over previous methods. Moreover, experiments show that our framework can generalize across different programming languages and further improve previous methods like RepoCoder. We provide the code and data at https://github.com/DeepSoftwareAnalytics/RLCoder.

Key facts. Cited by 44 papers in the map (data through 7 Oct 2026). First posted on arXiv 28 Jul 2024.

Builds on

No reference list yet.

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 7; 2025: 17; 2026: 20.

44 papers.

Sort:

By area:

  1. 2025A Survey of Reinforcement Learning for Large Reasoning Modelscited by 175
  2. 2024LLM Hallucinations in Practical Code Generation: Phenomena, Mechanism, and Mitigationcited by 92
  3. 2024Agents in Software Engineering: Survey, Landscape, and Visioncited by 60
  4. 2025FLEX: Continuous Agent Evolution via Forward Learning from Experiencecited by 51
  5. 2025LongCodeZip: Compress Long Context for Code Language Modelscited by 38
  6. 2026Hierarchy-of-Groups Policy Optimization for Long-Horizon Agentic Taskscited by 37
  7. 2024RMCBench: Benchmarking Large Language Models' Resistance to Malicious Codecited by 27
  8. 2025Code Graph Model (CGM): A Graph-Integrated Large Language Model for Repository-Level Software Engineering Taskscited by 27
  9. 2025Retrieval-Augmented Code Generation: A Survey with Focus on Repository-Level Approachescited by 20
  10. 2024RAMBO: Enhancing RAG-based Repository-Level Method Body Completioncited by 10
  11. 2024Statically Contextualizing Large Language Models with Typed Holescited by 9
  12. 2025Hallucination by Code Generation LLMs: Taxonomy, Benchmarks, Mitigation, and Challengescited by 9
32 more
  1. 2026AlignCoder: Aligning Retrieval with Target Intent for Repository-Level Code Completioncited by 7
  2. 2024RepoGenReflex: Enhancing Repository-Level Code Completion with Verbal Reinforcement and Retrieval-Augmented Generationcited by 6
  3. 2026Hybrid-Gym: Training Coding Agents to Generalize Across Taskscited by 6
  4. 2025Enhancing Project-Specific Code Completion by Inferring Internal API Informationcited by 5
  5. 2025From Sufficiency to Reflection: Reinforcement-Guided Thinking Quality in Retrieval-Augmented Reasoning for LLMscited by 5
  6. 2025EffiReasonTrans: RL-Optimized Reasoning for Code Translationcited by 5
  7. 2026RepoReasoner: Evaluating Repository-Level Code Reasoning Ability of Long-Context Language Modelscited by 5
  8. 2025SCGAgent: Recreating the Benefits of Reasoning Models for Secure Code Generation with Agentic Workflowscited by 4
  9. 2025CodeReasoner: Enhancing the Code Reasoning Ability with Reinforcement Learningcited by 4
  10. 2025SALE : Low-bit Estimation for Efficient Sparse Attention in Long-context LLM Prefillingcited by 3
  11. 2026ShortCoder: Knowledge-Augmented Syntax Optimization for Token-Efficient Code Generationcited by 3
  12. 2026DRAINCODE: Stealthy Energy Consumption Attacks on Retrieval-Augmented Code Generation via Context Poisoningcited by 3
  13. 2026Memory Transfer Learning: How Memories are Transferred Across Domains in Coding Agentscited by 3
  14. 2025FastCoder: Accelerating Repository-level Code Generation via Efficient Retrieval and Verificationcited by 2
  15. 2025Toward Rich Video Human-Motion2D Generationcited by 2
  16. 2025TENET: One Step Toward Test-Driven Development for Repository-Level Code Generationcited by 2
  17. 2026Credit-Budgeted ICPC-Style Coding: When Agents Must Pay for Every Decisioncited by 2
  18. 2026ARISE: A Repository-level Graph Representation and Toolset for Agentic Program Repair and Fault Localizationcited by 2
  19. 2026PhoenixRepair: Rethinking Repair Strategy Exploration in Software Agentscited by 2
  20. 2026MHRC-Bench: A Multilingual Hardware Repository-Level Code Completion benchmarkcited by 1
  21. 2026StepCodeReasoner: Aligning Code Reasoning with Stepwise Execution Traces via Reinforcement Learningcited by 1
  22. 2024Trading Devil RL: Backdoor attack via Stock market, Bayesian Optimization and Reinforcement Learningcited by 0
  23. 2025Structure-Aware Corpus Construction and User-Perception-Aligned Metrics for Large-Language-Model Code Completioncited by 0
  24. 2025Challenge on Optimization of Context Collection for Code Completioncited by 0
  25. 2026Microskill Architecture: A Modular Skill-Driven Framework for AI-Native Code Generationcited by 0
  26. 2026SciCodePile: A 128GB Corpus and Executable Benchmark for Challenging Scientific Code Generationcited by 0
  27. 2026The Thousand-Graph Hypothesis: A Testable Hypothesis of Task-Conditioned Relation Materialization in Repository-Level Code Reasoningcited by 0
  28. 2026Adaptive Critical Token-Aware Retrieval for Repository-Level Code Generationcited by 0
  29. 2026SWE-Gate: Passing Functional Tests Is Not Enough for Software Engineering Agentscited by 0
  30. 2026RCL: A Retrieval-Confidence Layer for Detecting Insufficient Context in Enterprise Retrieval-Augmented Code Generationcited by 0
  31. 2026FeatLens: Feature-Guided Dynamic Code Graph Construction and Retrieval for Repository-Level Code Generationcited by 0
  32. 2026Inducing Process Supervision from Outcome-Only Reinforcement Learningcited by 0

Similar, not cited

Close in wording, no citation either way

  1. 2024Repoformer: Selective Retrieval for Repository-Level Code Completion
  2. 2023RepoCoder: Repository-Level Code Completion Through Iterative Retrieval and Generation
  3. 2024GraphCoder: Enhancing Repository-Level Code Completion via Code Context Graph-based Retrieval and Language Model
  4. 2022ReACC: A Retrieval-Augmented Code Completion Framework
  5. 2026CodeScout: An Effective Recipe for Reinforcement Learning of Code Search Agents
  6. 2024StepCoder: Improve Code Generation with Reinforcement Learning from Compiler Feedback
  7. 2026RepoShapley: Shapley-Enhanced Context Filtering for Repository-Level Code Completion
  8. 2025One Tool Is Enough: Reinforcement Learning for Repository-Level LLM Agents