Coordinating Perception and Planning for Test-Time Adaptation in End-to-End Driving under Distribution Shifts

Shiyu Fang, Yiming Cui, Qihang Huang, Zhan Chen, Collister Chua, Wenhui Huang, Peng Hang, Chen Lv, Jian SunarXiv 2026

It’s late, you’ve had a long day, and you just want to get home. Imagine your autonomous car feels the same way—except it’s just encountered a wall of thick fog or a sudden burst of sensor noise it wasn't trained for. Suddenly, the "brain" of the car, an end-to-end (E2E) driving model, starts seeing ghosts or miscalculating turns.

This paper introduces $P^2$-TTA, a clever way for autonomous driving models to "fix themselves" on the fly, using their own past mistakes as a teacher, without needing a single human label or a trip back to the server for retraining.

TL;DR

$P^2$-TTA is a "plug-and-play" framework that allows autonomous driving models to adapt to unexpected conditions (like fog or sensor noise) in real-time. It does this by checking if its past predictions about where the car would be actually match where the car ended up, using that "free" feedback to stabilize its perception and planning.

What Problem Does This Paper Address?

Most end-to-end driving models are trained on "clean" data and assume the world will always look that way (the i.i.d. assumption). In reality, distribution shifts—like heavy rain, snow, or even just a different city—cause performance to tank.

Figure 1. Motivation and core challenges. Distribution shifts cause severe performance degradation in end-to-end autonomous driving models, motivating adaptation that accounts for perception–planning dependencies and temporal stability.

The authors identify two massive hurdles for existing Test-Time Adaptation (TTA) methods in driving:

  1. Multi-task Dependency: In a driving model, perception (seeing the road) and planning (deciding where to go) are roommates. If you try to "fix" perception by making it more confident, you might accidentally break the planning logic.
  2. Continuous Instability: If a model keeps updating itself based on its own (potentially wrong) guesses over a long trip, those tiny errors compound. Eventually, the model "drifts" into nonsense, leading to what researchers call "model collapse."

Methods

The authors propose a two-pronged strategy to keep the car on the road:

1. The Joint Objective: Perception + Planning

Instead of just trying to make the vision system "more confident" (entropy minimization), $P^2$-TTA adds a Retrospective Temporal Planning Consistency objective.

  • The Logic: At time $t-1$, the car predicted it would be at a certain spot at time $t$. Once it actually reaches time $t$, it can look at its own sensors to see where it actually is.
  • The Fix: If there’s a mismatch, the model updates its parameters to reduce that error. It’s essentially using the car’s own physical motion as a ground-truth label that comes for free.

2. The Teacher-Student Stabilizer

To prevent the model from "losing its mind" during these updates, they use a Teacher-Student architecture:

  • The Teacher: An Exponential Moving Average (EMA) version of the model that changes very slowly. It acts as a "sane" anchor.
  • The Student: The active model that tries out new updates.
  • The Filter: Any proposed update from the student is projected back toward the teacher to keep it within a safe "radius." Crucially, if an update actually increases the planning loss, it’s rejected entirely.

Datasets

The researchers put $P^2$-TTA through its paces on three major benchmarks:

  • nuScenes: A massive real-world dataset used here to test how models handle synthetic corruptions (fog, snow, noise).
  • NAVSIM: A simulation framework used to evaluate how well the adapted plans actually perform in a non-reactive rollout.
  • Bench2Drive: A closed-loop benchmark where the model actually has to drive the car in a simulator to complete routes.

Key Insights and Ideas

  • Motion as a Label: The most elegant idea here is that a car’s ego-motion is a "retrospective label." You don't need a human to tell the car it missed a turn; the car's own sensors know it's not where it planned to be.
  • Less is More: You don't need to retrain the whole "brain." $P^2$-TTA only updates a tiny fraction—about 0.11 per mille (0.011%)—of the model's parameters (specifically the LayerNorm affine parameters). This makes it incredibly fast.
  • Stability over Speed: The "rejection" mechanism is vital. Sometimes the best update is no update at all. By reverting to the previous state if an update looks fishy, they prevent the catastrophic model collapse that plagues other TTA methods.

Key Results

The results are impressive, especially considering the "plug-and-play" nature of the method:

  • Recovery Rates: Under severe noise, $P^2$-TTA recovered 36.4% of the lost L2 accuracy and reduced collisions by 30.0% across six different model architectures.
  • Real-Time Ready: The adaptation takes an average of just 19.9 ms per frame. In the world of autonomous driving, where every millisecond counts, this is fast enough to run alongside the main driving logic.
  • Qualitative Wins: As shown in Figure 2, the "Before TTA" paths (orange) often veer off-road or into obstacles under fog, while the "After TTA" paths (purple) align much more closely with the ground truth (blue).
Qualitative trajectory comparisons showing corrections under Gaussian noise and fog.

Limitations and Future Work

While $P^2$-TTA is a big step forward, the authors note a few areas for improvement:

  • Triggering: Currently, the adaptation is always "on." In the future, it would be better to have a system that knows when to start adapting (e.g., detecting the onset of fog) and when to pause to save computation.
  • Dynamic Learning Rates: The system uses a fixed update step. Adjusting this dynamically based on how much the environment is shifting could make adaptation even smoother.

In short, $P^2$-TTA gives autonomous cars a way to "double-check" their work against reality, ensuring that even when the weather gets weird, the car stays smart.

Summary updated

Abstract

End-to-end autonomous driving has achieved significant milestones, yet its reliance on the i.i.d. assumption renders it vulnerable to real-world distribution shifts. While Test-Time Adaptation (TTA) offers a promising paradigm for on-the-fly enhancement, its application to driving is hindered by two barriers: (i) multi-task adaptation dependency, where updates to upstream perception also affect downstream planning, while perception confidence alone does not directly assess these downstream effects; and (ii) continuous adaptation instability, where recursive online updates over long horizons cause compounding parameter drift. To address these challenges, we propose P2-TTA, a plug-and-play TTA framework for the continual adaptation of end-to-end driving models. P2-TTA coordinates adaptation through a joint objective combining perception entropy minimization with a retrospective temporal planning consistency objective derived from observed ego motion. To stabilize online updates, we use an EMA teacher as a moving parameter reference and reject candidate updates that increase historical planning loss. Extensive experiments across multiple models demonstrate that, by updating an average of 0.11 per mille of parameters with an average adaptation time of 19.9 ms on different backbones, P2-TTA achieves average recovery rates of 36.4%, 30.0%, and 9.3% for L2, collision rate, and PDMS, respectively, under severe distribution shifts. Under a shared perception-planning objective, P2-TTA achieves the highest L2 and collision recovery among the compared TTA baselines on UniAD.
BibTeX
@misc{fang2026coordinating,
  author = {Shiyu Fang and Yiming Cui and Qihang Huang and Zhan Chen and Collister Chua and Wenhui Huang and Peng Hang and Chen Lv and Jian Sun},
  title = {{Coordinating Perception and Planning for Test-Time Adaptation in End-to-End Driving under Distribution Shifts}},
  year = {2026},
  eprint = {2611.30739},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.30739},
}
Figure