DGCPath: Distribution-Aware Generative Contrastive Framework for Self-supervised Path Representation Learning -- Extended Version

Sean Bin Yang, Hao Miao, Zongyi Xu, Jilin Hu, Xiangmeng Wang, Hua Lu, Christian S. JensenarXiv 2026

TL;DR

DGCPATH is a novel self-supervised framework for path representation learning that replaces rigid, deterministic instance contrast and handcrafted data augmentations with a diffusion-based view generator and distribution-level contrastive learning. By modeling paths as latent probability distributions rather than fixed vectors, it significantly improves the robustness, uncertainty-awareness, and generalization of trajectory embeddings across various intelligent transportation tasks.

What Problem Does This Paper Address?

In intelligent transportation systems, mapping raw vehicle trajectories (paths) into compact, low-dimensional vectors—a process called path representation learning—is essential for downstream applications like travel time estimation, path ranking, and route recommendation.

While self-supervised contrastive learning has advanced this field, existing methods suffer from two major bottlenecks:

  1. Handcrafted Augmentations: They rely on manual heuristics (like randomly dropping road nodes) to create different "views" of a path for contrastive training. This requires extensive trial-and-error and limits how well the model transfers to new scenarios.
  2. Deterministic Constraints: Traditional pipelines compare fixed, instance-level feature vectors. This rigid approach ignores data uncertainty and makes models prone to overfitting to specific trajectory samples.
Figure 1: Traditional Contrastive Pipeline vs. DGCPATH.

Methods

DGCPATH introduces a synergistic architecture that unifies generative modeling with distributional contrastive learning. The framework consists of four primary blocks:

  1. Path Encoder: Uses node2vec to initialize spatial embeddings for road network intersections, then applies a Transformer architecture to aggregate consecutive road segments into an initial path embedding.
  2. Diffusion-Based Path View Generator: Instead of manual masking, a generative diffusion process is used. It takes the initial path embedding, adds Gaussian noise over a forward Markov chain, and then uses a learnable reverse denoising process to autonomously synthesize diverse, semantically coherent path views.
  3. Generative Variational Contrastive Module: Rather than mapping views to single points in a latent space, this module projects them into latent Gaussian distributions (parameterized by mean and standard deviation). It uses the symmetric Jensen-Shannon (JS) divergence to align the distributions of positive pairs (views of the same path) while pushing different paths apart.
  4. Generative Cross-Supervision Module: To ensure the encoder captures core semantic features rather than view-specific noise, the framework samples from the latent distributions using the reparameterization trick. A shared decoder then performs cross-view reconstruction: the representation from View 1 is tasked with reconstructing View 2, and vice versa.
Figure 2: The DGCPATH Framework.

Datasets

The authors evaluated their framework on three real-world trajectory datasets mapped to OpenStreetMap networks:

  • Aalborg (Denmark): 10,017 nodes, 11,597 edges, and 33,264 paths.
  • Chengdu (China): 6,632 nodes, 17,038 edges, and 54,491 paths.
  • Harbin (China): 8,497 nodes, 14,497 edges, and 259,615 paths.

Key Insights and Ideas

  • The Power of Smoothness: Modeling representations as continuous probability distributions rather than discrete points introduces an inherent awareness of uncertainty, making the embeddings smoother and more resilient to real-world trajectory variations.
  • Symmetry Matters in Distribution Contrast: The authors highlight that the standard Kullback-Leibler (KL) divergence is asymmetric, which is problematic for contrastive learning where positive pairs should be treated equally regardless of order. Switching to the symmetric Jensen-Shannon (JS) divergence provides a stable, bounded metric for distribution alignment.
  • No Shortcuts Allowed: The cross-supervision mechanism prevents the model from cheating. If View A had to reconstruct View A, it could simply memorize coordinate-dependent noise. Forcing View A to reconstruct View B ensures only view-invariant, structural semantics are preserved.

Key Results

DGCPATH was tested against 10 state-of-the-art baselines (including unsupervised models like START, LIGHTPATH, and RED) across multiple downstream tasks:

  • Travel Time Estimation: On the Aalborg dataset, DGCPATH reduced Mean Absolute Error (MAE) and Root Mean Square Error (RMSE) by up to 13.27% and 2.21%, respectively, outperforming all baselines.
  • Path Ranking: On the Harbin dataset, it improved rank consistency metrics, increasing Kendall’s $\tau$ and Spearman’s $\rho$ by up to 4.66% and 6.94%.
  • Data Efficiency: When used to pre-train a supervised model (PathRank), DGCPATH achieved comparable accuracy using only 8K labeled samples compared to the baseline requiring 12K samples from scratch.
  • Robustness to Noise: Under injected Gaussian perturbations ($\sigma = 0.03$), DGCPATH maintained a significantly lower performance drop percentage than competing models, demonstrating superior environmental robustness.

Limitations and Future Work

While DGCPATH demonstrates excellent structural representation capabilities, the baseline framework primarily focuses on the spatial path modality. The authors note in their parameter analysis that explicitly incorporating dynamic traffic states (DTS)—such as time-varying traffic flow sequences—further boosts performance. A natural direction for future work is the tighter, native integration of highly dynamic temporal and environmental conditions directly into the distribution-aware generative pipeline.

Summary updated

BibTeX
@misc{yang2026dgcpath,
  author = {Sean Bin Yang and Hao Miao and Zongyi Xu and Jilin Hu and Xiangmeng Wang and Hua Lu and Bin Yang and Christian S. Jensen},
  title = {{DGCPath: Distribution-Aware Generative Contrastive Framework for Self-supervised Path Representation Learning -- Extended Version}},
  year = {2026},
  eprint = {2609.07316},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2609.07316},
}
Figure