DeepMF: Deep Motion Factorization for Closed-Loop Safety-Critical Driving Scenario Simulation

Yizhe Li, Linrui Zhang, Xueqian Wang, Houde Liu, Bin LiangarXiv 2024 · DOI

Introduction

Testing autonomous driving (AD) systems presents a significant challenge: while real-world data is abundant, it is dominated by safe, routine driving. The "long-tail" events—rare, safety-critical accidents—are the true benchmarks for an AD system's safety, yet they are difficult to encounter or replicate safely in the real world.

Existing methods for generating these critical scenarios often suffer from two primary flaws. They are either open-loop, where the adversarial vehicle follows a fixed path regardless of the autonomous vehicle's (AV) reaction, or they are unnatural, producing "robot-like" behaviors such as impossible maneuvers or teleportation that do not reflect human driving patterns. DeepMF (Deep Motion Factorization) addresses these gaps by creating interactive, high-risk, and realistic scenarios through a novel Bayesian framework.

DeepMF Framework Overview

The DeepMF Methodology

The core innovation of this research is the factorization of the accident-generation process. Rather than treating a collision as a single random event, DeepMF casts it as a Bayesian factorization problem, broken down into four distinct sub-problems solved by decoupled deep neural networks.

Four-Stage Scenario Generation

  1. Opponent Selection: An "Opponent Predictor" evaluates surrounding vehicles and assigns an "adversarial score" to identify the vehicle most likely to cause a meaningful conflict, such as a car in an adjacent lane poised to cut in.
  2. Opponent Motion Prediction: Utilizing a target-driven method (DenseTNT), the system predicts a range of possible trajectories for the selected adversarial agent.
  3. Ego Reaction Estimation: The system predicts how the AV (the "ego" vehicle) is likely to respond to the attacker’s potential moves.
  4. Collision Probability Estimation: By pairing the predicted trajectories, the framework identifies the specific attacker path that maximizes the probability of a crash while maintaining realism.
The Four Stages of DeepMF Scenario Generation

Closed-Loop Simulation

Crucially, DeepMF supports closed-loop simulation. In the sequential versions of the model (DeepMF-S), the adversarial agent replans its behavior every 1 to 4 seconds based on the AV’s actual real-time response. The architecture leverages VectorNet to encode map and agent data, combined with VGG16 to process rasterized traffic images, effectively merging vectorized and image-based feature extraction for superior environmental awareness.

Key Insights and Realism

DeepMF moves away from brute-force optimization by using Heuristic "Pseudo-Labels" for training. By analyzing real-world data to see which vehicles could have interacted based on proximity and trajectory overlap, the authors created a supervisory signal without requiring manual accident labels.

To ensure the generated scenarios are useful for testing, the authors prioritize "naturalness." They utilize metrics like Kullback–Leibler (KL) Divergence and Wasserstein Distance to ensure the attacker's acceleration and pathing remain consistent with human driving patterns, avoiding the "glitchy" behavior seen in other adversarial models.

Experimental Results

DeepMF was evaluated using the Waymo Open Motion Dataset (WODM) for training and the MetaDrive simulator for testing against various AV planners (such as IDM and Replay planners). The framework significantly outperformed state-of-the-art baselines like STRIVE and ART:

  • High Success Rate: The closed-loop DeepMF-S1 achieved a 93% collision rate against replay planners and 88% against interactive IDM planners.
  • Efficiency: DeepMF generates scenarios in approximately 3.6 seconds, a massive improvement over high-end baselines like STRIVE, which can take nearly 187 seconds per scene.
  • Diversity and Realism: The model successfully generated eight distinct accident types (e.g., side-swipes, rear-ends) while maintaining the highest similarity to real human driving patterns among all tested adversarial methods.

Limitations and Future Work

While DeepMF represents a major advancement in safety-critical simulation, its effectiveness is currently tied to the accuracy of the underlying trajectory predictor (DenseTNT). Future iterations could expand the framework to include more complex "long-tail" participants, such as pedestrians, cyclists, and emergency vehicles, and test its adversarial capabilities against more advanced, neural-network-based end-to-end driving models.

Summary updated

BibTeX
@misc{li2024deepmf,
  author = {Yizhe Li and Linrui Zhang and Xueqian Wang and Houde Liu and Bin Liang},
  title = {{DeepMF: Deep Motion Factorization for Closed-Loop Safety-Critical Driving Scenario Simulation}},
  year = {2024},
  eprint = {2412.17487},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2412.17487},
}
Figure