Executive Summary
Large Language Model (LLM)-driven multi-agent systems (MAS) have shown great promise in solving complex, "competition-level" programming challenges. However, existing systems typically rely on static communication graphs that waste computational resources on simple tasks and create bottlenecks for complex ones. AgentConductor addresses this by introducing a reinforcement learning-optimized framework where an LLM "orchestrator" dynamically designs and evolves multi-agent workflows. By tailoring the complexity of the agent team to the difficulty of the problem and refining the structure based on execution feedback, AgentConductor achieves up to a 14.6% performance boost on competitive programming benchmarks while slashing token costs by 68%.
The Challenge: Rigid Topologies in Multi-Agent Systems
When tackling multi-step challenges found on platforms like Codeforces or LeetCode, multi-agent systems usually coordinate specialized agents through predefined topologies—such as a simple chain, a hierarchical tree, or a fully connected mesh.
This "one-size-fits-all" approach suffers from two major flaws:
- Rigidity vs. Difficulty: Easy problems do not require a massive team of agents; deploying a complex mesh for a simple task wastes tokens. Conversely, hard problems might be stifled by an overly simplistic chain.
- Lack of Feedback Loops: Most current systems generate a workflow once. If the resulting code fails a test case, the system does not "rethink" its team structure; it simply retries the task using the same flawed plan.
The core challenge lies in creating a system capable of automatically generating task-specific topologies that scale in density according to difficulty and evolve in response to real-world execution feedback.
Introducing AgentConductor
AgentConductor centers on an LLM-based "Orchestrator Agent" (utilizing a Qwen-2.5-3B backbone) that enables end-to-end, feedback-driven dynamic generation of interaction topologies. For each query, the orchestrator infers necessary agent roles and task difficulty, then constructs a task-adapted, density-aware layered Directed Acyclic Graph (DAG).
The framework is trained and deployed across three main stages:
- Stage 1: Supervised Fine-Tuning (SFT): The orchestrator is trained on a corpus of 4,500 interaction graphs represented in YAML. This teaches the model the "grammar" of designing a DAG of agents, allowing it to reason about dependencies effectively.
- Stage 2: RL with GRPO: The model is further optimized using Group Relative Policy Optimization (GRPO). The reward function is multi-objective, balancing code accuracy, structural correctness of the YAML, and a novel topology density function.
- Stage 3: Dynamic Evolution: During inference, the orchestrator estimates task difficulty (Easy, Medium, Hard) and generates an initial YAML plan. If the code fails in a sandbox environment, the orchestrator receives the error logs and generates a second-turn topology to fix the issue—for example, introducing a
debuggerorsearcheragent specifically to address the error.
Key Innovation: The Density Reward
To prevent the model from defaulting to maximum complexity for every task, the authors designed a reward that penalizes unnecessary communication. They implemented "difficulty interval partitioning" to set density upper bounds based on the problem's complexity:
- Easy: Maximum 4 nodes.
- Medium: Maximum 7 nodes.
- Hard: Maximum 10 nodes.
By forcing the model to be "lazy" on easy problems, it actually became more robust at identifying when a hard problem truly required a complex, multi-agent reasoning chain.
Results: Superior Accuracy with Drastically Lower Costs
The framework was evaluated across five diverse code generation datasets, including Contest-Level (APPS, LiveCodeBench, CodeContests) and Basic (HumanEval, MBPP) benchmarks.
AgentConductor consistently outperformed state-of-the-art baselines like MetaGPT, OpenAGI, and Chain-of-Agents:
- Accuracy: On the highly challenging APPS dataset, AgentConductor reached a 58.8% pass@1, outperforming the strongest baseline by 14.6% absolute percentage points.
- Efficiency: It achieved these results with 13% lower topology density and a staggering 68% reduction in token costs compared to the best-performing baselines.
- Zero-Shot Generalization: To test cross-domain transfer, the orchestrator was evaluated on non-coding tasks (GAIA, HLE, PopQA). Despite being trained on code, it successfully managed "unseen" roles (like a visual checker) in the GAIA dataset, outperforming a 7B-parameter model using only its 3B-parameter backbone.
Limitations and Future Directions
While AgentConductor represents a significant leap in multi-agent orchestration, the authors note a few limitations. Currently, the implementation is restricted to two turns of evolution to keep inference costs manageable; future work could explore deeper iterative loops for "Grandmaster-level" problems. Additionally, the system relies heavily on the orchestrator's ability to follow complex YAML schemas, meaning models smaller than 3B parameters might struggle with the structural logic. Finally, the orchestrator currently estimates difficulty statically at the start of the process. A more fluid system could update its difficulty assessment mid-process based on how much the agents are struggling, further optimizing resource allocation.
Summary updated