Learning to Orchestrate Heterogeneous Agents under Uncertainty

Mary Chriselda Antony Oliver, Lan Jiang, Elaf Almahmoud, Francesco Quinzan, Umang Bhatt

TL;DR

The paper introduces BOT-Orch, a framework that treats AI agent orchestration as a multi-armed bandit problem regularized by Optimal Transport (OT). By looking at the distribution of an agent's outputs rather than just their average performance, BOT-Orch achieves superior task routing across stationary and evolving environments, outperforming current LLM-routing baselines.

What Problem Does This Paper Address?

In the current AI landscape, we rarely use just one model. We use "ensembles" or "teams" of specialized agents (e.g., different LLMs, vision models, or tools) with varying costs, speeds, and reliability. The challenge is orchestration: deciding which agent should handle a specific task at any given moment.

Most existing routers focus on simple metrics like mean accuracy or cost. However, agents are heterogeneous—one might be highly accurate but prone to "flaking out" (high variance/latency), while another is mediocre but consistent. Furthermore, agent performance isn't static; it shifts over time. The authors identify a gap: current orchestration doesn't explicitly model the uncertainty in agent reliability or the geometric alignment between what a task requires and what an agent typically produces.

Methods

The authors propose BOT-Orch (Bandit-OT Orchestration), which combines three sophisticated mathematical tools:

  1. Multi-Armed Bandits (MAB): The framework treats each agent as an "arm." It learns which agent to pick by balancing exploration (trying new agents) and exploitation (using known good ones).
  2. Optimal Transport (OT) Regularization: This is the "secret sauce." Instead of just looking at a single score, BOT-Orch calculates the Wasserstein distance between an agent’s output distribution and a task’s reference distribution. This captures "higher-order" characteristics like skewness or bimodality that a simple average would miss.
  3. Survival-Based Rewards: To handle agents that might take too long or fail to respond (censoring), the authors use survival analysis. This turns "time-to-completion" into a reward signal that naturally accounts for reliability and latency.

The researchers proved that this approach achieves sublinear $O(\sqrt{T})$ regret, meaning the system's performance converges toward an "oracle" that has perfect information about the agents.

Datasets

The framework was evaluated using a mix of synthetic and semi-synthetic benchmarks designed to test robustness under "non-i.i.d." (non-stationary) conditions:

  • Synthetic Streams: Five environments (IID-G, IID-M, NonIID-PS, NonIID-SD, NonIID-BB) where agent rewards were drawn from Gaussian or "half-moon" distributions. These included scenarios with "piecewise-stationary" shifts (sudden changes) and "Brownian bridge" dynamics (smoothly evolving performance).
  • Semi-synthetic MNIST: A task stream using MNIST digit images. Tasks were transformed (cleaned, noisy, or rotated) to create sub-domains. Agents were simulated classifiers with varying reliability and latency across these domains.

Key Insights and Ideas

  • Distribution Matters More Than Means: Two agents might have the same average accuracy, but one might be "bimodal" (perfect on half the tasks, failing the other half). BOT-Orch uses OT to detect these structural differences, allowing it to pick the agent whose "style" best matches the task.
  • The "Alignment Skyline": In experiments, an "OT-only" heuristic (which ignores rewards and only looks at distributional alignment) was often the runner-up. This suggests that the geometric alignment between task and agent is a dominant signal for effective routing.
  • Robustness to Noise: The authors proved that BOT-Orch is robust to "noisy alignment." Even if the Wasserstein distance measurements are slightly off, the system maintains a high probability of picking the correct agent.
  • Efficiency at Scale: While calculating exact Optimal Transport can be computationally expensive, the authors show that "cheap" surrogates like Sliced-Wasserstein are ~164x faster while maintaining 94% of the routing accuracy.

Key Results

  • Superior Utility: BOT-Orch achieved the highest cumulative net utility across all tested environments, beating ten baselines including standard bandits (UCB1, Thompson Sampling), contextual bandits (LinUCB), and specialized LLM routers like RouteLLM and FrugalGPT.
  • Regret Reduction: In the MNIST semi-synthetic tests, BOT-Orch improved over the strongest competitor (OT-only) by a significant margin (+16.7 net utility in IID and +31.4 in Non-IID settings).
  • Adaptability: The system successfully navigated "regime shifts" where agent performance changed over time, whereas traditional reward-only bandits struggled to keep up.

Limitations and Future Work

  • Reference Distributions: The current model assumes we have "task-specific reference distributions." While the authors suggest these can be approximated using Wasserstein barycenters of past tasks, this adds a layer of complexity in completely cold-start scenarios.
  • Fixed Agent Pool: The paper focuses on a static set of agents. In the real world, new models are released weekly. Extending BOT-Orch to handle "dynamic pools" (adding/removing agents on the fly) is a noted area for future research.
  • Combinatorial Selection: Currently, BOT-Orch selects a single agent. The authors leave "aggregation"—selecting a subset of agents and combining their outputs—for future work.

Summary updated

BibTeX
@inproceedings{oliver2026learning,
  author = {Mary Chriselda Antony Oliver and Lan Jiang and Elaf Almahmoud and Francesco Quinzan and Umang Bhatt},
  title = {{Learning to Orchestrate Heterogeneous Agents under Uncertainty}},
  booktitle = {SCALE @ ICML},
  year = {2026},
  url = {https://openreview.net/forum?id=l4TnpuiC2j},
}
Figure