DynamicPAE: Generating Scene-Aware Physical Adversarial Examples in Real-Time

Jin Hu, Xianglong Liu, Jiakai Wang, Junkai Zhang, Xianqi Yang, Haotong Qin, Yuqing Ma, Ke Xu · DOI · OpenReview

Abstract

Physical adversarial examples (PAEs) are regarded as "whistle-blowers" of real-world risks in deep-learning applications. However, current PAE generation studies show limited adaptive attacking ability to diverse and varying scenes. The key challenges in generating dynamic PAEs are exploring their patterns under noisy gradient feedback and adapting the attack to agnostic scenario natures. To address the problems, we present DynamicPAE, the first generative framework that enables scene-aware real-time physical attacks beyond static attacks. Specifically, to train the dynamic PAE generator under noisy gradient feedback, we introduce the residual-driven sample trajectory guidance technique, which redefines the training task to break the limited feedback information restriction that leads to the degeneracy problem. Intuitively, it allows the gradient feedback to be passed to the generator through a low-noise auxiliary task, thereby guiding the optimization away from degenerate solutions and facilitating a more comprehensive and stable exploration of feasible PAEs. To adapt the generator to agnostic scenario natures, we introduce the context-aligned scene expectation simulation process, consisting of the conditional-uncertainty-aligned data module and the skewness-aligned objective re-weighting module. Extensive digital and physical evaluations demonstrate the superior attack performance of DynamicPAE, attaining a 1.95× boost (65.55% average AP drop under attack) on representative object detectors (e.g., Yolo-v8) over state-of-the-art static PAE generating methods.

Introduction

Deep learning models, particularly object detectors used in autonomous systems, are vulnerable to Physical Adversarial Examples (PAEs). Traditionally, these attacks have been static—a single optimized patch intended to work across various environments. However, real-world conditions like lighting shifts and angle changes often render static patches ineffective. DynamicPAE addresses this by introducing a generative framework capable of creating scene-aware PAEs in real-time, achieving a lightning-fast 12ms inference latency.

Overview of the DynamicPAE framework showing the transition from model training to real-world deployment, highlighting the advantage of dynamic over static PAEs under lighting changes.

Methodology

DynamicPAE utilizes a lightweight encoder-decoder architecture to generate patches on the fly. The framework overcomes two primary hurdles: training degeneracy and real-world alignment.

Residual-Guided Adversarial Pattern Exploration

Standard attack gradients are often too noisy to guide a complex generator, leading to "mode collapse" where the model outputs non-adaptive solutions. DynamicPAE introduces a residual task—a reconstruction task that forces the generator to learn how to recreate the local background. This auxiliary task provides a cleaner gradient signal, ensuring stable exploration of feasible adversarial patterns.

Distribution-Matched Attack Scenario Alignment

To ensure real-world efficacy, the framework employs two key modules:

  1. Conditional-Uncertainty-Aligned Data Module: This uses a conditional probabilistic model for domain randomization, simulating the incomplete observations an attacker faces in the real world to prevent overfitting to perfect simulations.
  2. Skewness-Aligned Objective Re-weighting: This module automatically balances the trade-off between attack effectiveness and stealthiness by re-weighting losses based on a skewness indicator, ensuring consistent control across different targets.
Detailed architecture of the DynamicPAE framework, illustrating Residual-Guided Adversarial Pattern Exploration and Distribution-Matched Attack Scenario Alignment.

Key Results and Evaluation

The researchers evaluated DynamicPAE across digital benchmarks (COCO, Inria), autonomous driving simulators (CARLA), and physical deployments.

  • Performance: DynamicPAE achieved a 58.8% average AP drop across various detectors (including YOLO and DETR), representing a 2.07× improvement over state-of-the-art static patch methods.
  • Efficiency: With an inference latency of just 12ms (~90 FPS), the system is suitable for real-time deployment on standard hardware.
  • Robustness: Physical tests confirmed that DynamicPAE remains effective under varying lighting and movement, conditions where static patches typically fail.

Conclusion

DynamicPAE represents a significant advancement in physical adversarial attacks, proving that scene-adaptive, real-time generation is both feasible and highly effective. By leveraging residual-guided training and distribution-matched alignment, it exposes critical vulnerabilities in modern object detectors, setting a new benchmark for evaluating real-world AI security.

Summary updated

BibTeX
@inproceedings{hu2024dynamicpae,
  author = {Jin Hu and Xianglong Liu and Jiakai Wang and Junkai Zhang and Xianqi Yang and Haotong Qin and Yuqing Ma and Ke Xu},
  title = {{DynamicPAE: Generating Scene-Aware Physical Adversarial Examples in Real-Time}},
  booktitle = {PubMed},
  year = {2024},
  doi = {10.1109/tpami.2025.3626068},
}
Figure