Being Optimistic to Be Conservative: Quickly Learning a CVaR Policy

Ramtin Keramati, Christoph Dann, Alex Tamkin, Emma Brunskill

Introduction

Standard reinforcement learning (RL) paradigms typically focus on maximizing the expected return—the average outcome over a distribution of trajectories. However, in high-stakes domains such as healthcare, finance, or autonomous systems, average performance is often secondary to the mitigation of tail risks. For instance, a medical treatment with a high average success rate but a non-negligible risk of catastrophic failure may be less desirable than a more conservative alternative with a lower mean but a higher performance floor.

To quantify these risks, researchers often employ the Conditional Value at Risk (CVaR), which measures the expected return within the worst $\alpha$-fraction of outcomes. While representation of CVaR policies has been studied, the exploration problem remains a significant hurdle: how can an agent efficiently explore an environment to find the optimal risk-averse policy without exhaustive sampling? This paper introduces a novel, sample-efficient RL algorithm that applies the "Optimism in the Face of Uncertainty" (OFU) principle to return distributions, enabling rapid convergence to conservative policies.

Methodology: The Optimistic Distributional Operator

The proposed CVaR-MDP algorithm is built upon the foundations of distributional RL. Unlike traditional RL, which estimates scalar value functions, distributional RL maintains the full probability distribution of potential returns for each state-action pair.

The core innovation is the Optimistic Distributional Operator ($O_c$). Leveraging the Dvoretzky-Kiefer-Wolfowitz (DKW) inequality, the algorithm computes a confidence bound around the empirical return distribution. The $O_c$ operator then "optimistically" shifts the cumulative distribution function (CDF) downward.

The Optimistic Distributional Operator shifts the CDF downward (top right), effectively moving probability mass from the 'bad' lower tail to the 'good' upper tail (bottom right) to encourage exploration of potentially safe policies.

As illustrated in the figure above, this downward shift in the CDF corresponds to moving probability mass from the lower tail (representing poor outcomes) toward the maximum possible return ($V_{max}$). By being optimistic about the CVaR of uncertain actions, the agent is naturally incentivized to explore actions that might belong to the optimal risk-averse policy. This "optimism to be conservative" ensures that the agent does not prematurely discard actions that could provide superior safety in the long run.

Experimental Setup

The algorithm was evaluated across three simulated environments representing critical decision-making scenarios:

  • Machine Replacement: A maintenance task where an agent must decide when to replace a degrading machine. Failure to replace leads to high-variance, risky outcomes.
  • HIV Treatment Simulator: A 6-dimensional continuous state space model for drug delivery. Stochastic noise was added to drug efficacy to necessitate risk-sensitive dosing strategies.
  • Type 1 Diabetes Treatment Simulator: An FDA-approved simulator for blood glucose regulation. The agent must manage insulin levels to avoid the dual risks of hypoglycemia and hyperglycemia.

Key Results

The CVaR-MDP algorithm demonstrated superior sample efficiency and safety compared to standard baselines like $\epsilon$-greedy exploration. In the Machine Replacement task, the optimistic approach reached the optimal CVaR policy significantly faster than competing methods.

In the Machine Replacement task, the 'Optimism' algorithm (green) reaches the optimal policy level significantly faster than the epsilon-greedy (blue) or AC-CVaR (red) methods.

In the healthcare simulators (HIV and Diabetes), the algorithm consistently achieved higher CVaR values with fewer training episodes. A notable finding in the Diabetes simulator was that the optimistic agent experienced approximately 50% fewer severe medical episodes during the training process itself. This suggests that the efficiency gained by finding a safe policy quickly translates to "implicit safety" during the learning phase, even without explicit safe-exploration constraints.

Discussion and Limitations

This work establishes that optimism is a viable and effective heuristic for learning risk-averse policies. By assuming the best about unknown actions, agents can more rapidly identify the most conservative options.

However, several challenges remain. The current framework focuses on stationary policies, whereas the true CVaR-optimal policy may be non-stationary (dependent on accumulated rewards). Furthermore, while the method is sample-efficient, it does not provide "hard" safety guarantees during the initial stages of interaction. Future work may explore the integration of this optimistic exploration with formal "Safe RL" constraints to ensure that the agent never takes a catastrophic action, even during its first steps in a new environment.

Summary updated

BibTeX
@inproceedings{keramati2020being,
  author = {Ramtin Keramati and Christoph Dann and Alex Tamkin and Emma Brunskill},
  title = {{Being Optimistic to Be Conservative: Quickly Learning a CVaR Policy}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2020},
  doi = {10.1609/aaai.v34i04.5870},
}
Figure