Abstract
TravelAgent is a modular, LLM-powered system designed to transform travel planning from a rigid search task into a dynamic, personalized experience. By integrating real-time APIs with a dual-memory architecture and a spatiotemporal-aware planning algorithm, it consistently outperforms vanilla LLM agents in creating itineraries that are logistically sound, comprehensive, and tailored to individual user personas.
Introduction
Travel planning is a classic "wicked problem" in AI, requiring the simultaneous balancing of multi-dimensional constraints. These include hard constraints (e.g., flight times, budgets), soft constraints (e.g., personal preferences like "quiet parks"), and commonsense constraints (e.g., avoiding visiting the same restaurant twice in one day).
While Large Language Models (LLMs) excel at text generation, they often struggle with "grounding"—hallucinating distances, ignoring budget limits, or suggesting closed attractions. Current commercial platforms typically rely on rigid rule-based filters that lack the flexibility to handle nuanced user requests. TravelAgent addresses these gaps by focusing on three pillars: Rationality (feasibility), Comprehensiveness (real-time detail), and Personalization (user-specific suitability).
Modular Agentic Architecture
TravelAgent moves away from single-prompt generation toward a modular architecture consisting of four key components:
- Tool-Usage Module: Grounds the LLM in reality via API-based tools (e.g., Google Maps, SerpAPI) for real-time data and arithmetic tools for precise distance and time calculations.
- Recommendation Module: Synthesizes data from in-context constraints, real-time info, and history insights to suggest optimal attractions.
- Planning Module: Features a Budget Planner for financial distribution and a Route Planner using a spatiotemporal-aware algorithm. This algorithm calculates an "Attraction Score" based on travel time, visiting windows, and remaining daylight.
- Memory Module: Employs a dual-layer approach. Short-term memory captures immediate session data, while Long-term memory builds a persistent user persona to improve future recommendations.
Evaluation and Results
The system was evaluated using the TravelPlanner benchmark, 20 custom diverse travel scenarios, and simulated data for 100 distinct user personas. Human evaluators rated TravelAgent against a baseline GPT-4+ agent on a 1-10 scale across three criteria:
| Criteria | TravelAgent | GPT-4+ Agent |
|---|---|---|
| Rationality | 9.56 | 8.16 |
| Comprehensiveness | 8.87 | 6.25 |
| Personalization | 8.44 | 4.31 |
The most striking result is in Personalization, where TravelAgent nearly doubled the score of the vanilla GPT-4 agent. Simulated tests also showed significantly lower Mean Absolute Error (MAE) in predicting user preferences, validating the effectiveness of the memory-based learning approach.
Key Insights and Future Work
- Spatiotemporal Scoring: Treating travel planning as a dynamic optimization problem ensures users aren't rushed. The algorithm prioritizes "Reserve Time" between landmarks to maintain a feasible pace.
- Implicit Personalization: By uncovering preferences from past interactions via the Memory Module, TravelAgent solves the "cold start" problem more effectively than standard recommendation frameworks.
- Budget-First Planning: Integrating financial boundaries before route planning avoids the "rationality gap" where an agent suggests options that exceed the total budget.
While highly effective, the system remains dependent on third-party API accuracy. Future work will focus on improving real-time data reliability and expanding capabilities for complex, multi-city international itineraries.
Summary updated