Abstract
Predicting the future trajectory of an agent—whether a driver on a road network or a user navigating Wikipedia—is a fundamental challenge in graph-based machine learning. Traditional methods often fail to balance the structural constraints of the graph with the sequential nature of the path. We introduce GRETEL (Graph REcurrent TrajEctory Learner), a model that leverages anisotropic graph convolutions to learn a latent directed graph. By employing a non-backtracking generative process, GRETEL captures human-like "natural paths" more effectively than standard Recurrent Neural Networks (RNNs), achieving significant performance gains in both physical and semantic navigation tasks.
Introduction
Predicting the future of a sequence is a cornerstone of machine learning, but doing so within the constraints of a graph adds significant complexity. Most existing graph neural networks (GNNs) are isotropic, meaning they treat all directions equally. While this is effective for node classification, it is insufficient for understanding the flow of a path. Conversely, Recurrent Neural Networks (RNNs) excel at sequence modeling but often ignore the underlying structural map.
This research addresses the path inference problem: given a partially observed path (a prefix), how can we accurately predict the missing suffix? The focus is on "natural paths"—trajectories that may be non-optimal or biased by human behavior rather than simply following the shortest mathematical route.
Methodology: The GRETEL Architecture
The authors propose GRETEL, which operates in two distinct stages to bridge the gap between graph structure and sequential intent.
1. Learning the Latent Graph
GRETEL uses a Graph Convolutional Network (GCN) to learn node embeddings conditioned on the observed path prefix. These embeddings are processed by a Multi-Layer Perceptron (MLP) to re-weight the edges of the original graph. This transformation creates a latent graph where edge weights represent the probability of an agent moving in a specific direction. Effectively, this turns an undirected graph into a "vector field" that points toward the agent's likely destination.
2. Generative Path Sampling
To generate the predicted suffix, GRETEL utilizes a non-backtracking walk on the latent graph. By preventing the model from immediately returning to the previous node, the system incorporates a form of short-term memory without the computational burden of a full RNN. This allows for efficient, closed-form inference and the ability to sample multiple potential future paths.
Experimental Evaluation
The model was tested across three diverse environments:
- Euclidean Synthesis: A toy experiment on a 10-Nearest Neighbor graph demonstrated that GRETEL could capture "straightness" and directionality without explicit spatial coordinates.
- GPS Trace Extrapolation: Using real-world food delivery data from Lausanne, Switzerland, GRETEL outperformed state-of-the-art RNNs by 28% in path identification accuracy, despite the RNNs having access to raw GPS coordinates that GRETEL did not use.
- Wikispeedia: In predicting human navigation through Wikipedia hyperlinks, GRETEL achieved an 8-fold improvement in target accuracy over baselines for three-hop predictions, highlighting its strength in semantic networks.
Discussion and Key Insights
The success of GRETEL suggests that for many real-world trajectory problems, the connectivity and constraints of the graph are more informative than long-term temporal dependencies. By breaking the "curse of directionality" inherent in standard GCNs, the model learns to "see" the intent behind a path.
While GRETEL is optimized for natural, biased paths, future work may involve refining its performance on purely algorithmic shortest-path problems and scaling the architecture to handle extremely high-degree nodes in massive information networks.
Summary updated