Forward-PECVaR Algorithm: Exact Evaluation for CVaR SSPs

Willy Arthur Silva Reis, Denis Benevolo Pais, Valdinei Freire, Karina Valdivia DelgadoarXiv 2023 · arXiv

TL;DR

Researchers have developed ForPECVaR, the first algorithm capable of exactly evaluating stationary policies for Stochastic Shortest Path (SSP) problems using the Conditional Value at Risk (CVaR) metric with non-uniform costs. This tool allows for a precise benchmark of existing approximate solvers, revealing that popular algorithms like CVaRVIQ are significantly faster than their predecessors but require careful parameter tuning—specifically using a minimum risk level ($\alpha_0$) smaller than the target risk—to maintain accuracy.

What Problem Does This Paper Address?

In Stochastic Shortest Path (SSP) problems, an agent navigates a probabilistic environment to reach a goal while minimizing costs. Standard models focus on expected cost, but in high-stakes scenarios (like robotics or finance), we care about risk. Conditional Value at Risk (CVaR) is a powerful metric for this, as it looks at the expected cost of the "worst-case" trajectories (the tail of the distribution).

However, solving CVaR-SSPs is hard because optimal policies are non-Markovian—they depend on the agent's entire history. While approximate solvers like CVaRVILI and CVaRVIQ exist, they rely on discretization and interpolation. Until now, there was no way to exactly evaluate how well these approximate policies actually perform in problems with non-uniform costs (where different actions in different states have different price tags). Without an exact baseline, researchers couldn't truly measure the approximation error or the impact of algorithm parameters.

Methods

The authors introduce ForPECVaR (Forward Policy Evaluation CVaR). Unlike traditional "backup" operators that work backward from the goal, ForPECVaR uses a forward approach.

Key technical components include:

  • Theorem 2: A novel formulation that expresses the CVaR of a policy based on the probability of reaching a goal state within a specific cost threshold ($X$).
  • Tree Search: The algorithm builds a search tree from the initial state, expanding trajectories using an A*-like priority queue. It prioritizes nodes with the lowest accumulated cost plus a heuristic estimate.
  • Cost Tracking: To handle non-uniform costs, the algorithm independently tracks the accumulated cost and probability for every trajectory.
  • Augmented State Handling: It adapts to evaluate policies that depend on an "augmented state" (the current physical state plus the remaining risk budget $\alpha$).

Datasets

The algorithm was evaluated on two classic reinforcement learning domains:

  1. Gridworld: An agent moves through a grid with obstacles that carry high costs (simulating failure). The authors tested sizes up to 14x16 (224 states).
  2. River Domain: An agent tries to cross a river with a current that can sweep it downstream toward a "waterfall" (resetting it to the start). Sizes up to 30x10 (300 states) were tested.

Key Insights and Ideas

  • The Underestimation Trap: Approximate solvers often return a "value" for a policy that is lower than its true risk. ForPECVaR reveals this gap, showing that what looks like a low-risk policy might actually be riskier than reported.
  • CVaRVIQ's Efficiency: The experiments confirm that CVaRVIQ is a massive step forward in speed, running one to two orders of magnitude faster than CVaRVILI while producing policies of comparable quality.
  • The $\alpha_0$ Rule of Thumb: A critical finding is that the internal parameter $\alpha_0$ (the minimum risk level the solver considers) must be set smaller than the actual target risk level $\alpha$. If $\alpha_0$ is too close to the target, the approximation quality drops sharply.
  • Atom Density Matters: Increasing the number of "atoms" (interpolation points) consistently reduces the gap between approximate and exact values, confirming theoretical convergence properties.

Key Results

The authors performed extensive benchmarks comparing approximate values from solvers against exact values from ForPECVaR.

  • Speedup: As seen in Figure 2, CVaRVIQ is significantly faster than CVaRVILI across different experiment settings. Execution time of CVaRVIQ and CVaRVILI.
Execution time of CVaRVIQ and CVaRVILI.
  • Approximation Gap: Figure 1 illustrates that while approximate and exact values follow the same trend, there is a visible discrepancy, especially at lower $\alpha$ levels (higher risk aversion). Approximate and exact values with alpha_0 = 10^-3 and |Y| = 30.
Approximate and exact values with alpha_0 = 10^-3 and |Y| = 30.
  • Parameter Impact: The study showed that for a target $\alpha = 10^{-1}$, using an $\alpha_0 = 10^{-2}$ or $10^{-3}$ yielded better policies than setting $\alpha_0 = 10^{-1}$ directly.

Limitations and Future Work

  • Scalability: Because ForPECVaR is a forward tree search, it may face "state explosion" in very large domains or with policies that lead to extremely long trajectories.
  • Policy Scope: The current version focuses on evaluating stationary policies. Extending this to fully non-stationary, history-dependent policies remains a challenge.
  • Policy Iteration: The authors suggest that ForPECVaR could be integrated as the "evaluation step" in a new class of Policy Iteration algorithms for risk-aware planning, potentially leading to even better solvers.

Summary updated

Abstract

The Stochastic Shortest Path (SSP) problem models probabilistic sequential-decision problems where an agent must pursue a goal while minimizing a cost function. Because of the probabilistic dynamics, it is desired to have a cost function that considers risk. Conditional Value at Risk (CVaR) is a criterion that allows modeling an arbitrary level of risk by considering the expectation of a fraction $α$ of worse trajectories. Although an optimal policy is non-Markovian, solutions of CVaR-SSP can be found approximately with Value Iteration based algorithms such as CVaR Value Iteration with Linear Interpolation (CVaRVIQ) and CVaR Value Iteration via Quantile Representation (CVaRVILI). These type of solutions depends on the algorithm's parameters such as the number of atoms and $α_0$ (the minimum $α$). To compare the policies returned by these algorithms, we need a way to exactly evaluate stationary policies of CVaR-SSPs. Although there is an algorithm that evaluates these policies, this only works on problems with uniform costs. In this paper, we propose a new algorithm, Forward-PECVaR (ForPECVaR), that evaluates exactly stationary policies of CVaR-SSPs with non-uniform costs. We evaluate empirically CVaR Value Iteration algorithms that found solutions approximately regarding their quality compared with the exact solution, and the influence of the algorithm parameters in the quality and scalability of the solutions. Experiments in two domains show that it is important to use an $α_0$ smaller than the $α$ target and an adequate number of atoms to obtain a good approximation.
BibTeX
@misc{reis2023forward,
  author = {Willy Arthur Silva Reis and Denis Benevolo Pais and Valdinei Freire and Karina Valdivia Delgado},
  title = {{Forward-PECVaR Algorithm: Exact Evaluation for CVaR SSPs}},
  year = {2023},
  eprint = {2303.00672},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2303.00672},
}
Figure