TL;DR
Imagine hiring a custom software and math team on the fly from a pool of 300 specialized AI agents—without going bankrupt paying an LLM to interview every single candidate. SMART solves the multi-agent matchmaking problem by separating high-level org-chart planning from an ultra-fast, LLM-free tree search that assigns roles using lightweight agent "resumes" (metadata). The result is smarter AI collaboration that achieves state-of-the-art accuracy at a fraction of the time and API cost.
What Problem Does This Paper Address?
Multi-agent systems—where specialized LLM personas collaborate like a miniature company—are great at solving complex problems. Historically, researchers relied on fixed teams (e.g., one coder, one tester) with hard-coded communication loops.
However, we are rapidly moving toward an open "Agentic Web" containing thousands of specialized agents and tools varying wildly in cost, speed, and capability. The bottleneck is no longer just coordinating a fixed team; it is dynamic team formation. How do you select the right specialists from a massive pool and assign them sequentially as a task unfolds? Existing search-based orchestrators use LLMs inside the search loop to evaluate candidates or simulate outcomes. As the candidate pool grows, making LLM calls just to decide who acts next becomes prohibitively slow and expensive.
Methods
SMART (Scalable Multi-Agent Role-conditioned Teaming) decouples macro-level workflow design from micro-level agent selection across three stages:
- Task-Conditioned Topology Planning: Given a prompt, an LLM planner chooses a macro collaboration style (single-agent, centralized, decentralized, or parallel) and activates a compact subset of functional roles (like
planner,builder,checker). - Candidate Construction: For the active role, SMART uses standard vector retrieval (ANN) to grab relevant agents, applies Maximal Marginal Relevance (MMR) to ensure candidates aren't near-duplicates, and filters them down using a quick metadata score (balancing skill match against cost and latency).
- LLM-free MCTS (The Core Novelty): Instead of prompting an LLM to pick the best agent from the shortlist, SMART runs Monte Carlo Tree Search (MCTS) locally using structured agent metadata cards. It simulates how well a team will click using a four-part proxy reward:
- Unary quality: Does the agent fit the role in isolation?
- Transition compatibility: Based on past runs, do these specific agents collaborate well?
- I/O-chain compatibility: Can Agent B actually read the output format and modalities produced by Agent A?
- Artifact-gap reduction: Does this agent have the tools to check off what is still missing from the task state (tracked via a Boolean "gap vector")?
LLMs are only called once to plan the topology and when a chosen agent actually executes its work—never during tree search.
Datasets
SMART is evaluated entirely zero-shot (no training on benchmark instances) across seven established suites:
- Math & Reasoning: GSM8K, MATH (specifically the challenging Level 5 subset), and the text-only math problems of Humanity’s Last Exam (HLE).
- Code Generation: HumanEval, MBPP, and BigCodeBench-Instruct.
- Multi-hop QA: HotpotQA (distractor setting).
To make this study possible, the authors also synthesized a new controlled ecosystem of 300 specialized math and coding agents, each equipped with 5 executable tools and a structured metadata card.
Key Insights and Ideas
- Stacking stars makes a bad team: Just as in human organizations, picking the highest-scoring individual for each step fails if handoffs break. Removing SMART's I/O compatibility or gap-tracking rewards noticeably degrades code-generation accuracy—proving that team complementarity beats raw individual retrieval.
- Bigger pools actually make workflows faster: Counterintuitively, scaling the agent pool from 10 to 300 caused total task completion time to drop from 136s to 102s. Because MCTS adds negligible overhead (growing from just 66ms to 138ms per step), having a richer pool lets SMART find the exact right specialist on the first try, avoiding costly LLM retries.
- Metadata proxies real success: The simple, rule-based MCTS step reward correlates strongly with actual downstream task execution success ($r = 0.814$), validating that you don't need an LLM judge inside your search tree.
Key Results
Using gpt-4o-mini, SMART beats 14 fixed and autonomous workflow baselines across GSM8K (93.64%), MATH (61.73%), HumanEval (93.89%), and MBPP (87.68%). Giving SMART access to a heterogeneous pool of four different LLM backbones pushes the average score even higher to 85.15% without increasing API costs, placing it squarely on the cost-performance Pareto frontier.
On harder, open-ended benchmarks, SMART's lead over an online GPT-4o router widens while cutting API costs by 22%–37%:
- BigCodeBench-Instruct: 62.5% Pass@1 (vs. 54.5% for GPT-4o router).
- HotpotQA: 69.3 Joint F1 (vs. 62.6).
- HLE Math (using
gpt-5-mini): 29.33% accuracy (vs. 21.67%).
Best of all, SMART's LLM-free selector takes ~105–138ms per step, whereas a GPT-4o router takes ~1,850–2,140ms—over an order of magnitude speedup in orchestration latency.
Limitations and Future Work
- Synthetic Ecosystem: The 300-agent pool is clean and controlled. It omits the messy realities of live third-party APIs—such as network failures, authentication hurdles, and service drift—and 300 is still modest compared to future web-scale ecosystems.
- Needs Checkable Progress: The "gap reduction" reward requires tasks with verifiable intermediate states (like missing unit tests or unverified facts). Subjective tasks like free-form creative writing lack checkable gaps and are out of scope.
- Irreversible Filtering: If Stage 2's initial vector retrieval filters out a crucial agent, Stage 3's MCTS can never recover it.
Future work points toward live tool-use environments, multimodal tasks, and long-horizon web navigation.
Summary updated