Generating Transferable Adversarial Simulation Scenarios for Self-Driving via Neural Rendering

Yasasa Abeysirigoonawardena, Kevin Xie, Chuhan Chen, Salar Hosseini Khorasgani, Ruiting Chen, Ruiqi Wang, Florian Shkurti

Abstract

Self-driving software pipelines include components that are learned from a significant number of training examples, yet it remains challenging to evaluate the overall system's safety and generalization performance. Together with scaling up the real-world deployment of autonomous vehicles, it is of critical importance to automatically find simulation scenarios where the driving policies will fail. We propose a method that efficiently generates adversarial simulation scenarios for autonomous driving by solving an optimal control problem that aims to maximally perturb the policy from its nominal trajectory. Given an image-based driving policy, we show that we can inject new objects in a neural rendering representation of the deployment scene, and optimize their texture in order to generate adversarial sensor inputs to the policy. We demonstrate that adversarial scenarios discovered purely in the neural renderer (surrogate scene) can often be successfully transferred to the deployment scene, without further optimization. We demonstrate this transfer occurs both in simulated and real environments, provided the learned surrogate scene is sufficiently close to the deployment scene.

Introduction

Ensuring the safety of autonomous vehicles (AVs) is a monumental task. Traditional testing involves driving millions of miles in the real world to encounter rare failure modes, a process that is both slow and dangerous. While high-fidelity simulators like CARLA offer a safer alternative, they often function as "black boxes." Researchers cannot easily backpropagate through these simulators to determine exactly how to modify an environment to trigger a specific failure. This paper introduces a novel approach: using Neural Radiance Fields (NeRFs) as a differentiable "sandbox" to automatically discover adversarial scenarios that cause driving policies to fail.

Methodology: The NeRF Sandbox

The core innovation lies in creating a differentiable surrogate environment. The authors propose a four-step pipeline to bridge the gap between black-box simulators and gradient-based optimization:

  1. Scene Reconstruction: Using images from a target "deployment scene" (either a high-fidelity simulator or a real-world room), the system trains a NeRF—specifically using the fast Instant-NGP architecture—to create a digital twin.
  2. Object Insertion: New 3D objects, such as cars or fire hydrants sourced from datasets like Objaverse, are inserted into this digital twin. These objects are also represented as NeRFs, allowing their appearance to be optimized.
  3. Adversarial Optimization: The problem is framed as an optimal control task. The goal is to maximize the "cross-track error" (the distance the vehicle deviates from its intended path). Because the NeRF is differentiable, the system uses gradient descent to refine the texture and pose of the inserted objects.
  4. The Adjoint Method: To manage the computational load of long driving trajectories, the researchers employ implicit differentiation (the adjoint method), allowing for efficient gradient computation through time without exhausting GPU memory.
Overview of the adversarial simulation pipeline, showing the transfer from a high-fidelity simulator (CARLA) to a differentiable neural renderer for attack discovery.

Key Insights: 3D-Consistent Attacks

Unlike traditional 2D adversarial attacks that add noise to individual pixels, this method generates 3D-consistent attacks. Because the adversarial textures are optimized within a 3D NeRF, they remain consistent from different angles and distances as the vehicle moves. This physical consistency is crucial for fooling real-world driving policies that rely on temporal and spatial features.

Experimental Results

The researchers tested their method in both simulated (CARLA) and real-world environments (an RC track using the RACECAR/J platform).

  • Gradient-Based Success: In CARLA, gradient-based optimization discovered attacks that caused nearly double the deviation compared to random search patterns.
  • Sim-to-Real Transfer: A significant finding was that attacks discovered in a "blurry" neural reconstruction successfully transferred to the physical world. An RC car following a square track was lured off-course by adversarial patterns displayed on monitors, demonstrating that the features driving policies rely on are captured even in imperfect neural renders.
  • Robustness Training: The authors demonstrated that the discovered adversarial scenarios could be used to fine-tune driving policies, significantly increasing their robustness to these specific failure modes.
Comparison of driving trajectories under unperturbed, random, and adversarial conditions in both real-world (deployment) and neural-rendered (NeRF) environments.

Conclusion and Future Work

This work demonstrates that NeRFs can serve as functional, differentiable proxies for the physical world, enabling "white-box" optimization on previously "black-box" safety problems. While current limitations include the requirement for differentiable driving policies and the difficulty of optimizing object placement in jagged loss landscapes, the method opens new doors for automated safety testing. Future work aims to improve the visual fidelity of surrogate renderers to further close the perceptual gap between simulation and reality.

Summary updated

BibTeX
@inproceedings{abeysirigoonawardena2023generating,
  author = {Yasasa Abeysirigoonawardena and Kevin Xie and Chuhan Chen and Salar Hosseini Khorasgani and Ruiting Chen and Ruiqi Wang and Florian Shkurti},
  title = {{Generating Transferable Adversarial Simulation Scenarios for Self-Driving via Neural Rendering}},
  booktitle = {Conference on Robot Learning},
  year = {2023},
  url = {https://openreview.net/forum?id=4uFVn6WHyzo},
}
Figure