MARCO: Multi-Agent Code Optimization with Real-Time Knowledge Integration for High-Performance Computing

Asif Rahman, Veljko Cvetkovic, Kathleen Reece, Aidan Walters, Yasir Hassan +5 more
5/6/2025
cs.DCcs.LGcs.SE

No confident code implementation found for this paper. 4 possible matches can be shown below.

Abstract

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.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 4 weaker matches are hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{rahman2025marco,
  title  = {MARCO: Multi-Agent Code Optimization with Real-Time Knowledge Integration for High-Performance Computing},
  author = {Asif Rahman and Veljko Cvetkovic and Kathleen Reece and Aidan Walters and Yasir Hassan and Aneesh Tummeti and Bryan Torres and Denise Cooney and Margaret Ellis and Dimitrios S. Nikolopoulos},
  year   = {2025},
  eprint = {2505.03906},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2505.03906v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2505.03906.svg)](https://codeofpaper.com/paper/2505.03906)

Discussion