Defending Observation Attacks in Deep Reinforcement Learning via Detection and Denoising

Zikang Xiong, Joe Eappen, He Zhu, Suresh Jagannathan

Deep Reinforcement Learning (DRL) has achieved remarkable success in complex continuous control tasks, yet it remains notoriously vulnerable to adversarial observation attacks. These attacks involve small, often imperceptible perturbations to sensor data that can lead to catastrophic failures or unsafe behaviors in robotic systems. This paper introduces a robust defense mechanism designed to protect DRL agents without the performance trade-offs or safety risks inherent in traditional defense strategies.

The Challenge: Safety and Performance Trade-offs

Existing defenses against adversarial attacks typically rely on adversarial training, where an agent is exposed to malicious perturbations during the training process. While effective in some scenarios, this approach has two major flaws:

  1. Safety Risk: Training an agent under attack in a physical environment or high-fidelity simulation can lead to dangerous behaviors that damage hardware.
  2. Performance Trade-off: Adversarially trained agents often perform significantly worse in "clean," non-adversarial environments compared to their standard counterparts, creating a "utility tax" for security.

The Proposed Framework: Detect-and-Denoise

The authors propose a modular defense that "wraps" around a pre-trained, high-performing policy. This approach preserves the original policy's parameters, ensuring that peak performance is maintained under normal conditions. The system consists of two primary components powered by Gated Recurrent Unit Variational Auto-Encoders (GRU-VAEs):

1. The Detector

The detector is trained on sequences of "normal" observations. It monitors incoming sensor data in real-time by calculating a reconstruction error—the difference between the actual input and what the VAE expects to see based on learned patterns. If this error exceeds a specific threshold, the system flags an anomaly.

2. The Denoiser

When an attack is detected, the denoiser takes the corrupted observation and reconstructs the "ground truth" clean observation. This cleaned data is then passed to the DRL policy. By using GRUs, the model gains temporal awareness, allowing it to identify sudden, non-physical jumps in sensor data that often characterize adversarial attacks.

Offline Training Strategy

To avoid the risks of online training, the authors utilize offline data augmentation. They take a pre-existing dataset of clean observations and mathematically apply "Opposite" and "Q-function" attacks to them. This allows the denoiser to learn how to neutralize corrupted data without ever putting a live agent in a risky scenario. Additionally, a robustness regularizer is incorporated to minimize the difference between actions taken on clean data versus denoised data, further stabilizing the agent's behavior.

Experimental Results

The researchers evaluated their method on five standard MuJoCo continuous control benchmarks (Hopper, HalfCheetah, Walker2D, Ant, and Humanoid) using both deterministic (TD3) and stochastic (PPO) policies.

  • Preserving Clean Performance: Unlike state-of-the-art online defenses (such as ATLA), which can cause a ~35% drop in reward in normal environments, this "detect-and-denoise" method preserves 91% to 100% of the original policy's performance.
  • Restoring Robustness: Under heavy attack, the defense significantly restored agent rewards. For instance, in the Hopper-TD3 task, an attack that dropped the reward from 3607 to 390 was mitigated by the defense, bringing the reward back up to 2219.
  • Resilience to Adaptive Attacks: Even in "worst-case" scenarios where the attacker is aware of the defense mechanism, the framework remained resilient. The most successful adaptive attack only reduced performance by approximately 28% on the Ant-TD3 benchmark.

Conclusion and Future Work

By decoupling the defense mechanism from the policy training, the authors have created a system that is both safe to implement and highly effective at maintaining performance. The inherent stochasticity of the VAE architecture provides an additional layer of protection, making it difficult for attackers to craft perturbations that bypass the defense.

While the current framework requires manual tuning of detection thresholds, future work aims to automate this process. Additionally, the authors plan to explore more complex neural architectures to handle higher-dimensional sensor inputs, such as raw video, extending the reach of this robust defense to a wider array of robotic applications.

Summary updated

BibTeX
@inproceedings{xiong2022defending,
  author = {Zikang Xiong and Joe Eappen and He Zhu and Suresh Jagannathan},
  title = {{Defending Observation Attacks in Deep Reinforcement Learning via Detection and Denoising}},
  booktitle = {ECML/PKDD},
  year = {2022},
  doi = {10.1007/978-3-031-26409-2\_15},
}
Figure