Finding Physical Adversarial Examples for Autonomous Driving with Fast and Differentiable Image Compositing

Jinghan Yang, Adith Boloor, Ayan Chakrabarti, Xuan Zhang, Yevgeniy Vorobeychik

Abstract

Autonomous driving systems rely on deep neural networks for perception and control, making them potentially vulnerable to adversarial attacks. While digital perturbations are well-studied, physical attacks—such as adversarial patterns on road surfaces—present a more realistic threat. This paper introduces GradOpt, a framework that utilizes a differentiable image compositing pipeline to efficiently optimize physical adversarial examples. By bypassing the computational bottleneck of non-differentiable simulators, GradOpt achieves a 10x speedup in attack generation while significantly outperforming existing black-box optimization methods in causing vehicle infractions.

Introduction

Most research into adversarial machine learning focuses on "digital" perturbations, where invisible noise is added directly to image pixels. However, real-world attackers must modify the physical environment, such as placing stickers on traffic signs or painting patterns on the road. Identifying effective physical attacks is challenging due to the "simulation bottleneck": evaluating a pattern requires running a high-fidelity driving simulator thousands of times. Furthermore, simulators are typically non-differentiable, preventing the use of efficient gradient-based optimization. Additionally, autonomous vehicles are dynamical systems capable of self-correction; a successful attack must be robust enough to overcome the vehicle's internal control logic.

Methodology

GradOpt addresses these challenges by replacing the simulator with a differentiable proxy during the optimization phase. The framework consists of two primary innovations:

Differentiable Image Compositing

Instead of re-rendering the entire scene in the CARLA simulator for every iteration, GradOpt uses a small set of calibration frames from an unmodified environment. It employs homography (geometric warping) and color mapping to mathematically "paste" adversarial rectangles onto these pre-recorded frames. Because this compositing process is defined by differentiable equations, the system can use backpropagation to calculate exactly how changes in a pattern's shape, position, or color will affect the controller's steering output.

Overview of the GradOpt framework, showing the differentiable image compositing pipeline that approximates simulator outputs to enable gradient-based optimization of adversarial patterns.

Multiple Trajectory Sampling (Group Approach)

To ensure the attack is robust against the vehicle's self-correcting behavior, GradOpt does not optimize against a single ideal path. Instead, it samples a "group" of trajectories with minor steering perturbations. By forcing the adversarial pattern to be effective across this variety of potential paths, the resulting attack becomes significantly harder for the vehicle's controller to mitigate.

Experimental Setup

The researchers evaluated GradOpt using the CARLA autonomous driving simulator. The test suite included 40 distinct driving scenarios (straightaways and turns) in a virtual urban environment. The target was a neural network-based controller trained via imitation learning. The performance of GradOpt was compared against Bayesian Optimization (BO), the previous state-of-the-art black-box method.

Key Results

GradOpt demonstrated superior efficiency and effectiveness across all test cases:

  • Efficiency: GradOpt required only 61 simulator runs for calibration, compared to over 1,000 runs for BO. This reduced total optimization time from an average of 15 hours to just 2.5 hours per scenario.
  • Effectiveness: GradOpt outperformed BO in over 70% of scenarios. While BO often produced patterns that merely caused the car to wobble, GradOpt patterns frequently led to severe infractions, such as veering into oncoming traffic or onto sidewalks.
  • Robustness: Patterns optimized for clear daylight remained effective under different weather and lighting conditions (e.g., rain or sunset), suggesting the vulnerabilities are tied to the underlying geometry of the perception system.
Comparison of vehicle trajectories under unmodified conditions, Bayesian Optimization (BO) attacks, and GradOpt attacks across various driving scenarios. GradOpt consistently causes more severe deviations and crashes.

Discussion and Limitations

While GradOpt proves that differentiability is a powerful tool for finding physical vulnerabilities, several limitations remain. The current approach is a "white-box" attack, requiring access to the controller's internal weights. Additionally, the adversarial patterns were limited to simple geometric shapes (rectangles). Future work will explore black-box transferability and more complex, inconspicuous adversarial geometries. Finally, while CARLA is a high-fidelity environment, the "sim-to-real" gap must be bridged through physical testing on real-world vehicles to fully validate these findings.

Summary updated

BibTeX
@misc{yang2020finding,
  author = {Jinghan Yang and Adith Boloor and Ayan Chakrabarti and Xuan Zhang and Yevgeniy Vorobeychik},
  title = {{Finding Physical Adversarial Examples for Autonomous Driving with Fast and Differentiable Image Compositing}},
  year = {2020},
  eprint = {2010.08844},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2010.08844},
}
Figure