Robust Adversarial Reinforcement Learning with Dissipation Inequation Constraint

Peng Zhai, Jie Luo, Zhiyan Dong, Lihua Zhang, Shunli Wang, Dingkang Yang

Abstract

Training robust reinforcement learning (RL) agents often involves adversarial training, which can lead to instability. We present DICARL, a framework that incorporates a dissipation inequation constraint from $H_\infty$ control theory to ensure system stability during training. By training a data-driven Lyapunov network to approximate system energy, DICARL maintains stability even against strong adversaries. Experimental results on MuJoCo benchmarks and real-world quadrotor flight demonstrate that DICARL significantly improves robustness and sim-to-real transfer compared to standard adversarial RL methods.

Introduction

Robust Adversarial Reinforcement Learning (RARL) is a popular technique where a "normal" agent tries to complete a task while an "adversarial" agent applies disturbances to stop it. Ideally, this forces the normal agent to learn a highly robust policy. However, training instability remains a major hurdle. In systems that are naturally difficult to balance, such as an inverted double pendulum, a strong adversary can easily destabilize the system before the agent learns useful behaviors. This leads to a biased sampling process where the agent only encounters failed states, preventing convergence or leading to poor local optima.

To address this, we introduce DICARL (Dissipation-Inequation Constraint-based Adversarial Reinforcement Learning). By bridging the gap between rigorous control theory and deep RL, DICARL ensures system stability during the learning process, facilitating the acquisition of highly robust policies.

Methodology

The core of DICARL is the extension of the dissipative principle from $H_\infty$ control theory to Markov Decision Processes (MDPs). Robustness is defined as the system's ability to suppress the $L_2$ gain—the impact of external disturbances on the reward signal. A bounded gain implies "mean square stability."

DICARL derives a sufficient condition for stability based on a dissipation inequality, which acts as an energy balance equation: the change in the system's internal energy (represented by a Lyapunov function) must be less than the difference between the allowed disturbance impact and the actual reward. Since system dynamics are often unknown, a separate neural network is trained to approximate this Lyapunov function ($F$).

Using the Lagrange multiplier method, this stability condition is integrated as a penalty term in the optimization objective. During training, both the agent and the adversary are updated under this constraint. For the agent, it provides a gradient toward stability; for the adversary, it prevents actions that would destabilize the system beyond recovery.

Experimental Setup

The framework was evaluated across several platforms:

  • MuJoCo Benchmarks: Four continuous control tasks modified for adversarial attacks: InvertedPendulumAdv-v1, InvertedDoublePendulumAdv-v1, HopperAdv-v1, and HalfCheetahAdv-v1.
  • GymFc: A specialized environment for training flight controllers for Unmanned Aerial Vehicles (UAVs).
  • Real-world Hardware: A physical quadrotor (QAV250 frame with a Pixhawk controller) was used for "sim-to-real" validation.

Results and Discussion

DICARL demonstrated superior robustness across all MuJoCo tasks. When tested against 100 different mass combinations to simulate modeling errors, DICARL significantly outperformed standard RARL. For instance, in the Hopper task, DICARL achieved a 38.4% success rate, nearly doubling the 20.4% achieved by RARL.

Success rates of DICARL vs. RARL across different adversary magnitudes in MuJoCo environments.

As shown in the figure above, DICARL maintains high success rates even as the magnitude of the adversary's force increases. In sensitive environments like the Inverted Double Pendulum, standard RARL performance collapses under strong attacks, whereas DICARL remains resilient. This suggests that constraining the adversary via stability requirements actually results in a stronger final agent by forcing it to learn nuanced recovery strategies rather than simply failing.

Furthermore, DICARL showed exceptional sim-to-real performance. A policy trained in the GymFc simulator was deployed directly onto a real quadrotor, achieving lower tracking errors on pitch (0.2206 vs 0.3595) and roll (0.1158 vs 0.3168) compared to a professionally tuned PID controller, even when carrying unseen payloads.

Conclusion

DICARL successfully integrates classical control theory concepts like $H_\infty$ control and Lyapunov stability into modern deep RL architectures. By ensuring stability during the learning phase, it achieves higher final robustness and better generalization to real-world hardware. Future work may explore hyperparameter optimization for the $L_2$ gain limit and the computational overhead of the Lyapunov network, as well as extending the framework to multi-adversary scenarios.

Summary updated

BibTeX
@inproceedings{zhai2022robust,
  author = {Peng Zhai and Jie Luo and Zhiyan Dong and Lihua Zhang and Shunli Wang and Dingkang Yang},
  title = {{Robust Adversarial Reinforcement Learning with Dissipation Inequation Constraint}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2022},
  doi = {10.1609/aaai.v36i5.20481},
}
Figure