When Environments Shift: Safe Planning with Generative Priors and Robust Conformal Prediction

Kaizer Rahaman, Jyotirmoy V. Deshmukh, Ashish R. Hota, Lars LindemannarXiv 2026

TL;DR

This paper introduces a safe motion planning framework that maintains probabilistic safety guarantees for autonomous vehicles even under environmental distribution shifts. By combining conditional diffusion models to generate context-specific synthetic data with robust conformal prediction, the framework dynamically adjusts safety margins in a model predictive controller (MPC) to prevent collisions when deployment conditions deviate from training data.

What Problem Does This Paper Address?

Autonomous systems, such as self-driving cars, must safely navigate dynamic environments populated by uncontrollable agents (e.g., pedestrians and human drivers). To do this, planners often use Conformal Prediction (CP)—a statistical tool that wraps machine learning predictions in mathematically guaranteed uncertainty bounds. When plugged into a Model Predictive Controller (MPC), standard CP ensures that the vehicle avoids obstacles with a user-defined probability (e.g., 90% safety confidence).

However, standard CP relies on a core assumption: the deployment environment must match the training environment (the exchangeability assumption). In the real world, environments shift constantly—traffic densities fluctuate, weather changes road visibility, and social norms vary by location. When such a distribution shift occurs, standard CP guarantees collapse, leading to under-conservative uncertainty bounds and potentially catastrophic collisions.

The authors tackle this critical gap: How can we maintain rigorous, probabilistic safety guarantees during motion planning when the deployment environment shifts away from the training data?

Methods

The proposed framework solves this problem through a four-step pipeline that bridges generative modeling and robust statistics:

  1. Nuisance Parameterization: The authors assume that environmental shifts can be characterized by an observable, interpretable "nuisance parameter" ($\eta$), such as traffic density or average obstacle velocity.
  2. Conditional Diffusion Models: To avoid using a single, overly conservative safety bound for every scenario, the authors train a conditional diffusion model (based on the Classification and Regression Diffusion, or CARD, architecture). Instead of generating high-dimensional future trajectories—which is too slow for real-time control—the model is trained to directly generate the distribution of nonconformity scores (prediction errors) conditioned on the observed nuisance parameter $\eta$.
  3. Robust Conformal Prediction (RCP): During online deployment, the system observes $\eta$ over a short buffer interval and samples cheap, synthetic calibration data from the diffusion model. To account for any residual mathematical discrepancy between the diffusion model's generated data and the true physical environment, the authors apply RCP using an analytical 2-Wasserstein distance bound to safely inflate the conformal uncertainty regions.
  4. Robust Conformal MPC: These robust, context-specific prediction regions are embedded directly as constraints into an MPC optimization loop, ensuring the ego vehicle plans a collision-free path tailored to the current environment state.
Figure 1: The figure shows an ego agent interacting with three dynamic obstacles, illustrating true and pre- dicted trajectories with prediction regions and the ego’s planned trajectories under three nuisance parameters. It highlights that only the trajectory corresponding to the underlying true nuisance parameter achieves colli- sion avoidance, as it provides coverage for the real-time test environment.

Datasets

The framework was evaluated using the ORCA simulator, configured as a two-lane corridor containing one ego vehicle and two moving obstacles traveling in opposing or mixed directions.

  • Training/Calibration Distribution: Generated with obstacle agents assigned nominal velocities and goal distributions.
  • Shifted Test Environments: The authors introduced a sequence of ten distinct test environments ($\mathcal{E}_1$ to $\mathcal{E}_{10}$) featuring progressively larger distribution shifts, created by systematically perturbing obstacle velocities and goal latitudes. Alternate environments were used to train the conditional diffusion model, while the remaining environments served as completely unseen test distributions.

Key Insights and Ideas

  • Direct Score Modeling over Trajectory Generation: A major bottleneck for diffusion models in robotics is inference speed. By shifting the generative model's target from high-dimensional trajectory coordinates to scalar nonconformity scores, the authors made synthetic data generation computationally cheap enough for real-time loops.
  • Embracing Imperfect Simulators: Generative models and simulators are rarely perfect. The integration of Robust Conformal Prediction acts as a statistical safety net, explicitly quantifying the "sim-to-real" or "model-to-world" gap using a 2-Wasserstein error bound to guarantee safety even when the diffusion prior is slightly inaccurate.
  • Context-Aware Safety Margins: Rather than using a static, worst-case safety buffer that paralyzes the vehicle in normal traffic, the framework dynamically expands or contracts its safety regions based on real-time environmental context ($\eta$), minimizing conservatism.

Key Results

  • Safety Guarantee Satisfaction: In closed-loop testing across all ten shifted environments, the proposed robust formulations (Case-2 and Case-3) consistently maintained the target safety coverage of $1 - \delta = 0.9$ (90%). Meanwhile, the standard Conformal MPC baseline (Case-0) suffered frequent safety violations because its fixed calibration data failed to adapt to the shifts.
  • Real-Time Feasibility: While standard MPC optimization took roughly 42 ms per timestep, incorporating the synthetic data generation from the diffusion model added only a minor overhead. For practical sample sizes ($K = 500$ to $1000$), the total computation time remained well under 0.5 seconds per step, making it highly viable for online deployment.

Limitations and Future Work

  • Observation Buffer Dependency: The framework relies on a short initial buffer interval to accurately estimate the nuisance parameter $\eta$. In highly volatile scenarios where the environment changes instantly, this estimation delay could pose a risk.
  • Stationary Shifts: The current formulation assumes that the environment undergoes a single, stationary distribution shift during a planning cycle. The authors note that extending this to non-stationary environments—where multiple shifts occur sequentially—remains an open challenge.
  • Non-Interactive Obstacles: The simulator setup assumes obstacle agents move independently of the ego vehicle's actions. Future work will focus on expanding the framework to interactive settings where surrounding agents actively react to the vehicle's planned trajectory.

Summary updated

BibTeX
@misc{rahaman2026when,
  author = {Kaizer Rahaman and Jyotirmoy V. Deshmukh and Ashish R. Hota and Lars Lindemann},
  title = {{When Environments Shift: Safe Planning with Generative Priors and Robust Conformal Prediction}},
  year = {2026},
  eprint = {2602.12616},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2602.12616},
}
Figure