SwiftSolve: A Self-Iterative, Complexity-Aware Multi-Agent Framework for Competitive Programming
On the map: LLM agents and tool use → Software engineering coding agents
Abstract (arXiv)
Correctness alone is insufficient: LLM-generated programs frequently satisfy unit tests while violating contest time or memory budgets. We present SwiftSolve, a complexity-aware multi-agent system for competitive programming that couples algorithmic planning with empirical profiling and complexity-guided repair. We frame competitive programming as a software environment where specialized agents act as programmers, each assuming roles such as planning, coding, profiling, and complexity analysis. A Planner proposes an algorithmic sketch; a deterministic Static Pruner filters high-risk plans; a Coder emits ISO C++17; a Profiler compiles and executes candidates on a fixed input-size schedule to record wall time and peak memory; and a Complexity Analyst fits log-log growth (s, R2) with an LLM fallback to assign a complexity class and dispatch targeted patches to either the Planner or Coder. Agents communicate via typed, versioned JSON; a controller enforces iteration caps and diminishing returns stopping. Evaluated on 26 problems (16 BigO, 10 Codeforces Div. 2) in a POSIX sandbox (2 s / 256-512 MB), SwiftSolve attains pass@1 = 61.54% (16/26) on the first attempt and Solved@<=3 = 80.77% with marginal latency change (mean 11.96 s to 12.66 s per attempt). Aggregate run-level success is 73.08% at 12.40 s mean. Failures are predominantly resource-bound, indicating inefficiency rather than logic errors. Against Claude Opus 4, SwiftSolve improves run-level success (73.1% vs 52.6%) at approximately 2x runtime overhead (12.4 s vs 6.8 s). Beyond correctness (pass@k), we report efficiency metrics (eff@k for runtime and memory, incidence of TLE or MLE, and complexity fit accuracy on BigO), demonstrating that profiling and complexity-guided replanning reduce inefficiency while preserving accuracy.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Placed in Software engineering coding agents, one of 16 directions in LLM agents and tool use. Builds on 13 of its 16 references that are in the map. First posted on arXiv 26 Oct 2025.
Builds on
13 of 16 references.
Closest ancestors · 4
Same direction, newest first
- 2025CODESIM: Multi-Agent Code Generation and Problem Solving through Simulation-Driven Planning and Debugging8 Feb
- 2025CodeCoR: An LLM-Based Self-Reflective Multi-Agent Framework for Code Generation14 Jan
- 2024MapCoder: Multi-Agent Code Generation for Competitive Problem Solving18 May
- 2024Self-Organized Agents: A LLM Multi-Agent Framework toward Ultra Large-Scale Code Generation and Optimization2 Apr
Other references · 9
- 2023Reflexion: Language Agents with Verbal Reinforcement Learningcited by 4,276
- 2023MetaGPT: Meta Programming for A Multi-Agent Collaborative Frameworkcited by 1,808
- 2024How Efficient is LLM-Generated Code? A Rigorous & High-Standard Benchmarkcited by 43
- 2024EffiLearner: Enhancing Efficiency of Generated Code via Self-Optimizationcited by 30
- 2024Performance-Aligned LLMs for Generating Fast Codecited by 21
- 2025BigO(Bench): Can LLMs Generate Code with Controlled Time and Space Complexity?cited by 12
- 2025Enhancing LLM-Based Code Generation with Complexity Metrics: A Feedback-Driven Approachcited by 10
- 2025LLM-ProS: Analyzing Large Language Models' Performance in Competitive Problem Solvingcited by 6
- 2025Evaluating and Improving Large Language Models for Competitive Program Generationcited by 3
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2026MARS: Multi-Specialist LLM Relay System for Competitive Programming
- 2026CP-Agent: A Calibrated Risk-Controlled Agent for Feedback-Driven Competitive Programming
- 2026Scaling Agentic Verifier for Competitive Coding
- 2026Solvita: Enhancing Large Language Models for Competitive Programming via Agentic Evolution
- 2026ARIADNE: Agentic Reward-Informed Adaptive Decision Exploration via Blackboard-Driven MCTS for Competitive Program Generation
- 2026When Independent Sampling Outperforms Agentic Reasoning
- 2025PlanGEN: A Multi-Agent Framework for Generating Planning and Reasoning Trajectories for Complex Problem Solving
- 2026MAS-Algorithm: A Workflow for Solving Algorithmic Programming Problems with a Multi-Agent System