arXiv:2610.35032cs.LGOct 2026

Manuscript Offprint

arXiv:2610.35032

AutoPRL: Automated Path Representation Learning via a Learnable View Generator

Sean Bin Yang, Ying Sun, Yunyao CHeng, Hao Miao, Jilin Hu, Bin Yang, Torben Bach Pedersen, Christian S. Jensen

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

Sean Bin Yang, Member, IEEE, Ying Sun, Yunyao Cheng, Hao Miao, Member, IEEE, Jilin Hu ∗^{*}, Member, IEEE, Bin Yang, Senior Member, IEEE, Torben Bach Pedersen, Senior Member, IEEE, and Christian S. Jensen, Fellow, IEEE

Abstract—Self-supervised learning has emerged as a powerful paradigm for Path Representation Learning (PRL) in road networks. PRL aims to learn informative representations of paths traversed by moving objects, such as vehicles, where each path consists of a sequence of connected road segments. These representations are essential for various downstream tasks, including travel-time estimation and path ranking. However, existing methods often suffer from ineffective view generation and inefficient training procedures due to their reliance on heuristic augmentations and computationally intensive contrastive learning. To address these issues, we propose AutoPRL, an effective and efficient self-supervised PRL framework that integrates three key components. The Automatic Data Augmentation (AutoDA) module employs variational autoencoders to generate semantically meaningful and diverse feature-level path views by modeling each topology-aware node embedding with a Gaussian latent distribution, thereby mitigating information loss and enhancing representation quality. Second, the Cross-View Decoupled Contrastive (CVDC) learning mechanism improves training efficiency by disentangling the optimization of positive and negative pairs across node- and path-level views, enabling more stable contrastive learning. Third, an Adaptive Co-Training (ACT) module dynamically adjusts uncertainty-based loss weights to balance multiple objectives, ensuring efficient and scalable training. Extensive experiments on three real-world datasets demonstrate that AutoPRL achieves strong and consistent performance in both effectiveness and efficiency across multiple downstream tasks.

Index Terms—Self-Supervised Learning, Path Representation Learning, Automatic Data Augmentation.

I. INTRODUCTION

WITH the rapid proliferation of GPS-enabled devices and ubiquitous mobile computing services, massive volumes of path data are being continuously collected to capture the mobility patterns of vehicles. Effective analysis of such data is fundamental to a broad range of intelligent transportation applications, including travel time estimation [1]–[6], trajectory mining [7]–[14], and path recommendation [2]–[4], [15]. Path representation learning (PRL), an essential and popular path data analytics technique, aims at learning a generic path representation that can support various downstream tasks, rather than being tailored to a specific application [2]–[4], [16]–[18].

Sean Bin Yang, Yunyao Cheng, Hao Miao, Torben Bach Pedersen and Christian S. Jensen are with Aalborg University, Denmark.

Ying Sun is with the Chongqing University of Posts and Telecommunications, China.

Jilin Hu and Bin Yang are with East China Normal University, Shanghai, China.

∗^{*}Corresponding author: Jilin Hu.

Figure

(a) Contrastive Paradigm

Figure

(b) AutoPRL

Fig. 1: Architectures of the conventional contrastive paradigm and our AutoPRL for path representation learning. In (a), heuristic augmentation directly perturbs the discrete path sequence. In (b), AutoDA generates feature-level views as continuous embedding sequences from topology-aware node embeddings, rather than discrete node sequences on the road-network graph. Contrast denotes the contrastive loss.

Due to its significance, substantial research efforts have been devoted to developing effective and efficient methods for path representation learning. Among them, contrastive learning-based approaches have garnered considerable attention due to their ability to enhance representation generalization by pulling positive samples closer while pushing negative samples apart in the embedding space [2]–[4], [19]–[22].

More specifically, as illustrated in Figure 1 (a), most existing PRL methods adopt a contrastive learning paradigm comprising three stages: (1) Given an input path (e.g., ⟨v1,v2,v3,v4,v5⟩\langle v_1, v_2, v_3, v_4, v_5 \rangle), augmented views are generated using heuristic, prior-based strategies such as random node drop, resulting in path view 1 ( ⟨v1,v2,v3⟩\langle v_1, v_2, v_3 \rangle) and path view 2 ( ⟨v1,v2,v3,v5⟩\langle v_1, v_2, v_3, v_5 \rangle); (2) These path views are encoded via a shared path encoder to obtain latent representations; (3) A contrastive loss is applied to align representations of positive pairs while pushing apart negatives. Despite their simplicity, such pre-defined augmentations are inherently limited: they often lead to significant semantic information loss and lack adaptability to the structural characteristics of individual paths. As a result, the learned representations are not only suboptimal but also suffer from poor generalization across tasks and domains.

Different from existing PRL methods that mainly rely on pre-defined positive samples or manually designed structure-level perturbations, AutoPRL adapts learnable view generation ii

to the PRL setting and generates probabilistic feature-level path views. It automatically generates semantically consistent feature-level path views in the latent space based on topology-aware node embeddings derived from the road network. The generated views are continuous embedding sequences rather than discrete topology-level perturbations. In addition, AutoPRL adopts a cross-view decoupled contrastive learning mechanism to improve training efficiency and stability, and an adaptive co-training strategy to dynamically balance multiple learning objectives.

These limitations motivate the design of AutoPRL, an effective and efficient framework for learning generalizable path representations through an automatic and learnable view generator. AutoPRL addresses three key challenges:

Challenge I: How to effectively construct path views with minimal information loss? To derive effective and generalizable path representations, existing methods often rely on heuristic, prior-driven view generation strategies. However, such approaches—e.g., random node drop (as illustrated in Figure 1(a), where the generated path view retains only a partial segment of the original path)—can result in significant information loss, thereby limiting the representational capacity of the path encoder and leading to suboptimal performance.

Although recent advances in automatic and learnable view generation have demonstrated effectiveness in graph and vision domains, these techniques are not directly applicable to path representation learning due to the unique spatial dependencies inherent in paths. To this end, as shown in Figure 1(b), AutoPRL generates semantically consistent path views with minimal information loss by leveraging two independent variational autoencoders that explicitly account for spatial dependencies. Specifically, it models each topology-aware node embedding with a Gaussian latent distribution and performs sampling from these distributions to generate diverse yet semantically consistent feature-level views for each input path. The generated views are continuous embedding sequences in the latent space rather than discrete paths on the road-network graph. This probabilistic design introduces adaptive feature-level variations without directly modifying the underlying road-network topology. This process constitutes an automatic data augmentation module, referred to as AutoDA, which enables AutoPRL to learn more effective and generalizable path representations for various downstream tasks.

Challenge II: How to efficiently conduct contrastive learning for PRL? Prevailing PRL frameworks commonly adopt SimCLR-style contrastive objectives [3], [10], which rely on a large number of negative samples to achieve discriminative representations. Although effective, these methods incur significant computational and memory overhead due to their dependence on large batch sizes, thereby posing challenges for scalability and efficiency. To facilitate more efficient contrastive training, we adapt the decoupled contrastive learning principle to PRL and develop a CVDC learning mechanism that enhances training efficiency by disentangling the optimization of positive and negative sample pairs. By eliminating the competition between positives and negatives within a shared contrastive space, CVDC enables more stable and computationally efficient training of the path encoder.

Challenge III: How to efficiently optimize multi-objective learning in a dynamic setting? Unlike existing fixed-weight multi-objective optimization strategies, where the contribution of each objective remains static throughout training, path representation learning often involves objectives whose gradients vary dynamically during training. This dynamic behavior necessitates an adaptive optimization mechanism that can effectively balance competing objectives in real time to ensure stable and efficient encoder learning. To mitigate this, AutoPRL incorporates an adaptive loss co-training module that learns uncertainty-based weights for each objective. This dynamic weighting strategy facilitates efficient multi-objective optimization and enhances both the stability and efficiency of path encoder training.

In summary, the AutoPRL framework consists of three components: AutoDA, CVDC, and ACT modules.

First, we introduce AutoDA, an automatic and learnable path view generator that adaptively generates semantically meaningful views conditioned on the input path through Gaussian latent modeling, thereby mitigating information loss associated with heuristic augmentations. Second, we propose a CVDC mechanism that separately optimizes cross-node and cross-path objectives. This decoupling strategy allows the encoder to simultaneously capture local structural dependencies among nodes and global semantic patterns across entire paths. By decoupling the competition between positive and negative samples in the shared contrastive space, CVDC facilitates more stable optimization and enhances computational efficiency in path encoder training. Finally, the ACT module dynamically balances multiple learning objectives via uncertainty-based weighting, enhancing both training efficiency and model generalization.

The main contributions of this paper are summarized as follows:

  • We propose AutoPRL, an automated path representation learning framework that adapts learnable view generation to PRL. Compared with previous PRL methods that mainly rely on pre-defined positive samples or heuristic augmentations, AutoPRL generates semantically consistent feature-level path views through Gaussian latent modeling, reducing information loss and improving generalization.

  • We adapt decoupled contrastive learning to PRL and formulate a cross-view contrastive learning component with cross-path and cross-node objectives. This component captures both global path-level semantics and local node-level consistency while improving training efficiency.

  • We incorporate an adaptive co-training strategy to jointly train the view generator and path encoder in an end-to-end manner. This strategy introduces uncertainty-based adaptive weighting into PRL to dynamically balance multiple loss components, reducing the need for manual weight tuning and improving training stability.

  • We conduct extensive experiments on three real-world datasets across multiple downstream tasks to assess the effectiveness and generality of AutoPRL.

iii

References (43)