Attacking Motion Planners Using Adversarial Perception Errors

Jonathan Sadeghi, Nicholas A. Lord, John Redford, Romain MuellerarXiv 2023

TL;DR

This paper demonstrates that modular autonomous driving systems can suffer catastrophic failures even when their perception modules perform exceptionally well by standard industry metrics. The authors introduce a black-box "boundary-attack" algorithm to systematically find adversarial perception errors—subtle mistakes in object detection that appear benign to metrics like the nuScenes Detection Score but lead directly to collisions.

What Problem Does This Paper Address?

Autonomous driving (AD) stacks are typically modular: a perception system detects objects, and a motion planner decides how to move safely around them. Engineers usually test these modules in isolation using task-specific metrics (e.g., mean Average Precision).

The underlying assumption is that "better perception leads to safer planning." However, the authors argue that standard perception metrics are often weakly correlated with actual driving safety. A system might have 99.9% accuracy, but if the 0.1% error occurs at a critical moment—like momentarily "forgetting" a car during a left turn—the result is a crash. This paper tackles the challenge of identifying these high-severity, low-probability failure modes that standard testing often misses.

Methods

The researchers treat the motion planner as a "black box" (where internal gradients aren't available) and search for perception inputs that satisfy two conditions:

  1. Rule Violation: The planner causes a collision or breaks a driving rule.
  2. High Quality: The perception error is so subtle that the module still receives a high score on standard metrics.

Their search strategy, illustrated in the figure below, uses a two-phase approach:

  • Heuristic Search: A hand-crafted strategy using a bisection method to find the "failure boundary." For example, it might determine the exact minimum time an oncoming car needs to be "dropped" from perception to cause the ego vehicle to turn into its path.
  • Random Search: Inspired by the "Boundary Attack" used against image classifiers, this phase refines the initial failure by making small, random perturbations. It attempts to maximize the perception metric (making the error "stealthier") while ensuring the planner still fails.
Figure 1. Adversarial perception error search. Left: Starting from a standard simulation rollout without perception system (blue), we inject perception errors e to create the the perceived scene ˆy = I(y, e) (red) and search for perception errors e that make the planner fail while maximising the perception metric m(ˆy, y) (green), see text for details. Note that dashed lines represent actions that occur once after every completed rollout. Right: A detailed graphical representation of our search strategy showing the heuristic (orange) and random (cyan) searches.

To ensure these errors are realistic, they also trained a Perception Error Model (PEM)—a probabilistic neural network that learns the distribution of real-world errors made by state-of-the-art detectors.

Datasets

  • nuScenes: A large-scale real-world dataset for autonomous driving. It was used to train the BEVFusion 3D object detector and to train/validate the authors' Perception Error Model (PEM).
  • CARLA Simulator: Used to conduct the actual driving experiments. The authors tested their attacks across five distinct urban and highway scenarios, including overtaking stationary vehicles and performing unprotected left turns.
Figure 2. Test scenarios for the ObP: (a) overtake, (b) left turn, (c) right turn; and IDM planners: (d) lane following, (e) overtake fol- low. The diagrams show the road configuration and the positions and trajectories of the different vehicles (green=ego, red=moving, black=stationary).

Key Insights and Ideas

  • Metrics are not Safety: The most striking insight is that adversarial errors can score in the 99th percentile of real-world perception performance. A module could look "perfect" on a dashboard while being fundamentally unsafe.
  • Isolation in Input Space: These adversarial attacks are "isolated." If you add a tiny bit of random noise to an adversarial perception input, the system often recovers and drives safely again. This suggests these failures are highly specific "blind spots" in the planner's logic.
  • Trading Errors: When the search algorithm was forced to optimize for a metric that penalizes "flickering" (continuous false negatives), it cleverly adapted by switching to tiny position and orientation errors instead. The planner still crashed, but the perception module looked even better on paper.
  • Interpretability: These attacks act as a form of "fuzzing" for planners. By seeing exactly what kind of perception mistake causes a crash, engineers can identify specific algorithmic weaknesses in the planner (e.g., a lack of robustness to slight coordinate shifts).

Key Results

The authors successfully generated adversarial perception errors for two different planners: an optimization-based planner (ObP) and one based on the Intelligent Driver Model (IDM).

  • High Stealth: In the "left turn" scenario, the algorithm found a failure that involved only one false negative detection, yet caused a collision.
  • Metric Disconnect: As shown in Figure 4 (left), the search consistently found errors with NDS (nuScenes Detection Score) values higher than the median performance of a state-of-the-art detector on real data.
  • Plausibility: The generated errors were high-likelihood according to the PEM, meaning they aren't just mathematical artifacts but are similar to errors a real sensor might make.
Figure 4. (left) Highest values of the perception quality metrics m obtained during successive rollouts of our adversarial attack search algorithm. Heuristic search is represented by solid lines, whilst random search is represented by dashed lines. We plot the 0.50, 0.95, and 0.99 quantiles of the histograms of NDS/NDS-t on nuScenes val from Fig. 3 for comparison. (right) Selected frames from adversarial attacks obtained using our algorithm, demonstrating typical errors and the resulting collision.

Limitations and Future Work

  • Open-Loop Simulation: The experiments were conducted in an "open-loop" fashion where other agents in the scene follow pre-determined paths and do not react to the ego vehicle's erratic behavior caused by perception errors.
  • Probability Estimation: While the paper proves these failures exist and are plausible, it does not calculate the total probability of such an event occurring during a real-world drive.
  • Planner-Centric Metrics: The work highlights a desperate need for new perception metrics that prioritize "downstream" safety impact over generic detection accuracy. Future work could involve integrating these adversarial search methods directly into the training loop of motion planners to improve their robustness.

Summary updated

BibTeX
@misc{sadeghi2023attacking,
  author = {Jonathan Sadeghi and Nicholas A. Lord and John Redford and Romain Mueller},
  title = {{Attacking Motion Planners Using Adversarial Perception Errors}},
  year = {2023},
  eprint = {2311.12722},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2311.12722},
}
Figure