arXiv:2609.07316cs.AISep 2026

Manuscript Offprint

arXiv:2609.07316

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, Bin Yang, Christian S. Jensen

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

Abstract

Due to proliferation of vehicle trajectory data from advanced sensing technologies, path representation learning has become a pivotal task in intelligent transportation systems. Although existing self-supervised approaches work to some extent, their dependence on deterministic contrastive learning paradigms and handcrafted view augmentation strategies inherently restricts cross-scenario generalization capabilities. To address these limitations, we present DGCPATH – an innovative Distribution-aware Generative Contrastive learning framework for Path representation. This architecture establishes a synergistic connection between generative modeling and distributional contrastive learning, enabling the acquisition of robust and transferable feature embeddings. Specifically, our framework incorporates: (1) a diffusion-based view generator that autonomously produces semantically coherent yet diversified trajectory views from Gaussian noise distributions; (2) a variational contrastive mechanism enforcing latent feature alignment at the distribution level, transcending conventional instance-wise consistency; and (3) a novel generative cross-supervision module that reinforces view-level consistency through cross-view reconstruction learning. Comprehensive evaluations on three real-world trajectory datasets demonstrate DGCPATH's superior performance over state-of-the-art baselines in two distinct downstream tasks, validating its enhanced generalization capacity and representation effectiveness.

This is an extended version of "DGCPATH: Distribution-Aware Generative Contrastive Framework for Self-supervised Path Representation Learning" [Yang et al., 2026], to appear in IJCAI 2026.

Figure

(a) Traditional Contrastive Pipeline

(b) DGCPath

Figure 1: Traditional Contrastive Pipeline vs. DGCPATH.

1 Introduction

Increasingly large volumes of vehicle path data are being accumulated that hold the potential to enable an expanding range of analyses in intelligent transportation systems [Jensen et al., 2024; Zhao et al., 2025; Yang et al., 2023; Yang et al., 2021a; Han et al., 2025; Li et al., 2015; Li et al., 2018; Li et al., 2016; Li et al., 2017; Xu et al., 2024; Xu et al., 2024]. Representation learning for such data is a key enabler of such analyses, as it represents raw paths by compact and informative low-dimensional vectors [Yang et al., 2023; Yang et al., 2021a; Yang et al., 2022a; Yang et al., 2025; Yang et al., 2021b; Yang et al., 2022b]. These representations facilitate intelligent transportation applications, such as traffic analysis [Zhao et al., 2025; Zhou et al., 2025; Jiang et al., 2023; Wu et al., 2024; Lin et al., 2023; Mao et al., 2025; Yu et al., 2024; Pan et al., 2023], path recommendation [Yang et al., 2022c; Xu et al., 2025], and traffic prediction [Wei et al., 2025; Yang et al., 2023; Fang et al., 2021].

Thus, substantial efforts have been devoted to learning generic path representations capable of supporting a wide range of downstream applications [Yang et al., 2023; Wei et al., 2025; Yang et al., 2021a; Xu et al., 2025; Yang et al., 2022a]. However, the reliance of existing proposals on deterministic contrastive loss functions is a core limitation. As illustrated in Figure 1(a), most existing proposals adopt a traditional contrastive learning pipeline that contrasts two deterministic path samples (i.e., Instance Contrast) to learn generic path representations. For example, PIM [Yang et al., 2021a] employs an InfoNCE-based loss to align deterministic positive samples and separate negative ones. In contrast, as shown in Figure 1(b), the contrastive formulation in Figure 1(a) is a special case of the more general distribution-based contrastive training. The former's rigid, deterministic regime limits the expressiveness of learned representations and reduces their ability to generalize in dynamic, real-world scenarios.

A further key limitation of existing proposals is their use of pre-defined view augmentation strategies. For instance, methods like START [Jiang et al., 2023] generate different path views through node dropping (e.g., as shown in Figure 1(a)) to obtain augmented path views and optimize them using deterministic contrastive objectives. Although this general approach enables strong empirical performance, it relies heavily on the use of carefully chosen augmentations, often requiring extensive trial-and-error tuning. This static and inflexible design constrains the adaptability of learned representations, particularly when transferred across difference tasks.

To overcome these limitations, we introduce DGCPATH, a novel Distribution-aware Generative Contrastive learning framework for Path representation learning. Rather than enforcing consistency on deterministic feature vectors, DGCPATH models each path representation as a latent probability distribution, enabling the learning of continuous, smooth, and uncertainty-aware embeddings. By aligning distributions rather than fixed instances, DGCPATH relaxes the rigid constraints inherent to deterministic proposals and mitigates overfitting to specific samples [Kingma and Welling, 2014]. The probabilistic formulation and the resulting enhanced flexibility of the encoder improves the generalization capabilities of the learned representations markedly across different tasks.

DGCPATH consists of three main components: a path encoder, a path view generator, and a generative variational-contrastive component. First, the path encoder maps each path into a latent representation by jointly capturing its spatial structure and temporal dynamics. Second, we introduce a diffusion-based path view generator that automatically synthesizes diverse yet semantically consistent path views from random Gaussian noise. This generative mechanism facilitates the construction of informative contrastive pairs without relying on manually designed augmentation heuristics.

Next, we leverage contrastive learning to constrain the distribution of latent features such that samples originating from the same path are encouraged to share similar distributions, while those from different paths are separated in the latent space. Specifically, we unify generative modeling with contrastive learning by proposing a generative variational contrastive model that integrates the strengths of both paradigms: capturing path-invariant characteristics via generative learning, and emphasizing inter-path discriminability through contrastive objectives. We also propose a generative cross-supervision module that replaces traditional self-supervision with a cross-view alignment mechanism. This design promotes consistency in the learned feature distributions across different views of the same path, thereby enhancing the robustness and semantic fidelity of the representations.

The main contributions are as follows:

  • We propose DGCPATH that integrates generative modeling and distribution-based contrastive learning to learn robust and generalizable path representations.

  • We propose a diffusion-based path view generator that automatically produces semantically consistent yet diverse path views from noise, eliminating the need for handcrafted augmentation.

  • We propose a generative cross-supervision module and distributional contrastive loss to enforce consistency among views of the same path while promoting separation across different paths at the distribution level.

  • We report on extensive experiments on three real-world datasets and considering two downstream tasks, showing that DGCPATH can consistently outperform state-of-the-art methods in terms of both representation quality and downstream performance.

References (44)