When Road IDs Do Not Transfer: Road-Set-Adaptive Trajectory Recovery Across Cities

  • Post published:
arXiv:2612.00012v1 Announce Type: new
Abstract: Road-level trajectory recovery reconstructs traversed road segments from sparse GPS observations, supporting location-based Web services. Cross-city recovery remains challenging when the target road network has no reusable road IDs and its attributes and spatial layout differ from those of the source city. Existing approaches face two limitations: road-level transfer models rely on city-specific road IDs and output layers that cannot be directly reused on a new network, whereas transferable coordinate-based models require a separate map-matching stage to obtain road-level trajectories, introducing additional matching errors. We propose Roamer, a road-set-adaptive framework for direct cross-city road-level trajectory recovery. Roamer employs an ID-free road-scoring mechanism that encodes roads from their attributes, geometry, and turn-annotated connectivity using a shared encoder, enabling road recovery over different road sets without rebuilding city-specific output layers. To distinguish roads with similar intrinsic features, it constructs a trip-conditioned road table that augments road representations with their relative spatial relations to visible observations. A directional gap-to-map retrieval module retrieves road evidence for each observation gap, preserving upstream and downstream connectivity to support inference of the missing road sequence. A pre-trained language model adapted via low-rank adaptation (LoRA) integrates retrieved map evidence with trajectory observations to jointly recover missing roads and moving ratios. Experiments show that Roamer i) improves cross-city trajectory recovery accuracy by 18.75%–44.64% and reduces MAE by 23.73%–51.83% over the strongest baselines, across six transfer directions and three sparsity levels; ii) achieves the best single-city trajectory recovery accuracy among 12 baselines; and iii) demonstrates model robustness and scalability.