DOE OSTI · code-180510
ARCS: Agentic Retrieval-Augmented Code Synthesis with Iterative Refinement
Abstract
Agentic Retrieval-Augmented Code Synthesis with Iterative RefinementIn supercomputing, efficient and optimized code generation is essential to leverage high-performance systems effectively. We have developed Agentic Retrieval-Augmented Code Synthesis (ARCS), an advanced framework for accurate, robust, and efficient code generation, completion, and translation. ARCS integrates Retrieval-Augmented Generation (RAG) with Chain-of-Thought (CoT) reasoning to systematically break down and iteratively refine complex programming tasks. An agent-based RAG mechanism retrieves relevant code snippets, while real-time execution feedback drives the synthesis of candidate solutions. This process is formalized as a state-action search tree optimization, balancing code correctness with editing efficiency. Evaluations on the Geeks4Geeks and HumanEval benchmarks demonstrate that ARCS significantly outperforms traditional prompting methods in translation and generation quality. By enabling scalable and precise code synthesis, ARCS offers transformative potential for automating and optimizing code development in supercomputing applications, enhancing computational resource utilization
Keep this discovery
Explore connections, maps & timelines
Bhattarai, Manish [Los Alamos National Labs], Cordova, Miguel. 2025-10-16. ARCS: Agentic Retrieval-Augmented Code Synthesis with Iterative Refinement. https://doi.org/10.11578/dc.20260501.3
Cite the original work for its findings. Save a collection to share your selection of sources.