Embodied Active Defense: Leveraging Recurrent Feedback to Counter Adversarial Patches

Lingxuan Wu, Xiao Yang, Yinpeng Dong, Liuwei Xie, Hang Su, Jun Zhu

Introduction

Deep Neural Networks (DNNs) have demonstrated remarkable performance in computer vision, yet they remain notoriously vulnerable to adversarial patches. These small, localized perturbations—such as a sticker on a stop sign or a pair of "adversarial glasses"—can completely derail a model's prediction.

Traditional defenses are primarily passive, treating images as static 2D snapshots and relying on prior knowledge of specific attacks to filter out noise. This approach suffers from two major flaws: brittleness against "unseen" attacks and a fundamental limitation in ignoring the 3D nature of the real world. In contrast, humans naturally shift their perspective when faced with ambiguous or suspicious visual information. This paper introduces Embodied Active Defense (EAD), a framework that shifts the paradigm from passive filtering to active 3D interaction.

The EAD Framework

EAD emulates active human vision by allowing an agent to strategically move and aggregate information across multiple viewpoints. The framework consists of two recurrent sub-modules that work in tandem to "see through" adversarial interference.

Overview of the Embodied Active Defense (EAD) framework, illustrating the interaction between internal reflection (perception/policy) and the external environment.
  1. Perception Module: This module maintains an internal "belief" (a latent representation) of the scene. It recurrently processes a sequence of observations, refining its understanding of the target object over time as new viewpoints are explored.
  2. Policy Module: Instead of a fixed gaze, the agent acts. The policy module determines the optimal camera movement (e.g., yaw and pitch) to collect the most informative next observation, specifically aiming to reduce the uncertainty caused by an adversarial patch.

Technical Innovations

To realize this active defense, the authors implemented several key innovations:

  • Differentiable Environment Approximation: Training the policy via backpropagation requires a differentiable path. The authors utilize a differentiable renderer (such as EG3D), allowing gradients to flow from the final prediction error back to the agent's movement decisions.
  • Uniform Superset Approximation for Adversarial Patches (USAP): To avoid overfitting to specific known attacks, EAD is trained against randomly sampled patches. This "attack-agnostic" training forces the model to rely on the intrinsic physical context of the scene rather than learning to recognize specific noise patterns.
  • Information-Theoretic Foundation: The training objective, based on InfoNCE loss, encourages a "greedy informative exploration" strategy. The agent moves to viewpoints that maximize the mutual information between observations and the true label, effectively finding the "blind spots" of the adversarial attack.

Results and Evaluation

The researchers evaluated EAD on safety-critical tasks including Face Recognition (using CelebA-3D) and Object Detection (using CARLA-GEAR and ShapeNet Cars).

Qualitative results showing EAD's performance over four steps in dodging and impersonation tasks.

Key findings include:

  • Superior Robustness: In face recognition, EAD reduced the Attack Success Rate (ASR) of the potent 3DAdv attack from 98% to 13.7%. Notably, it also increased standard accuracy on clean images compared to undefended models.
  • Massive Generalization: Across a wide range of unseen adversarial attacks, EAD diminished the average ASR by 95%.
  • Efficiency: As shown in the qualitative results, the agent typically achieves high confidence and counters the attack within just 4 steps of movement.
  • Object Detection: In the CARLA simulator, EAD significantly outperformed state-of-the-art passive defenses like SAC and PatchZero, maintaining high mean Average Precision (mAP) even under heavy attack.

Conclusion and Future Work

Embodied Active Defense demonstrates that movement is a powerful filter against adversarial patches, which are often highly sensitive to geometry. By integrating evidence over time, the model maintains a correct "belief" even when individual frames are heavily corrupted.

While highly effective, EAD currently requires an "embodied" system, such as a robot or a vehicle with a movable sensor, making it inapplicable to static CCTV. Future research may explore making the policy stochastic to defend against potential "trajectory-aware" adaptive white-box attacks, further hardening the system against sophisticated adversaries.

Summary updated

BibTeX
@inproceedings{wu2024embodied,
  author = {Lingxuan Wu and Xiao Yang and Yinpeng Dong and Liuwei XIE and Hang Su and Jun Zhu},
  title = {{Embodied Active Defense: Leveraging Recurrent Feedback to Counter Adversarial Patches}},
  booktitle = {International Conference on Learning Representations},
  year = {2024},
  url = {https://openreview.net/forum?id=uXjfOmTiDt},
}
Figure