RAG-TP: A General Framework for Vehicle Trajectory Prediction via Retrieval-Augmented Generation

Zi-Yi Wang, Y. Zhang, Gui-Jian Tang, Chao Zhang, Shi-Bo Zhang +2 more
1/1/2026
moerag

No confident code implementation found for this paper.

Abstract

Vehicle trajectory prediction is critical for safe and efficient autonomous driving. However, its generalization and scalability are hindered by heavy reliance on real-time, online priors.

Show full abstract

To break this bottleneck, we introduce RAG-TP, a framework reframing the problem from relying on uncertain online perception to retrieving from a large-scale, structured knowledge base. RAG-TP enhances inference-time predictions by dynamically querying a heterogeneous knowledge base rich with scene topologies and motion patterns, using retrieved historical experiences as priors. We further design a dynamic fusion module based on a novel Retrieval-Driven Mixture-of-Experts (MoE). Unlike conventional parametric designs, this mechanism dynamically treats retrieved knowledge units as experts, weighting and integrating them via cross-attention to generate a dense context for final multi-modal trajectory decoding. By decoupling online inference from offline knowledge, this approach grounds predictions in a vast structured database, mitigating model hallucination, compensating for unreliable priors, and significantly enhancing robustness and domain adaptation. Extensive experiments show RAG-TP achieves excellent performance in map-based and map-free settings, demonstrating highly competitive results against specialized map-free methods while performing on par with state-of-the-art (SOTA) map-based models. It demonstrates significant advantages, particularly in cross-domain and zero-shot generalization. Our work provides a promising technical pathway toward building scalable and robust prediction systems for autonomous driving.

Semantic Scholar

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{wang2026ragtp,
  title  = {RAG-TP: A General Framework for Vehicle Trajectory Prediction via Retrieval-Augmented Generation},
  author = {Zi-Yi Wang and Y. Zhang and Gui-Jian Tang and Chao Zhang and Shi-Bo Zhang and Xue-Qiong Li and Shao-Wu Yang},
  year   = {2026},
  url    = {https://api.semanticscholar.org/CorpusID:b38848efc79808599aec5ff863db29eb85b1d70f},
  journal = {Computer Vision and Pattern Recognition}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/b38848efc79808599aec5ff863db29eb85b1d70f.svg)](https://codeofpaper.com/paper/b38848efc79808599aec5ff863db29eb85b1d70f)

Discussion