- Rating
- 5
- Clarity
- 3
- Confidence
- 3
- Originality
- 3
- Quality
- 3
- Significance
- 3
Read review
Summary
This paper investigates whether graph neural networks can learn generalizable algorithms for graph clustering rather than merely fitting the training distribution. Using modularity maximization as the target objective, the authors combine experiments and theory to show that different GNN architectures learn different clustering heuristics: MPNNs generalize surprisingly well across graph sizes and families, while more expressive models such as PPGNs often achieve stronger in-distribution performance but weaker out-of-distribution generalization. The paper further suggests, through theoretical analysis and probing, that MPNNs tend to learn procedures resembling power methods or gradient-based iterations on graph-associated matrices, highlighting the role of algorithmic alignment between architecture and learned algorithm.
Strengths and weaknesses
Strengths
- The paper addresses an important and timely question: whether GNNs learn genuinely generalizable graph-clustering algorithms rather than merely fitting the training distribution.
- It provides a strong combination of empirical evaluation, theoretical analysis, and probing-based interpretation, which makes the main claims more convincing than purely experimental evidence.
- The comparison between MPNNs and PPGNs is insightful, showing that higher expressivity does not necessarily lead to better out-of-distribution generalization.
- The proposed explanation based on architecture–algorithm alignment offers a useful perspective for understanding why certain GNN architectures generalize better on algorithmic graph tasks.
Weaknesses
- The probing evidence is suggestive but not conclusive, since the observed internal representations may be compatible with multiple algorithmic interpretations.
- The explanation for why virtual nodes substantially improve generalization remains somewhat underdeveloped and lacks deeper causal analysis.
- The empirical study focuses mainly on modularity-based graph clustering, which limits the breadth of evidence for the paper’s broader claims about GNNs learning generalizable algorithms.
Questions
-
The probing results suggest that the learned representations may resemble power-method or gradient-based iterations, but how can the authors rule out alternative heuristics that produce similar probe curves?
-
Since virtual nodes appear crucial for the strong generalization of GCNs, can the authors provide more targeted ablation studies to isolate whether the gain comes from global information aggregation, optimization stability, or increased effective model capacity?
-
The paper argues that PPGNs learn more accelerated but less transferable procedures. Can the authors provide stronger evidence that the poorer OOD performance of PPGNs is caused by algorithmic over-specialization rather than differences in optimization, normalization, or hyperparameter sensitivity?
-
The experiments mainly focus on modularity maximization. How robust are the conclusions if the clustering objective is changed to other cut-based or community-detection objectives?
-
Given that MPNNs generalize better while PPGNs often perform better in-distribution, can future architectures combine the stability of MPNN-like iterations with the efficiency of higher-order or accelerated methods?
-
Can the proposed architecture–algorithm alignment perspective be extended to graph tasks beyond clustering, such as shortest paths, matching, graph coloring, or subgraph detection?
Limitations
- The conclusions are primarily drawn from one family of graph-clustering objectives, so it remains unclear whether the same architecture–algorithm alignment explanation extends to other graph tasks.
- The paper does not provide a general method for identifying the exact algorithm learned by a trained GNN; the current probes only offer partial interpretability.
- The role of training data design is not fully resolved, especially regarding what types of synthetic graphs best encourage the learning of transferable algorithmic procedures.
Paper formatting concerns
No.
Final justification
I will keep my score due to the discussion in the rebuttal period.
Thank you for the thoughtful review. We appreciate your comments and feedback. We address your main points below.
Questions
This is a good point, and we could have been clearer on this point in the paper. We do not believe we can rule out that GNNs are learning a heuristic. In fact, we believe it is likely that GNNs are learning a heuristic rather than exactly implementing one of these algorithms. Our main argument is only that the algorithms learned by the network are similar to one of the classical algorithms, given the evidence we observe. In Appendix F.2, we compare the internal feature representations and iterates of the different power method variants, and we see that no algorithm perfectly matches the algorithm, although they have similar convergence curves to the algorithms. (Admittedly, this comparison is complicated by the step size hyperparameter in the power-method-type algorithms, so we simply opted for best fit visually). In Appendix C and specifically Section C.4, we observe that gradient descent on most clustering objectives all have a similar form. From this, we suspect that our GNNs are learning some heuristic similar to the power method rather than the power method itself. We will try to carefully reword our paper to avoid making too strong a claim and explicitly state that our experiments could be explained by a heuristic similar to any of these methods.
As we were writing the paper, one hypothesis we had was that virtual nodes were primarily used to align the features with the final sigmoid layer; this would be akin to the sweepline algorithm performed in classical eigenvector methods for clustering. If this were true, we would only need global information at the final layer and not at the intermediate layers. To test this, we trained a GCN with a DeepSets layer as the final layer before the sigmoid. This would provide the network with global information before the sigmoid. We found that this did improve upon the performance of GCN, but it did not achieve the same performance as GCN+VN. From this we might conclude that the virtual node is performing non-trival operations at each layer, for example subtracting the degrees as would be necessary for Laplacian gradient descent.
This is a good question, and one where we put in quite a bit of effort. We performed a thorough hyperparameter search to maximize the generalization ability of PPGNs. We found normalization technique was one factor that was critical for the generalization. We had to try several normalization techniques (BatchNorm, LayerNorm) before we found a norm that worked reasonably well OOD (InstanceNorm); the other two performed poorly on only slight OOD tasks (for example, going from Large to X-Large data). Perhaps more sophisticated normalization is needed for even better generalization.
Nevertheless, it is an intriguing question why PPGN OOD generalizes worse -- and if there are any specific thoughts or suggestions for an experiment beyond a hyperparameter search, we would be more than happy to try and test them.
During the rebuttal period, we were able to perform a more in-depth analysis on the isoperimetric ratio. Recall from Appendix G that we are able to successfully train GCNs to minimize the isoperimetric ratio and avoid non-trivial solutions if we added a centering operator after each layer and we use the Gumbel softmax as the final activation layer. For a point of comparison, we trained a PPGN using Gumbel softmax as the final activation layer. We did see some similarities to the modularity case, namely PPGNs achieved overall better performance. Probes of PPGNs showed they also had faster convergence, achieving better results after a small number of layers then converging to their final solution in the last layers. Both of these make sense in the context of classical algorithms; some algorithms for maximizing isoperimetric use eigenvectors of the Laplacian, so can be implemented with the power method on the Laplacian.
One of the central questions left open by our work is why GCNs perform better OOD than PPGNs. One difficulty here is the lack of alternative higher-order architectures, which we agree is a compelling direction for future research.
Yes, algorithmic alignment is one of the key concepts in the field of neural algorithmic reasoning, and some of the papers that most inspired us were works that were focused on how the structure of the GNN enabled the learning of algorithms for specific problems like shortest path and minimum vertex cover. Our primary inspirations in the conceptualization and writing of this paper were [Nerem et al 2025], [Yau et al 2023], and [He and Vitercik, 2025]. It would be interesting to apply some of the techniques in our paper to these problems, although many of our experiments are specific or fine-tuned to the problem of clustering.
Limitations
This is an interesting open question, and one we do not have much perspective on. Two interesting points of comparison are [Nerem et al 2025] and [Wittig et al 2026]. These papers show that GNNs could learn generalizable algorithms by training on carefully constructed finite datasets. This is an interesting approach, but the difficulty in applying it to clustering is that we do not know concretely which algorithm we think our network is learning, which is the case for these papers (e.g., Bellman-Ford for shortest paths). In particular, there are some components of our networks that we don’t have a hypothesis of how they perform, e.g., converting intermediate states into cluster probabilities. Thus, our only thought on how to resolve this is more thorough testing.