NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Sim2real for Autonomous Vehicle Control using Executable Digital Twin

Jean Pierre Allamaa, Panagiotis Patrinos, Herman Van der Auweraer, Tong Duy Son

TL;DR

This paper introduces a framework to bridge the "sim-to-real" gap in autonomous driving by using an Executable Digital Twin (xDT)—a high-fidelity, real-time vehicle model—to adapt controller parameters on the fly. By combining gradient-free optimization (SPSA) with data-driven estimation (UKF), the system can automatically tune a Nonlinear Model Predictive Controller (NMPC) to handle real-world uncertainties without tedious manual calibration.

What Problem Does This Paper Address?

In autonomous driving, there is a persistent "reality gap": algorithms that perform perfectly in simulation often struggle in the real world due to sensor noise, unmodeled physics, and changing environments. Traditionally, engineers bridge this gap through manual tuning, which is labor-intensive and doesn't scale well to every possible driving scenario.

The authors target Simulation Optimization Bias (SOB)—the tendency for models trained in simulation to be over-optimistic and brittle. They seek a way to transfer a controller from a virtual environment to a real vehicle while allowing it to adapt its parameters (like cost function weights) dynamically as it encounters real-world conditions.

Methods

The core innovation is the use of an Executable Digital Twin (xDT). Unlike a standard simulator, an xDT is a self-contained, high-fidelity model designed to run online (e.g., on a vehicle's ECU) to evaluate control actions in real-time.

The framework employs two primary mathematical tools for adaptation:

  • Unscented Kalman Filter (UKF): Used for data-driven adaptation. It samples "sigma points" (perturbations of control parameters) and propagates them through the xDT to estimate the best parameters based on real-world measurements.
  • Simultaneous Perturbation Stochastic Approximation (SPSA): A gradient-free optimization method. It approximates the gradient of a loss function by perturbing all parameters at once, requiring only two simulations per iteration. This makes it highly efficient for high-dimensional tuning.

By combining these, the system leverages Domain Randomization (adding noise to simulation to build robustness) and Domain Adaptation (using real data to refine the model) simultaneously.

Datasets

The paper does not use a standard public dataset (like KITTI or Waymo). Instead, it evaluates the methodology using:

  • Simcenter Amesim: Used to create the high-fidelity vehicle Digital Twin.
  • ISO 3888-1 Standard: The framework was validated using four successive "double lane change" maneuvers at 80 km/h, which is a standard benchmark for vehicle stability and control.

Key Insights and Ideas

  • The xDT as an Online "Rehearsal": The xDT allows the vehicle to "try out" different controller settings in a high-fidelity virtual environment just milliseconds before or during execution, ensuring that the parameters chosen are safe and effective for the current context.
  • Differentiability is Not Required: Because the framework uses UKF and SPSA, the performance metrics (like "comfort" or "safety") don't need to be mathematically differentiable. This allows for much more complex and realistic evaluation criteria.
  • Efficiency via SPSA: One of the biggest hurdles in tuning is the "curse of dimensionality." SPSA's ability to estimate gradients with only two samples, regardless of the number of parameters, is a significant win for real-time embedded systems.
  • Closing the Loop with Real Data: The system doesn't just trust the simulation; it uses the error between the xDT's prediction and the real vehicle's behavior to update its internal "belief," effectively learning the reality gap on the fly.

Key Results

The authors tested the system on a series of high-speed lane changes. Starting with "naive" (unit) controller weights, the system achieved:

  • 91% reduction in velocity tracking error.
  • 63% reduction in path tracking error.
  • Rapid Convergence: The algorithm adapted the control parameters within a single "run" (four lane changes), demonstrating that it can handle model mismatches (e.g., differences in longitudinal dynamics) almost immediately.
  • Robustness to Noise: Even with an added signal-to-noise ratio of 2dB, the hybrid UKF+SPSA approach remained stable and outperformed either method used in isolation.

Limitations and Future Work

  • Hardware Deployment: While the xDT is designed to be "executable" on an ECU, the results in this paper are primarily demonstrated in a high-fidelity "sim-vs-sim" setup (where one complex model acts as the "real" car). Testing on physical vehicle hardware is a logical next step.
  • Computational Overhead: Although SPSA is efficient, running multiple high-fidelity simulations (sigma points) in real-time still requires significant onboard computational power.
  • Safety Guarantees: While the NMPC includes constraints, the adaptation process itself needs rigorous safety "guardrails" to ensure that the learning process never suggests a parameter set that could lead to instability in extreme edge cases.

Summary updated

BibTeX
@inproceedings{allamaa2022sim,
  author = {Jean Pierre Allamaa and Panagiotis Patrinos and Herman Van der Auweraer and Tong Duy Son},
  title = {{Sim2real for Autonomous Vehicle Control using Executable Digital Twin}},
  booktitle = {IFAC-PapersOnLine},
  year = {2022},
  doi = {10.1016/j.ifacol.2022.10.314},
}
Figure