Conservative Exploration in Reinforcement Learning.

Evrard Garcelon, Mohammad Ghavamzadeh, Alessandro Lazaric, Matteo PirottaarXiv 2020

Abstract: While learning in an unknown Markov Decision Process (MDP), an agent should trade off exploration to discover new information about the MDP, and exploitation of the current knowledge to maximize the reward. Although the agent will eventually learn a good or optimal policy, there is no guarantee on the quality of the intermediate policies. This lack of control is undesired in real-world applications where a minimum requirement is that the executed policies are guaranteed to perform at least as well as an existing baseline. In this paper, we introduce the notion of conservative exploration for average reward and finite horizon problems. We present two optimistic algorithms that guarantee (w.h.p.) that the conservative constraint is never violated during learning. We derive regret bounds showing that being conservative does not hinder the learning ability of these algorithms.

Introduction: The Challenge of Real-World Exploration

Standard Reinforcement Learning (RL) agents learn through trial and error. To identify optimal strategies, an agent must explore its environment, which often involves taking "reckless" actions that can lead to significant performance drops. While acceptable in simulations, such volatility is prohibitive in high-stakes domains like healthcare, finance, or industrial control.

In these real-world scenarios, a "baseline" policy—a safe but potentially suboptimal legacy system—usually exists. The fundamental challenge is: How can an agent explore to find a better policy than the baseline while guaranteeing it never performs worse than that baseline during the learning phase? While this has been studied in Multi-Armed Bandits, RL is significantly harder because actions have long-term consequences; a "safe" action now might lead to an inescapable "dangerous" state later.

Methodology: Budget-Based Conservative Exploration

The authors introduce two primary algorithms: CUCRL2 for infinite-horizon, average reward tasks, and CUCB-VI for finite-horizon, episodic tasks. These algorithms bridge the gap between exploration and safety through several key mechanisms:

  1. The Conservative Constraint: The agent ensures its expected cumulative reward remains above a fraction $(1-\alpha)$ of the baseline's expected reward.
  2. Exploration Budget: The algorithms maintain a "conservative budget." By performing better than the safety threshold, the agent earns "credits" that it can then "spend" on exploratory, optimistic actions.
  3. Pessimistic Policy Evaluation: Before attempting an exploratory policy, the agent performs a pessimistic evaluation using its current (uncertain) model. If the worst-case scenario satisfies the safety constraint, the agent proceeds.
  4. Optimism Under Safety: Once safety is guaranteed, the agent employs standard optimistic techniques (like UCRL2) to seek high-reward states.

Experimental Evaluation and Key Results

The paper evaluates these methods across simulated environments, including Stochastic Inventory Control, a 3x4 Gridworld with traps, and a complex Maintenance task involving a multi-component machine.

Learning Curves and Regret

A critical theoretical and empirical finding is that being conservative does not sacrifice long-term performance. Both CUCRL2 and CUCB-VI achieve $O(\sqrt{T})$ regret, matching the performance of their unconstrained counterparts.

Regret over time for CUCRL with varying safety parameters alpha compared to the baseline and standard UCRL.

As shown in the regret curves, CUCRL initially tracks the baseline performance. Once it accumulates enough "budget" and data, it transitions to the optimal policy. The duration of this conservative phase is directly controlled by the safety parameter $\alpha$, giving practitioners a clear knob to tune the trade-off between safety and learning speed.

Guaranteed Constraint Satisfaction

The primary advantage of the proposed algorithms is their strict adherence to safety constraints. In the Maintenance task, standard UCRL2 violated safety constraints over 50% of the time during initial learning. In contrast, CUCRL2 maintained a 0% violation rate across various settings.

Percentage of safety constraint violations for CUCRL versus standard UCRL as a function of the safety parameter alpha.

As illustrated above, the CUCRL algorithm consistently avoids violations regardless of the $\alpha$ value, whereas the unconstrained UCRL algorithm frequently fails to meet the performance threshold, especially for stricter (smaller) values of $\alpha$.

Discussion and Future Work

The research demonstrates that safety can be achieved "for free" in terms of asymptotic regret. However, some limitations remain. The current analysis assumes "ergodicity" (the ability to reach any state from any other) and requires prior knowledge of the baseline's performance. Furthermore, while these tabular methods provide strong theoretical foundations, extending budget-based conservative exploration to Deep RL with function approximation remains a significant frontier for future research.

Summary updated

BibTeX
@misc{garcelon2020conservative,
  author = {Evrard Garcelon and Mohammad Ghavamzadeh and Alessandro Lazaric and Matteo Pirotta},
  title = {{Conservative Exploration in Reinforcement Learning.}},
  year = {2020},
  eprint = {2002.03218},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2002.03218},
}
Figure