Exploration-Exploitation in Constrained MDPs

Yonathan Efroni, Shie Mannor, Matteo PirottaarXiv 2020

Abstract

This paper investigates the exploration-exploitation trade-off in unknown Constrained Markov Decision Processes (CMDPs), where an agent must maximize rewards while adhering to safety or resource constraints. We introduce four novel algorithms—OptCMDP, OptCMDP-bonus, OptDual-CMDP, and OptPrimalDual-CMDP—that achieve sublinear regret for both rewards and constraint violations. Our analysis reveals a fundamental trade-off between computational efficiency and the strength of theoretical safety guarantees, specifically highlighting the distinction between cumulative regret ($Reg$) and positive-only regret ($Reg_+$).

1. Introduction

In standard Reinforcement Learning (RL), the objective is typically to maximize a single reward signal. However, real-world applications often involve multiple competing objectives and strict operational requirements. For instance, an autonomous vehicle must minimize travel time while strictly adhering to safety constraints like speed limits and collision avoidance. These scenarios are modeled as Constrained Markov Decision Processes (CMDPs).

The core challenge in the "online" setting is that the agent lacks prior knowledge of the environment's transition dynamics or reward/cost functions. To find an optimal policy, the agent must explore, yet blind exploration risks frequent and costly constraint violations. This paper focuses on designing algorithms that learn efficiently while ensuring that the total "regret"—the gap between the agent's performance and the optimal safe policy—remains sublinear over time for both rewards and constraints.

2. Methodology

We propose and analyze two distinct families of algorithms designed to handle the exploration-exploitation trade-off in CMDPs.

2.1 Model-Based Optimistic Approaches

  • OptCMDP: This algorithm maintains a set of "plausible" models consistent with observed data. At each step, it solves an extended Linear Program (LP) in the space of occupancy measures to identify the most optimistic model and policy.
  • OptCMDP-bonus: To mitigate the computational overhead of solving large LPs, this variant replaces the model-set search with an exploration bonus added directly to the costs. This allows the agent to solve a single optimistic CMDP per episode.

2.2 Lagrangian-Based Approaches

These methods utilize the saddle-point formulation of CMDPs, converting the constrained problem into an unconstrained one via Lagrange multipliers.

  • OptDual-CMDP: Employs a dual projected sub-gradient method to update the multipliers.
  • OptPrimalDual-CMDP: Performs incremental updates on both the policy (using Mirror Descent) and the multipliers. This approach is the most computationally lightweight of the four, making it highly relevant for practical scaling.

3. Key Theoretical Results

All four proposed algorithms achieve sublinear regret, indicating that as the agent accumulates experience, its average performance converges to the optimal safe policy. A critical contribution of this work is the distinction between two measures of safety regret:

  • $Reg_+$: Sums only positive violations, preventing "error cancellation" where safe episodes offset unsafe ones.
  • $Reg$: Measures the signed cumulative violation, allowing for error cancellation.
Table 1: Regret bounds for the proposed algorithms, highlighting the differences in optimality and constraint regret measures.

As summarized in Table 1, the LP-based approaches (OptCMDP) achieve a regret bound of $\tilde{O}(\sqrt{SNH^4K})$ for both optimality and constraints using the stricter $Reg_+$ metric. While the Lagrangian approaches (OptDual and OptPrimalDual) exhibit similar scaling with respect to the number of episodes ($K$), their theoretical guarantees are currently limited to the weaker $Reg$ metric.

4. Discussion and Future Work

Our results highlight a significant gap between LP-based and Lagrangian methods. While Lagrangian/Primal-Dual algorithms are easier to scale and popular in deep RL, they currently lack the stronger $Reg_+$ guarantees required for high-stakes safety applications.

Future research should address whether Primal-Dual algorithms can be proven to satisfy $Reg_+$ guarantees. Additionally, extending these rigorous regret bounds from tabular settings to function approximation (e.g., Deep RL) and further reducing the computational planning overhead remain vital areas for development.

Summary updated

BibTeX
@misc{efroni2020exploration,
  author = {Yonathan Efroni and Shie Mannor and Matteo Pirotta},
  title = {{Exploration-Exploitation in Constrained MDPs}},
  year = {2020},
  eprint = {2003.02189},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2003.02189},
}
Figure