Abstract
Multi-agent systems (MAS) for Large Language Models (LLMs) typically rely on static, human-designed workflows that suffer from a "coordination tax," leading to inefficiency as task complexity increases. We present Puppeteer, a reinforcement learning framework that dynamically orchestrates specialized agents. By optimizing a central policy to balance accuracy and computational cost, Puppeteer learns to activate specific agents in real-time, evolving more compact and efficient reasoning structures. Our results across diverse benchmarks show that Puppeteer significantly outperforms static baselines while reducing token consumption and redundant agent activations.
Introduction
While Large Language Models (LLMs) have demonstrated remarkable capabilities, a single monolithic model often struggles with complex, multi-step reasoning. Current Multi-Agent Systems (MAS) address this by distributing tasks among specialized agents. However, these systems often rely on static topologies—fixed chains or trees of communication designed by human intuition. These rigid structures are frequently suboptimal, leading to redundant processing and high computational costs.
This research addresses the fundamental question: Can we move away from fixed workflows and allow a system to learn the most efficient way to organize itself in real-time? We introduce the Puppeteer framework, which treats multi-agent collaboration as a sequential decision-making problem solvable through reinforcement learning.
The Puppeteer Framework
The Puppeteer framework consists of three core components designed to facilitate adaptive collaboration:
- The Puppeteer (Central Orchestrator): A centralized policy, initialized with a Llama-3.1-70B variant, that observes the current task state and selects which specialized agent to activate next.
- The Puppets (Specialized Agents): A diverse pool of agents defined by their underlying model (e.g., GPT-4, Llama-3), reasoning patterns (e.g., critique, summarize, decompose), and available tools (e.g., Python, Web Search).
- Adaptive Evolution via RL: The system utilizes the REINFORCE algorithm to optimize the puppeteer. The reward function is specifically designed to balance performance and efficiency: $$Reward = Accuracy - \lambda \cdot Cost$$ This objective function incentivizes the puppeteer to achieve high accuracy while minimizing token usage and the number of agent calls.
Experimental Evaluation
The framework was evaluated across two distinct subspaces: Mimas (smaller, open-source models) and Titan (large-scale frontier models). Testing was conducted on four demanding benchmarks:
- GSM-Hard: Arithmetic problems involving large numbers and multi-step logic.
- MMLU-Pro: A rigorous academic benchmark spanning diverse subjects.
- SRDD: Real-world textual software requirements and code generation tasks.
- CommonGen-Hard: Creative sentence generation requiring the connection of unrelated concepts.
Results and Key Insights
Structural Compaction and Efficiency
As the Puppeteer evolves through training, the reasoning structures become progressively more compact. The system learns to "cut the strings" of redundant agents, identifying shorter, more direct paths to the solution. In the Titan subspace, average performance improved from 0.6893 to 0.7731 while simultaneously reducing token consumption.
The Emergence of Cyclicality
Interestingly, the most effective evolved structures were not simple linear chains. The system naturally developed cyclic reasoning, where agents revisit previous collaborators for verification and refinement. This mimics human "double-check" processes and proved more robust than human-designed static graphs.
Capacity-Based Strategies
The Puppeteer adapts its strategy based on the available model capacity. In the high-capacity Titan subspace, it learned to terminate reasoning early once high confidence was reached. Conversely, in the lower-capacity Mimas subspace, it utilized longer reasoning chains but prioritized lower-cost agents to maintain efficiency.
Conclusion and Future Work
Puppeteer demonstrates that dynamic, learned orchestration is superior to static multi-agent designs. By treating collaboration as a learnable policy, the system achieves higher accuracy with lower overhead. Future research will explore fine-grained, step-level supervision to accelerate training and investigate dynamic agent creation, where the Puppeteer can modify or generate new specialized agents on the fly to meet specific task demands.
Summary updated