Test-Time Trajectory Optimization for Autonomous Driving

Yihong Xu, Eloi Zablocki, Yuan Yin, Elias Ramzi, Ellington Kirby, Alexandre Boulch, Matthieu CordarXiv 2026

TL;DR

Most end-to-end autonomous driving planners generate a fixed set of trajectory options and simply pick the best one, meaning they fail if all the initial options are mediocre. TOAD (Test-Time Trajectory Optimization for Autonomous Driving) fixes this bottleneck by treating the frozen trajectory scorer as a reward function to actively search for better paths at inference time using the Cross-Entropy Method. This plug-and-play approach requires zero retraining and consistently boosts the performance of multiple state-of-the-art planners with negligible computational overhead.

What Problem Does This Paper Address?

Modern end-to-end (E2E) autonomous driving models typically follow a "score-and-select" paradigm. First, a trajectory generator proposes a finite set of candidate paths (either from a pre-computed vocabulary or generated on the fly). Then, a learned scorer ranks them to select the final trajectory.

However, this creates a major bottleneck: generation is a one-shot process. If the generator produces a poor set of candidates—which frequently happens in complex or out-of-distribution scenarios—the scorer can only pick the "best of a bad bunch." The scorer's rich, learned understanding of driving quality (safety, comfort, and progress) is wasted as a passive, one-shot ranker rather than being used as an active optimization objective.

Methods

The authors introduce TOAD, an inference-time optimization loop that wraps around any frozen E2E planner. Instead of just ranking proposals once, TOAD uses the Cross-Entropy Method (CEM)—a derivative-free optimization algorithm—to actively search the continuous trajectory space for paths that maximize the scorer's evaluation.

Key technical design choices include:

  • Control-Space Optimization: Sampling raw coordinates yields jagged, physically impossible trajectories. TOAD instead samples in control space (acceleration and yaw rate) and rolls them out using a kinematic bicycle model (BM). This guarantees that every sampled trajectory is smooth and dynamically feasible.
  • Planner-Based Trust Region: To prevent the search from drifting into weird, unphysical regions where the learned scorer might misbehave (a phenomenon known as "reward hacking"), TOAD constrains its search to a tight Gaussian distribution centered around the base planner's original proposal.
  • Regularized Objective: The optimization objective combines the learned scorer's reward with exact, closed-form regularizers that penalize deviations from the anchor trajectory and violations of passenger comfort limits (jerk, lateral acceleration).
Figure 1: Overview of TOAD. A frozen base planner outputs trajectory proposals and a selected anchor τbase (left). Trajectories are mapped to controls by the inverse bicycle model (BM−1). Then, a Cross-Entropy Method (CEM) loop runs for K steps in control space: sample controls, rolls them out with the bicycle model (BM), scores them under ‘Scorer + reg’ (the learned reward with comfort and anchor regularizers), refits the Gaussian to the highest-scoring elites. The scorer and BM are frozen.

Datasets

The method is validated across three prominent autonomous driving benchmarks:

  • NAVSIM-v1 (navtest split): An open-loop/pseudo-closed-loop benchmark built on real driving logs, evaluated using the Predictive Driver Model Score (PDMS).
  • NAVSIM-v2 (navhard-two-stage split): A more challenging iteration of NAVSIM focusing on hard, out-of-distribution driving scenes, evaluated via Extended PDMS (EPDMS).
  • HUGSIM: A photorealistic, closed-loop simulator utilizing 3D Gaussian Splatting to test how well the optimized trajectories react dynamically to changing environments.

Key Insights and Ideas

  • The Candidate Set is the Real Bottleneck: The paper demonstrates that existing planners are heavily limited by their trajectory generation, not their scoring ability. Actively searching the scorer's landscape yields massive performance gains without changing the underlying model weights.
  • Not All Scorers Can Be Rewards: A crucial finding is that scorers trained on a fixed vocabulary of trajectories fail drastically when optimized against. They suffer from severe reward hacking because they never learned to evaluate trajectories outside their predefined grid. Only disentangled scorers (like DrivoR), which are trained to evaluate freely decoded trajectories, generalize well enough to guide a test-time search.
  • The Inductive Prior of Control Space: Optimizing directly in trajectory coordinates performs poorly because the search space is unbounded. Forcing the optimizer to work through a kinematic bicycle model provides a crucial physical constraint that makes the optimization landscape much easier to navigate.

Key Results

  • Universal, Plug-and-Play Gains: TOAD was evaluated across six different base planners (including iPad, Hydra-MDP, GTRS, and DrivoR) without any retraining. It improved driving scores for all six models on both NAVSIM benchmarks.
  • New State-of-the-Art: On the highly competitive NAVSIM-v2 benchmark, adding TOAD to the DrivoR base planner achieved a state-of-the-art score of 56.3 EPDMS, nearly closing the gap with the privileged PDM-Closed model (56.6) which uses ground-truth perception.
  • Safer, More Cautious Driving: In closed-loop HUGSIM testing, TOAD consistently improved safety metrics (fewer collisions, better time-to-collision) and passenger comfort, showing that the optimization translates to genuinely safer driving behavior.
  • Close to Free Computationally: By caching the heavy perception backbone features and only running the lightweight scoring head during the CEM loop, TOAD adds as little as 1.9 ms of latency for on-the-fly generators, making it highly viable for real-time deployment.

Limitations and Future Work

  • Dependency on Base Proposals: TOAD relies on the base planner's proposals to warm-start the CEM loop and define the trust region. If the initial proposal is completely catastrophic, the search space might be too constrained to find a safe path.
  • High Annotation Costs for Training Scorers: The method's success hinges on having a well-generalized, disentangled scorer, which currently requires expensive, supervised trajectory-level annotations during training.
  • Future Directions: The authors suggest scaling up scorer capacity to potentially eliminate the need for a base planner entirely (searching from scratch), or exploring self-supervised and world-model-based rewards to bypass costly human annotations.

Summary updated

BibTeX
@misc{xu2026test,
  author = {Yihong Xu and Eloi Zablocki and Yuan Yin and Elias Ramzi and Ellington Kirby and Alexandre Boulch and Matthieu Cord},
  title = {{Test-Time Trajectory Optimization for Autonomous Driving}},
  year = {2026},
  eprint = {2606.07170},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2606.07170},
}

Loading related content...

Figure