Abstract
We study model-free reinforcement learning (RL) algorithms in episodic non-stationary constrained Markov decision processes (CMDPs), in which an agent aims to maximize the expected cumulative reward while satisfying safety constraints. We propose the first model-free algorithms that achieve sublinear regret and zero constraint violation in environments where dynamics, rewards, and costs change unpredictably, even when the variation budget is unknown.
1. Introduction
Most Reinforcement Learning (RL) theory assumes a stationary environment. However, real-world applications like autonomous driving or medical treatment are inherently non-stationary: traffic patterns shift, and patient responses evolve. When safety is a requirement, these problems are modeled as Constrained Markov Decision Processes (CMDPs). In a CMDP, an agent maximizes rewards while keeping costs (e.g., collisions or adverse drug reactions) below a certain threshold.
Non-stationary CMDPs present two major challenges: the "moving target" of changing dynamics and the "knowledge gap" regarding the environment's variation budget. Previous solutions were often model-based (computationally heavy) and required prior knowledge of how much the environment would change. This work introduces model-free alternatives that overcome these limitations.
2. Proposed Algorithms
The authors propose a suite of model-free algorithms that do not require a simulator or a learned environment model.
- Non-stationary Triple-Q (Algorithm 1): Designed for tabular settings, it employs a periodic restart strategy and an extra optimism bonus in Q-values to ensure safety and exploration.
- Linear Function Approximation (Algorithm 3): Extends the approach to large state spaces using a primal-dual framework with a soft-max policy.
- Bandit over Bandit Framework (Algorithms 2 & 4): To handle unknown variation budgets, a master "bandit" algorithm (Exp3) treats different budget settings as "arms," learning the optimal setting by observing rewards and safety violations of the underlying RL agent.
3. Theoretical and Empirical Results
The proposed algorithms achieve significant theoretical milestones, particularly in achieving zero constraint violations while maintaining sublinear regret.
Key Findings:
- Optimal Regret: For tabular settings with a known variation budget, the algorithm achieves a regret bound of $\tilde{O}(K^{4/5})$, matching the best results for stationary CMDPs.
- Zero Constraint Violations: Unlike previous methods that allowed sublinear violations, these algorithms achieve zero violations ($0^*$) for sufficiently large $K$ by solving a "tightened" optimization problem with a safety margin.
- Efficiency: In linear settings, the algorithms improve the dependency on episode length ($H$) by a factor of $H^{1/4}$ compared to previous model-based attempts.
Empirical validation in a Simulated Grid World with time-varying dynamics confirmed that "Non-stationary Triple-Q" was the only algorithm to maintain safety while learning high-reward policies as the environment shifted.
4. Conclusion
This work provides the first provably efficient model-free framework for safe RL in non-stationary environments. While the $K^{4/5}$ regret bound is a breakthrough, future research aims to reach the $K^{1/2}$ bound typical of simpler stationary problems and reduce the computational overhead of linear function approximation in high-dimensional systems.
Summary updated