NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Exploring and Unleashing the Power of Message Passing on Heterophilous Graphs

Zhuonan Zheng, Yuanchen Bei, Sheng Zhou, Yao Ma, Ming Gu, Hongjia Xu, Chengyu Lai, Jiawei Chen, Jiajun Bu · Submission to ICLR 2025 · Rejected

TL;DR

Why does standard message passing still succeed on heterophilous graphs, where connected nodes often belong to completely different classes? This paper shows that message passing works by implicitly sharpening the class compatibility matrix (the connection preferences between classes). Building on this insight, the authors introduce CMGNN, a method that explicitly models class compatibility, introduces class prototypes as virtual neighbors to fix sparse/noisy neighborhoods, and sets a new state-of-the-art across a newly standardized 10-dataset benchmark.

What Problem Does This Paper Address?

Graph Neural Networks (GNNs) typically rely on the homophily assumption—the idea that neighboring nodes are similar. However, real-world networks (like transaction fraud rings, dating platforms, or protein structures) frequently exhibit heterophily, where linked nodes possess different labels.

Intuition suggests that propagating messages across heterophilous edges should blur class boundaries and degrade representations. Yet, many message-passing heterophilous GNNs (HTGNNs) perform surprisingly well. This raises two critical questions:

  1. Why does message passing remain effective in heterophilous graphs?
  2. How can we explicitly leverage that underlying mechanism to build better architectures, especially for nodes with sparse or noisy neighborhoods?

Methods

The authors break their solution down into theoretical unification and an architectural proposal:

  1. The HTMP Unification Framework: The authors propose the Heterophilous Message-Passing (HTMP) mechanism. HTMP decomposes existing models into three unified stages: $$\tilde{\mathbf{Z}}^l_r = \text{AGGREGATE}(\mathbf{A}_r, \mathbf{B}_r, \mathbf{Z}^{l-1}), \quad \mathbf{Z}^l = \text{COMBINE}(\{\tilde{\mathbf{Z}}^l_r\}_{r=1}^R), \quad \mathbf{Z} = \text{FUSE}(\{\mathbf{Z}^l\}_{l=0}^L)$$ Here, $\mathbf{A}_r$ acts as a neighborhood indicator (e.g., raw edges, ego loops, high-order hops), and $\mathbf{B}_r$ provides aggregation guidance (e.g., degree normalization, attention, or learned relation estimates).

  2. CMGNN (Compatibility Matrix-Aware GNN): To overcome the noisy and incomplete local neighborhoods common in real graphs, CMGNN explicitly estimates and leverages the Compatibility Matrix (CM)—a $K \times K$ matrix encoding edge probabilities between classes:

  3. Class Prototype Virtual Neighbors: CMGNN creates $K$ virtual prototype nodes (one per class). Every real node connects to all prototypes via an all-ones supplementary neighborhood matrix $\mathbf{A}^{sup}$.
  4. Robust CM Estimation: The compatibility matrix $\hat{\mathbf{M}}$ is iteratively updated using confidence-weighted pseudo-labels (via entropy filtering) and node-degree weighting (discounting low-degree nodes that distort true connection patterns).
  5. Desired Neighborhood Aggregation: A supplementary aggregation guidance $\mathbf{B}^{sup} = \hat{\mathbf{C}}\hat{\mathbf{M}}$ injects the theoretically ideal neighborhood class mixture into each node's representation.
  6. Discrimination Loss: An auxiliary loss $\mathcal{L}_{dis}$ penalizes similarity between prototype-transformed CM rows, directly enforcing discriminability among classes.
       [ Input Graph + Virtual Prototypes ]
                        │
    ┌───────────────────┼───────────────────┐
    ▼                   ▼                   ▼
[Ego Message]    [Raw Neighbors]    [Supplementary Msg]
 (Self-loop)       (Adjacency)       (B_sup = C_hat * M)
    └───────────────────┬───────────────────┘
                        ▼
         [Adaptive Weighted COMBINE]
                        ▼
            [Layer-wise FUSE (Concat)]
                        ▼
          [Classifier + Auxiliary L_dis]

Datasets

The authors critique standard benchmarks (e.g., Chameleon and Squirrel suffer from data leakage; Cornell/Texas/Wisconsin are tiny and class-imbalanced; Citeseer/Cora have split anomalies). To resolve this, they curate a standardized, leak-free benchmark evaluated over 10 random splits (48%/32%/20% train/val/test):

  • Heterophilous: Roman-Empire ($h=0.05$), Chameleon-F ($0.25$), Squirrel-F ($0.22$), Actor ($0.22$), Flickr ($0.24$), Amazon-Ratings ($0.38$), and BlogCatalog ($0.40$).
  • Homophilous: Wikics ($h=0.65$), Pubmed ($0.80$), and Photo ($0.83$).
  • Large-scale Evaluation: snap-patents (2.9M nodes), pokec (1.6M nodes), and genius (421K nodes).

Key Insights and Ideas

  • CM Discriminability Over Homophily Ratio: High homophily is not required for message passing to work. What truly matters is whether the rows of the Compatibility Matrix are distinct. If Class A mostly connects to Class B, and Class B connects to Class C, their neighborhood distributions are easily separable ("good heterophily").
  • Implicit vs. Explicit Enhancement: Existing HTGNNs (like ACM-GCN or GPR-GNN) succeed because their filters and multi-hop combinations implicitly make the effective CM more discriminative. CMGNN makes this process explicit.
  • Fixing the Low-Degree Penalty: Low-degree nodes cannot statistically reflect the true class distribution (e.g., a node with degree 1 only sees one class). By supplying prototype messages weighted by the estimated CM, CMGNN provides reliable context to sparsely connected nodes.

Key Results

  • Benchmark Superiority: Across 10 benchmark datasets against 17 baselines, CMGNN ranks 1st overall with an average rank of 2.1 (outperforming SOTA models like OrderedGNN at 3.8, ACM-GCN at 4.6, and GCNII at 4.7). It achieves top accuracy on 6 datasets, including 84.35% on Roman-Empire and 52.13% on Amazon-Ratings.
  • Massive Gains on Low-Degree Nodes: On the 20% lowest-degree nodes of Amazon-Ratings, CMGNN achieves 59.78% accuracy compared to ACM-GCN’s 57.35% and GCNII’s 50.61%.
  • Large-Scale Graphs: On the massive non-homophilous dataset snap-patents, CMGNN reaches 62.86% accuracy—a +21.96% absolute improvement over the best baseline (GCNII at 40.90%) while maintaining low training times.

Limitations and Future Work

  • Pathological CMs: When classes have intrinsically identical connection profiles that cannot be easily separated in attribute space (observed in the Actor dataset), CMGNN's supplementary messages provide marginal benefit.
  • Scope: The paper focuses on spatial message-passing under semi-supervised node classification, leaving graph classification, link prediction, and non-message-passing graph architectures (like Graph Transformers) for future study.
  • Heuristic Thresholds: Degree thresholds for CM estimation weighting ($K$ and $3K$) are set heuristically rather than learned dynamically.

Summary updated

BibTeX
@misc{zheng2024exploring,
  author = {Zhuonan Zheng and Yuanchen Bei and Sheng Zhou and Yao Ma and Ming Gu and HONGJIA XU and Chengyu Lai and Jiawei Chen and Jiajun Bu},
  title = {{Exploring and Unleashing the Power of Message Passing on Heterophilous Graphs}},
  year = {2024},
  eprint = {2405.17768},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2405.17768},
}
Figure