MARS: Multi-Specialist LLM Relay System for Competitive Programming
Not on the map. Why?
Abstract (arXiv)
Large Language Models excel at code generation, yet competitive programming exposes a persistent failure mode: existing multi-agent pipelines distribute work over generic planner, coder, and debugger roles and delegate the choice of algorithmic technique to the backbone alone. We present MARS (Multi-Agent Relay of Specialized LLMs), a prompt-only framework in which each agent is a topic specialist---dynamic programming, graphs, strings, geometry, and so on---grounded by retrieval-augmented generation over an algorithm-theory corpus. Given a problem, retrieval selects a small team of relevant specialists; a starter writes an initial C++17 solution, and each subsequent turn runs the candidate against public examples in a sandbox, lets the active specialist keep, repair, or hand off the draft, and forwards a structured packet to the next specialist. A single infrastructure-fixer pass normalizes boilerplate at the end. On the CodeContests test split with Gemma 4, MARS reaches 0.624 ± 0.006 pass rate at 2.3 recorded pipeline stages per task (+14.4 percentage points over direct prompting), closing most of the gap to CodeSIM (0.731) at 3.3× lower wall-clock cost and substantially smaller variance in per-task token spend. The source code is available on GitHub: https://github.com/fckand/mars.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 26 of its 39 references that are in the map. First posted on arXiv 24 Aug 2026.
Builds on
26 of 39 references.
References · 26
- 2021Evaluating Large Language Models Trained on Codecited by 8,053
- 2023Reflexion: Language Agents with Verbal Reinforcement Learningcited by 4,064
- 2023Self-Refine: Iterative Refinement with Self-Feedbackcited by 3,317
- 2024LiveCodeBench: Holistic and Contamination Free Evaluation of Large Language Models for Codecited by 1,906
- 2022Competition-Level Code Generation with AlphaCodecited by 1,427
- 2023Teaching Large Language Models to Self-Debugcited by 963
- 2023AgentVerse: Facilitating Multi-Agent Collaboration and Exploring Emergent Behaviorscited by 580
- 2025Multi-Agent Collaboration Mechanisms: A Survey of LLMscited by 424
- 2024Mixture-of-Agents Enhances Large Language Model Capabilitiescited by 420
- 2022CodeT: Code Generation with Generated Testscited by 369
- 2023RepoCoder: Repository-Level Code Completion Through Iterative Retrieval and Generationcited by 357
- 2023MedAgents: Large Language Models as Collaborators for Zero-shot Medical Reasoningcited by 311
14 more
- 2023AutoAgents: A Framework for Automatic Agent Generationcited by 211
- 2024MapCoder: Multi-Agent Code Generation for Competitive Problem Solvingcited by 177
- 2022DocPrompting: Generating Code by Retrieving the Docscited by 151
- 2021Retrieval Augmented Code Generation and Summarizationcited by 148
- 2024Debug like a Human: A Large Language Model Debugger via Verifying Runtime Execution Step-by-stepcited by 123
- 2024Internet of Agents: Weaving a Web of Heterogeneous Agents for Collaborative Intelligencecited by 80
- 2024MACM: Utilizing a Multi-Agent System for Condition Mining in Solving Complex Mathematical Problemscited by 41
- 2025X-MAS: Towards Building Multi-Agent Systems with Heterogeneous LLMscited by 33
- 2025CODESIM: Multi-Agent Code Generation and Problem Solving through Simulation-Driven Planning and Debuggingcited by 31
- 2024A Pair Programming Framework for Code Generation via Multi-Plan Exploration and Feedback-Driven Refinementcited by 21
- 2026Graph-of-Agents: A Graph-based Framework for Multi-Agent LLM Collaborationcited by 15
- 2025MaintainCoder: Maintainable Code Generation Under Dynamic Requirementscited by 13
- 2025Xolver: Multi-Agent Reasoning with Holistic Experience Learning Just Like an Olympiad Teamcited by 13
- 2026Solvita: Enhancing Large Language Models for Competitive Programming via Agentic Evolutioncited by 3
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2025SwiftSolve: A Self-Iterative, Complexity-Aware Multi-Agent Framework for Competitive Programming
- 2025CodeContests+: High-Quality Test Case Generation for Competitive Programming
- 2025Lessons Learned: A Multi-Agent Framework for Code LLMs to Learn and Improve
- 2025Can Multi-turn Self-refined Single Agent LMs with Retrieval Solve Hard Coding Problems?
- 2025Evaluating and Improving Large Language Models for Competitive Program Generation
- 2026Scaling Agentic Verifier for Competitive Coding
- 2026A-ProS: Towards Reliable Autonomous Programming Through Multi-Model Feedback
- 2025Enhancing LLM Code Generation: A Systematic Evaluation of Multi-Agent Collaboration and Runtime Debugging for Improved Accuracy, Reliability, and Latency