ARCS: Agentic Retrieval-Augmented Code Synthesis with Iterative Refinement
On the map: Retrieval-augmented generation → RAG for code
also in 1 more
Abstract (arXiv)
We present Agentic Retrieval-Augmented Code Synthesis (ARCS), a system that improves LLM-based code generation without fine-tuning. ARCS operates through a budgeted synthesize-execute-repair loop over a frozen model: it retrieves relevant code context before generation, proposes candidates, executes them against tests, and repairs based on execution feedback. This retrieval-before-generation design reduces hallucination and accelerates convergence. We formalize ARCS as a state-action process with provable guarantees on termination, monotonic improvement, and bounded cost. A tiered controller (Small/Medium/Large) trades latency for accuracy predictably. On HumanEval, ARCS achieves up to 87.2% pass@1 with Llama-3.1-405B, surpassing CodeAgent (82.3%) while using simpler control than tree-search methods. On TransCoder, it achieves >= 90% accuracy on most translation pairs. On a LANL scientific corpus, it improves CodeBLEU by +0.115 over baseline RAG. ARCS provides a practical, reproducible approach to reliable code synthesis using existing LLM checkpoints.
Key facts. Cited by 7 papers in the map (data through 14 Oct 2026). Placed in RAG for code, one of 15 directions in Retrieval-augmented generation. Builds on 11 of its 15 references that are in the map. First posted on arXiv 29 Apr 2025.
Builds on
11 of 15 references.
Closest ancestors · 3
Same direction, newest first
- 2025An Empirical Study of Retrieval-Augmented Code Generation: Challenges and Opportunities23 Jan
- 2024Enhancing Cross-Language Code Translation via Task-Specific Embedding Alignment in Retrieval-Augmented Generation6 Dec
- 2024Enhancing Code Translation in Language Models with Few-Shot Learning via Retrieval-Augmented Generation29 Jul
Other references · 8
- 2021Evaluating Large Language Models Trained on Codecited by 8,320
- 2022Competition-Level Code Generation with AlphaCodecited by 1,462
- 2024DeepSeek-Coder-V2: Breaking the Barrier of Closed-Source Models in Code Intelligencecited by 331
- 2024CodeAgent: Enhancing Code Generation with Tool-Integrated Agent Systems for Real-World Repo-level Coding Challengescited by 282
- 2023Structured Chain-of-Thought Prompting for Code Generationcited by 138
- 2024Mind Your Step (by Step): Chain-of-Thought can Reduce Performance on Tasks where Thinking Makes Humans Worsecited by 109
- 2024RethinkMCTS: Refining Erroneous Thoughts in Monte Carlo Tree Search for Code Generationcited by 26
- 2025ExeCoder: Empowering Large Language Models with Executability Representation for Code Translationcited by 10
Built on by
Citing papers per year: 2025: 3; 2026: 4.
7 papers.
- 2025A Survey of LLM-based Deep Search Agents: Paradigm, Optimization, Evaluation, and Challengescited by 62
- 2025Retrieval-Augmented Code Generation: A Survey with Focus on Repository-Level Approachescited by 23
- 2026EsoLang-Bench: Evaluating Genuine Reasoning in Large Language Models via Esoteric Programming Languagescited by 4
- 2026Large Language Models for Multilingual Code Intelligence: A Surveycited by 2
- 2025Performance Evaluation of General Purpose Large Language Models for Basic Linear Algebra Subprograms Code Generationcited by 1
- 2026MoCA-Agent: A Market-of-Claims Code Agent for Financial and Numerical Reasoningcited by 0
- 2026What Drives Recovery in Agentic Text-to-Cypher? LAST-CQ: An LLM Agent Self-Refinement Frameworkcited by 0
- 2026What Drives Recovery in Agentic Text-to-Cypher? LAST-CQ: An LLM Agent Self-Refinement Framework11 Sep 2026
- 2026MoCA-Agent: A Market-of-Claims Code Agent for Financial and Numerical Reasoning10 Jun 2026
- 2026Large Language Models for Multilingual Code Intelligence: A Survey27 Apr 2026
- 2026EsoLang-Bench: Evaluating Genuine Reasoning in Large Language Models via Esoteric Programming Languages10 Mar 2026
- 2025Retrieval-Augmented Code Generation: A Survey with Focus on Repository-Level Approaches6 Oct 2025
- 2025A Survey of LLM-based Deep Search Agents: Paradigm, Optimization, Evaluation, and Challenges3 Aug 2025
- 2025Performance Evaluation of General Purpose Large Language Models for Basic Linear Algebra Subprograms Code Generation7 Jul 2025
Similar, not cited
Close in wording, no citation either way
- 2024LLM Agents Improve Semantic Code Search
- 2024CodeTree: Agent-guided Tree Search for Code Generation with Large Language Models
- 2025Enhancing LLM Code Generation: A Systematic Evaluation of Multi-Agent Collaboration and Runtime Debugging for Improved Accuracy, Reliability, and Latency
- 2026Are you Synthesizing or Recalling? Evaluating LLMs on Algorithmic Code Retrieval
- 2024MapCoder: Multi-Agent Code Generation for Competitive Problem Solving
- 2026TDD-Agent: Test-Driven Reasoning for Code Generation
- 2026CORE-Bench: A Comprehensive Benchmark for Code Retrieval in the Era of Agentic Coding
- 2025FastCoder: Accelerating Repository-level Code Generation via Efficient Retrieval and Verification