MARCO: Multi-Agent Code Optimization with Real-Time Knowledge Integration for High-Performance Computing
On the map: LLM agents and tool use → Software engineering coding agents
Abstract (arXiv)
Large language models (LLMs) have transformed software development through code generation capabilities, yet their effectiveness for high-performance computing (HPC) remains limited. HPC code requires specialized optimizations for parallelism, memory efficiency, and architecture-specific considerations that general-purpose LLMs often overlook. We present MARCO (Multi-Agent Reactive Code Optimizer), a novel framework that enhances LLM-generated code for HPC through a specialized multi-agent architecture. MARCO employs separate agents for code generation and performance evaluation, connected by a feedback loop that progressively refines optimizations. A key innovation is MARCO's web-search component that retrieves real-time optimization techniques from recent conference proceedings and research publications, bridging the knowledge gap in pre-trained LLMs. Our extensive evaluation on the LeetCode 75 problem set demonstrates that MARCO achieves a 14.6% average runtime reduction compared to Claude 3.5 Sonnet alone, while the integration of the web-search component yields a 30.9% performance improvement over the base MARCO system. These results highlight the potential of multi-agent systems to address the specialized requirements of high-performance code generation, offering a cost-effective alternative to domain-specific model fine-tuning.
Key facts. Cited by 5 papers in the map (data through 14 Oct 2026). Placed in Software engineering coding agents, one of 16 directions in LLM agents and tool use. Builds on 27 of its 45 references that are in the map. First posted on arXiv 6 May 2025.
Builds on
27 of 45 references.
Closest ancestors · 1
Same direction, newest first
Other references · 26
- 2022Training language models to follow instructions with human feedbackcited by 15,971
- 2020Scaling Laws for Neural Language Modelscited by 6,586
- 2017Deep reinforcement learning from human preferencescited by 3,912
- 2022Training Compute-Optimal Large Language Modelscited by 3,019
- 2023A Survey on Large Language Model based Autonomous Agentscited by 2,242
- 2022Competition-Level Code Generation with AlphaCodecited by 1,462
- 2024Qwen2.5-Coder Technical Reportcited by 1,203
- 2024A Survey on Large Language Models for Code Generationcited by 658
- 2021Efficient Large-Scale Language Model Training on GPU Clusters Using Megatron-LMcited by 632
- 2023Using an LLM to Help With Code Understandingcited by 228
- 2025Survey on Evaluation of LLM-based Agentscited by 204
- 2023Self-planning Code Generation with Large Language Modelscited by 124
14 more
- 2024Best Practices and Lessons Learned on Synthetic Datacited by 106
- 2023Level Generation Through Large Language Modelscited by 68
- 2024LLM-based Multi-Agent Reinforcement Learning: Current and Future Directionscited by 67
- 2024A Performance Study of LLM-Generated Code on Leetcodecited by 49
- 2023Large Language Model-Aware In-Context Learning for Code Generationcited by 43
- 2024Can Large Language Models Write Parallel Code?cited by 36
- 2023HPC-GPT: Integrating Large Language Model for High-Performance Computingcited by 22
- 2024The Landscape and Challenges of HPC Research and LLMscited by 22
- 2023Reinforcement Learning in the Era of LLMs: What is Essential? What is needed? An RL Perspective on RLHF, Prompting, and Beyondcited by 20
- 2023LM4HPC: Towards Effective Language Model Application in High-Performance Computingcited by 18
- 2023Scope is all you need: Transforming LLMs for HPC Codecited by 12
- 2024Co-Learning: Code Learning for Multi-Agent Reinforcement Collaborative Framework with Conversational Natural Language Interfacescited by 5
- 2024LLM4VV: Exploring LLM-as-a-Judge for Validation and Verification Testsuitescited by 4
- 2024CI/CD Efforts for Validation, Verification and Benchmarking OpenMP Implementationscited by 1
Built on by
Citing papers per year: 2025: 2; 2026: 3.
5 papers.
- 2026A Survey of Agentic Reasoning for Large Language Models: Towards Recursively Self-Improving and Collective Agentscited by 50
- 2026Code as Agent Harnesscited by 47
- 2025Vibe Coding vs. Agentic Coding: Fundamentals and Practical Implications of Agentic AIcited by 42
- 2025PRAGMA: A Profiling-Reasoned Multi-Agent Framework for Automatic Kernel Optimizationcited by 11
- 2026Improving HPC Code Generation Capability of LLMs via Online Reinforcement Learning with Real-Machine Benchmark Rewardscited by 1
- 2026Code as Agent Harness18 May 2026
- 2026Improving HPC Code Generation Capability of LLMs via Online Reinforcement Learning with Real-Machine Benchmark Rewards12 Feb 2026
- 2026A Survey of Agentic Reasoning for Large Language Models: Towards Recursively Self-Improving and Collective Agents18 Jan 2026
- 2025PRAGMA: A Profiling-Reasoned Multi-Agent Framework for Automatic Kernel Optimization9 Nov 2025
- 2025Vibe Coding vs. Agentic Coding: Fundamentals and Practical Implications of Agentic AI26 May 2025
Similar, not cited
Close in wording, no citation either way
- 2024Self-Organized Agents: A LLM Multi-Agent Framework toward Ultra Large-Scale Code Generation and Optimization
- 2026FormulaCode: Evaluating Agentic Optimization on Large Codebases
- 2025Agentic Auto-Scheduling: An Experimental Study of LLM-Guided Loop Optimization
- 2025TALM: Dynamic Tree-Structured Multi-Agent Framework with Long-Term Memory for Scalable Code Generation
- 2025MapCoder-Lite: Distilling Multi-Agent Coding into a Single Small LLM
- 2025Guided Code Generation with LLMs: A Multi-Agent Framework for Complex Code Tasks
- 2026Beyond Local Code Optimization: Multi-Agent Reasoning for Software System Optimization
- 2025CATArena: Evaluating Evolutionary Capabilities of Code Agents via Iterative Tournaments