Abstract
In this work, we study the problem of finding robust and safe policies in Robust Constrained Average-Cost Markov Decision Processes (RCMDPs). A key challenge in this setting is the lack of strong duality, which prevents the direct use of standard primal-dual methods for constrained RL. Additional difficulties arise from the average-cost setting, where the Robust Bellman operator is not a contraction under any norm. To address these challenges, we propose an actor-critic algorithm for Average-Cost RCMDPs. We show that our method achieves both $\epsilon$-feasibility and $\epsilon$-optimality, and we establish sample complexities of $\tilde{O}(\epsilon^{-4})$ and $\tilde{O}(\epsilon^{-6})$ with and without slackness assumption, which is comparable to the discounted setting.
Introduction
Real-world Reinforcement Learning (RL) deployment must navigate two critical challenges: the sim-to-real gap and safety constraints. While agents often excel in idealized simulations, minor environmental shifts—such as changes in friction or sensor noise—can lead to catastrophic failures in the real world. Robust MDPs address this by optimizing for the worst-case scenario within a set of possible environments. Simultaneously, Constrained MDPs ensure agents adhere to safety boundaries, such as speed limits for drones or safe distances for autonomous vehicles.
Combining these into Robust Constrained MDPs (RCMDPs) is mathematically complex, particularly in the average-cost setting. Unlike discounted rewards, which prioritize immediate gains, average-cost objectives focus on long-term performance over an infinite horizon. This setting introduces two primary technical hurdles:
- Lack of Strong Duality: Standard primal-dual methods (e.g., Lagrangian multipliers) fail in robust settings because the mathematical "shortcut" they rely on breaks down.
- Non-Contraction of Bellman Operators: The Robust Bellman operator in average-cost settings does not behave as a contraction, making it difficult to estimate state values reliably.
Methodology: A Primal-Only Approach
To overcome the failure of strong duality, we propose a Primal-Only Actor-Critic Algorithm. By remaining in the primal space, we optimize the objective directly and avoid the non-convexity issues inherent in dual approaches.
The Actor-Critic Architecture
- The Actor: Employs a subgradient method to update the policy. Given that the robust objective involves a maximum over potential environments, it is non-smooth. The actor identifies the "active" objective—either the primary reward or the most violated constraint—and adjusts the policy accordingly.
- The Critic: Addresses the contraction problem by using a specialized algorithm that converges under a specific semi-norm. This ensures stable estimates of the Robust Q-function.
- Uncertainty Modeling: The algorithm supports various uncertainty sets, including Contamination, Total Variation (TV) Distance, and Wasserstein Distance.
- Variance Reduction: We utilize a Truncated Multi-Level Monte Carlo (MLMC) estimator to minimize noise and ensure practical convergence.
Results and Sample Complexity
Our theoretical analysis demonstrates that the proposed algorithm achieves both $\epsilon$-feasibility (safety) and $\epsilon$-optimality (performance). A significant contribution of this work is closing the complexity gap between average-cost and discounted reward settings.
As shown in the table above, our work achieves a sample complexity of $\tilde{O}(\epsilon^{-4})$ with a "slackness" assumption (the existence of a strictly safe policy) and $\tilde{O}(\epsilon^{-6})$ without it. These results are comparable to state-of-the-art methods in the discounted setting, suggesting that while average-cost RL is harder to analyze, it is not necessarily harder to learn.
Discussion and Future Work
While this work establishes a strong theoretical foundation for RCMDPs, several avenues for future research remain. Our analysis assumes ergodicity, meaning any state is reachable from any other, which may not hold in environments with "traps." Furthermore, while we have matched the complexity of the discounted setting, a gap still exists between robust and standard RL sample complexities. Finally, scaling these primal-only methods from tabular settings to high-dimensional spaces using deep neural networks is a key challenge for future robotics applications.
Summary updated