Efficient and Interpretable Multi-Agent LLM Routing via Ant Colony Optimization

Xudong Wang, Chaoning Zhang, Jiaquan Zhang, Chenghao Li, Qigan Sun, Sung-Ho Bae, Peng Wang, Ning Xie, Jie Zou, Yang Yang, Hengtao Shen

TL;DR

AMRO-S introduces a highly efficient and interpretable routing framework for Multi-Agent LLM Systems (MAS) by framing routing as path selection on a directed graph optimized via Ant Colony Optimization (ACO). By combining a lightweight intent-routing small language model with task-isolated pheromone matrices and asynchronous background updates, it achieves up to a 4.7× speedup under high concurrency while significantly improving accuracy and cost-efficiency across diverse benchmarks.

What Problem Does This Paper Address?

Multi-Agent Systems (MAS) leverage pools of heterogeneous LLMs to solve complex tasks by breaking them down into subtasks. However, routing queries to the right sequence of agents is a major bottleneck.

Current engineering solutions rely on either static, rigid rules (which fail under dynamic loads or shifting task distributions) or expensive, slow LLM-based selectors that act as black boxes. Under high concurrency, these methods suffer from high latency, massive token costs, or degraded accuracy due to a lack of semantic awareness and poor load balancing. The authors address a critical question: How can we balance quality, cost, and latency in a transparent, dynamic routing system under time-varying conditions and mixed user intents?

Methods

The authors propose AMRO-S, which models routing as a path-finding problem on a layered directed graph where nodes represent specific combinations of backbone models, reasoning policies, and role prompts.

The framework is driven by three core mechanisms:

  1. SLM Task Router: A small language model (e.g., Llama-3.2-1B) fine-tuned via Supervised Fine-Tuning (SFT) to predict a query's task-mixture distribution (e.g., math vs. code). This provides a low-overhead semantic anchor.
  2. Multi-Task Pheromone Specialists: Inspired by biological ant colonies, the system maintains independent pheromone matrices for different tasks to avoid cross-task interference. At inference time, these matrices are fused dynamically based on the SLM's predicted weights.
  3. Quality-Gated Asynchronous Evolution: To avoid online latency overhead, the system decouples inference from learning. An offline warm-up initializes the pheromones using labeled data, while an online asynchronous bypass uses a lightweight LLM-Judge to filter out low-quality trajectories and update the pheromone specialists in the background.
Architecture of AMRO-S showing offline phase, online phase, and quality-gated asynchronous evolution.

Datasets

The framework was validated across five diverse public benchmarks:

  • GSM8K: Primary school math word problems.
  • MMLU: Multi-task language understanding across 57 categories.
  • MATH: High-school competition-level math problems.
  • HumanEval: Python coding problems with unit tests.
  • MBPP: Short Python programs for basic coding.

Additionally, a specialized training set ($D_{\text{router}}$) of 3,000 instructions was curated via GPT-4o to fine-tune the SLM router.

Key Insights and Ideas

  • Decoupling Learning from Inference: Traditional reinforcement learning or dynamic updating in LLM routing adds prohibitive latency. AMRO-S solves this by running updates asynchronously in the background via a FIFO buffer, meaning the user-facing path selection remains lightning-fast.
  • The Power of "Pheromone Specialists": Instead of a single global routing policy, factorizing routing memory into task-specific pheromone matrices prevents a "math" strategy from polluting a "coding" strategy, allowing smooth interpolation for mixed-intent queries.
  • White-Box Interpretability: Unlike deep learning routers that act as black boxes, the converged pheromone matrices can be visualized as heatmaps. This reveals clear, traceable division-of-labor strategies (e.g., early stages focusing on problem decomposition, later stages on precise execution).

Key Results

  • State-of-the-Art Performance: AMRO-S achieved an overall average score of 87.83 across the five benchmarks, outperforming the strongest multi-agent routing baseline, MasRouter (85.93), and approaching the performance of expensive reference models like GPT-4o (87.76).
  • High Concurrency Scalability: In stress tests scaling up to 1000 parallel processes, AMRO-S delivered up to a 4.7× speedup while maintaining stable accuracy (96.40% on GSM8K), whereas standard round-robin baselines saw accuracy drop significantly under load.
  • Plug-and-Play Adaptability: When integrated into existing MAS frameworks (MacNet, GPTSwarm, HEnRY), AMRO-S consistently improved accuracy while reducing inference costs.

Limitations and Future Work

  • Predefined Task Sets: The system relies on a predefined task set ($T$) for the pheromone specialists; extending this to open-domain or dynamically discovered task categories remains an open challenge.
  • LLM-Judge Dependency: While the asynchronous update mechanism prevents online latency overhead, the framework still requires an LLM-Judge for binary quality assessment during the background evolution phase, which incurs a minor background computational cost.

Summary updated

BibTeX
@misc{wang2026efficient,
  author = {Xudong Wang and Chaoning Zhang and Jiaquan Zhang and Chenghao Li and Qigan Sun and Sung-Ho Bae and Peng Wang and Ning Xie and Jie Zou and Yang Yang and Hengtao Shen},
  title = {{Efficient and Interpretable Multi-Agent LLM Routing via Ant Colony Optimization}},
  year = {2026},
  eprint = {2603.12933},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2603.12933},
}
Figure