TL;DR
This paper introduces PROPD-PPO, the first provably efficient reinforcement learning algorithm for non-stationary Constrained Markov Decision Processes (CMDPs) where both rewards and safety constraints change over time. By combining periodic restarts with optimistic policy evaluation, the algorithm achieves sublinear dynamic regret and constraint violation bounds, ensuring long-term safety in dynamically shifting environments.
What Problem Does This Paper Address?
Safe reinforcement learning (RL) typically relies on Constrained Markov Decision Processes (CMDPs) to maximize an agent's rewards while satisfying safety constraints—such as an autonomous vehicle maximizing speed while strictly avoiding collisions. However, standard CMDP algorithms assume a stationary environment where transition dynamics, rewards, and safety boundaries never change.
In the real world, environments are rarely static; weather shifts, traffic patterns fluctuate, and human behaviors evolve. If a safe RL agent cannot adapt to these non-stationary changes, it risks causing catastrophic safety violations. The core challenge is balancing three competing demands simultaneously: exploring an unknown environment, adapting to arbitrary environmental drifts (within a certain "variation budget"), and minimizing safety constraint violations. Prior literature lacked algorithms that could guarantee provably efficient performance under both non-stationary objectives and non-stationary constraints.
Methods
The authors propose the PROPD-PPO (Periodically Restarted Optimistic Primal-Dual Proximal Policy Optimization) algorithm. It operates via three main stages:
- Periodically Restarted Policy Improvement (Primal Update): The policy is updated using online mirror descent with KL-divergence regularization. Crucially, to prevent the agent from getting stuck in outdated strategies, the policy is periodically reset to a uniform distribution every $L$ episodes.
- Dual Update with Regularization: The algorithm updates the Lagrange multipliers (dual variables) to manage constraint violations. The authors identify two alternative conditions to guarantee safety:
- Assumption 2 (Local variation budgets known): When strict feasibility isn't guaranteed every episode, a dual regularization term is added to stabilize the dual updates and prevent the multipliers from blowing up.
- Assumption 3 (Uniform strict feasibility / Slater condition): If the environment is guaranteed to be strictly feasible by a threshold $\gamma$, standard dual updates are used since the optimal dual variables remain bounded.
- Periodically Restarted Policy Evaluation: The agent estimates the action-value functions using Least-Squares Temporal Difference (LSTD) combined with Upper Confidence Bound (UCB) exploration bonuses. To adapt to non-stationarity, it discards old data and only evaluates the policy using historical trajectories from a recent window of $W$ episodes.
Datasets
Not discussed in the paper. This is a purely theoretical paper focused on proving mathematical guarantees, so no empirical datasets or experimental benchmarks were used.
Key Insights and Ideas
- Decoupling Safety and Optimality: The authors developed a novel primal-dual analysis technique that successfully decouples the optimality gap (dynamic regret) from safety violations in non-stationary environments.
- Two Paths to Long-Term Safety: The paper proves that long-term safety can be achieved under two completely different informational assumptions: either you need to know how fast the constraints are changing locally (Assumption 2), or you need to know a baseline threshold of strict feasibility (Assumption 3).
- The Regularization Safeguard: In highly volatile environments where a safe solution might not even exist for a brief period, standard dual variables can destabilize. Adding dual regularization acts as a stabilizer, ensuring the algorithm remains robust even during temporary periods of infeasibility.
Key Results
The paper establishes rigorous theoretical bounds for both tabular (finite states/actions) and linear kernel CMDP settings.
As summarized in Figure 1:
- Linear Kernel CMDPs: Under both assumptions, PROPD-PPO achieves a dynamic regret and constraint violation bound of $\tilde{O}(d^{9/8}H^{5/2}M^{3/4}(\sqrt{d}B_\Delta + B_*)^{1/3})$, where $M$ is the total episodes, $d$ is the feature dimension, and $B_\Delta, B_*$ are the variation budgets.
- Tabular CMDPs: Under the strict feasibility assumption, the algorithm improves the dependency on the number of episodes to $M^{2/3}$, matching the optimal rates known for unconstrained non-stationary RL.
These sublinear bounds mathematically prove that the agent can successfully maximize rewards while keeping long-term constraint violations close to zero.
Limitations and Future Work
The primary limitation of PROPD-PPO is its reliance on prior knowledge of the variation budgets ($B_\Delta$ and $B_*$) to properly tune the algorithm's parameters, such as the restart periods ($L, W$) and learning rates. In practice, an agent might not know in advance how drastically or frequently its environment will change.
The authors highlight that an exciting direction for future work is to relax this assumption by integrating an adaptive non-stationarity detection mechanism. This would allow the algorithm to automatically detect environmental shifts on the fly without needing a pre-defined variation budget.
Summary updated