Separating the World and Ego Models for Self-Driving

Vlad Sobal, Alfredo Canziani, Nicolas Carion, Kyunghyun Cho, Yann LeCun

TL;DR

Instead of using a single neural network to predict both the vehicle's physics and the surrounding traffic, this paper splits self-driving world models into two: a deterministic, differentiable kinematic bicycle model for the ego-vehicle, and a stochastic convolutional model for the environment. This decoupling drastically speeds up trajectory optimization in Model Predictive Control (MPC), improves gradient quality, and cuts crash rates in highway driving scenarios.

What Problem Does This Paper Address?

Model-based reinforcement learning and planning offer a safe way to simulate complex, long-tail driving situations without risking real-world crashes. Prior approaches (such as Henaff et al., 2019) train a single forward world model to jointly predict both the surrounding scene (as a top-down rasterized semantic image) and the ego-vehicle’s future state (position, heading, velocity).

However, this monolithic design has two major drawbacks:

  1. Mismatched problem dynamics: Predicting the ego-vehicle is simple, exact, and governed by known physics (kinematics), whereas predicting other traffic participants is highly stochastic and multimodal. Forcing a neural network to learn basic vehicle kinematics wastes capacity and introduces prediction error.
  2. Gradient bottlenecks: When planning via backpropagation (either updating policy weights or optimizing action trajectories in MPC), gradients must flow backward through a massive recurrent neural network and often through non-differentiable cost functions, resulting in vanishing gradients and slow iteration speeds.

Methods

The authors separate the ego-vehicle dynamics from the environment simulator and test four combinations:

  1. CFM PL (Baseline): A single coupled forward neural model predicts both ego-state and environment raster images, trained via policy learning.
  2. CFM-KM (PL / MPC): Uses an exact kinematic bicycle model ($f_{\text{self}}$) to compute the next ego-state, feeding it as an explicit input to the neural environment model ($f^\text{env}_\theta$). Evaluated with both a learned policy (PL) and online gradient-based Model Predictive Control (MPC).
  3. DFM-KM MPC (Fully Decoupled): Assumes short-horizon conditional independence between the ego vehicle's immediate actions and the environment's evolution ($s_{t+1}^\text{env} \leftarrow s_t^\text{env}$). The neural world model runs only once per planning step to generate future road states. Gradients during MPC flow exclusively through the analytic kinematic bicycle model and a differentiable cost function.
  4. Differentiable Cost Formulation ($C^\text{km}$): Rather than backpropagating through raster images, the authors construct differentiable masks (oriented bounding boxes representing the car) based on the kinematic state $(x, y, u_x, u_y, s)$. These masks are dynamically shifted and multiplied with the predicted road-feature channels (vehicles, road edges, lane markers) to penalize collisions, off-road excursions, lane departures, and control jerk.
       Monolithic (Prior Work):
       [Ego Action] ──► [ Neural Forward Model ] ──► [Ego State + Traffic Image]
                               ▲                               │
                               └───────── Backward Pass ───────┘

       Decoupled (This Work - DFM-KM):
       [Ego Action] ──► [ Kinematic Model ] ──► [Ego State] ──┐
                               ▲                              ├──► [Differentiable Cost]
                               └──────── Backward Pass ───────┤
       [Past State] ──► [ Forward Model ]   ──► [Traffic Image] ┘
                        (Evaluated once; no backward pass)

Datasets

The authors evaluate on the NGSIM Interstate 80 (I-80) dataset, consisting of vehicle trajectory recordings from overhead highway cameras under diverse traffic densities (split: 80% train, 10% validation, 10% test).

Evaluations use two protocols:

  • Fixed Replay: Other vehicles follow historical recordings regardless of ego actions.
  • Interactive Simulation: Other vehicles dynamically react, controlled by a learned reactive driving policy.

Key Insights and Ideas

  • Physics needs no neural approximation: Replacing learned vehicle dynamics with four simple kinematic equations immediately stabilizes training and improves generalization across all metrics.
  • Decoupling unlocks faster MPC: In DFM-KM MPC, the expensive convolutional environment model is evaluated once per timestep outside the optimization loop. Because the internal optimization loop only backpropagates through closed-form kinematic equations, gradient-based trajectory updates become substantially faster.
  • Sparsified dependency trades long-term coupling for gradient fidelity: While ignoring the reaction of other drivers to the ego-vehicle is problematic over long horizons, it is remarkably effective over short planning horizons (2–3 seconds). It prevents gradient vanishing and eliminates feedback loops that destabilize trajectory optimization.

Key Results

  • Lower Crash Rates: In fixed replay evaluation, DFM-KM MPC achieved a 13.2% crash rate, cutting the baseline CFM PL crash rate (25.2%) nearly in half. In interactive simulation, CFM-KM PL performed best (1.0% crash rate vs. 9.5% for baseline CFM PL).
  • Speedup in MPC: DFM-KM MPC reduced per-step inference latency to 509.5 ms, compared to 1,162.6 ms for the coupled CFM-KM MPC (a >2× speedup).
  • Robustness & Stability: The standard deviation of action outputs across different random seeds dropped from 1.04 (baseline) to 0.80 (DFM-KM MPC), showing greater behavioral consistency.
  • Stress-Testing: In a hard sudden-braking scenario (cruising between two vehicles when the lead car slams on the brakes), only DFM-KM MPC successfully avoided a crash, whereas both learned policies and coupled MPC collided.

Limitations and Future Work

  • Real-time Latency Gap: Although DFM-KM MPC is over twice as fast as coupled MPC (~509 ms/step), it remains hundreds of times slower than a direct neural policy (~1.2 ms/step), limiting its use in strict real-time systems.
  • Short-Horizon Assumption: Because the decoupled model assumes the environment does not react to ego-car actions, using long rollouts can lead to unrealistic scenarios (e.g., surrounding traffic squeezing or clipping into the ego-car in dense jams).
  • Hand-Crafted Costs: The differentiable cost function relies on explicit geometric masks designed for structured highways. Extending this approach to complex, unstructured urban intersections would require learning the cost representation directly.
  • Ablation Ambiguity: The performance gains in DFM-KM MPC combine both model decoupling and the newly engineered differentiable cost function ($C^\text{km}$); the individual contribution of each component remains to be isolated in future studies.

Summary updated

BibTeX
@inproceedings{sobal2022separating,
  author = {Vlad Sobal and Alfredo Canziani and Nicolas Carion and Kyunghyun Cho and Yann LeCun},
  title = {{Separating the World and Ego Models for Self-Driving}},
  booktitle = {GPL @ ICLR},
  year = {2022},
  url = {https://openreview.net/forum?id=SKZlRN6V1Zc},
}
Figure