Abstract
Path representation learning is fundamental to various intelligent transportation services. Traditional supervised methods are often limited by the need for extensive labeled data and poor generalizability across tasks. This paper presents Path InfoMax (PIM), an unsupervised framework designed to learn general-purpose path representations. PIM leverages a curriculum negative sampling strategy and maximizes mutual information across global and local views. Experimental results on real-world datasets demonstrate that PIM significantly outperforms existing unsupervised methods and enhances supervised models through effective pre-training.
Introduction
In road networks, paths—sequences of road segments—are the primary units for tasks such as travel time estimation and route recommendation. While supervised learning has been the standard approach, it requires massive amounts of labeled GPS data and often results in task-specific models. Unsupervised graph representation learning offers a potential solution but typically focuses on nodes or entire graphs, failing to capture the sequential dependencies inherent in paths. Furthermore, standard unsupervised methods often rely on random negative sampling, which can be too simplistic for effective feature learning.
Methodology
The Path InfoMax (PIM) framework introduces two primary innovations to address these challenges:
Curriculum Negative Sampling
PIM employs curriculum learning to select negative samples. Instead of comparing an input path to random "fake" paths, the model starts with "easy" negatives (paths with entirely different structures) and gradually introduces "hard" negatives (paths that share start and end nodes but follow different intermediate routes). This progression forces the encoder to capture increasingly subtle topological features.
Dual-View Mutual Information Maximization (MIM)
PIM utilizes an LSTM-based encoder to generate path embeddings. These embeddings are trained by maximizing mutual information through two discriminators:
- Global View (Path-Path): Distinguishes the representation of the true input path from those of negative paths.
- Local View (Path-Node): Distinguishes the path representation from the feature vectors of nodes present only in negative paths.
This dual-view approach ensures the model learns both the high-level sequence structure and the specific characteristics of individual road segments.
Experimental Evaluation
The framework was evaluated on two real-world datasets: Aalborg (Denmark) and Harbin (China), comprising thousands of nodes and tens of thousands of unique paths. PIM was compared against seven baselines, including Node2vec, Deep Graph InfoMax (DGI), and BERT.
Key Results
PIM consistently outperformed all unsupervised baselines in two downstream tasks: Travel Time Estimation and Path Ranking.
As shown in the results table, PIM achieved a Mean Absolute Error (MAE) of 76.10 for travel time in Aalborg, significantly lower than the next best unsupervised baseline, Node2vec (121.43). For path ranking, PIM achieved high Spearman’s correlation ($\rho$) values of 0.76 and 0.79 in Aalborg and Harbin, respectively.
Pre-training and Data Efficiency
A critical finding is PIM's utility in pre-training. Supervised models initialized with PIM embeddings achieved comparable accuracy to models trained from scratch while using only 60-70% of the labeled training data. This demonstrates that the unsupervised phase successfully captures the underlying "geometry" and "logic" of the road network.
Conclusion
Path InfoMax (PIM) establishes a new state-of-the-art for unsupervised path representation learning. By combining curriculum negative sampling with dual-view mutual information maximization, it produces robust embeddings that generalize well across different transportation tasks. Future work includes incorporating dynamic traffic features and exploring more advanced negative sampling heuristics to further enhance discriminative power.
Summary updated