Practical Risk Measures in Reinforcement Learning

Dotan Di Castro, Joel Oren, Shie MannorarXiv 2019

Abstract

Standard Reinforcement Learning (RL) algorithms typically optimize for the expected cumulative reward, a strategy that often fails in high-stakes environments where safety and reliability are paramount. This paper introduces a flexible framework for incorporating arbitrary, non-standard risk measures into RL using a novel "Actor Risk-Critic Value-Critic" (ARCVC) architecture. By moving beyond mathematically convenient "coherent" risk functions, we demonstrate how to shape risk measures based on real-world data and optimize policies that balance performance with safety constraints.

Introduction

In domains such as finance, robotics, and autonomous driving, maximizing the average outcome is insufficient. A single "worst-case" event can lead to catastrophic failure, making risk management a core requirement for deployment. Traditional risk-aware RL often relies on "coherent risk measures"—a specific class of functions that are mathematically well-behaved (convex and monotonic). However, these measures do not always capture practical safety needs, such as the probability of hitting a zero-balance in a "gambler’s ruin" scenario.

This research addresses the need for a "plug-and-play" approach that can handle almost any differentiable risk function, including non-convex ones. We propose a generalized policy gradient method and a specialized architecture to facilitate risk-aware optimization without the heavy computational overhead typical of current state-of-the-art methods.

The ARCVC Architecture

To implement practical risk measures, we introduce the Actor Risk-Critic Value-Critic (ARCVC). Unlike standard Actor-Critic models that utilize two components, ARCVC employs three distinct deep neural networks (DNNs):

  1. Actor: Responsible for learning and executing the policy $\mu(u|x)$.
  2. Value Critic: Estimates the standard expected reward ($J$), providing a baseline for performance.
  3. Risk Critic: Estimates the specific risk measure ($R$) for the current state, allowing the agent to evaluate the safety of its trajectory.
The Actor Risk-Critic Value-Critic (ARCVC) architecture, featuring three distinct deep neural networks for policy, value estimation, and risk measurement.

Because many risk measures do not follow the Bellman equation, they cannot be easily "bootstrapped" like expected rewards. To overcome this, we utilize Monte-Carlo simulations and a finite-time buffer to estimate risk directly from sampled trajectories. This allows the gradient of any differentiable risk function $f$ to be integrated into standard policy gradient methods.

Risk Shaping and Compact Architectures

Inspired by reward shaping, we propose "Risk Shaping," where a risk function is learned from observed data to better fit the specific safety requirements of a domain. This allows the risk measure to evolve based on the agent's experience within the environment.

Furthermore, to address the computational demands of maintaining multiple DNNs, we explored "compact" versions of the architecture. These versions replace state-specific value estimates with global references, significantly reducing memory and runtime requirements with only a minor impact on policy performance.

Experimental Setup: Grid World

The framework was evaluated using a customized 2D Grid World environment. The agent must navigate from a starting point to a target while avoiding "mines" that provide large negative rewards. To simulate real-world unpredictability, the probability of a cell containing a mine is non-uniform, and movement is stochastic; there is a fixed probability that the agent will move in a random direction regardless of the chosen action.

Key Results and Discussion

Our experiments compared three primary one-sided risk measures: One-Sided Variance ($Var^-$), One-Sided Absolute Value ($Abs^-$), and One-Sided Square Root ($Sqrt^-$).

Comparison of risk violation and success rates across different one-sided risk measures: Absolute ($Abs^-$), Square Root ($Sqrt^-$), and Variance ($Var^-$).

A critical finding was that "coherence" is not a prerequisite for effectiveness. The $Sqrt^-$ measure—a non-coherent function—proved to be the most aggressive at minimizing risk violations. While this resulted in a slightly lower success rate in reaching the target, it demonstrated a superior ability to force the agent away from hazardous areas compared to standard variance-based measures.

Additionally, the "Sample-Based Penalty" (the compact architecture) provided massive savings in memory and running time. While it showed some deterioration in reward compared to a full Risk Network, it remained a highly viable option for resource-constrained systems.

Conclusion and Future Work

The ARCVC framework offers a practical path forward for risk-sensitive RL, allowing for the integration of diverse risk measures tailored to specific environmental hazards. Future work will focus on scaling these methods to high-dimensional continuous control tasks and exploring "light supervision" models, where the agent learns the risk function dynamically while solving the Markov Decision Process (MDP).

Summary updated

BibTeX
@misc{castro2019practical,
  author = {Dotan Di Castro and Joel Oren and Shie Mannor},
  title = {{Practical Risk Measures in Reinforcement Learning}},
  year = {2019},
  eprint = {1908.08379},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1908.08379},
}
Figure