Resilient Constrained Reinforcement Learning

Dongsheng Ding, Zhengyan Huan, Alejandro Ribeiro

Abstract

We study a class of constrained reinforcement learning (RL) problems in which multiple constraint specifications are not identified before training. It is challenging to identify appropriate constraint specifications due to the undefined trade-off between the reward maximization objective and the constraint satisfaction, which is ubiquitous in constrained decision-making. To tackle this issue, we propose a new constrained RL approach that searches for policy and constraint specifications together. This method features the adaptation of relaxing the constraint according to a relaxation cost introduced in the learning objective. Since this feature mimics how ecological systems adapt to disruptions by altering operation, our approach is termed as resilient constrained RL. Specifically, we provide a set of sufficient conditions that balance the constraint satisfaction and the reward maximization in notion of resilient equilibrium, propose a tractable formulation of resilient constrained policy optimization that takes this equilibrium as an optimal solution, and advocate two resilient constrained policy search algorithms with non-asymptotic convergence guarantees on the optimality gap and constraint satisfaction. Furthermore, we demonstrate the merits and the effectiveness of our approach in computational experiments.

Introduction: The Challenge of Uncertain Constraints

In standard Constrained Reinforcement Learning (CRL), agents are typically tasked with maximizing a reward while ensuring that certain costs stay below a fixed threshold $b$. This approach assumes that the perfect threshold is known and that the constraint is feasible. In real-world scenarios like human-robot interaction or resource allocation, these assumptions rarely hold. Setting an impossible safety threshold often causes standard CRL algorithms to fail or produce useless policies.

This research introduces Resilient Constrained Reinforcement Learning, a framework inspired by ecological resilience—the ability of a system to adapt its operation to survive disruptions. Instead of treating constraints as rigid walls, the authors propose a system that automatically negotiates the trade-off between rewards and safety requirements.

The Resilient Equilibrium

The core innovation is the Resilient Equilibrium. The authors define a perturbed Constrained Markov Decision Process (CMDP) where the constraint threshold can be relaxed by a value $\xi$. To prevent arbitrary relaxation, they introduce a convex relaxation cost function $h(\xi)$ that penalizes this flexibility.

The resilient equilibrium $\xi^*$ is found where the marginal reward gain from relaxing a constraint balances against the marginal relaxation cost.

The goal becomes a balancing act: finding a policy that maximizes reward while minimizing the cost of any necessary constraint relaxation. The authors prove that the "primal value function" (the best reward achievable for a given relaxation) is concave, allowing them to use convex optimization tools to find a stable equilibrium point where the marginal price of relaxation matches the marginal reward gain.

To solve this problem, the paper introduces two primary algorithms:

  • ResPG-PD (Resilient Policy Gradient Primal-Dual): A three-way update system that simultaneously updates the policy (for reward), Lagrange multipliers (for constraints), and relaxation parameters (for the optimal trade-off).
  • ResOPG-PD (Resilient Optimistic Policy Gradient Primal-Dual): An "optimistic" variant that uses intermediate predictions to stabilize training. This is crucial for achieving "last-iterate convergence," ensuring the final learned policy is high-performing rather than just an average of past iterations.

Key Results and Convergence

The paper provides the first non-asymptotic convergence guarantees for RL under uncertain constraints. The authors prove that their algorithms converge at a rate of $O(1/\sqrt{T})$, matching the performance of state-of-the-art CRL algorithms that operate with fixed, known constraints.

The optimality gap converges at the predicted $O(1/\sqrt{T})$ rate across different experimental settings, validating the theoretical guarantees.

In experiments involving robot monitoring tasks with infeasible constraints (e.g., requiring a robot to be in two locations simultaneously for a combined 160% of the time), the resilient agent successfully identified the "least-bad" relaxation. It continued to perform its primary task while maintaining the highest possible safety level, whereas traditional baselines failed to function entirely.

Conclusion and Future Directions

Resilient Constrained RL offers a robust solution for environments where safety boundaries are poorly defined or impossible to satisfy strictly. By automating the trade-off between performance and constraints, it provides a path toward more reliable autonomous systems. Future work will focus on scaling these theoretical guarantees to Deep RL settings using neural network function approximation and improving sample efficiency for complex, model-free robotics applications.

Summary updated

BibTeX
@inproceedings{ding2024resilient,
  author = {Dongsheng Ding and Zhengyan Huan and Alejandro Ribeiro},
  title = {{Resilient Constrained Reinforcement Learning}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2024},
  url = {https://openreview.net/forum?id=I5lIsRDCgg},
}
Figure