[Paper Review] On the Robustness of Safe Reinforcement Learning under Observational Perturbations
This paper investigates the vulnerability of safe reinforcement learning (RL) policies to observational adversarial perturbations, proposing two novel attack methods—cost maximization and reward maximization—that expose critical safety weaknesses. It introduces a robust training framework using these attacks, demonstrating improved constraint satisfaction under adversarial conditions across multiple continuous control environments.
Safe reinforcement learning (RL) trains a policy to maximize the task reward while satisfying safety constraints. While prior works focus on the performance optimality, we find that the optimal solutions of many safe RL problems are not robust and safe against carefully designed observational perturbations. We formally analyze the unique properties of designing effective observational adversarial attackers in the safe RL setting. We show that baseline adversarial attack techniques for standard RL tasks are not always effective for safe RL and propose two new approaches - one maximizes the cost and the other maximizes the reward. One interesting and counter-intuitive finding is that the maximum reward attack is strong, as it can both induce unsafe behaviors and make the attack stealthy by maintaining the reward. We further propose a robust training framework for safe RL and evaluate it via comprehensive experiments. This paper provides a pioneer work to investigate the safety and robustness of RL under observational attacks for future safe RL studies. Code is available at: \url{https://github.com/liuzuxin/safe-rl-robustness}
Motivation & Objective
- To investigate the vulnerability of safe RL policies to observational adversarial perturbations, especially in safety-critical applications.
- To identify limitations of existing adversarial attack methods in standard RL when applied to safe RL, where constraint violations are catastrophic.
- To design effective adversarial attackers tailored for safe RL that can induce unsafe behaviors while maintaining stealth or maximizing cost.
- To develop a robust training framework that improves policy resilience against worst-case observational perturbations while preserving safety constraints.
- To validate the effectiveness of proposed methods across multiple safe RL algorithms and environments, demonstrating improved robustness in constraint satisfaction.
Proposed method
- Proposes two new adversarial attack strategies for safe RL: (1) cost maximization (MC) to directly increase constraint violations, and (2) reward maximization (MR) to induce risky, high-reward behaviors that may lead to unsafe outcomes.
- Introduces a robust training framework using both MC and MR attacks during policy optimization, enabling the agent to learn policies resilient to worst-case perturbations.
- Employs a linear combination of MC and MR objectives as a mixture attacker to evaluate robustness under diverse adversarial scenarios.
- Applies adversarial training to SAC-Lagrangian, FOCOPS, and CVPO, using the proposed attacks to update policy and value networks with improved robustness.
- Theoretical analysis shows contraction properties of Bellman operators under the proposed attacks, supporting convergence and stability of the training process.
- Uses a hyperparameter-weighted mixture attacker (w × MC + (1−w) × MR) to evaluate robustness across varying attack intensities and trade-offs between reward and cost objectives.
Experimental results
Research questions
- RQ1How vulnerable are safe RL policies to observational adversarial perturbations, especially in terms of constraint violations?
- RQ2Why are standard adversarial attack methods (e.g., reward minimization) ineffective or insufficient in the safe RL setting?
- RQ3Can a reward-maximizing attack be more effective than a cost-maximizing one in inducing unsafe behaviors while remaining stealthy?
- RQ4Can adversarial training using the proposed attacks improve robustness in constraint satisfaction under worst-case perturbations?
- RQ5How does the performance of robustly trained policies compare across different safe RL algorithms and environments under mixed adversarial attacks?
Key findings
- The optimal solutions of safe RL problems are vulnerable to observational adversarial perturbations, even when they satisfy safety constraints in clean environments.
- The maximum reward attack (MR) is highly effective in inducing unsafe behaviors and is stealthy because it maintains high task reward, making it difficult to detect.
- Vanilla safe RL agents (e.g., SAC-Lagrangian, FOCOPS, CVPO) suffer significant constraint violations under MC and MR attacks, with cost increasing by up to 112.53 in Car-Circle and 184.22 in Car-Run.
- Adversarially trained policies (ADV-PPOL, ADV-CVPO) maintain near-zero cost (e.g., 0.02–0.08) under MC and MR attacks, while achieving high reward, demonstrating robustness.
- The mixture attacker (MC:MR = 1:1) consistently degrades performance of vanilla policies, but robustly trained agents remain stable and safe, indicating generalization across attack types.
- In Car-Run with α=0.01, the ADV-PPOL(MR) agent achieves 557.07 ± 3.05 reward and 0.02 ± 0.13 cost under MR attack, while the vanilla PPOL achieves 624.68 ± 8.85 reward but 184.22 ± 0.45 cost, highlighting the trade-off between reward and safety in unrobust policies.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.