arXiv:2611.09407cs.AINov 2026

Manuscript Offprint

arXiv:2611.09407

ROAM: Retrieval-Augmented Optimization for Feasible Multi-Day Itinerary Planning

Ye Zihao, Lin Xiaoheng

Abstract

Large language models (LLMs) can draft plausible travel itineraries, but the plans they produce are frequently infeasible: attractions are grouped into days without regard for geography, opening hours are ignored, and a single generation pass cannot reliably organize a multi-day trip. We present ROAM, a retrieval-augmented agentic framework for spontaneous multi-day itinerary planning that couples semantic preference retrieval with explicit spatiotemporal optimization. ROAM embeds the natural-language request, retrieves a compact candidate set from a curated point-of-interest (POI) database, partitions candidates into day groups through maximal-clique analysis and K-means, orders each day with a quality-biased simulated-annealing TSP solver, and repairs hard opening-hour violations with greedy exchange. A spatiotemporal retrieval layer injects weather forecasts, real road distances and POI operating hours into the prompt, after which the LLM renders a structured, map-ready itinerary; an interactive ReAct-style replanning agent then supports natural-language edits while re-checking feasibility. Across four Chinese cities and 510 POIs, ROAM produces 27.5 POIs per three-day plan versus 19.3 for a bare LLM and 17.0 for a retrieval-only baseline (+42% and +62%), while reducing route dispersion from 2,101 to 677 (3.1×). Ablations show that spatial optimization is the dominant driver of route efficiency and that hard time-window repair prevents roughly 30% of attractions from violating operating hours.

1 Introduction

Spontaneous, short-distance travel has become a dominant leisure pattern, and travelers increasingly plan trips themselves rather than buying fixed tour packages [Sigala, 2020, Backhaus et al., 2023]. Yet constructing a multi-day itinerary by hand is a tedious spatial optimization problem: one must select attractions that match personal taste, cluster them geographically, sequence visits to minimize travel, and respect opening hours, meal breaks, and realistic travel times. Empirical work on travel behavior documents that itinerary construction is effortful and time-consuming, and that planning horizons shape the whole travel decision process [Sharma et al., 2021, Backhaus et al., 2023].

LLMs appear to be natural assistants for this task, and a growing body of work equips them with search, memory and planning tools [Chen et al., 2024a, Shao et al., 2025]. However, benchmarks such as TravelPlanner [Xie et al., 2024] reveal that even strong models solve only a small fraction of real-world planning tasks, for three structural reasons. (i) Spatial bias: LLM outputs are driven by textual co-occurrence, so famous attractions from distant districts are placed on the same day. (ii) Temporal blindness: opening hours, transit durations and visit durations are soft constraints at best; plans routinely assign a visit when a museum is closed. (iii) Knowledge staleness: static parametric knowledge cannot capture changing weather, closures or temporary events.

ROAM addresses these failures by moving the hard part of the problem out of the LLM and into an explicit optimization pipeline, using the LLM only where it is strong: parsing intent, selecting among plausible candidates, and verbalizing a polished plan. As shown in Figure 1, ROAM consists of five stages—(1) natural-language input and constraint parsing, (2) semantic retrieval over a curated POI database, (3) spatial optimization comprising day partitioning, quality-biased routing and hard time-window repair, (4) spatiotemporal retrieval-augmented context assembly, and (5) constrained generation with a bracket-balanced JSON parser—plus an interactive replanning agent that reuses the optimization stack for natural-language edits.

Our contributions are:

• We formulate spontaneous multi-day itinerary planning as a retrieval-then-optimize problem with hard opening-hour constraints and real road-network travel times, and we identify why prompt-only LLM planners fail on it.

• We propose RoAM, a five-stage agentic pipeline that combines semantic retrieval, maximal-clique/K-means day partitioning, a quality-biased simulated-annealing TSP solver, and greedy hard time-window repair.

• We introduce a spatiotemporal RAG layer that grounds generation in weather forecasts, real road distances and POI operating hours, together with a streaming, repair-capable JSON parsing pipeline and a ReAct-style replanning agent.

• We conduct a controlled study over four cities (510 POIs) and 36 queries with six metrics and two baselines, showing +42%/+62% coverage gains and a 3.1× reduction in route dispersion, and we report an honest analysis of failure modes, metric artifacts and limitations.