SwiftSolve: A Self-Iterative, Complexity-Aware Multi-Agent Framework for Competitive Programming
Adhyayan Veer Singh, Aaron Shen, Brian Law, Ahmed Ismail, Jonas Rohweder, Sean O'Brien, and Kevin Zhu

TL;DR
SwiftSolve is a multi-agent framework that enhances competitive programming by integrating algorithmic planning, empirical profiling, and complexity-aware repairs to improve correctness and efficiency of generated solutions.
Contribution
It introduces a novel multi-agent system that combines complexity analysis with empirical profiling to improve the correctness and resource efficiency of AI-generated code in competitive programming.
Findings
Achieves 61.54% pass@1 on first attempt in competitive problems.
Improves run-level success to 73.08% with minimal latency increase.
Reduces inefficiency by complexity-guided replanning while maintaining accuracy.
Abstract
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.…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
