Self-driving models that map camera images directly to a planned path are now tested for robustness in a way that may flatter them. A defense is typically judged by how far an attacker can push the planned path away from the correct one, measured as an average distance error. What a safety benchmark actually cares about is different: whether the car hits something or leaves the road. An attacker who wants a crash does not need a large average error. A small, well-aimed bend at the wrong moment is enough. We propose to build attacks whose objective is a differentiable stand-in for the benchmark's own safety score, to use them to re-evaluate published driving defenses, and to adversarially train planners against that objective. An adversarially trained model is one trained on inputs deliberately perturbed to fool it.
The reason to expect the current picture to be wrong comes from image classification. There, On Adaptive Attacks to Adversarial Example Defenses. broke all 13 defenses it examined. It did so partly by making sure the attacker's loss matched the actual success criterion, which it calls "consistent loss functions." Driving has the same mismatch in a sharper form, and it adds a gap of its own: the metric used to train and attack the model, path error, is not the metric used to rank models, collision-gated scores. If the two metrics disagree, then published robustness gains, and possibly the ranking of defenses, reflect the choice of attack objective rather than safety.
Core Claim
We claim that for camera-based end-to-end planners, attacks that maximize path error systematically understate safety failures at equal perturbation budget. Swapping in an attack that maximizes a smooth version of the benchmark's collision and off-road terms will cut robust safety scores substantially and may reorder defenses. The same substitution inside adversarial training should give more safety per unit of compute than training against path-error attacks.
The novelty lies in aligning the objective, which neither side of the literature has done. The adversarial-training work optimizes and reports path error. Module-wise Adaptive Adversarial Training for End-to-end Autonomous Driving (MA²T) injects perturbations at the interfaces between the tracking, mapping and prediction modules, guides them with the total planning loss, and reports L2 improvements on nuScenes. It was evaluated only against standard white-box and transfer attacks. The attack work on driving optimizes control error. UniAda jointly maximizes steering and acceleration error and reaches 96.3% success at a 3.5° steering threshold, but it does so open-loop and never checks whether those errors cause crashes. The benchmarking work, meanwhile, never attacks the sensors adaptively. SafeBench and CAT perturb other vehicles' trajectories, not images, and do not adapt to the ego model's defenses.
Research Program
The main testbed is NAVSIM. It gives a planner one real sensor frame, unrolls its 4-second path against logged traffic, and scores it with the Predictive Driver Model (PDM) Score. That score is set to zero on a collision or on leaving the drivable area, and otherwise combines progress, time-to-collision and comfort. Because NAVSIM is non-reactive and uses a single frame, an attack is one image perturbation, which makes it cheap and exactly reproducible. We replace the hard gates with a smooth surrogate the attacker can differentiate:
$$\mathcal{L}_{\text{safe}}(\delta) = \max_{t,j}\, \sigma\!\left(-d_{t,j}(\tau_\theta(x+\delta))/\kappa\right) + \lambda \max_t\, \sigma\!\left(-m_t(\tau_\theta(x+\delta))/\kappa\right)$$
The symbols are as follows. $x$ is the camera input and $\delta$ the perturbation. $\tau_\theta$ is the planned path from model parameters $\theta$. $d_{t,j}$ is the signed distance between the ego footprint at waypoint $t$ and logged agent $j$. $m_t$ is the signed distance of that footprint to the drivable-area boundary, taken from a precomputed distance transform of the map. $\sigma$ is the logistic function, $\kappa$ a temperature, and $\lambda$ a weight between the collision and off-road terms. The max-over-time structure matters. It lets the attacker concentrate damage on one waypoint near one agent, which is exactly what average path error dilutes.
We then apply the adaptive-attack procedure to each defense. For randomized defenses in the style of AdROD, which regenerates low-rank weights and shuffles pixels at inference time, we average gradients over the randomness (Expectation Over Transformation) and add a gradient-free fallback. For external detectors such as AD2, which flags attacks through cross-camera and cross-frame inconsistency, we attack the planner and the detector jointly by adding a term that keeps the detector's score below its threshold. Each defense also receives the standard sanity checks. Success must rise to near-total as the budget grows, and white-box attacks must beat black-box ones. A defense that fails either check is reported as gradient-masked, meaning its gradients have been made uninformative without the model actually becoming robust.
Next we move closed-loop in CARLA on the Longest6 routes, using VAD, a camera-based end-to-end planner that MA²T also evaluates. The attacker perturbs frames online. Following AD2's finding that attacks every 11 frames already destabilize control, it may attack only a fixed fraction of frames, chosen greedily by the gradient norm of the surrogate. Finally, we run adversarial training with $\mathcal{L}_{\text{safe}}$ as the inner maximization, keeping a clean imitation loss on the outer objective, and compare it at matched compute with training against path-error attacks.
Baselines
The naive reference points are the undefended planners: TransFuser in NAVSIM, which NAVSIM reports at roughly 84% PDM Score clean, and VAD in CARLA, whose clean driving score MA²T reports as 37.7%. Each is evaluated under both attack objectives. Any defense must at least beat these under the safety attack.
The static-evaluation reference is the current practice. This is projected gradient descent (PGD, iterated signed-gradient steps within an $\ell_\infty$ budget) maximizing L2 path error, run at the same budget, step count and random restarts as our attack. Our attack beats it if, at matched budget, it lowers the PDM Score or raises the collision rate by a margin larger than seed-to-seed variation. If it does not, our central claim is false.
The strongest existing defense is MA²T. The file reports that on VAD in closed-loop CARLA it restored the attacked driving score from 25.6% to 35.4%, against 37.7% clean, and gave 5–10% L2 gains under white-box attack on nuScenes. We reproduce MA²T on VAD using its dynamic loss-weighting scheme and the same training data and GPU-hour budget as our method. We then report its driving score under its original attack and under our safety attack. For NAVSIM, no reported adversarial-robustness result for any planner was found on Lacuna, so every NAVSIM robust number will be produced here under a single protocol. The clean comparison point is Hydra-MDP at 91.3% PDM Score. Standard pixel-level adversarial training on TransFuser, using path error, serves as the in-NAVSIM defense baseline, because TransFuser lacks the explicit modules MA²T perturbs.
The key ablation isolates the objective. It holds architecture, attack step count, budget, data and compute fixed, and changes only the inner loss of adversarial training from L2 to $\mathcal{L}_{\text{safe}}$. A second ablation removes the max-over-time structure and uses a mean over waypoints, to test whether concentrating damage is what matters.
Why not just…?
Why not just run a stronger path-error attack, with more steps, restarts and gradient averaging? This is the most serious alternative. If path-error attacks are simply under-optimized, scaling them might close the gap. We test it directly. We sweep the path-error attack's steps up to 10 times our attack's budget and check whether its collision rate plateaus below ours. The objectives could also turn out to agree, with high-L2 perturbations already causing collisions at similar rates. In that case we will report that the safety surrogate is unnecessary, and what remains is a smaller contribution: a reproducible adaptive-evaluation protocol for NAVSIM.
Why not just use behavioral adversarial scenarios like CAT or SafeBench's trajectory optimizers? Those methods move other vehicles and assume perfect perception. CAT resamples logged trajectories and cut crash rates by 15.18%, but it never touches the camera pathway where AD2 observed driving-score drops of up to 99%. They answer a different threat model. We include CAT-style scenario training as a control to check that safety-objective training against image attacks does not merely duplicate what scenario hardening already buys.
Why not just bolt on an attack detector like AD2 and skip retraining? AD2's detector is lightweight, but it has never been evaluated against an attacker who knows it is there. Its consistency checks are differentiable, so the joint attack above is a direct test. If the detector holds under that attack at matched budget, detection is a legitimate competitor and we will report it as one. If the detector's recall collapses, it shows why the policy itself needs hardening.
Proposed Experiments
The first decisive check is on NAVSIM's navtest split. We run both attack objectives against undefended TransFuser, L2-trained TransFuser and safety-trained TransFuser, at several $\ell_\infty$ budgets and at matched steps, and report PDM Score, the collision and drivable-area subscores, and the adaptive gap, defined as the score under L2 attack minus the score under safety attack.
The second check is ranking stability. We compute Kendall's tau between the defense rankings under the two attacks, across the NAVSIM defenses and the CARLA defenses (MA²T, an AdROD-style randomized perception module, and the AD2 detector). A tau well below 1 would show that current leaderboards are artifacts of the attack objective.
The third check is closed-loop CARLA Longest6 with VAD. We report driving score and collisions per kilometre as the fraction of attacked frames varies, comparing MA²T and safety-objective training at equal GPU hours. The hypothesis passes if safety-objective training matches or exceeds MA²T's 35.4% under MA²T's own attack and clearly exceeds it under the safety attack, while staying within two points of the 37.7% clean score.
Every reported robust number will carry the budget-sweep and white-box versus black-box sanity checks. That way a defense that merely masks gradients cannot pass for a robust one, the failure that On Adaptive Attacks to Adversarial Example Defenses. documented across classification defenses.
References
- On Adaptive Attacks to Adversarial Example Defenses
- Module-wise Adaptive Adversarial Training for End-to-end Autonomous Driving
- UniAda: Universal Adaptive Multiobjective Adversarial Attack for End-to-End Autonomous Driving Systems
- SafeBench: A Benchmarking Platform for Safety Evaluation of Autonomous Vehicles
- CAT: Closed-loop Adversarial Training for Safe End-to-End Driving
- NAVSIM: Data-Driven Non-Reactive Autonomous Vehicle Simulation and Benchmarking
- AdROD: HyperNetwork-based Adversarially Robust Object Detection for Autonomous Driving
- AD2: Analysis and Detection of Adversarial Threats in Visual Perception for End-to-End Autonomous Driving Systems