arXiv:2608.30399cs.CLAug 2026

Manuscript Offprint

arXiv:2608.30399

SemPOI-RL: Aligning LLM Semantic Reasoning for Interpretable Out-of-Town POI Sequential Generation

Yunqi Liu, Yang Zhang, Ruixing Zhang, Liangzhe Han, Yi Qiao, Tongyu Zhu, Leilei Sun

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Large language models (LLMs) exhibit strong semantic reasoning and open-ended generation abilities, but aligning these abilities with structured sequential generation remains challenging. This challenge is particularly evident in out-of-town (OOT) POI sequence generation, where a model must infer transferable travel intent from a user's hometown behaviors, adapt to cross-city interest drift, and generate a coherent destination trajectory under structural constraints. Existing approaches either rely on latent ID-based transfer with limited interpretability or directly use LLMs for sequence generation without explicitly grounding inferred semantics into position-aware predictions. To address this gap, we propose SemPOI-RL, a framework that aligns LLM semantic reasoning with structured sequence generation for interpretable OOT recommendation. Specifically, we first fine-tune an LLM to infer destination-oriented travel styles from users' hometown trajectories, using natural language as an interpretable semantic intermediate. We then introduce a Semantic POI Alignment Module (SPAM) to ground these inferred styles into a style-conditioned masked autoencoder for position-aware trajectory generation. Finally, we apply reinforcement learning with recommendation-oriented rewards to align LLM-generated styles with downstream sequence quality. Experiments on two real-world datasets show that SemPOI-RL consistently outperforms both traditional recommenders and direct LLM baselines, while providing interpretable style attribution across different phases of a trip. The code is available at https://github.com/Wind-Flipped/SemPOI-RL.

1 Introduction

Large language models (LLMs) have shown impressive capabilities in semantic abstraction, contextual reasoning, and open-ended generation, making them a promising foundation for structured generation tasks (Xie et al., 2024; Singh et al., 2024; Tang et al., 2024). However, a key challenge remains unresolved: how to align high-level semantic reasoning in natural language with downstream sequence generation that must satisfy domain-specific structural constraints (Wang et al., 2024; Ning et al., 2025). This challenge is especially salient in out-of-town (OOT) POI sequence generation, where a model must infer a user's transferable travel intent from hometown behaviors and then generate a coherent destination trajectory in a new city. OOT POI sequence generation differs fundamentally from conventional next-POI recommendation. In standard intra-city settings, models often rely on repeated user-POI interactions, transition regularities, or region-specific spatio-temporal patterns. In contrast, the OOT setting requires the model to generalize from a user's hometown trajectory to an unfamiliar destination city, where direct POI overlap is limited and user interests may shift substantially across regions (Feng et al., 2024; Wang et al., 2025; Yin et al., 2016). Moreover, the goal is not merely to predict the next location, but to generate an ordered sequence of destination POIs that is both semantically suitable and structurally coherent. This makes OOT recommendation a particularly difficult form of structured sequence generation under preference transfer (Liu et al., 2022; Li et al., 2024; Shu et al., 2024).

Existing sequential recommendation and trajectory forecasting methods predominantly rely on latent ID-based representations or spatio-temporal graph encoders (Yang et al., 2022; Yan et al., 2023; Zhang et al., 2025a). While effective for intracity next-POI prediction, these approaches treat sequences as flat lists of discrete tokens, offering limited interpretability and struggling to model cross-domain interest drift when users travel from familiar hometowns to novel destinations (Xin et al., 2022; Liu et al., 2025). Recent efforts have be-

∗^{*}Corresponding author.

Figure

Figure 1: Comparison with previous work. Out-of-town POI sequence prediction requires the model to capture complex preferences while mitigating interest drift. Prior approaches typically represent POIs and users independently for next-POI recommendation. Our reinforcement-learning-based framework instead aligns inferred travel styles with full-sequence prediction.

gun integrating LLMs into mobility prediction by leveraging their semantic reasoning to infer preferences or generate explanations (Feng et al., 2025; Cheng et al., 2025; Liu et al., 2024a). Yet, most use the LLM as a preference encoder or direct sequence generator, map POIs to semantic IDs, or apply reinforcement learning to the final top-k list (Ning et al., 2025; Wang et al., 2025; Li et al., 2024, 2025). None of these formulations makes a natural-language travel style a trainable interface that is both aligned by trajectory rewards and decomposed across sequence positions. Consequently, the link between high-level textual inference and fine-grained structural prediction remains opaque.

To bridge these gaps, we propose SemPOI-RL, a reinforcement learning framework that aligns LLM semantic inference with structured sequence generation for interpretable cross-city itinerary planning. Its central contribution is a semantic-structural alignment protocol: natural-language travel style is not merely an explanation appended after recommendation, but an intermediate representation trained from destination behavior, grounded at each trajectory position, and further optimized by the resulting POI sequence. Specifically, we first adapt an LLM via supervised fine-tuning to infer destination-oriented travel styles from users' hometown textual trajectories, effectively modeling cross-domain preference shifts through semantic reasoning (Xin et al., 2022; Feng et al., 2024). We then introduce a Semantic POI Alignment Module (SPAM) that injects these LLM-derived textual styles into a masked autoencoder framework. By softly assigning multiple style prototypes across sequence positions, the model exposes which semantic component guides each trip phase (Li et al., 2022). Finally, we use Group Relative Policy Optimization (GRPO) with a composite trajectory reward to optimize the intermediate style—rather than a final top-k list—for positional hit rate, recall, category consistency, and diversity (Shao et al., 2024; Li et al., 2025).

We evaluate SemPOI-RL on two large-scale real-world datasets, demonstrating that our framework significantly outperforms both traditional sequential modeling baselines and direct LLM generation methods. Beyond quantitative gains, our approach offers substantial interpretability benefits: the learned attention maps reveal how different LLM-inferred styles dominate specific sequence positions, providing human-readable attributions for generated trajectories. This work makes three primary contributions:

• We propose SemPOI-RL, a semantic–structural alignment protocol for cross-city POI recommendation. It treats natural-language travel style as a trainable and reinforcement-aligned interface between LLM inference and structured trajectory generation, rather than as a post-hoc explanation or an opaque user embedding.

• We design SPAM that decomposes global travel styles into temporally varying prototypical styles, and integrate it with a masked autoencoder to dynamically weight style influences across sequence positions. Furthermore, we introduce a multi-objective reinforcement learning strategy guided by hit rate, recall, category consistency, and diversity rewards, which refines LLM-generated styles to bridge the gap between semantic plausibility and structural prediction accuracy.

• We conduct comprehensive experiments on two large-scale real-world datasets, demonstrating that SemPOI-RL consistently outper-forms strong baselines in both accuracy and trajectory coherence. Detailed ablation studies and interpretability analyses further validate the necessity of each component, revealing how explicit modeling of interest drift and style-aware alignment leads to more faithful and human-understandable out-of-town recommendations.