EvolveRouter: Co-Evolving Routing and Prompt for Multi-Agent Question Answering

Jiatan Huang, Zheyuan Zhang, Kaiwen Shi, Yanfang Ye, Chuxu ZhangarXiv 2026

TL;DR

EvolveRouter is a novel multi-agent question-answering framework that co-optimizes query routing and agent prompts in a closed-loop process. By using router diagnostics to refine underperforming prompts and dynamically adjusting the number of active agents via answer agreement, it significantly boosts accuracy while slashing computational costs by up to 88%.

What Problem Does This Paper Address?

Deploying multiple Large Language Model (LLM) agents with different backbones and prompting strategies is a powerful way to tackle complex question-answering (QA) tasks. Because different configurations have complementary strengths, a "router" is typically used to send each query to the most suitable agent.

However, current routing methods suffer from two major limitations:

  1. Static Agent Pools: They treat agents as fixed black boxes. They optimize which agent to invoke, but they don't improve how the underlying agents are configured or prompted.
  2. Rigid Collaboration Schemes: They either route a query to a single agent or aggregate answers across a completely fixed pool. This rigid design either misses out on cross-agent expertise or wastes massive amounts of compute on irrelevant models.

Methods

EvolveRouter introduces a two-pronged approach to solve these issues through Router-Prompt Co-Evolution and Adaptive Inference:

  • Heterogeneous Knowledge Graph (KG): To capture the structural relationships between a question and the available models, EvolveRouter represents each QA instance as a graph containing query nodes, agent nodes, and contextual entity nodes.
  • RouterGNN: A graph neural network performs type-aware message passing over this KG to predict query-specific agent suitability scores.
  • Closed-Loop Co-Evolution: Instead of keeping prompts static, the framework alternates between training the router and optimizing prompts. The router identifies agents that underperform despite being heavily relied upon. A rewriter LLM (GPT-4o-mini) then steps in to perform targeted instruction refinement on these specific prompts based on failure diagnostics.
  • Adaptive Inference (Adaptive K): To break away from rigid ensembles, EvolveRouter queries agents sequentially based on their router-predicted rank. It monitors the router-weighted agreement among their answers and dynamically stops querying once a consensus threshold is met, tailoring the compute budget to the difficulty of the query.

Datasets

The authors evaluated their framework across five diverse QA benchmarks:

  • HotpotQA & 2WikiMultihopQA: Challenging datasets requiring multi-hop reasoning across multiple documents.
  • NewsQA & TriviaQA: Benchmarks focused on factual comprehension and retrieval-oriented answering.
  • NGQA & GLEN-Bench: Specialized, domain-specific nutritional health datasets characterized by highly dense and heterogeneous entity interactions.

Key Insights and Ideas

  • Agent Quality is Context-Dependent: Empirical analysis confirms that no single agent configuration consistently wins. Performance varies wildly based on task variation, backbone choice, and minor prompt tweaks.

    Figure 1: Motivating observation: agent quality is highly context-dependent, and no single agent configuration is consistently optimal. Multi-dimensional analysis of per-agent F1 (%) across six agent roles, evaluated along three controlled dimensions: task variation (a), backbone variation (b), and prompt variation (c).
  • Don't Just Fix the Worst Agent: A natural instinct might be to rewrite the prompt of the agent with the lowest overall accuracy. However, EvolveRouter uses a priority score that factors in router weight. If an agent performs poorly but the router already knows to ignore it, fixing it won't help the system. The biggest gains come from fixing agents that the router wants to rely on but which are currently failing.

  • Preserve Routing Knowledge: The authors discovered that retraining the router from scratch after modifying prompts destroys performance. Resuming router training from the previous checkpoint allows the model to maintain stable coordination patterns for unchanged agents while smoothly adapting to the newly refined ones.

Key Results

  • State-of-the-Art Performance: EvolveRouter consistently outperformed strong structure-aware routing baselines (like AgentRouter and GraphRouter) in both F1 score and Exact Match (EM) across all five benchmarks. The most substantial leap occurred on TriviaQA, where it beat AgentRouter by +7.08 F1 and +8.67 EM.
  • Massive Efficiency Gains: Thanks to the Adaptive K stopping rule, the framework reduced the average number of agent calls from 24 down to a range of 2.9–7.4 depending on the dataset. This represents a 69% to 88% reduction in compute cost while maintaining or even exceeding full-ensemble accuracy.

Limitations and Future Work

While highly effective, EvolveRouter currently operates over a predefined, static pool of 24 agent configurations (4 backbones $\times$ 6 prompting roles). The authors note that promising future directions include dynamically expanding the agent pool during the optimization process and incorporating fully automated agent workflow design to discover entirely new reasoning strategies on the fly.

Summary updated

BibTeX
@misc{huang2026evolverouter,
  author = {Jiatan Huang and Zheyuan Zhang and Kaiwen Shi and Yanfang Ye and Chuxu Zhang},
  title = {{EvolveRouter: Co-Evolving Routing and Prompt for Multi-Agent Question Answering}},
  year = {2026},
  eprint = {2604.05149},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2604.05149},
}
Figure