Risk-Sensitive Agent Compositions

Guruprerana Shabadi, Rajeev Alur

Introduction

As artificial intelligence evolves from isolated models to complex "agentic systems," high-level planners increasingly decompose tasks into subtasks handled by specialized worker agents. This shift introduces a critical new challenge: compounding risk. While standard planning algorithms typically optimize for expected (average) success rates, high-stakes domains like robotics, healthcare, and finance require strict guarantees against catastrophic failures. In these fields, average performance is irrelevant if the 1% worst-case scenario results in a severe safety or privacy breach.

This paper introduces a formal framework and an efficient algorithm, BucketedVaR, designed to build agentic workflows that prioritize safety. By modeling agent compositions as paths in a directed graph, the authors provide a method to find sequences of AI agents that minimize "tail risk," ensuring that low-probability failures remain strictly under control.

Formalizing the Workflow: The Agent Graph

To analyze compounding risks, the authors formalize workflows as an Agent Graph. This is a Directed Acyclic Graph (DAG) where edges represent specific AI agents (such as a Large Language Model or a reinforcement learning policy) and paths from a start node to a finish node represent feasible agent compositions for completing a task.

An example of an Agent Graph where paths from start (S) to finish (F) represent different agent compositions.

The core objective is to find the optimal path of agents that minimizes the Value-at-Risk (VaR)—the maximum loss threshold that will not be exceeded with a given high probability—and the Conditional Value-at-Risk (CVaR), which measures the expected loss in those worst-case scenarios.

The BucketedVaR Algorithm

Analyzing the tail behaviors of stochastic agent sequences is mathematically complex, and the number of possible compositions grows exponentially with the number of subtasks. To avoid exhaustive search, the authors propose BucketedVaR, a dynamic programming approach with several key innovations:

  • The Union Bound Trick: Instead of calculating the computationally heavy joint distribution of an entire path, the algorithm uses the union bound to decompose the total "risk budget" ($\alpha$) across individual agents. For instance, to guarantee a 95% success rate for the overall workflow, the algorithm allocates a specific "failure budget" to each step.
  • Risk Budgeting (Bucketing): The algorithm discretizes the continuous risk budget into $d$ distinct "buckets." As it traverses the graph, it uses dynamic programming to optimally distribute this budget across the edges, minimizing the overall maximum loss.
  • Polynomial Efficiency: Unlike brute-force methods, BucketedVaR scales polynomially with the number of agents and vertices, making it highly practical for complex, real-world workflows.

The authors prove that as the number of samples and buckets increases, the algorithm's VaR estimate becomes asymptotically near-optimal, assuming the agents' losses are independent.

Key Insights and Experimental Validation

A crucial distinction in this work is its focus on maximum rather than cumulative loss. Most prior risk-sensitive planning sums up costs, but for safety, a single catastrophic failure (e.g., a robot crashing once) renders the entire path unsafe, regardless of prior performance.

The framework was evaluated on several risk-sensitive control benchmarks, including DroneNav (obstacle navigation), 16-Rooms (point-mass navigation avoiding danger zones), Fetch (robotic arm manipulation), and BoxRelay (resource management).

Results

  • High Accuracy: The BucketedVaR estimates proved highly accurate. In benchmarks like 16-Rooms and Fetch, the estimated quantiles were within 1-2 percentage points of the true empirical quantiles calculated from massive sample sets (10,000+ samples).
  • Smart Risk Allocation: The algorithm does not simply divide the risk budget equally. It learns to allocate larger "failure budgets" to inherently riskier agents, keeping the overall path's VaR minimized.
  • Robustness to Correlation: Although the theoretical guarantees rely on the assumption of independent agent losses, experiments with synthetic correlated noise ($\rho = 0.5$) showed that the algorithm still provides reasonable approximations, demonstrating practical robustness.
Quantile difference across different risk levels for various benchmarks, demonstrating the high accuracy of the BucketedVaR algorithm.

Limitations and Future Directions

While powerful, the framework has limitations. The theoretical reliance on independent agent losses means that highly correlated failures—such as a systemic sensor blackout affecting all downstream agents—could degrade the approximation. Furthermore, the method assumes a well-defined loss function, which can be difficult to specify for qualitative metrics like LLM "helpfulness" or "hallucination" without introducing secondary evaluation models.

Finally, estimating the tail of a distribution inherently requires a large number of samples, making data collection potentially expensive. Future work may explore Multi-Armed Bandits to discover optimal compositions online, reducing the need to pre-sample the entire graph.

Summary updated

BibTeX
@inproceedings{shabadi2026risk,
  author = {Guruprerana Shabadi and Rajeev Alur},
  title = {{Risk-Sensitive Agent Compositions}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=iHQIacMKka},
}
Figure