Introduction
Graph Neural Networks (GNNs) have become the standard for modeling structured data, ranging from social networks to molecular biology. Despite their success, GNNs frequently encounter two fundamental limitations: over-smoothing and heterophily. Over-smoothing occurs when node representations become increasingly indistinguishable as the network depth increases, while heterophily refers to graphs where connected nodes possess different labels, causing standard message-passing mechanisms to conflate conflicting information.
In the paper "Ordered GNN: Ordering Message Passing to Deal with Heterophily and Over-smoothing," presented at ICLR 2023, researchers from Shanghai Jiao Tong University and the Chinese Academy of Sciences propose a novel architectural shift. Rather than focusing solely on how messages are aggregated, the authors introduce a hierarchical order to the neurons within a node’s representation, fundamentally changing how information is stored and integrated.
The Challenges: Over-smoothing and Heterophily
Most existing GNNs rely on a message-passing scheme where nodes aggregate features from their neighbors and combine them with their own. This approach leads to two primary failure modes:
- Over-smoothing: As more layers are added to capture long-range dependencies, every node eventually aggregates information from the entire graph. This causes node embeddings to converge to a mean value, stripping them of the local distinctiveness required for downstream tasks.
- Heterophily: Standard GNNs operate on the assumption of homophily—that "birds of a feather flock together." However, in many real-world graphs (e.g., fraud networks or protein interactions), neighbors are often dissimilar. In these scenarios, standard message passing acts as a "blur filter," mixing features from different classes and destroying the underlying signal.
While many researchers attempt to mitigate these issues by refining the aggregation stage, this paper argues that the core problem lies in the combine stage—specifically, the lack of a structured mechanism to integrate messages from varying distances (hops) without mutual interference.
Ordered Message Passing: A Hierarchical Approach
The core innovation of this work is Ordered Message Passing. The authors propose that a node’s embedding vector should possess a "nested" structure that mirrors the hierarchy of its neighborhood (the rooted-tree). This ensures that information from distant hops does not overwrite the node’s local identity.
Key Technical Components
- Ordered Neurons: The model partitions the embedding vector into segments. The first segment represents the node’s own features (0-hop), the subsequent segment incorporates 1-hop information, and so on. This hierarchical alignment preserves the node's "ego" features even as it explores deeper into the graph.
- Soft Binary Gates (
cumax): To make this hierarchy learnable, the authors utilize acumaxoperator—a cumulative sum of a softmax. This creates a differentiable "soft" split point within the vector: neurons to the left of the split point are "on" (preserving existing information), while neurons to the right are "off" (allowing new aggregated information to be integrated). - Differentiable OR Operator (
SOFTOR): To maintain consistency across layers, the set of active neurons must grow as the model explores more hops. TheSOFTORoperator ensures that the hierarchy remains stable, preventing the model from "forgetting" the inner tree structure as it expands its receptive field.
Experimental Evaluation
The authors evaluated Ordered GNN across 11 diverse datasets to demonstrate its versatility:
- Homophilous Graphs: Citation networks including Cora, PubMed, and CiteSeer.
- Heterophilous Graphs: Webpages and Wikipedia datasets such as Cornell, Texas, Wisconsin, Chameleon, Squirrel, and Actor.
- Large-scale Benchmarks:
ogbn-arxiv(homophily) andarXiv-year(heterophily).
Results and Analysis
Ordered GNN demonstrates significant improvements over traditional and specialized GNN architectures:
- State-of-the-Art Performance: The model consistently outperformed or matched specialized models in both homophily and heterophily settings. Notably, on the challenging Squirrel dataset, it achieved 62.44% accuracy, significantly outperforming vanilla GCN (53.43%) and specialized heterophily models like H2GCN.
- Robustness to Depth: Unlike standard GCNs or GATs, which see performance plummet after 4–8 layers, Ordered GNN maintains high accuracy even at 32 and 64 layers. On the Cora dataset, it achieved 89.10% accuracy at 64 layers, whereas a standard GCN dropped to 52%.
- Interpretability: By visualizing the learned gates, the authors found that the model automatically adapts to the graph type. On heterophilous data, the model learns to "shut the gates" to ignore noisy neighbor information, while on homophilous data, the gates open to incorporate the neighbors' signal.
- Efficiency: Despite the introduction of gating mechanisms, the per-epoch running time remains comparable to, and occasionally faster than, GAT.
Conclusion
Ordered GNN shifts the focus of GNN design from aggregation to the structured management of node memory. By protecting the "ego" features of a node and using a differentiable hierarchy to manage multi-hop information, the model effectively overcomes the dual challenges of over-smoothing and heterophily. Future work may explore the application of this hierarchical ordering to scale-free graphs with high-degree hubs and extending the framework to multi-relational Knowledge Graphs.
Summary updated