Road-Guided Stochastic Interpolants for Refined Trajectory Generation

Chenhao Wang, Lisi Chen, Xiaokui Xiao, Shuo ShangarXiv 2026

TL;DR

Generating realistic synthetic GPS trajectories usually requires massive generative models to wrestle unstructured Gaussian noise into intricate, street-bound paths. RoadSI skips the heavy lifting by starting from a lightweight, "rough draft" trajectory and smoothly morphing it onto real road networks using mathematical bridges called stochastic interpolants. The result is synthetic mobility data with crisp street alignment and realistic travel times—generated up to 2.9× faster with a fraction of the parameters.

What Problem Does This Paper Address?

Real-world GPS trajectories are goldmines for urban planning and traffic forecasting, but they are expensive to collect and notoriously difficult to share without compromising user privacy. Synthetic trajectory generation offers a clean way out, yet current generative models face a frustrating trilemma:

  1. The Noise-to-Road Gap: Standard diffusion and flow-matching models start from pure Gaussian noise. Mapping an unstructured cloud of static directly onto razor-thin, highly structured city streets is mathematically arduous, demanding bloated neural networks (30M–50M+ parameters) and dozens of slow sampling steps.
  2. Clumsy Road Constraints: Models usually learn about road networks indirectly via conditional embeddings, or snap points to roads after generation (map-matching)—which either fails to prevent off-road wandering or awkwardly distorts the path's geometry.
  3. Time is an Afterthought: Most generators spit out spatial coordinates while ignoring timestamps, or treat time independent of the actual route geometry, resulting in cars moving at implausible speeds.

Methods

Instead of sculpting a statue from a cloud of dust, RoadSI starts with a rough clay figure and refines it. It relies on stochastic interpolants—a generalization of diffusion and flow matching that builds continuous-time probability bridges between any two arbitrary distributions, not just Gaussian noise and data.

Fig. 1. Comparison between typical diffusion-based trajectory generators and RoadSI.

RoadSI breaks generation into three distinct stages:

  • 1. Spatial Reference Construction: A tiny conditional diffusion model takes an origin–destination (OD) pair and generates a coarse "reference" trajectory. Because two trips with the same OD might take completely different routes (e.g., highway vs. downtown), pairing them arbitrarily forces the interpolant to drag paths across buildings. The authors apply trajectory re-matching (using the Jonker–Volgenant bipartite matching algorithm within training batches) to pair each rough draft with its geometrically closest real-world counterpart, minimizing transport cost.
  • 2. Road-Guided Spatial Refinement: A stochastic interpolant ODE transports the rough draft to the real spatial distribution. Crucially, the authors inject explicit physics-like guidance: a road score. Imagine an invisible, shrinking rubber tube around the nearest streets. Points inside the tube are left alone, while off-road points feel a gentle gravitational pull back toward the asphalt—activated only in the second half of the generation process.
  • 3. Route-Conditioned Temporal Refinement: Once the spatial route is locked in, a second stochastic interpolant generates realistic timestamps. Rather than predicting raw clocks, it models log-pace (the logarithm of time per unit distance), refining a uniform-speed prior (sampled from historical trip durations of similar lengths) into realistic, street-by-street traffic speeds.
Fig. 2. Overview of the RoadSI framework.

Datasets

RoadSI is evaluated on three real-world taxi GPS datasets paired with OpenStreetMap road networks (filtered to sequences of 20–200 points and resampled to length 200):

  • Shenzhen: 56,456 trajectories (~15s intervals).
  • Porto: 1,023,159 trajectories (fixed 15s intervals).
  • Chengdu: 340,868 trajectories from a one-day subset (~30s intervals).

No new benchmark datasets are introduced.

Key Insights and Ideas

  • Don't start from scratch—and pair wisely: Replacing the learned reference prior with Gaussian noise tanks performance, proving that bridging from a structured "rough draft" makes life much easier for a small network. Even smarter is the batch-wise bipartite re-matching: simply re-pairing rough drafts with geometrically closer real trajectories before training stabilizes the vector field and boosts spatial fidelity across almost every metric.
  • Let global structure settle before enforcing local rules: RoadSI's road-guidance weight stays at zero for the first 50% of the ODE integration ($t \le 0.5$) and ramps up smoothly afterward. This lets the model decide which general corridors to take before snapping points onto specific lanes.
  • Log-pace is the right language for travel time: Raw timestamps depend on arbitrary start times, and raw intervals ignore segment lengths. Modeling log-pace ($\log(\Delta u / \Delta d)$) naturally normalizes travel time by distance and maps strictly positive speeds onto an unconstrained mathematical space where neural networks thrive.

Key Results

  • Lightweight & Fast: RoadSI totals just 9.79M parameters—41.8% smaller than the lightest flow-matching baseline (TrajFlow, 16.83M) and 82.0% smaller than Cardiff (54.31M). It generates trajectories in 8.5–17.3 ms, achieving 1.3× to 2.9× speedups over competing diffusion and flow models.
  • Superior Spatial & Road Fidelity: Across all three cities, RoadSI beats six baselines on every spatial metric, slashing micro-level geometric errors (travel distance, step distance, radius) by 26.6%–40.9% on average and achieving the lowest point-to-road distance error (e.g., 0.00887 JSD on Shenzhen vs. 0.04680 for TrajFlow). Even with just 20 total sampling steps, RoadSI outperforms 250-step baselines on Shenzhen.
  • Strong Temporal & Downstream Utility: RoadSI cuts speed distribution errors by 33.3%–76.9% over temporal baselines. When training downstream models solely on synthetic data and testing on real data, RoadSI recovers 88%–92% of real-data accuracy on destination prediction and 72%–89% of PR-AUC on anomalous detour detection, outperforming all other generators.

Limitations and Future Work

Not discussed in the paper. (Note: While the authors do not include a dedicated limitations or future work section, their experiments note an inherent $O(n^3)$ computational trade-off in global bipartite trajectory re-matching, which they circumvent in practice by matching within sub-batches, trading a tiny sliver of spatial coupling quality for major training-time savings.)

Summary updated

BibTeX
@misc{wang2026road,
  author = {Chenhao Wang and Lisi Chen and Xiaokui Xiao and Shuo Shang},
  title = {{Road-Guided Stochastic Interpolants for Refined Trajectory Generation}},
  year = {2026},
  eprint = {2611.39667},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.39667},
}
Figure