- Rating
- 4
- Clarity
- 3
- Confidence
- 3
- Originality
- 3
- Quality
- 3
- Significance
- 3
Read review
Summary
GNNs Meet Sequence Models Along the Shortest-Path: an Expressive Method for Link Prediction propose SP4LP - a rather elegant idea of characterixing vertices using the sentences composed of shortest paths. They propose that to better define edges using the properties of walks along these minimal paths. They try to address the "automorphic node problem" (as defined by the authors in preposition 2.9). All in all it is a very near framework. However, sadly (given the very elegant idea), the experimental validation of existing vs non-existing edges is very problematic, and much better prediction task (e.g. sign prediction on edges) can be proposed. Still the idea is neat. The proofs are not given at all in the main text, slightly limiting the strength of the claims.
Strengths and weaknesses
Strength - A) Very neat idea B) Addresses an underexplored problem C) strong theoretical claims, D) I like that it does not depend on the specific GNN format used, and E) the claimed improvement in performance Weakness - A) It is not clear how they choose the specific minimal path, B) The theory is mentioned, but they do not even provide a proof outline. B) The practical results of the theoretical improvement are not very clear. C) Quite limited experimental validation.
Questions
A) How did you choose the shortest path B) Can you please propose a toy model to highlight the advantage of your method in some explainable setup. C) I suspect that this is not an issue, but is the O(n^3) cost of the minimal path (using Floyd-Warshall or any similar algorithm), is a problem in the total cost. D) What is the practical advantage of the proposed approach
Limitations
Not really, there is a very short limitation section in the conclusions, that does not really address the main limitations.
Paper formatting concerns
Not that I can see, but all the proofs are in the appendix which make the paper actually real long.
We thank the Reviewer for the careful reading and constructive feedback. We have addressed all concerns below.
W A) and Q A) Selection of the shortest path
When multiple shortest paths exist, we select the first path returned by BFS under a fixed adjacency ordering and cache it, making the choice deterministic throughout training and evaluation. We use one path for efficiency, although the general SP4LP formulation supports aggregating multiple shortest paths.
To assess sensitivity to tie-breaking, we sampled up to ten alternative shortest paths per Cora test link using a fixed trained GCN–Transformer model. The standard deviations were only 0.10 MRR points and 0.01 Hits@10 points, indicating negligible sensitivity to path selection. We will document both the selection rule and this analysis in the revision.
W B) Proofs outlines
We agree that the main text should expose the key proof ideas. The complete proofs remain in Appendix A due to space constraints, but we will add the following short outlines after the corresponding theorem statements. Proposition 4.4 - proof outline. We construct two non-automorphic links whose respective endpoints are automorphic. Their shortest-path sequences differ, so an injective path encoder can assign them distinct representations, whereas a pure endpoint-based GNN necessarily collapses them. Theorem 4.5 - proof outline. For each baseline class, we first show that SP4LP can reproduce its link representation through an appropriate choice of ϕ,
AGG, and ρ. Strictness then follows from a pair of links that the baseline collapses but SP4LP distinguishes through path length, internal-node information, or path order. The Neo-GNN/BUDDY result follows through NCN, while the NBFNet comparison uses its equivalence to a pure GNN under the stated assumptions. We will retain the complete constructions and formal arguments in Appendix A.W C) Practical impact of the expressiveness gain
The theory shows that SP4LP can distinguish structurally different links that competing methods necessarily map to the same representation. In practice, this additional capacity is useful when datasets contain such hard-to-distinguish links and their shortest paths provide informative multi-hop structure. This is reflected in SP4LP’s strong performance across many datasets. Conversely, the gain is smaller on
ogbl-ddi, where shortest paths have average length close to two and therefore provide limited additional information. Finally, our ablations confirm the practical contribution of each component: the full model outperforms both using shortest-path length alone and applying the sequence model directly to raw node features.W D) Breadth of the experimental validation
We would like to clarify that the empirical validation is broad along several dimensions:
Q B) Explainable toy setup
Thank you for the suggestion. Figure 1 is intended to provide such a controlled example. Consider randomly relabeled copies of the motif in Figure 1, with the task of distinguishing the same-side pair (v,u′) from the cross-graph pair (v,u). The individual endpoints are automorphic, so any pure GNN followed by an endpoint decoder assigns the two links the same representation. SP4LP instead observes different pair-specific paths:
$ v \rightarrow \text{orange} \rightarrow u' $
and
$ v \rightarrow \text{orange} \rightarrow \text{yellow} \rightarrow \text{orange} \rightarrow u, $
and can therefore distinguish the two classes. We will present Figure 1 explicitly as this interpretable synthetic setup and report the corresponding comparison with a pure GNN.
Q C) cost of shortest path
The O(n3) concern would apply if SP4LP used Floyd–Warshall or computed all-pairs shortest paths, which it does not. For our unweighted graphs, we run BFS only from the distinct source nodes appearing in the supervised train/validation/test links. The preprocessing cost is therefore $ O!\left(S(n+m)\right), $ where S is the number of distinct sources, rather than O(n3). Paths are computed once, cached, and reused across all epochs and inference batches; hence, no graph traversal is performed during training or evaluation. In our benchmarks, the complete preprocessing takes only seconds to a few minutes. After caching, the per-link cost is only $ O(kd + T_{\mathrm{seq}}), $
where k is the typically short path length, and is independent of the total graph size. We will make this distinction from all-pairs shortest-path computation more prominent in the revision.
Q D) practical advantage of the proposed methods
SP4LP provides three main practical advantages:
The GNN is applied only once to the full graph, while shortest paths are precomputed and cached. SP4LP therefore avoids per-link subgraph extraction or repeated message passing and performs only lightweight sequence encoding at inference.
The framework can use different GNN backbones and sequence encoders without redesigning the architecture. Under the challenging HeaRT protocol, it ranks first in MRR on six of seven datasets while maintaining competitive inference time and memory usage. Thus, the practical advantage is a favorable trade-off between predictive expressiveness, scalability, and architectural simplicity.