Abstract
Rigorously testing autonomy systems is essential for making safe self-driving vehicles (SDV) a reality. It requires one to generate safety critical scenarios beyond what can be collected safely in the world, as many scenarios happen rarely on our roads. To accurately evaluate performance, we need to test the SDV on these scenarios in closed-loop, where the SDV and other actors interact with each other at each timestep. Previously recorded driving logs provide a rich resource to build these new scenarios from, but for closed loop evaluation, we need to modify the sensor data based on the new scene configuration and the SDV's decisions, as actors might be added or removed and the trajectories of existing actors and the SDV will differ from the original log. In this paper, we present UniSim, a neural sensor simulator that takes a single recorded log captured by a sensor-equipped vehicle and converts it into a realistic closed-loop multi-sensor simulation. UniSim builds neural feature grids to reconstruct both the static background and dynamic actors in the scene, and composites them together to simulate LiDAR and camera data at new viewpoints, with actors added or removed and at new placements. To better handle extrapolated views, we incorporate learnable priors for dynamic objects, and leverage a convolutional network to complete unseen regions. Our experiments show UniSim can simulate realistic sensor data with small domain gap on downstream tasks. With UniSim, we demonstrate, for the first time, closed-loop evaluation of an autonomy system on safety-critical scenarios as if it were in the real world.
Introduction
Testing self-driving cars presents a significant challenge: developers need to evaluate systems in dangerous "edge-case" scenarios, yet collecting such data in the real world is both risky and prohibitively expensive. Current industry standards often rely on log-replay, which is open-loop and fails to update sensor data when the SDV deviates from the original path, or game engines, which require intensive manual asset creation and often suffer from a significant "domain gap" between simulated and real-world visuals. UniSim bridges this gap by creating a simulator that is both data-driven and editable, enabling high-fidelity closed-loop simulation from a single recorded log.
Methodology: Compositional Neural Fields
UniSim represents the 3D world using Neural Feature Fields (NFFs). The core innovation is its compositional approach, which allows for precise scene manipulation:
- Scene Decomposition: The system separates the environment into a static background and individual dynamic actors (e.g., cars, pedestrians). This allows for rendering occluded regions that were hidden in the original recording when actors are moved or removed.
- Sparse Feature Grids: To handle long driving sequences efficiently, the background is modeled using a sparse voxel-based grid, focusing computation on physical surfaces rather than empty space.
- Actor Hypernetworks: Since a single log may only capture one side of a vehicle, UniSim uses a hypernetwork to learn shape priors, allowing it to realistically "hallucinate" unseen parts of an actor from new camera angles.
- Neural Rendering Pipeline: Instead of rendering raw pixels, UniSim renders a 2D feature map and employs a Convolutional Neural Network (CNN) decoder to produce the final photorealistic image and LiDAR point cloud, helping to inpaint missing regions and reduce artifacts.
Key Insights: Closing the Loop
The primary breakthrough of UniSim is its ability to perform full closed-loop evaluation. As the SDV makes decisions—such as changing lanes or braking—the simulator updates the sensor data in real-time to reflect the new perspective and actor interactions.
- Scenario Editing: Users can modify existing logs to create "what-if" scenarios, such as inserting a new truck or modifying a sedan's route to force a safety-critical cut-in.
- Simulation as a Teacher: Data generated by UniSim is realistic enough to augment training sets. The paper demonstrates that adding UniSim-generated "lane shift" data improves the performance of real-world vehicle detection models.
- Unified Modalities: By using a single neural representation for both LiDAR and camera data, the simulator ensures spatial and temporal consistency across different sensor types.
Key Results
Evaluated on the PandaSet public dataset, UniSim significantly outperformed state-of-the-art methods in both photorealism and LiDAR fidelity. In "lane shift" tests, UniSim achieved a much lower FID score (74.7 vs. 112.6 for the next best method), indicating superior image quality. It also achieved a 99.6% hit rate for LiDAR points compared to 92.2% for previous methods. Crucially, in "Real2Sim" tests, perception models showed the smallest performance drop when running on UniSim data, proving its minimal domain gap.
Limitations and Future Work
While UniSim represents a major step forward, several challenges remain. Lighting is currently "baked" into the neural representation, preventing the simulation of different weather conditions or times of day. Additionally, the model does not yet handle articulated motion, such as pedestrians walking or vehicle turn signals. Future research will focus on explicitly modeling lighting and more complex actor behaviors to create an even more robust simulation environment.
Summary updated