Self-driving cars are only as good as their "eyes." While researchers have made massive strides in building neural planners that can navigate complex traffic, these planners are often evaluated using perfect "ground-truth" data. In the real world, however, perception systems are messy—they miss cars, hallucinate pedestrians, and misjudge distances.
A new paper from researchers at Mercedes-Benz and the University of Tübingen introduces EMPERROR, a generative model designed to bridge this gap by realistically mimicking the "long-tail" errors of modern 3D object detectors.
TL;DR
EMPERROR is a transformer-based generative model that learns to imitate the complex error distributions of real-world 3D object detectors. By performing adversarial optimization within this model's latent space, researchers can "stress-test" self-driving planners with plausible but challenging perception noise, revealing safety vulnerabilities that standard evaluations overlook.
What Problem Does This Paper Address?
Most self-driving research splits the problem into "Perception" (detecting objects) and "Planning" (deciding where to drive). Planners are typically trained and tested on ground-truth data, assuming the perception system is perfect. When perception is modeled, it’s usually done with simple "Perception Error Models" (PEMs) that just add basic Gaussian noise to object positions.
The reality is much more complex. Modern detectors exhibit "scene-consistent" errors: they might fail to see a car because it's occluded by a bus, or they might produce "duplicate detections" (hallucinating two cars where there is only one) due to depth ambiguity in camera images. Existing PEMs fail to capture these patterns. Without a realistic error model, we can't truly know if a planner is robust enough for the messy reality of the road.
Methods
The authors propose a Conditional Variational Autoencoder (CVAE) framework based on a transformer architecture.
- Scene Context: The model takes the ground-truth state (where objects actually are) and a Bird’s-Eye View (BEV) map as input.
- Transformer Queries: Unlike previous models that just perturb existing objects, EMPERROR uses a set of "latent queries." Some queries are initialized from ground-truth objects (to model misses or misplacements), while others are "learned embeddings" designed to capture false positives (hallucinations).
- Joint Reasoning: Through self-attention and cross-attention to the map, the model reasons about the entire scene at once. It learns, for example, that errors are more likely at certain depths or near specific map features.
- Adversarial Probing: To find weaknesses in a planner, the authors don't just sample random noise. They perform gradient ascent in the EMPERROR latent space to find the specific "worst-case" perception output that causes a planner to collide. Because they stay within the high-probability regions of the generative model, the resulting "attack" remains a plausible error that a real detector might actually make.
Datasets
The model was trained and evaluated using the nuScenes dataset, a massive collection of 1,000 real-world driving logs. The authors targeted three state-of-the-art 3D detectors to see if EMPERROR could mimic them:
- DETR3d: A query-based detector.
- BEVFormer: A transformer that uses temporal BEV features.
- StreamPETR: A detector utilizing temporal object queries.
Key Insights and Ideas
- Errors are not independent: A key "aha moment" is that perception errors are highly correlated with the scene layout and other objects. By using a transformer to look at the map and all objects simultaneously, EMPERROR captures "duplicate detections" and "depth streaks" that simpler models miss.
- Plausibility is a Constraint: Pure adversarial attacks often create "noise" that is mathematically optimal for causing a crash but physically impossible. By optimizing in the latent space of a model trained on real detector data, the authors ensure their "attacks" look like real-world sensor failures.
- False Positives Matter: Most PEMs ignore hallucinations. EMPERROR explicitly models them using dedicated queries, which is crucial because a "ghost" car appearing in front of a self-driving vehicle can trigger dangerous sudden braking.
Key Results
- Fidelity: EMPERROR outperformed all baselines (including simple MLPs and Gaussian models) in matching the error characteristics of real detectors across metrics like translation error (mATE) and orientation error (mAOE).
- Vulnerability Discovery: When used to probe a transformer-based imitation learning planner, EMPERROR was able to increase the planner's collision rate by up to 85%.
- Qualitative Realism: The model successfully mimicked specific detector quirks, such as misjudging the velocity of oncoming traffic or failing to correctly orient groups of parked cars—errors that directly led to "not keeping safe distance" or "dangerous sudden braking" in the planner.
Limitations and Future Work
- Manual Cost Functions: Currently, the "attack" is guided by a manually designed collision cost. The authors suggest that learning a more general "driving cost" from data could reveal even more subtle failure modes.
- Open-Loop Evaluation: The study uses open-loop evaluation (where the planner's actions don't change the future behavior of other cars). Moving to closed-loop simulation would be a natural next step.
- Beyond Bounding Boxes: The current model produces 3D bounding boxes. Future versions could potentially model the raw latent features used in "end-to-end" autonomous driving stacks, which don't rely on explicit boxes.
Summary updated