Abstract
Deep Reinforcement Learning (DRL) models are notoriously vulnerable to adversarial attacks, which can lead to catastrophic failures in safety-critical applications like autonomous driving. This paper proposes a plug-and-play ensemble defense framework that combines random noise, autoencoders, and Principal Component Analysis (PCA). This approach significantly improves agent robustness at inference time without requiring any retraining of the original policy, effectively filtering malicious perturbations before they reach the decision-making core.
Introduction
While DRL has shown immense promise in autonomous driving, it remains highly susceptible to adversarial attacks—small, strategically crafted perturbations to sensory data that can trick an AI into making dangerous decisions. For a self-driving car, this could manifest as ignoring critical signage or failing to detect obstacles. Existing defenses, such as adversarial training, often require computationally expensive retraining or are limited to specific attack types. This research addresses the gap in generalized defense mechanisms by creating a modular framework that acts as a protective shield for DRL agents.
Methodology
The proposed Ensemble Defense Framework operates entirely during the inference phase. When the agent receives an observation, it is processed simultaneously by three independent modules:
- Random Noise Defense: Introduces controlled, uniform noise to neutralize specific adversarial patterns.
- Autoencoder (AE) Defense: Utilizes a denoising filter to reconstruct "clean" states from potentially corrupted inputs.
- Principal Component Analysis (PCA) Defense: Projects inputs onto a lower-dimensional subspace to suppress high-frequency adversarial noise while retaining essential environmental features.
The outputs of these modules are aggregated via simple averaging to produce a "robust corrected observation," which is then fed into a standard Deep Q-Network (DQN) policy.
Experimental Setup
The framework was evaluated using the Highway-env simulation environment across two scenarios: Highway (high-speed navigation) and Merge (traffic integration). A DQN agent was first trained on clean data for 6,000 episodes to establish a nominal expert baseline. The system was then subjected to Fast Gradient Sign Method (FGSM) attacks to test the efficacy of the ensemble defense.
Results and Discussion
The ensemble approach demonstrated superior performance compared to standalone defense strategies. In the Highway scenario, the baseline agent's mean reward dropped to 5.87 under attack; the ensemble defense restored this to 18.38, representing a 213% improvement. Crucially, the mean collision rate was reduced from 0.50 to 0.09, an 82% decrease.
In the Merge scenario, the ensemble defense achieved a collision rate of 0.02, nearly matching the non-attacked baseline of 0.01. These results highlight the power of "filtering consensus": by combining diverse defensive strategies, the system can compensate for the individual weaknesses of any single module.
Conclusion and Future Work
This study validates a modular, inference-time ensemble defense as a viable method for hardening DRL policies against adversarial perturbations. Because it functions as a wrapper, it is compatible with various DRL algorithms and avoids the risks associated with retraining safety-certified models. Future research will focus on testing against more sophisticated attacks (e.g., PGD, Carlini-Wagner) and implementing adaptive weighting for the defense modules to further optimize resilience.
Summary updated