Risk-Sensitive Policy with Distributional Reinforcement Learning

Thibaut Théate, Damien ErnstAlgorithms 2023

TL;DR

This paper introduces a novel approach to reinforcement learning (RL) that allows agents to learn policies considering not just expected rewards, but also the associated risks. By leveraging distributional RL, which models the entire distribution of potential returns, the authors propose a "risk-based utility function" that balances performance and safety, enabling more robust decision-making in critical applications like autonomous driving.

What Problem Does This Paper Address?

Traditional reinforcement learning (RL) algorithms typically focus on maximizing the expected sum of future rewards. While effective in many scenarios, this "risk-neutral" approach can be problematic in applications where the consequences of failure are severe, such as healthcare, finance, or autonomous systems. In these domains, simply aiming for the highest average outcome might lead to policies that are highly susceptible to rare but catastrophic events. The challenge is to develop RL agents that can learn policies that are not only performant but also inherently safe and risk-averse, without sacrificing too much in terms of expected returns.

Methods

The core of this work lies in adapting distributional reinforcement learning (DRL) to learn risk-sensitive policies. DRL, unlike traditional RL, learns the entire probability distribution of the return (the discounted sum of future rewards) rather than just its expected value. The authors propose replacing the standard Q-function (which estimates the expected return) with a new "risk-based utility function," denoted $U^\pi(s, a)$. This utility function is a linear combination of the expected return ($Q^\pi(s, a)$) and a risk measure ($R^\pi(s, a)$), controlled by a parameter $\alpha \in [0, 1]$.

  • Risk-Based Utility Function ($U^\pi(s, a)$): $U^\pi(s, a) = \alpha Q^\pi(s, a) + (1 - \alpha) R^\pi(s, a)$.
  • When $\alpha = 1$, the agent is risk-neutral (equivalent to standard RL).
  • When $\alpha = 0$, the agent is fully risk-averse, prioritizing the minimization of risk.
  • Values between 0 and 1 allow for a tunable trade-off between expected performance and risk mitigation.
  • Risk Measure ($R^\pi(s, a)$): This function quantifies the risk associated with an action. The paper suggests using measures like Value at Risk (VaR) or Conditional Value at Risk (CVaR), which focus on the tail of the return distribution (i.e., the worst-case scenarios).
  • Algorithm Adaptation: The proposed methodology requires minimal changes to existing DRL algorithms. The key modification is to use the learned risk-based utility function $U^\pi$ for action selection during both exploration and exploitation, instead of the expected return $Q^\pi$.

The authors specifically use the Unconstrained Monotonic Deep Q-Network with Cramer (UMDQN-C) algorithm as their DRL baseline, adapting it to their risk-sensitive framework, resulting in the RS-UMDQN-C algorithm.

Datasets

The paper introduces three novel benchmark environments designed to specifically highlight the importance of risk-sensitive decision-making:

  • Risky Rewards: A 3x3 grid world where one objective offers a lower expected reward with less risk, while another offers a higher expected reward but with increased risk.
  • Risky Transitions: A 3x3 grid world where stochastic wind can push the agent, introducing uncertainty in movement. Paths with higher expected rewards might be riskier due to these unpredictable transitions.
  • Risky Grid World: A combination of the above, featuring both stochastic rewards and transitions, requiring careful navigation around traps and through windy paths.

These environments are designed to be simple enough for analysis while incorporating stochasticity in both reward functions and transition dynamics to create clear trade-offs between risk and expected return.

Key Insights and Ideas

  • Bridging the Gap: The paper effectively bridges the gap between standard risk-neutral RL and the need for risk-sensitive policies in safety-critical applications.
  • Interpretability through Distribution: By learning the full return distribution, DRL inherently provides more interpretable insights into an agent's decision-making process, which is further enhanced by visualizing the value, risk, and utility functions.
  • Tunable Risk Aversion: The introduction of the $\alpha$ parameter in the utility function offers a flexible way to control the agent's risk appetite, allowing for policies ranging from purely risk-averse to risk-neutral.
  • Minimal Modification, Maximum Impact: The proposed method requires only minor changes to existing DRL algorithms, making it highly practical and accessible for researchers and practitioners.

Key Results

The experiments conducted on the three benchmark environments demonstrate the effectiveness of the RS-UMDQN-C algorithm:

  • Performance Comparison: The RS-UMDQN-C algorithm, when configured for risk sensitivity (e.g., $\alpha=0.5$), achieved a better balance of expected return and risk compared to the standard DQN algorithm, which remained risk-neutral.
  • Risk-Sensitivity Indicator: A novel performance indicator, $R_s \in [-1, 1]$, was introduced to quantify risk sensitivity. The RS-UMDQN-C algorithm consistently achieved higher $R_s$ scores (closer to +1, indicating preference for risk-averse paths) compared to DQN (closer to -1, indicating preference for expected-return-optimal paths).
  • Qualitative Analysis: Visualizations of learned return distributions showed that the RS-UMDQN-C algorithm accurately captured the complex, multimodal distributions designed into the benchmark environments, preserving crucial information for risk estimation. The analysis of $Q^\pi$, $R^\pi$, and $U^\pi$ functions provided clear justifications for the agent's decisions.

Limitations and Future Work

  • Empirical Focus: The current research is primarily empirical, lacking theoretical guarantees on the convergence of the proposed risk-sensitive DRL algorithms.
  • Complex Environments: While promising on toy problems, the approach needs to be evaluated on more complex, real-world environments where risk mitigation is paramount.
  • Action Pruning: The authors suggest extending the approach to not only mitigate risk but also to completely discard actions that pose an excessive risk, further enhancing compliance with safety objectives.
  • Theoretical Guarantees: Future work could focus on developing theoretical frameworks to analyze the convergence properties and optimality guarantees of these risk-sensitive DRL algorithms.

Summary updated

BibTeX
@article{theate2023risk,
  author = {Thibaut Théate and Damien Ernst},
  title = {{Risk-Sensitive Policy with Distributional Reinforcement Learning}},
  journal = {Algorithms},
  year = {2023},
  doi = {10.3390/a16070325},
}
Figure