Policy Gradients Beyond Expectations: Conditional Value-at-Risk.

Aviv Tamar, Yonatan Glassner, Shie Mannor

Here is a concise, engaging summary of the paper.

TL;DR

This paper introduces a novel method for optimizing Conditional Value-at-Risk (CVaR) via sampling when the tunable parameters directly alter the underlying probability distribution of the system. By deriving a new likelihood-ratio style formula for the CVaR gradient, the authors develop a single-time-scale stochastic gradient descent algorithm that successfully learns risk-averse policies in complex, high-dimensional environments like the game of Tetris.

What Problem Does This Paper Address?

In risk-sensitive decision-making, optimizing for the expected (average) outcome isn't always enough—especially when catastrophic failure is a risk. Conditional Value-at-Risk (CVaR) focuses instead on the tail-end of the distribution, measuring the expected payoff given that the outcome falls within the worst $\alpha\%$ of cases.

Traditional CVaR optimization techniques work well in domains like portfolio management, where your investment strategy doesn't change market asset prices. However, they break down in systems like robotics, queueing networks, or reinforcement learning (RL), where the controller's parameters ($\theta$) actively change the state transition dynamics and the resulting outcome distributions. Prior attempts to bridge this gap relied on complex, slow-converging multi-time-scale stochastic approximations. This paper tackles the challenge of creating a direct, sampling-based gradient estimator for CVaR that works efficiently in distribution-dependent environments.

Methods

The authors present two core algorithmic contributions:

  1. GCVaR (Gradient Estimator for CVaR): The authors derive a new sensitivity formula showing that the gradient of CVaR can be expressed as a conditional expectation. Crucially, this formula reveals that the Value-at-Risk (VaR)—the $\alpha$-quantile threshold—acts as a mandatory baseline. Subtracting this baseline from the sampled rewards ensures the estimator remains consistent and unbiased.
  2. CVaRSGD (CVaR Stochastic Gradient Descent): Using the GCVaR estimator, the authors build a standard stochastic gradient descent loop. Unlike previous methods that required multiple learning rates for the quantile and the policy, this algorithm operates on a single learning rate, drastically simplifying implementation and accelerating convergence.

Additionally, to handle rare events (when $\alpha$ is very small, like 1%), they integrate Importance Sampling (IS). In RL, they achieve this through a clever heuristic: they modify the simulator's transition probabilities to intentionally favor lower-valued states, forcing the agent to experience and learn from "bad" trajectories more frequently.

Datasets

The algorithm was evaluated on the classic RL benchmark Tetris, using a standard $10 \times 20$ board and the 7 standard tetromino shapes. To emphasize risk-sensitive behavior, the authors modified the standard reward structure to disproportionately reward multi-line clears (1, 4, 8, and 16 points for 1, 2, 3, and 4 lines respectively) and capped games at 1,000 steps. This created a distinct trade-off between playing it safe or taking risks to wait for high-scoring line combos.

Key Insights and Ideas

  • The VaR Baseline is Non-Negotiable: A naive approach might just average the standard likelihood-ratio gradients of the worst $\alpha\%$ samples. The authors prove that omitting the VaR baseline ($\nu_\alpha$) makes the estimator inconsistent, potentially leading to errors that point in the exact opposite direction of the true gradient.
  • Single Time-Scale Convergence: By proving that the gradient bias shrinks at a rate of $\mathcal{O}(N^{-1/2})$, the authors show that a separate, slower time-scale for estimating the quantile isn't required. This makes CVaR optimization as straightforward as standard policy gradient methods.
  • Guiding Importance Sampling via Value Functions: Altering an environment to become "worse" in a meaningful way is difficult. The authors' heuristic—using an approximate value function to exponentially bias transitions toward low-reward states—provides a systematic way to implement importance sampling in dynamic environments.

Key Results

The authors compared their CVaRSGD algorithm against a standard expected-return policy gradient method in Tetris.

Figure 1: GCVaR vs. policy gradient. (A,B) Average return (A) and CVaR (α = 0.05) of the return (B) for CVaRSGD and standard policy-gradient vs. iteration. (C) Histogram (counts from 10,000 independent runs) of the total return of the final policies. The lower plot is a zoom-in on the left-tail, and clearly shows the risk-averse behavior of the CVaRSGD policy. (D) Final policy parameters. Note the difference in the Board Well feature, which encourages risk taking. (E) CVaR (α = 0.01) of the return for CVaRSGD vs. iteration, with and without importance sampling.

As shown in Figure 1, the risk-averse policy (CVaRSGD) successfully traded away a portion of its average return (Plot A) to secure a significantly higher CVaR (Plot B). Plot C highlights how the risk-averse policy effectively eliminated the catastrophic low-scoring tail that plagued the standard policy.

Qualitatively, the weight analysis in Plot D shows that the CVaR-optimized controller learned to heavily penalize the creation of deep "wells" on the board. While wells can yield massive points if the right piece arrives, they are highly risky and can lead to a sudden game over. Finally, Plot E demonstrates that incorporating Importance Sampling (IS_GCVaR) allowed the algorithm to converge more than twice as fast when optimizing for extreme rare events ($\alpha = 0.01$).

Limitations and Future Work

The theoretical proofs in this paper rely on the assumption that the underlying random variables are continuous and bounded. While the Tetris experiments showed that the algorithm performs robustly even with discrete rewards (by adding a tiny amount of smooth noise), formally relaxing these continuity assumptions remains an open task for future mathematical analysis. Furthermore, the proposed Importance Sampling framework requires the ability to alter or simulate a modified version of the environment's transition dynamics, which may not be feasible in purely model-free or real-world physical systems.

Summary updated

BibTeX
@inproceedings{tamar2015policy,
  author = {Aviv Tamar and Yonatan Glassner and Shie Mannor},
  title = {{Policy Gradients Beyond Expectations: Conditional Value-at-Risk.}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2015},
  doi = {10.1609/aaai.v29i1.9561},
}
Figure