Divergent Paths: Separating Homophilic and Heterophilic Learning for Enhanced Graph-level Representations

Han Lei, Jiaxing Xu, Xia Dong, Yiping KeKDD 2025

Abstract

Traditional Graph Convolutional Networks (GCNs) are primarily designed around the homophily assumption, which posits that connected nodes likely share similar properties. While effective for many node-level tasks, this assumption often fails in graph-level classification where heterophilic edges—connections between different types of nodes—carry essential structural information. This paper introduces DivGNN, a novel architecture that separates graph learning into two divergent paths: an IntraNet for homophilic structural signals and an InterNet for heterophilic boundary signals. By utilizing featureless convolutions and high-pass filters, DivGNN achieves state-of-the-art results across 11 diverse datasets, demonstrating that decoupling these signals prevents heterophilic noise from degrading graph-level representations.

Introduction: The Homophily Bottleneck

Most Graph Convolutional Networks (GCNs) operate as low-pass filters, smoothing features across neighborhoods to capture local similarities. This approach is rooted in the homophily assumption: the idea that "birds of a feather flock together." However, in many real-world graphs—such as molecular structures or image-segmentation graphs—heterophily is prevalent. In a molecule, different atoms (nodes) connect to form specific functional groups; in an image, different objects (nodes) interact to form a scene.

When standard GCNs encounter these heterophilic edges, they treat the meaningful differences between connected nodes as noise to be smoothed away. While recent research has addressed heterophily in node-level tasks (e.g., node classification), its impact on graph-level tasks (e.g., predicting the property of an entire molecule) has remained largely unexplored. The authors of this paper demonstrate that simply mixing these signals leads to sub-optimal representations, as heterophilic edges introduce interference that washes out category-specific structural signals.

The DivGNN Architecture

To resolve this, the authors propose DivGNN, which splits the learning process into two specialized branches that are later combined via a gated fusion mechanism.

1. IntraNet: The Homophilic Path

The IntraNet is designed to capture the internal topology of specific node categories. It employs three key strategies:

  • Node Replication with Label Adjustment: To prevent the disruption of essential sub-structures (like chemical rings), the model uses a preprocessing step. If a node is surrounded by neighbors of a different but unanimous category, it is replicated and re-labeled to match the neighborhood, preserving the structural integrity of the group.
  • Featureless Convolution: Instead of relying on raw node features, the IntraNet uses an identity matrix as input. This forces the model to learn purely from the topology (the wiring) within each node category, rather than being distracted by feature noise.
  • Category-based Readout: Rather than using global pooling, which averages all nodes into a single vector, DivGNN pools features for each category separately. This preserves the unique "structural signature" of each group before concatenation.

2. InterNet: The Heterophilic Path

In contrast to the IntraNet, the InterNet branch focuses on the boundaries where different categories meet. It utilizes a high-pass filter to amplify the differences between connected nodes. This allows the model to explicitly represent the relationships and transitions between different types of nodes, which are often the most informative parts of a graph's global structure.

3. Gated Fusion

The final graph-level representation is generated by combining the embeddings from both paths using a gated mechanism, allowing the model to dynamically weight the importance of structural versus boundary information based on the specific graph being processed.

Experimental Results and Insights

DivGNN was evaluated on 11 datasets spanning chemistry, bioinformatics, computer vision, and regression tasks. The model achieved state-of-the-art (SOTA) results on 9 out of 10 classification and regression benchmarks.

Key Findings:

  • Performance Gains: On the MUTAG dataset, DivGNN outperformed the nearest competitor by 2.69%. Even larger gains were observed in the PTC_FR and PTC_FM datasets, with improvements of 3.73% and 3.98%, respectively.
  • Computer Vision Breakthrough: In image-based tasks (MSRC_21), the category-based readout proved to be a game-changer. Accuracy skyrocketed from approximately 20% using traditional global pooling to over 91% with DivGNN’s specialized readout.
  • The "Noise" Discovery: The authors empirically proved that removing heterophilic edges actually improved standard GCN performance on several datasets. This confirms that for traditional message-passing layers, heterophily acts as a distractor rather than a useful signal.
  • Topology Over Features: The success of the featureless IntraNet suggests that for many graph-level tasks, the arrangement of nodes is significantly more informative than the nodes' individual attributes.

Conclusion and Future Directions

DivGNN demonstrates that separating homophilic and heterophilic learning paths is essential for robust graph-level representations. By treating boundaries and internal structures as distinct signals, the model avoids the "smoothing" trap of traditional GCNs.

While highly effective, the model currently relies on categorical labels for nodes. Future work may explore how to apply these "divergent paths" to graphs with purely continuous features or develop more generalized, learnable node replication strategies. Despite its dual-path complexity, DivGNN maintains a time complexity comparable to standard GCNs, making it a practical and powerful tool for complex graph-level classification tasks.

Summary updated

BibTeX
@inproceedings{lei2025divergent,
  author = {Han Lei and Jiaxing Xu and Xia Dong and Yiping Ke},
  title = {{Divergent Paths: Separating Homophilic and Heterophilic Learning for Enhanced Graph-level Representations}},
  booktitle = {ACM SIGKDD Conference on Knowledge Discovery and Data Mining},
  year = {2025},
  url = {https://openreview.net/forum?id=GRwD2MQMlX},
}
Figure