Retrieve-then-Rerank Inference for Vocabulary-Based End-to-End Driving

Hyunjun Kim, Donggue Kim, Kichun JoNeurIPS 2026

TL;DR

What do autonomous driving and Google Search have in common? More than you might think. By recasting trajectory planning as a classic "retrieve-then-rerank" search problem, the authors slash the inference latency of an end-to-end driving model by nearly 7x—from 163.4 ms down to a zippy 23.9 ms—while actually improving driving safety and quality in tough scenarios.

What Problem Does This Paper Address?

End-to-end autonomous driving models generally fall into two camps: regression-based planners (predicting a single path directly from sensor inputs) and vocabulary-based planners. Vocabulary-based planners work like choosing from a massive menu: they maintain a fixed "vocabulary" of thousands of pre-defined future trajectories (say, 16,384 paths) and score each one against the current camera views to pick the safest, smoothest option.

There is a glaring inefficiency in how existing vocabulary-based planners operate. Even though the 16,384-trajectory menu is completely static—it never changes from Tuesday to Wednesday, or from a highway to a parking lot—current models re-encode every single trajectory from scratch at every decision step. Worse yet, they run expensive, camera-conditioned neural evaluation on the entire list, wasting precious milliseconds carefully scoring sharp left-turn trajectories when the navigation system clearly says "turn right," or evaluating high-speed highway curves while crawling at 1.4 m/s.

Figure 1: Comparison of vocabulary-based planning paradigms. Existing studies mainly improve the candidate vocabulary or the scene-conditioned evaluator, whereas our method reorganizes inference by offline indexing the fixed vocabulary and retrieving a compact subset before applying downstream scoring heads.

Methods

Taking a page directly out of modern information retrieval (think search engines and RAG pipelines), the authors build on the existing Hydra-MDP++ planner and reorganize inference into Decoupled Retrieval-Style Inference (DRSI):

  • Offline Candidate Indexing (OCI) [New]: Since the trajectory vocabulary is static, the model runs all candidate trajectories through a Transformer encoder once, offline, and caches their rich geometric embeddings in an index. Zero online compute spent encoding the menu.
  • Scene-aware Candidate Retrieval (SCR) [New]: Online, before touching heavy camera features, SCR uses cheap, instant cues—the navigation command and the car's current velocity—to filter the index in two steps:
  • Global Route Compliance (GRC): Grabs only the cluster of trajectories matching the high-level command (left, straight, or right).
  • Dynamic Reachability Compliance (DRC): Applies a physics-inspired feasibility score to toss out trajectories requiring impossible acceleration or braking from the vehicle's current speed.
  • Cross-Attention Reranker [Modified]: Standard evaluators use Transformer decoders with candidate-to-candidate self-attention, which gets bogged down by set size. DRSI swaps this for a pure cross-attention block (conditioning each retrieved candidate strictly on camera tokens) while keeping the standard Hydra-MDP++ scoring heads and training losses (imitation learning + rule-based distillation) completely intact. Notably, training still uses the full vocabulary to avoid introducing retrieval bias.
Figure 2: Overall framework of Decoupled Retrieval-Style Inference (DRSI). DRSI caches the fixed trajectory vocabulary offline through OCI, retrieves a compact scene-aware subset through SCR, and applies the scene-conditioned evaluator only to the retrieved candidates.

Datasets

The authors evaluate their work on the NAVSIM benchmark (built upon real-world driving data from OpenScene and nuPlan), where planners must predict a 4-second future trajectory from multi-view cameras, ego motion status, and navigation commands:

  • navtrain & navtest: Standard training and held-out non-reactive evaluation splits.
  • navhard (NAVSIM v2): A challenging two-stage pseudo-simulation benchmark featuring synthetic observations around plausible future states to stress-test planner robustness.

No new datasets were introduced in this paper.

Key Insights and Ideas

  • The Asymmetry Aha-Moment: Recognizing that candidate trajectories are scene-invariant while camera inputs are scene-dependent unlocks massive free speedups. Caching the static side offline alone cuts latency from 163.4 ms to 93.2 ms with zero change in output quality.
  • Less Noise = Better Decisions in Hard Scenes: Filtering out physically unreachable and off-route paths doesn't just save compute—it boosts scores on the difficult navhard split. By clearing away implausible clutter, the reranker focuses solely on viable contenders.
Qualitative visualization of Scene-aware Candidate Retrieval
  • Dropping Self-Attention Enables Subset Scoring: Removing candidate-to-candidate self-attention in the evaluator means a trajectory's score depends only on how well it fits the scene, not on what other trajectories are in the shortlist. Bonus: swapping the decoder for pure cross-attention drops latency from 93.2 ms down to 34.1 ms, and results in an embedding space that better preserves physical trajectory geometry (0.825 vs. 0.710 Spearman correlation).

Key Results

Measured on a single RTX 4090 GPU (batch size 1) using the official EPDMS (Extended PDM Score, combining hard safety penalties like collisions with comfort/progress metrics):

  • Massive Speedup: With 16,384 candidates, Ours (Large) slashes latency from 163.4 ms to 23.9 ms—a 6.8x speedup. Ours (Small) (8,192 candidates) hits 21.3 ms.
  • Stronger Under Pressure: On the tough navhard benchmark, Ours (Large) improves EPDMS from 37.6 to 40.2 over the Hydra-MDP++ baseline.
  • Minimal Trade-off on Standard Splits: On navtest, Ours (Large) scores 86.1 EPDMS vs. the baseline's 86.9. Crucially, hard safety metrics like No at-fault Collision (98.5) and Driving Direction Compliance (99.6) remain completely unchanged, while Ego Progress actually ticks up from 88.4 to 89.1.

Limitations and Future Work

Not discussed in the paper. (Note: While the experimental results reveal a minor 0.8-point EPDMS dip on the standard navtest split—stemming mainly from softer behavioral submetrics like Lane Keeping and Extended Comfort—the main paper does not include a dedicated section discussing formal limitations or future research directions.)

Summary updated

Abstract

Vocabulary-based end-to-end driving selects a future trajectory from a fixed candidate set, enabling explicit comparison among multiple plausible plans. However, existing planners typically process the scene-invariant trajectory vocabulary and the scene-dependent driving context together in a single online forward pass. This repeatedly recomputes reusable candidate-side representations and applies expensive scene-conditioned evaluation to the full vocabulary. We revisit vocabulary-based planning as a retrieve-then-rerank problem, where the trajectory vocabulary is a static candidate collection, lightweight scene cues form a retrieval query, and the scene-conditioned evaluator acts as a reranker. Based on this view, we propose $\textbf{Decoupled Retrieval-Style Inference (DRSI)}$, centered on two modules: $\textbf{Offline Candidate Indexing (OCI)}$ and $\textbf{Scene-aware Candidate Retrieval (SCR)}$. OCI caches scene-invariant trajectory embeddings offline, while SCR retrieves a compact set of route-consistent and dynamically reachable candidates online. The scene-conditioned evaluator is then applied only to this retrieved subset for fine-grained reranking. Experiments on NAVSIM show that DRSI substantially improves the latency--quality trade-off without adding trajectory proposals or increasing evaluator complexity. Compared with the Hydra-MDP++ baseline, our large DRSI model achieves 86.1 EPDMS on NAVSIM v2 with 23.9 ms latency, corresponding to about a 6.8$\times$ speedup. On the challenging navhard split, DRSI further improves EPDMS from 37.6 to 40.2. These results demonstrate that retrieval-style decoupling is an effective inference principle for efficient vocabulary-based end-to-end driving.
BibTeX
@inproceedings{kim2026retrieve,
  author = {Hyunjun Kim and Donggue Kim and Kichun Jo},
  title = {{Retrieve-then-Rerank Inference for Vocabulary-Based End-to-End Driving}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=G78WOdoS5c},
}
Figure