[Paper Review] 2-hop Neighbor Class Similarity (2NCS): A graph structural metric indicative of graph neural network performance
This paper introduces 2-hop Neighbor Class Similarity (2NCS), a novel graph structural metric that quantifies how well a graph's topology supports Graph Neural Network (GNN) performance by analyzing the label distribution in two-hop neighborhoods. Unlike homophily or CCNS, 2NCS captures the theoretical influence of second-order neighborhood information in GCN-style message passing, demonstrating stronger and more consistent correlation with GCN and GAT accuracy across real and synthetic graphs.
Graph Neural Networks (GNNs) achieve state-of-the-art performance on graph-structured data across numerous domains. Their underlying ability to represent nodes as summaries of their vicinities has proven effective for homophilous graphs in particular, in which same-type nodes tend to connect. On heterophilous graphs, in which different-type nodes are likely connected, GNNs perform less consistently, as neighborhood information might be less representative or even misleading. On the other hand, GNN performance is not inferior on all heterophilous graphs, and there is a lack of understanding of what other graph properties affect GNN performance. In this work, we highlight the limitations of the widely used homophily ratio and the recent Cross-Class Neighborhood Similarity (CCNS) metric in estimating GNN performance. To overcome these limitations, we introduce 2-hop Neighbor Class Similarity (2NCS), a new quantitative graph structural property that correlates with GNN performance more strongly and consistently than alternative metrics. 2NCS considers two-hop neighborhoods as a theoretically derived consequence of the two-step label propagation process governing GCN's training-inference process. Experiments on one synthetic and eight real-world graph datasets confirm consistent improvements over existing metrics in estimating the accuracy of GCN- and GAT-based architectures on the node classification task.
Motivation & Objective
- To identify structural graph properties that better predict GNN performance than existing metrics like homophily and CCNS.
- To address the inconsistency of GNN performance on heterophilous graphs by analyzing the role of second-order neighborhood information.
- To derive a theoretically grounded, quantifiable metric based on the label distribution in two-hop neighborhoods of nodes.
- To validate that 2NCS correlates more strongly with GNN accuracy than alternative metrics across diverse graph datasets.
Proposed method
- Define 2NCS as the average fraction of same-class nodes in the 2-hop neighborhood of each node, normalized by the size of the 2-hop set.
- Theoretical analysis of a simplified 1-layer GCN model reveals that node classification depends on the label distribution in the 2-hop neighborhood.
- Use the 2-hop neighborhood as a proxy for the label propagation process in GCN, where node representations are influenced by neighbors of neighbors.
- Compute 2NCS at both node-level and graph-level to evaluate its predictive power for GNN performance.
- Compare 2NCS with homophily ratio $h$ and CCNS using Pearson correlation with GCN and GAT accuracy across eight real-world and one synthetic graph.
- Perform per-class analysis to link 2NCS values to class-specific GNN performance gains over MLP.
Experimental results
Research questions
- RQ1How does 2NCS compare to homophily and CCNS in predicting GNN performance across diverse graph types?
- RQ2To what extent does the label distribution in two-hop neighborhoods influence GNN node classification accuracy?
- RQ3Can 2NCS explain why GNNs outperform MLP on some heterophilous graphs but not others?
- RQ4Does 2NCS correlate more strongly with GNN performance than existing metrics at both node-level and graph-level?
- RQ5How do per-class 2NCS values align with per-class improvements of GNNs over MLP in node classification?
Key findings
- 2NCS shows a significantly stronger Pearson correlation with GCN and GAT accuracy than homophily ratio $h$ or CCNS across eight real-world graphs.
- On the Chameleon dataset, 2NCS has a correlation of $r = 0.90$ with GCN accuracy, compared to $r = 0.68$ for $h$ and $r = 0.75$ for CCNS.
- On Squirrel, 2NCS achieves $r = 0.88$ with GCN accuracy, outperforming $h$ ($r = 0.65$) and CCNS ($r = 0.72$).
- Classes with high per-class 2NCS (e.g., 0.40–0.43 on Chameleon) show large GNN improvements over MLP, while low-2NCS classes (e.g., 0.15 on Squirrel) show MLP outperforming GNNs.
- The simplified GCN model, which mirrors the 2NCS derivation, achieves comparable accuracy to standard GCN, validating the theoretical basis.
- 2NCS correctly identifies that node 0 in the illustrative graph is classifiable due to its 2-hop neighbors being predominantly same-class, a pattern missed by $h$ and CCNS.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.