arXiv:2610.13131cs.AIOct 2026

Manuscript Offprint

arXiv:2610.13131

Looking Ahead and Back: Anticipatory Generative Modeling for Road-Network Trajectories

Zhenhao Huang, Li Sun, Philip S. Yu

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

Abstract

Trajectory generation underpins urban applications such as traffic management and urban planning. Within road networks, vehicle movement along road segments is largely deterministic, whereas transitions at intersections are critical—multiple outgoing paths may appear equally plausible, yet they can lead to substantially different downstream routes. Existing generative methods such as diffusion models simulate location sequences and fail short of next transition selection, even producing trajectories that drift off the road network. To fill this gap, we advocate a fundamental shift: moving beyond location simulation toward behavior modeling on the road network. In this paper, we revisit trajectory generation through the lens of generative route planning, and introduce a new graph-constrained generative paradigm, Anticipatory Generative Modeling, which resolves next transition selection by incorporating the Anticipation of how the future route may unfold toward the destination. Concretely, we propose a novel generative model named FORESIGHT that formulates a probabilistic model for “anticipate–select–update–re-anticipate” loop that enables longer-term foresight while continuing sequential generation along the historical trajectory. Extensive experiments demonstrate that FORESIGHT wins state-of-the-art baselines.

1 Introduction

Generating human mobility data, particularly vehicle movement trajectories, plays a fundamental role in a wide spectrum of urban applications, including traffic management, navigation, and urban planning [Shi et al., 2024, Li et al., 2026]. Within road networks, vehicle movement is constrained by the physical topology: movement along road segments is largely deterministic, whereas transitions at intersections are critical—multiple outgoing paths may appear equally plausible given the traversed history, yet they can lead to substantially different downstream routes.

Conditioned on a given destination, a central challenge in road-network trajectory generation lies in modeling the next transition selection, especially at road intersections.

Figure

(a) Diffusion model: global (b) FORESIGHT: Anticipa- route generation. tory route generation.

Figure 1: Motivated example for anticipatory generative modeling.

sition selection, especially at road intersections. In the literature, deep generative models such as

Preprint.

diffusion-based methods are frequently employed [Zhu et al., 2023, Wei et al., 2024, Zhu et al., 2024, Shi et al., 2024, Li et al., 2026]. These models typically treat trajectories as holistic sequences of 2D locations and synthesize complete trajectories by denoising from random noise, often overlooking the discrete decision of next-transition selection at intersections. Consequently, they are prone to producing drift-off trajectories that deviate from the underlying road network, as illustrated in Fig. 1a, which undermines their effectiveness for capturing real-world human mobility patterns. Regarding transition selection, classical search or dynamic programming, e.g., Dijkstra and A-star, attempt to find optimal solutions by exhaustively enumerating the action space, but they struggle to scale to large-scale road networks [Dijkstra, 1959, Hart et al., 1968]. Although reinforcement learning has been explored for action selection, the sparse reward signal associated with destination reachability makes it ill-conditioned for generating stepwise action sequences on road networks [Bello et al., 2017, Kool et al., 2019, Sun et al., 2023]. That is, route planning for road-network trajectories remains a largely open problem.

In this paper, we revisit trajectory generation on road networks, shifting from location simulation towards behavior modeling, and introduce a new graph-constrained generative paradigm, Anticipatory Generative Modeling, for route planning. The core of this paradigm is anticipation, a provisional short-horizon continuation used to guide next-transition selection. A transition generator remains ambiguous when conditioned solely on the traversed history, since every legal transition on the road network may appear equally plausible. As illustrated in Fig. 1b, the situation changes when the model incorporates anticipation of how the future route may unfold toward the destination. Accordingly, we construct a 4-phase loop of “anticipate-select-update-re-anticipate” that enables longer-term foresight while continuing sequential generation along the historical trajectory.

Specifically, we present an anticipatory generation model named FORESIGHT to produce plausible trajectories on road networks. Given the destination g, we formalize Anticipatory Generative Modeling (AGM) at the heart of our model, which first predicts a provisional, destination-conditioned continuation over a finite horizon, and then uses its representation to select the current transition:

ct,g⟶Rt=(St+1,…,St+H)⟶qt(⋅),(1)c_{t},g\longrightarrow R_{t}=(S_{t+1},\ldots,S_{t+H})\longrightarrow q_{t}(\cdot), \tag{1}

where RtR_{t} is inferred from the available traversed history ctc_{t}. It thus serves as predictive context for the current selection, rather than being executed. After each transition, the history is updated and a new continuation is predicted. This loop preserves closed-loop generation while exposing downstream context. H limits the explicitly represented future window, not the total trajectory length. FORESIGHT employs a Future Decoder to predict RtR_{t}, and a topology-constrained Transition Network to score and normalize legal outgoing candidates. A direction-aware fiber state encodes the geometry of each realized movement, while candidate-conditioned re-anticipation predicts the continuation induced by each hypothetical candidate after the current distribution is formed. The training objective couples the likelihood of the current legal transition with future-window prediction and candidate-conditioned future compatibility. During inference, an optional future-consistency score can further refine candidate selection. After each executed movement, FORESIGHT recomputes the continuation from the updated history. The independent STOP event is admissible only at the destination, ensuring that validity and termination are governed by the same graph-constrained process. Our key contributions are summarized as follows:

• Generative Route Planning. We revisit trajectory generation through the lens of behavior modeling and fundamentally shift the focus from location simulation to route planning on road networks.

• Anticipatory Generative Modeling. Essentially different from diffusion models, we introduce a new graph-constrained generative paradigm, which resolves next transition selection by incorporating the anticipation of how the future route may unfold toward the destination.

• Methodology Innovation. We purpose a novel FORESIGHT model that formulates a probabilistic model with a direction-aware fiber for “anticipate-select-re-anticipate” loop that enables longer-term foresight while continuing sequential generation along the historical trajectory.

• Empirical Validation. FORESIGHT achieves state-of-the-art performance across various metrics, demonstrating its effectiveness in generating plausible trajectories.

References (80)