mlsanityData to 14 Oct 2026

ARCS: Agentic Retrieval-Augmented Code Synthesis with Iterative Refinement

arXiv 2504.20434 ↗First posted 29 Apr 2025cs.SE cs.AIcited by 7

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

  1. 2025An Empirical Study of Retrieval-Augmented Code Generation: Challenges and Opportunities23 Jan
  2. 2024Enhancing Cross-Language Code Translation via Task-Specific Embedding Alignment in Retrieval-Augmented Generation6 Dec
  3. 2024Enhancing Code Translation in Language Models with Few-Shot Learning via Retrieval-Augmented Generation29 Jul

Other references · 8

  1. 2021Evaluating Large Language Models Trained on Codecited by 8,320
  2. 2022Competition-Level Code Generation with AlphaCodecited by 1,462
  3. 2024DeepSeek-Coder-V2: Breaking the Barrier of Closed-Source Models in Code Intelligencecited by 331
  4. 2024CodeAgent: Enhancing Code Generation with Tool-Integrated Agent Systems for Real-World Repo-level Coding Challengescited by 282
  5. 2023Structured Chain-of-Thought Prompting for Code Generationcited by 138
  6. 2024Mind Your Step (by Step): Chain-of-Thought can Reduce Performance on Tasks where Thinking Makes Humans Worsecited by 109
  7. 2024RethinkMCTS: Refining Erroneous Thoughts in Monte Carlo Tree Search for Code Generationcited by 26
  8. 2025ExeCoder: Empowering Large Language Models with Executability Representation for Code Translationcited by 10

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 3; 2026: 4.

7 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2024LLM Agents Improve Semantic Code Search
  2. 2024CodeTree: Agent-guided Tree Search for Code Generation with Large Language Models
  3. 2025Enhancing LLM Code Generation: A Systematic Evaluation of Multi-Agent Collaboration and Runtime Debugging for Improved Accuracy, Reliability, and Latency
  4. 2026Are you Synthesizing or Recalling? Evaluating LLMs on Algorithmic Code Retrieval
  5. 2024MapCoder: Multi-Agent Code Generation for Competitive Problem Solving
  6. 2026TDD-Agent: Test-Driven Reasoning for Code Generation
  7. 2026CORE-Bench: A Comprehensive Benchmark for Code Retrieval in the Era of Agentic Coding
  8. 2025FastCoder: Accelerating Repository-level Code Generation via Efficient Retrieval and Verification