Ordered GNN: Ordering Message Passing to Deal with Heterophily and Over-smoothing

Yunchong Song, Chenghu Zhou, Xinbing Wang, Zhouhan Lin

Overview

Graph Neural Networks (GNNs) have become the standard for learning on graph-structured data, typically relying on a message-passing mechanism where nodes aggregate information from their neighbors. However, this standard approach suffers from two major flaws: heterophily (where neighboring nodes have different labels or dissimilar features) and over-smoothing (where node representations become indistinguishable as the network grows deeper).

Ordered GNN introduces a novel message-passing architecture designed to tackle these issues simultaneously. By aligning the hierarchical structure of a node’s neighborhood—its "rooted-tree"—with specific segments of its embedding vector, the model effectively prevents feature mixing. This allows Ordered GNN to achieve state-of-the-art performance on both homophilous and heterophilous graphs while remaining remarkably robust to over-smoothing in very deep architectures.

The Challenge: Feature Soup

Standard GNNs often treat messages from different hops as a "feature soup," mixing local and distant information without a clear structural hierarchy. This leads to two primary issues:

  1. Heterophily: In many real-world graphs, such as fraud networks or protein interactions, connected nodes often belong to different classes. Standard GNNs tend to average these features together, washing out the unique signal of the central node.
  2. Over-smoothing: As more GNN layers are stacked to capture long-range dependencies, node representations converge. This prevents the model from utilizing high-order neighborhood information effectively, often causing a sharp drop in performance beyond just a few layers.

The Ordered GNN Approach

The core innovation of Ordered GNN focuses on the "combine" stage of message passing rather than the "aggregation" stage. It introduces order to the node representation process.

Rooted-Tree Alignment and Ordered Neurons

The authors view the neighborhood of a node as a rooted tree, where the node itself is the root and its $k$-hop neighbors are descendants at depth $k$. Instead of using the entire embedding vector for every operation, the model assigns specific blocks of neurons to specific hops.

Alignment of a node's rooted-tree hierarchy with its ordered node representation.

For example, the first block of neurons might represent 1-hop information, while a larger block encompasses 2-hop information. By locking the node's own features into a specific block of neurons, the model prevents them from being washed out by neighbors, preserving the "ego" of the node—a crucial step for handling heterophily.

Ordered Gating Mechanism

To manage these blocks, the model learns "split points." It uses a cumulative sum of softmax probabilities to create a soft gate that decides which part of the embedding should be updated by new messages and which part should be preserved from the previous layer.

To ensure the hierarchical constraint is maintained during training, the authors introduce a differentiable "SOFTOR" (Soft-OR) operator. This guarantees that if a neuron is designated to represent a certain depth, it remains active for all subsequent depths, mimicking the nested nature of subtrees.

Key Results and Insights

The model was evaluated on 11 diverse datasets, including homophily benchmarks (Cora, PubMed, CiteSeer), heterophily benchmarks (Texas, Wisconsin, Actor, Squirrel, Chameleon, Cornell), and large-scale Open Graph Benchmark datasets (ogbn-arxiv, arXiv-year).

  • State-of-the-Art Performance: Ordered GNN achieved SOTA or near-SOTA results across almost all 11 datasets. Notably, on the notoriously difficult Squirrel heterophily dataset, it outperformed previous models by a massive margin (62.44% vs. the previous best of ~55%).
  • Robustness to Depth: While standard Graph Convolutional Networks (GCNs) see performance crater after 8 layers, Ordered GNN maintained high accuracy even at 32 and 64 layers. On Cora, it achieved 89.10% accuracy at 64 layers, whereas a standard GCN dropped to 52%.
  • Explainable Gating: By visualizing the gating vectors, researchers found that the model automatically learns to "shut down" message passing in deep layers for certain datasets. This provides a clear, visual explanation of how the model avoids over-smoothing.

Conclusion and Future Directions

Ordered GNN demonstrates that how a model integrates aggregated information back into the node representation is arguably more important for stability and depth than the aggregation function itself.

While highly effective, the authors note that in scale-free graphs with extreme "hubs," the rooted-tree rollout might become unbalanced. Future work may explore combining this ordered "combine" stage with more sophisticated "aggregate" stages, or using this framework as a stepping stone toward implicit learned positional encoding, where the model inherently understands a node's structural position without needing pre-computed graph heuristics.

Summary updated

BibTeX
@inproceedings{song2023ordered,
  author = {Yunchong Song and Chenghu Zhou and Xinbing Wang and Zhouhan Lin},
  title = {{Ordered GNN: Ordering Message Passing to Deal with Heterophily and Over-smoothing}},
  booktitle = {International Conference on Learning Representations},
  year = {2023},
  url = {https://openreview.net/forum?id=wKPmPBHSnT6},
}
Figure