PathRank: A Multi-Task Learning Framework to Rank Paths in Spatial Networks

Sean Bin Yang, Bin Yang 0002arXiv 2019

Abstract

Traditional navigation systems often rely on simple heuristics like shortest distance or fastest time, failing to capture the nuanced preferences of local drivers. We present PathRank, a data-driven framework that learns to rank paths by mimicking actual driver behavior. By integrating spatial network embeddings with a multi-task learning architecture, PathRank significantly outperforms traditional ranking methods by accounting for physical constraints and human driving patterns.

Introduction

When presented with multiple route options, drivers frequently choose paths that are neither the shortest nor the fastest. These choices are often influenced by factors such as road quality, intersection complexity, or personal habits. Existing ranking solutions typically rely on rigid heuristics that ignore these human preferences. Furthermore, standard graph embedding techniques often focus solely on network topology, neglecting critical spatial properties like physical distance and fuel consumption. PathRank addresses these gaps by learning from real-world trajectories to provide more intuitive route recommendations.

Methodology

PathRank is an end-to-end deep learning framework designed to address these limitations through three core components:

  1. Diversified Training Data Generation: To effectively train the model, a set of "competitive" candidate paths is required. Standard "top-k shortest paths" are often too similar to provide meaningful training signals. PathRank employs a method to generate diversified paths across multiple cost metrics, including distance, time, and fuel consumption.
  2. Spatial Network Embedding: Intersections are represented as feature vectors. While initial embeddings are generated using node2vec, the model dynamically updates these embeddings during training to better align with the ranking task, ensuring the spatial context is preserved.
  3. Multi-Task Learning (MTL) Framework: The core architecture utilizes a Bidirectional Recurrent Neural Network (BD-GRU) to process vertex sequences. The model is trained on a primary task—predicting the similarity of a candidate path to the actual path taken—alongside auxiliary tasks such as reconstructing physical length, travel time, and fuel consumption.
PathRank Architecture Overview

Experimental Setup

The framework was evaluated using a substantial real-world dataset from North Jutland, Denmark, comprising 8,893 vertices and 10,045 edges sourced from OpenStreetMap. The training data included 180 million GPS records collected over two years from 183 vehicles, resulting in 22,612 distinct trajectory paths. Ground truth ranking scores were determined using weighted Jaccard similarity between candidate paths and actual trajectories.

Key Insights

A critical challenge in learning-to-rank for paths is the "similarity spread." If training paths are nearly identical (e.g., 95% overlap), the model fails to learn distinguishing features. PathRank's diversified path generation ensures a healthy distribution of similarity scores, which is essential for the model to learn meaningful differences between routes.

Similarity distribution of generated training paths

Additionally, the use of auxiliary tasks acts as a regularizer. By forcing the model to predict physical attributes like distance and time, the latent embeddings are "grounded" in physical reality, preventing the model from overfitting on abstract graph patterns.

Results

PathRank demonstrated superior performance over baseline heuristics across metrics such as Mean Absolute Error (MAE), Kendall’s $\tau$, and Spearman’s $\rho$. Key findings include:

  • MTL Effectiveness: Models incorporating multiple auxiliary tasks (specifically PR-A2-M3) achieved the highest ranking consistency with ground truth.
  • Dynamic Embeddings: Updating vertex embeddings during training significantly improved accuracy compared to using static topological embeddings.
  • Efficiency: With an average inference time of approximately 45ms per path, PathRank is efficient enough for real-time deployment in modern navigation services.

Conclusion and Future Work

PathRank successfully bridges the gap between abstract graph theory and real-world driver preferences. While the current model uses static edge weights, future research will focus on incorporating dynamic, time-varying traffic data. Furthermore, the authors propose exploring attention mechanisms to identify specific path segments—such as complex interchanges—that most heavily influence driver decision-making.

Summary updated

BibTeX
@misc{yang2019pathrank,
  author = {Sean Bin Yang and Bin Yang},
  title = {{PathRank: A Multi-Task Learning Framework to Rank Paths in Spatial Networks}},
  year = {2019},
  eprint = {1907.04028},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1907.04028},
}
Figure