TP-RAG: Benchmarking Retrieval-Augmented Large Language Model Agents for Spatiotemporal-Aware Travel Planning

Hang Ni, Fan Liu, Xinyu Ma, Lixin Su, Shuaiqiang Wang, Dawei Yin, Hui Xiong, Hao Liu · DOI

Abstract

Large Language Models (LLMs) often struggle with the spatial and temporal nuances required for realistic travel planning. This paper introduces TP-RAG, a novel benchmark and dataset designed to evaluate LLMs using real-world trajectory-level knowledge. Additionally, the authors propose EvoRAG, an evolutionary framework that iteratively refines travel plans. Experimental results demonstrate that EvoRAG significantly outperforms standard retrieval-augmented methods, achieving state-of-the-art performance with minimal hallucinations.

Introduction: The Challenge of Spatiotemporal Rationality

While LLMs are increasingly used as automated travel agents, they often fail to produce "spatiotemporally rational" itineraries. Existing benchmarks primarily verify basic commonsense (e.g., "Does this location exist?") but overlook critical practicalities such as route efficiency, realistic travel times, and seasonal POI availability. Without external knowledge, LLMs frequently hallucinate or generate inefficient, zigzagging routes.

Comparison of existing benchmarks versus the proposed TP-RAG approach, highlighting the inclusion of contextualized POIs and web-based trajectories.

To address these limitations, the authors investigate whether providing LLMs with real-world, trajectory-level web knowledge via Retrieval-Augmented Generation (RAG) can improve planning outcomes.

The TP-RAG Benchmark and Dataset

The TP-RAG benchmark is uniquely focused on trajectory-level knowledge rather than static POI metadata. The dataset construction involves a rigorous four-stage pipeline designed to ensure high-quality, query-relevant data.

The four-stage pipeline for TP-RAG dataset construction: Query Generation, POI Collection, Trajectory Collection, and Quality Control.

The resulting dataset includes:

  • 2,348 real-world travel queries sampled from search engine logs.
  • 85,575 fine-grained annotated POIs, enriched with spatial coordinates and temporal tags (e.g., opening hours, expected visit durations).
  • 18,784 high-quality travel trajectory references extracted from up-to-date online tourist documents.

Methodology: From Standard RAG to EvoRAG

The study found that standard RAG approaches often struggle with noisy or conflicting retrieved trajectories. To overcome this, the authors introduced EvoRAG, an LLM-based evolutionary optimization framework. EvoRAG operates in three distinct phases:

  1. Initialization: Multiple independent travel plans are created based on different subsets of retrieved trajectories.
  2. Reflective Evaluation: The LLM critiques these plans against specific evaluation metrics (spatial coherence, temporal rationality, etc.) and updates a "memory" module.
  3. Synergistic Evolution: Acting as a genetic algorithm, the LLM performs "crossover" (merging best traits) and "mutation" (tweaking plans) to iteratively breed superior itineraries.

Key Insights and Results

The evaluation of various LLM agents (including GPT-4o, Qwen2.5, and DeepSeek-R1) yielded several key findings:

  • RAG vs. Ground-up: Retrieval-augmented methods generally outperformed "ground-up" generation across comprehensive ranking metrics ($R_C$).
  • Prompting Complexity: Advanced techniques like Chain of Thought (CoT) or Multi-Agent Debate sometimes underperformed simple direct prompting due to context confusion and increased hallucinations.
  • EvoRAG Superiority: EvoRAG achieved state-of-the-art results across almost all dimensions. Notably, it reduced the POI failure (hallucination) rate to just 0.4%.
  • Trajectory Sensitivity: Standard RAG performance peaks when integrating 6 to 7 trajectories; performance degrades if the model is overwhelmed by too much conflicting information.

Conclusion

TP-RAG establishes a more realistic standard for evaluating AI travel agents by prioritizing spatiotemporal constraints. The success of the EvoRAG framework suggests that the future of automated travel planning lies in the iterative, evolutionary refinement of real-world knowledge rather than simple one-shot generation.

Summary updated

BibTeX
@misc{ni2025tp,
  author = {Hang Ni and Fan Liu and Xinyu Ma and Lixin Su and Shuaiqiang Wang and Dawei Yin and Hui Xiong and Hao Liu},
  title = {{TP-RAG: Benchmarking Retrieval-Augmented Large Language Model Agents for Spatiotemporal-Aware Travel Planning}},
  year = {2025},
  eprint = {2504.08694},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2504.08694},
}
Figure