Abstract
Nonlinear Model Predictive Control (NMPC) is widely used in autonomous driving for its ability to handle complex dynamics and constraints. However, its performance is highly dependent on cost function hyperparameters, which often fail to transfer from simulation to the real world due to the "Sim2Real" gap. This paper proposes a data-efficient framework, $D^2C^2$-AUKS, which utilizes parallelized "Executable Digital Twins" (xDTs) to adaptively tune NMPC parameters in real-time. By performing safety-guided exploration in a simulated environment that mirrors the physical vehicle, the system achieves a 75% improvement in tracking performance in under 10 minutes.
Introduction: Bridging the Sim2Real Gap
In autonomous driving, the transition from a controlled simulation environment to the unpredictable real world is fraught with challenges. This discrepancy, known as the Sim2Real gap, is caused by unmodeled factors such as varying tire-road friction, actuator latency, and environmental disturbances.
NMPC controllers are particularly sensitive to this gap because their performance relies on precisely tuned weights in a cost function. Traditionally, closing this gap requires hours of manual tuning by expert engineers or risky real-world data collection.
Methodology: Parallelized Executable Digital Twins
The authors introduce the $D^2C^2$-AUKS (Data-Driven Controller Calibration with Adaptive Unscented Kalman filter and SPSA) framework to automate and accelerate this tuning process.
Executable Digital Twins (xDTs)
The core of the framework is the use of high-fidelity vehicle models, built in Simcenter Amesim and exported as Functional Mock-up Units (FMUs). These xDTs run in parallel on separate CPU cores, acting as a "simulated oracle." This allows the system to evaluate multiple parameter sets simultaneously without risking damage to the physical vehicle.
Hybrid Optimization and Domain Randomization
The system combines two derivative-free optimization algorithms:
- Unscented Kalman Filter (UKF): Treats the tuning process as a state estimation problem, providing robustness against real-world noise.
- Simultaneous Perturbation Stochastic Approximation (SPSA): A gradient-free method that speeds up convergence and helps the optimizer escape local minima.
To ensure the controller is robust to varying conditions, Domain Randomization (DR) is used within the xDTs. By injecting model mismatches like varying vehicle mass or friction coefficients during simulation, the resulting parameters are more likely to generalize to the real world.
Experimental Results
The framework was validated using a SimRod drive-by-wire vehicle. The system successfully tuned 9 NMPC cost function weights in under 10 minutes.
Key Findings
- Performance Boost: The adapted controller achieved a 75% improvement in path-tracking performance compared to the initial simulation-tuned baseline.
- Gap Reduction: The "Sim2Real gap factor"—a metric quantifying performance degradation—was reduced from 876 to just 1.033, indicating that the adapted controller performed nearly as well in reality as it did in the optimized simulation.
- Safety and Efficiency: By offloading exploration to the xDTs, the system avoids the risks associated with testing unverified control parameters on physical hardware.
Conclusion
The $D^2C^2$-AUKS framework provides a scalable and safe solution for real-time NMPC adaptation. By leveraging parallelized digital twins and hybrid optimization, it significantly reduces the time and effort required to deploy high-performance autonomous driving controllers. Future research will focus on extending this approach to adapt NMPC constraints and the underlying prediction models themselves.
Summary updated