[Paper Review] GBK-GNN: Gated Bi-Kernel Graph Neural Networks for Modeling Both Homophily and Heterophily
This paper proposes GBK-GNN, a novel Graph Neural Network that uses a gated bi-kernel mechanism to simultaneously model homophily and heterophily in graphs. By learning separate kernels for similar and dissimilar node pairs and a selection gate to dynamically choose the appropriate kernel, GBK-GNN achieves significant performance gains over SOTA GNNs on datasets with mixed homophily-heterophily properties.
Graph Neural Networks (GNNs) are widely used on a variety of graph-based machine learning tasks. For node-level tasks, GNNs have strong power to model the homophily property of graphs (i.e., connected nodes are more similar) while their ability to capture the heterophily property is often doubtful. This is partially caused by the design of the feature transformation with the same kernel for the nodes in the same hop and the followed aggregation operator. One kernel cannot model the similarity and the dissimilarity (i.e., the positive and negative correlation) between node features simultaneously even though we use attention mechanisms like Graph Attention Network (GAT), since the weight calculated by attention is always a positive value. In this paper, we propose a novel GNN model based on a bi-kernel feature transformation and a selection gate. Two kernels capture homophily and heterophily information respectively, and the gate is introduced to select which kernel we should use for the given node pairs. We conduct extensive experiments on various datasets with different homophily-heterophily properties. The experimental results show consistent and significant improvements against state-of-the-art GNN methods.
Motivation & Objective
- Address the limitation of traditional GNNs in modeling graphs with mixed homophily and heterophily, especially in local subgraphs with inconsistent neighbor label patterns.
- Identify that standard GNNs like GCN fail on nodes with mixed homophily levels due to uniform kernel application across all neighbors.
- Propose a model that can adaptively select between homophily- and heterophily-optimized kernels based on node pair similarity.
- Improve node classification performance on graphs where homophily is not uniformly distributed, including both homophilic and heterophilic graphs.
- Demonstrate that the selection gate does not need to be perfectly accurate to achieve performance gains, enhancing robustness to gate prediction errors.
Proposed method
- Introduce a bi-kernel feature transformation mechanism with two distinct learnable kernels: one optimized for homophilic node pairs (similar labels), another for heterophilic pairs (dissimilar labels).
- Design a learnable selection gate that computes the probability of a node pair being homophilic or heterophilic based on their feature and label similarity.
- Use the gate to dynamically attend to the appropriate kernel during message passing, enabling adaptive aggregation for each neighbor pair.
- Formulate the final node representation as a weighted sum of the two kernel-transformed neighbor features, with weights determined by the gate.
- Train the model end-to-end using cross-entropy loss for node classification, jointly optimizing the kernels and the selection gate.
- Apply residual connections and normalization to stabilize training and improve generalization across diverse graph structures.
Experimental results
Research questions
- RQ1Can a GNN model effectively learn both homophily and heterophily in graphs where node-level homophily ratios vary significantly across local neighborhoods?
- RQ2Does a gated bi-kernel mechanism outperform standard GNNs that use a single kernel for all neighbor pairs on graphs with mixed homophily-heterophily patterns?
- RQ3How robust is the performance of GBK-GNN to imperfect gate predictions, especially in highly heterogeneous graphs?
- RQ4Can the proposed method generalize across diverse graph types, including both strongly homophilic and strongly heterophilic graphs?
- RQ5Does the model maintain performance gains when node features are incomplete or noisy, as in real-world graphs?
Key findings
- GBK-GNN achieves consistent and significant improvements over state-of-the-art GNNs on node classification across diverse datasets with varying homophily-heterophily properties.
- On the Cora dataset, GBK-GNN outperforms GCN and other SOTA models, particularly on nodes with mixed homophily levels (NHR 20–80%), where GCN performance drops sharply.
- On the Texas and Cornell datasets—known for high heterophily—GBK-GNN achieves higher node classification accuracy than all baselines, despite lower gate accuracy on these graphs.
- The selection gate learns meaningful patterns: it achieves high accuracy on homophilic graphs and moderate to high accuracy on heterophilic graphs, indicating effective discrimination between homophilic and heterophilic pairs.
- The model’s performance is robust to gate prediction errors; even when the gate is not perfectly accurate, the overall classification accuracy improves due to the complementary nature of the two kernels.
- Ablation studies confirm that both the bi-kernel design and the selection gate are essential, as removing either component leads to significant performance degradation.
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.