TL;DR
The User Demand-Oriented Itinerary Planner (UDOIP) is a hybrid framework that pairs a dual-layer Large Language Model (LLM) pipeline with an enhanced heuristic search algorithm to solve multi-day urban travel planning. By translating natural language requests into structured mathematical constraints and utilizing a preference-aware planner, UDOIP guarantees 100% physically feasible itineraries while outperforming state-of-the-art LLM-only planners in personalization, constraint satisfaction, and execution speed.
What Problem Does This Paper Address?
Planning a multi-day vacation in a large city is a classic optimization nightmare known as the Multi-day Urban Travel Itinerary Planning (MUTIP) problem. It requires balancing a traveler's fluid, natural-language preferences (e.g., "a relaxed, family-friendly pace with local culinary experiences") against rigid spatiotemporal constraints like operating hours, traffic patterns, and geographic proximity.
Historically, this has been approached in two flawed ways:
- Traditional Operations Research (OR) Solvers: Algorithms tackling the Orienteering Problem (OP) can strictly satisfy hard constraints, but they require users to manually input dozens of rigid parameters—a tedious and unnatural user experience.
- LLM-Only Planners: Modern LLMs (like GPT-4o or DeepSeek-R1) offer intuitive natural language interfaces but struggle with spatial reasoning. They frequently hallucinate non-existent points of interest (POIs), violate opening hours, and generate highly inefficient routes that involve backtracking across a city.
UDOIP bridges this gap with a hybrid architecture, combining the semantic understanding of LLMs with the deterministic execution of a metaheuristic planner.
Methods
The UDOIP framework operates via a decoupled, two-stage pipeline:
1. Dual-Layer LLM Input Generator
Instead of letting the LLM build the schedule directly, UDOIP uses it strictly as a parameter extractor:
- Layer 1 (Overall Assignment): Extracts explicit parameters from the user's prompt (e.g., number of days, specific POIs mentioned, dining preferences).
- Layer 2 (Classification Fine-Tuning): Classifies abstract preferences into macro-categories (e.g., mapping "fast-paced" vs. "leisurely" to specific numerical bounds for daily travel time and visit compactness). This layer acts as a sanity check, correcting parameter anomalies before they reach the solver.
2. Enhanced GRASP Planner
The core optimization relies on an enhanced Greedy Randomized Adaptive Search Procedure (GRASP), augmented with spatial and semantic heuristics:
- Personalized POI Scoring (PE-PS): Uses LLM embeddings to calculate the cosine similarity between a user's stated preferences and POI descriptions, combining this semantic match with historical ratings to create a personalized score for every candidate location.
- Geographic Clustering: Uses $K$-Means clustering to group POIs geographically into $k$ days, ensuring that a single day's itinerary is localized to minimize transit overhead.
- Substitution Strategy: If a strict geographic cluster prevents a user's high-priority POI from being visited, a cross-cluster substitution mechanism swaps out lower-priority, same-type POIs to accommodate the request without blowing up the schedule.
- Local Search Optimization: Iteratively refines the route sequence by minimizing a custom objective function that penalizes waiting times, travel distances, and misaligned time windows (like eating lunch at 4 PM).
Datasets
The authors evaluated their framework on real-world urban datasets from two major Chinese cities:
- Beijing: 694 total POIs (104 attractions, 390 dining options, 200 accommodations).
- Tianjin: 658 total POIs (68 attractions, 390 dining options, 200 accommodations).
To rigorously test personalization, they generated a simulated user demand dataset containing 5,040 unique user cases spanning diverse time, dining, and POI preference combinations.
Key Insights and Ideas
- LLMs Can't Plan, But They Can Parse: Even the strongest reasoning models, like DeepSeek-R1, suffer from severe spatial blindness. When forced to generate itineraries directly, their hallucination rate causes the validation success rate to drop below 50% under realistic matching thresholds. Decoupling semantic parsing from spatial optimization is essential.
- The Necessity of Macro-Oversight: A single-layer LLM often misinterprets nuanced user pacing. By adding a second classification layer to standardize parameter ranges, UDOIP significantly improves its ability to statistically differentiate between distinct travel styles (e.g., "slow-paced" vs. "high-intensity").
Key Results
- Higher Quality Itineraries: UDOIP improved the average total itinerary score ($S_{avg}$) by at least 4.52% in Beijing and 11.09% in Tianjin compared to state-of-the-art baselines.
- 100% Feasibility: Unlike LLM-only approaches, UDOIP achieved a 0% failure rate for matching user-specified travel days ($R_{days}$) and completely eliminated hallucinated locations.
- Massive Computational Efficiency: UDOIP generated optimized multi-day schedules in an average of 3.63 seconds, compared to 44.92 seconds for DeepSeek-R1—a greater than 12x speedup that makes it highly viable for real-time commercial applications.
- Better Spatial Routing: The geographic clustering and substitution strategies reduced total trip distances and overlapping routes by up to 55% compared to basic heuristic baselines.
Limitations and Future Work
While UDOIP excels at single-city multi-day planning, the authors note a few areas for expansion:
- Cross-City Planning: The current framework assumes a single destination city and does not account for inter-city transit logic (e.g., flights, trains).
- Open-Domain Data Integration: The planner relies on a pre-constructed database of POIs. Integrating real-time open-domain web data would allow the system to dynamically adapt to temporary closures, festivals, or sudden weather shifts.
Summary updated