GNNs Meet Sequence Models Along the Shortest-Path: an Expressive Method for Link Prediction
Not on the map. Why?
Abstract (arXiv)
Graph Neural Networks (GNNs) often struggle to capture the link-specific structural patterns crucial for accurate link prediction, as their node-centric message-passing schemes overlook the subgraph structures connecting a pair of nodes. Existing methods to inject such structural context either incur high computational cost or rely on simplistic heuristics (e.g., common neighbor counts) that fail to model multi-hop dependencies. We introduce SP4LP (Shortest Path for Link Prediction), a novel framework that combines GNN-based node encodings with sequence modeling over shortest paths. Specifically, SP4LP first applies a GNN to compute representations for all nodes, then extracts the shortest path between each candidate node pair and processes the resulting sequence of node embeddings using a sequence model. This design enables SP4LP to capture expressive multi-hop relational patterns with computational efficiency. Empirically, SP4LP achieves state-of-the-art performance across link prediction benchmarks. Theoretically, we prove that SP4LP is strictly more expressive than standard message-passing GNNs and several state-of-the-art structural features methods, establishing it as a general and principled approach for link prediction in graphs.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 26 of its 46 references that are in the map. First posted on arXiv 9 Jul 2025.
Builds on
26 of 46 references.
References · 26
- 2017Attention Is All You Needcited by 60,361
- 2016Semi-Supervised Classification with Graph Convolutional Networkscited by 11,361
- 2017Graph Attention Networkscited by 8,923
- 2017Inductive Representation Learning on Large Graphscited by 6,320
- 2018How Powerful are Graph Neural Networks?cited by 4,393
- 2014Empirical Evaluation of Gated Recurrent Neural Networks on Sequence Modelingcited by 2,367
- 2020Open Graph Benchmark: Datasets for Machine Learning on Graphscited by 2,163
- 2016node2vec: Scalable Feature Learning for Networkscited by 1,918
- 2016Variational Graph Auto-Encoderscited by 1,382
- 2018Graph Convolutional Neural Networks for Web-Scale Recommender Systemscited by 1,138
- 2016Revisiting Semi-Supervised Learning with Graph Embeddingscited by 976
- 2018Weisfeiler and Leman Go Neural: Higher-order Graph Neural Networkscited by 881
14 more
- 2018Link Prediction Based on Graph Neural Networkscited by 832
- 2021Neural Bellman-Ford Networks: A General Graph Neural Network Framework for Link Predictioncited by 275
- 2015A Review of Relational Machine Learning for Knowledge Graphscited by 265
- 2020Labeling Trick: A Theory of Using Graph Neural Networks for Multi-Node Representation Learningcited by 149
- 2022Equivariant and Stable Positional Encoding for More Powerful Graph Neural Networkscited by 94
- 2022Graph Neural Networks for Link Prediction with Subgraph Sketchingcited by 81
- 2020APAN: Asynchronous Propagation Attention Network for Real-time Temporal Graph Embeddingcited by 78
- 2022Neo-GNNs: Neighborhood Overlap-aware Graph Neural Networks for Link Predictioncited by 78
- 2023Evaluating Graph Neural Networks for Link Prediction: Current Pitfalls and New Benchmarkingcited by 69
- 2023Neural Common Neighbor with Completion for Link Predictioncited by 64
- 2021Progresses and Challenges in Link Predictioncited by 14
- 2023Line Graph Neural Networks for Link Weight Predictioncited by 7
- 2024Edge Classification on Graphs: New Directions in Topological Imbalancecited by 4
- 2025Simple Path Structural Encoding for Graph Transformerscited by 1
Built on by
Not cited yet.