TL;DR
EvoRouter is a self-evolving framework that automates the complex task of configuring multi-agent systems (MAS) for diverse web queries. By distilling high-level routing "insights" into dense, token-level training signals, it achieves a 7.23% accuracy boost over state-of-the-art baselines while slashing computational costs by more than 50%.
What Problem Does This Paper Address?
Modern AI services are moving beyond single-model calls toward Multi-Agent Systems (MAS), where multiple LLMs collaborate using specific modes (like "Debate" or "Chain"), varying agent counts, and specialized skills. However, managing these systems at scale introduces two major hurdles:
- Combinatorial Explosion: The configuration space—choosing the right models, collaboration modes, interaction rounds, and skills—is massive. Finding the optimal setup for a specific query is like finding a needle in a haystack.
- Sparse Supervision: Traditional reinforcement learning (RL) relies on a final "pass/fail" reward. In a complex MAS plan, a failure doesn't tell the router which decision was wrong—was it the model choice, the number of agents, or the collaboration mode?
As shown in the figure below, these highly coupled decisions make it difficult for a router to learn an efficient policy from scratch.
Methods
EvoRouter introduces a self-improvement loop driven by Insight-Guided On-Policy Distillation (OPD). The framework operates in an iterative cycle:
- Insight Extraction: A dedicated "expert" LLM analyzes historical execution trajectories across different tasks. It identifies patterns such as "scaling saturation" (where adding more agents stops helping) and "combinatorial synergy" (how specific models pair with specific modes).
- On-Policy Distillation (OPD): During training, a privileged "teacher" model receives these distilled insights along with the actual execution feedback. It then provides dense, token-level supervision to the "student" router as it generates new plans. This transforms sparse rewards into a rich learning signal for every step of the planning process.
- Cost-Aware RL: The system uses a group-relative policy optimization (similar to GRPO) with a utility function that penalizes excessive compute. This ensures the router doesn't just pick the most expensive models for every query but finds the "sweet spot" on the accuracy-cost curve.
Datasets
The authors evaluated EvoRouter on a massive benchmark of 21 datasets across seven domains:
- In-Domain: Math (MATH, GSM8K), Commonsense (ARC-C, StrategyQA), Knowledge (MMLU-Pro, GPQA), Retrieval (HotpotQA, PopQA), and Multimodal (ChartQA, MMMU).
- Out-of-Domain (Generalization): Code generation (LiveCodeBench) and logical reasoning (BBH-LD).
- Total Scale: 12,800 questions were used for training and evaluation.
Key Insights and Ideas
The researchers identified three critical "aha moments" regarding MAS configuration that guided their design:
- Task-Dependent Scaling: Not all tasks benefit equally from more resources. For example, switching to a more complex collaboration mode significantly boosts performance in Multimodal tasks but can actually degrade performance in simple QA tasks.
- Diminishing Marginal Returns: There is a "peak" for interaction rounds and agent counts. Beyond this point, adding more agents increases cost and introduces noise that can lower accuracy.
- Combinatorial Synergy: The effectiveness of a model depends on the collaboration mode. A team of smaller models might outperform a team of large models in a "Debate" setting while being significantly cheaper.
Key Results
EvoRouter consistently dominates the Pareto frontier, providing the best balance of performance and efficiency:
- Superior Accuracy: It achieved an average in-domain accuracy of 68.69%, outperforming the strongest multi-agent routing baseline (RCR-Router) by 7.23 percentage points.
- Massive Cost Savings: While improving accuracy, it reduced the mean MAS execution cost by 50.95%. Even when accounting for the router's own overhead, the total system cost remained significantly lower than competitors.
- Robust Generalization: In zero-shot tests on unseen domains (Code and Logic), EvoRouter outperformed baselines by up to 12 percentage points, proving that its learned orchestration strategies are transferable.
Limitations and Future Work
While EvoRouter excels in cloud-based environments, the authors note a few areas for future exploration:
- Edge Constraints: The current framework does not explicitly account for device-specific hardware constraints or the network latency involved in inter-agent communication, which is vital for edge computing.
- Fixed Worker Pool: The study focused on routing queries to a fixed set of models and skills. A promising next step is "co-evolution," where the skills of the worker agents are updated alongside the router's policy.
Summary updated