HACO: Hedged Agent Computing for Reliable LLM Systems

Enhan Li, Hongyang DuNeurIPS 2026

TL;DR

When AI agents tackle multi-step workflows in the real world, they don’t just fail because of flawed model reasoning—they fail because datacenters lag, APIs drop requests, and networks get congested. HACO (Hedged Agent Computing) borrows a classic trick from distributed systems—hedged concurrent execution—to dynamically send agent tasks to small, calculated sets of backup deployments simultaneously. It delivers near-bulletproof reliability and higher output quality without paying the exorbitant token and latency costs of running every available model in parallel.

What Problem Does This Paper Address?

Imagine building a software-engineering team of Large Language Model (LLM) agents: a Planner, a Coder, and a Debugger. Most multi-agent systems (MAS) treat the underlying infrastructure like a frictionless vacuum. Researchers obsess over prompt engineering, workflow topologies, and model backbones, assuming that once an agent is called, the physical execution environment is stable and invisible.

In reality, the cloud is messy. Submarine cables get cut, regional datacenters overheat, bandwidth fluctuates, and API endpoints suffer transient outages. Two identical calls to the same LLM for a "Coder" role can have wildly different latencies and failure rates depending on which server region handles the request.

Figure 1: Three coupled axes of role invocation in MAS.

Traditional LLM routing commits to a single model instance before execution—which is cheap, but brittle if that path suddenly degrades. Conversely, Mixture-of-Agents (MoA) or Best-of-N approaches blast the request to every available candidate in parallel—which is robust, but burns through tokens and wall-clock time. The authors ask: how do we dynamically allocate just enough redundancy for each agent step when both model capability and physical network conditions are uncertain?

Methods

The authors reframe every role call as a three-axis decision coupling Role Type, LLM Choice, and Execution Environment (together called a candidate). Rather than picking one candidate or all of them, HACO selects an adaptive "hedge set" across four phases:

Figure 2: Overview of the HACO paradigm.
  1. Role Abstraction: HACO intercepts standard role requests (e.g., Debugger + error traceback) emitted by any multi-agent controller, keeping it agnostic to the broader workflow design.
  2. Redundancy Allocation (Dual-Bound Coordination): HACO tracks three metrics per candidate: cognitive capability (output quality modeled via a Beta distribution), physical reliability (internal API failure and network packet loss), and latency cost (discounted logarithmically using the psychophysical Weber–Fechner law so minor delays aren't over-penalized). To build the hedge set, HACO pairs two opposing mindsets:
  3. Optimistic Prioritization (UCB-style): Ranks candidates by adding an uncertainty bonus to their expected quality, encouraging exploration of under-tested deployments.
  4. Conservative Reliability Accumulation (LCB-style): Adds top-ranked candidates to the hedge set one by one using a pessimistic success estimate, stopping only when the cumulative probability that at least one succeeds crosses a target threshold ($\tau$).
  5. Hedged Execution: Selected candidates run in parallel across datacenters. As soon as the highest-utility successful candidate finishes (and any higher-ranked candidates resolve), HACO immediately moves on—cutting tail latency without waiting for stragglers or running a heavy post-hoc reranker.
  6. Experience Harvesting: Even "losing" or slower parallel traces aren't wasted. Asynchronous completions are scored by a lightweight LLM-judge and logged with network telemetry to continuously update candidate and network-link profiles.

Datasets

HACO is evaluated by wrapping a finite-state-machine data-analysis system (derived from DATAWISE) across three established, execution-heavy benchmarks (no new datasets are introduced):

  • DSBench: End-to-end data science workflows covering preprocessing, feature engineering, and predictive modeling.
  • InfiAgent-Bench: Multi-step data analysis over structured CSV files in live code-execution environments.
  • MatplotBench: Scientific data visualization requiring code generation from natural language and raw data.

Key Insights and Ideas

  • Redundancy buys information, not just insurance: In standard fault-tolerant systems, backup requests are pure overhead if the primary succeeds. In HACO, redundant executions double as active exploration, feeding telemetry back into candidate profiles so the system rapidly detects—and routes around—regional blackouts.
  • Optimism for ranking, pessimism for stopping: Using a single confidence score fails: pessimism hides promising new endpoints, while optimism stops adding backups too early. Decoupling who to pick (optimistic) from how many to pick (conservative) solves both simultaneously.
  • Weak judges suffice: Stress tests degrading the LLM-as-judge evaluator barely dent HACO's performance, proving the framework relies on structural statistical trends rather than a costly, oracle-grade judge.

Key Results

Across simulated multi-zone networks and live Azure regional deployments (US, Japan, Southeast Asia, Sweden), HACO consistently outperforms single-route baselines while costing a fraction of full-parallel MoA execution.

Figure 3: Reliability evaluation under runtime degradation and real deployment failures. Rows correspond to network degradation, candidate degradation, evaluator degradation, and a real-world Azure-backed deployment with injected candidate failures.
  • Surviving Mid-Flight Outages: When network paths or regional Azure deployments are degraded mid-run (after task 50), history-reliant routing (BestOne) suffers catastrophic failure-rate spikes of +67.4 to +90.4 percentage points because it stubbornly clings to formerly strong regions. HACO shifts up to 80 percentage points of its traffic away from failing zones automatically, keeping failure spikes near zero (+0.0% to +4.1%).
  • Beating Smart Single-Routing (UCB-Single): Even against a baseline given HACO’s exact environment signals and UCB ranking (but restricted to 1 candidate), HACO boosts scores across MatplotBench (51.66 $\rightarrow$ 58.86), InfiAgent-Bench (80.35% $\rightarrow$ 89.01%), and DSBench (33.28 $\rightarrow$ 42.40), while cutting wall-clock latency roughly in half (e.g., 270.35s $\rightarrow$ 125.91s on DSBench) by dodging slow stragglers.
  • Tunable Reliability Knob: Sweeping target reliability $\tau$ from $0.70$ to $0.95$ on MatplotBench smoothly drops step failure rates from 1.87% to 0.17% while raising quality scores from 53.77 to 58.86.

Limitations and Future Work

In the main text, the authors note that specific Limitations and Broader Impacts are deferred to Appendices F and G (which are not included in pages 1–10 of this document). However, architectural trade-offs explicitly noted in the main text include:

  • Token Overhead vs. Single Routing: While much cheaper than exhaustive parallel execution, HACO inevitably consumes more tokens than single-agent routing (e.g., 91k vs. 55k tokens on InfiAgent-Bench compared to UCB-Single).
  • Independence Assumptions: The core stopping rule treats internal and network failures across candidates as conditionally independent, though the authors point to an analytical extension for correlated failure domains in Appendix D.3.

Summary updated

Abstract

As large language model (LLM) agents move from isolated prompting to long-horizon workflows, failures increasingly arise at the role-to-instance binding boundary, where task-specific role requests must be assigned to concrete agent instances under current service, network, and query conditions. Existing agent system research has improved role specialization, workflow topology, memory, and tool use, but often assumes a fixed stable execution environment. This assumption limits deployed reliability, because the same role request can exhibit different latency, failure probability, and output quality across agent instances operating under different service regions and network conditions. We propose Hedged Agent Computing (HACO), a runtime control scheme that treats each role request as a reliability-constrained selection problem over candidate agent instances, each coupling a role type, an LLM, and a concrete execution environment. Different from routing, HACO adaptively selects a hedge set of candidates for each invocation. Its allocation rule combines optimistic ranking, which prioritizes candidates with high estimated quality, reliability, and informative uncertainty, with conservative reliability accumulation, which selects candidates toward a target success probability. Through experience harvesting, HACO updates candidate and link profiles from all executed candidate traces, including quality, success, latency, and network statistics. Experiments on various benchmarks, together with runtime degradation studies, show that HACO improves robustness and output quality under changing deployment conditions, while using lower token and latency cost than exhaustive parallel execution. Code is available at https://github.com/NICE-HKU/haco.git.
BibTeX
@inproceedings{li2026haco,
  author = {Enhan Li and Hongyang Du},
  title = {{HACO: Hedged Agent Computing for Reliable LLM Systems}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=zNkQ67Ps8c},
}
Figure