TL;DR
TourPlanner is a novel travel planning framework that solves the complex, multi-constraint challenge of itinerary generation for LLM agents. By combining a personalized spatial POI recall mechanism, a multi-agent competitive consensus reasoning paradigm, and constraint-gated reinforcement learning, it achieves a perfect 100% feasibility pass rate and significantly outperforms existing baselines.
What Problem Does This Paper Address?
Travel planning is a notoriously difficult task for AI agents because it requires synthesizing massive amounts of data (flights, hotels, attractions) while satisfying strict, multi-layered constraints. The authors identify three core bottlenecks in current Large Language Model (LLM) planners:
- Context Overflow: The vast number of candidate points of interest (POIs) in a city quickly exceeds an LLM's context window, degrading plan quality.
- Limited Exploration: Existing methods rely on a single reasoning path (like standard Chain-of-Thought), which fails to adequately explore the solution space or resolve conflicting objectives (e.g., maximizing cultural experiences while minimizing budget).
- The "All-or-Nothing" Constraint Dilemma: Simultaneously optimizing for sparse, binary hard constraints (e.g., opening hours, non-repetitive POIs) and dense, continuous soft constraints (e.g., route efficiency, user preferences) usually causes standard reinforcement learning (RL) models to fail.
Methods
The authors introduce TourPlanner, a comprehensive framework that tackles these bottlenecks through a three-stage pipeline:
- PReSO (Personalized Recall and Spatial Optimization): Instead of dumping an entire city database into the prompt, PReSO uses a three-way recall mechanism (embeddings, popularity filtering, and LLM expansion) to prune candidate POIs. It then applies DBSCAN clustering to group attractions geographically, ensuring the LLM receives a compact, spatially coherent set of options.
- CCoT (Competitive consensus Chain-of-Thought): To better explore the solution space, TourPlanner instantiates multiple specialized agents with distinct personas (e.g., "Historical Enthusiast", "Food Blogger", "Budget Manager"). These agents generate parallel daily proposals, peer-review each other's plans, and use a weighted consensus mechanism to synthesize a unified daily plan.
- Constraint-Gated Reinforcement Learning: To refine the final plan, the authors employ Group Sequence Policy Optimization (GSPO) with a unique sigmoid-based gating mechanism. Operating like a curriculum, the reward function dynamically masks soft-preference rewards and forces the model to focus entirely on hard constraints until a feasibility threshold is met, after which it smoothly transitions to optimizing for user preferences and route efficiency.
Datasets
The framework was evaluated on the TripTailor sandbox benchmark, a large-scale simulation environment encompassing 40 major Chinese cities. The dataset contains static, curated data including over 28,000 train schedules, 15,000 flight routes, 5,622 attractions, 89,000 hotels, and 422,000 restaurants. The dataset is split into 3,145 training samples and 703 test samples.
Key Insights and Ideas
- The "Sweet Spot" of Agent Density: Scaling up the number of specialized agents in the CCoT phase improves rationality and final pass rates, but only up to a point. The authors found a "sweet spot" at 4–6 agents; expanding to 10 agents led to diminishing returns and stable arbitration collapse.
- Curriculum-style RL is Essential: Naively adding hard and soft constraint rewards together (Vanilla RL) causes the model to fail because dense soft rewards overwhelm sparse hard rewards. Gating the soft rewards until hard constraints are satisfied is the key to breaking the "all-or-nothing" barrier.
- Spatial Clustering Prevents Illogical Routing: Integrating DBSCAN cluster labels directly into the LLM's context prevents the common agent failure of bouncing back and forth across a city, drastically improving route coherence without needing an external heavy-duty operations research solver.
Key Results
- Perfect Feasibility: TourPlanner achieved a 100% Feasibility Pass Rate across all tested backbone models (including GPT-4o, Qwen3-235B, and DeepSeek-R1), completely eliminating hallucinations and database mismatches.
- Massive Rationality Leap: In Macro Rationality (satisfying all constraints simultaneously), TourPlanner scored over 88%, whereas standard Direct and ReAct planning baselines struggled below 30%.
- Route Efficiency: The framework reduced the Average Route Distance Ratio from a bloated 5.98 (Direct GPT-4o) down to 2.15.
Limitations and Future Work
- End-to-End RL Challenges: Because CCoT generates itineraries day-by-day iteratively, full end-to-end RL optimization remains difficult. Defining a step-by-step process reward is tricky since travel quality is inherently holistic and depends on the entire trip.
- Reward Model Alignment: The exploration of reward models was relatively basic, relying primarily on existing preference models. Future work will focus on tighter alignment with nuanced user preferences to boost the "surpassing rate" against human-curated itineraries.
Summary updated