Auto-HeG: Automated Graph Neural Network on Heterophilic Graphs

Xin Zheng, Miao Zhang, Chunyang Chen, Qin Zhang, Chuan Zhou, Shirui Pan · DOI

Introduction

Graph Neural Networks (GNNs) have achieved remarkable success in modeling relational data. However, most existing GNN architectures are built upon the homophily assumption, which posits that connected nodes are likely to share similar features and labels. While this holds true for citation networks or social circles, many real-world networks are inherently heterophilic. In these graphs, connected nodes often belong to different classes—such as fraudsters interacting with legitimate customers in transaction networks, or different protein types binding in biological systems.

Standard GNNs typically struggle with heterophily because their message-passing mechanisms tend to "smooth" features across neighborhoods, effectively washing out the distinctive signals that define heterophilic relationships. While researchers have developed specialized "heterophilic GNNs," these models are often manually designed for specific datasets and fail to generalize across the diverse spectrum of heterophily found in the wild. Auto-HeG addresses this gap as the first automated Neural Architecture Search (NAS) framework specifically engineered for heterophilic graphs.

The Auto-HeG Framework

Auto-HeG automates the design of GNN architectures by integrating heterophily-aware logic into every stage of the search process: the search space, the training strategy, and the final architecture selection.

1. Comprehensive Search Space

Unlike general-purpose NAS frameworks, Auto-HeG utilizes a search space tailored to the nuances of heterophily. It includes "micro-level" operations designed to preserve local distinctions, such as:

  • Non-local Neighbor Extension: Expanding the receptive field to 2-hop or 3-hop neighbors to find structural similarities that 1-hop connections might miss.
  • Ego-neighbor Separation: Explicitly treating the central (ego) node's features differently from its neighbors' features to prevent over-smoothing.
  • Diverse Aggregators: The space includes 18 different aggregation functions, ranging from standard Graph Convolutional Networks (GCN) to specialized heterophily filters like FAGCN and GCNII.

2. Progressive Supernet Training

Training a "supernet"—a massive graph containing all possible architectural paths—is computationally intensive. Auto-HeG employs a progressive shrinking strategy. As training proceeds, the framework identifies and prunes irrelevant or underperforming operations layer-by-layer. This results in a compact, efficient supernet that is specifically optimized for the unique heterophily level of the target graph.

3. Heterophily-Guided Selection

Standard NAS methods often select operations based on simple weights (the "argmax" approach). Auto-HeG introduces a more sophisticated heterophily-aware distance criterion ($D_{hete}$). This metric evaluates how effectively a specific operation aligns the model's outputs with the true class-connection probabilities of the graph. By using $D_{hete}$, the system ensures the final architecture is mathematically optimized to handle dissimilar neighbors.

Experimental Results

The authors evaluated Auto-HeG on seven real-world datasets with varying levels of heterophily ($h$), ranging from high-heterophily graphs like Texas ($h=0.06$) to homophilic graphs like Cora ($h=0.83$).

Performance and Robustness

Auto-HeG consistently outperformed state-of-the-art hand-crafted models (such as H2GCN) by 1.35% to 1.90% on high-heterophily datasets. More impressively, it significantly outperformed existing NAS baselines like GraphNAS, SNAG, and SANE. On the Texas dataset, Auto-HeG achieved 86.76% accuracy, while the strongest NAS competitor (SANE-hete) reached only 77.84%.

Notably, Auto-HeG also maintained top-tier performance on homophilic datasets. This suggests that a framework designed to solve the "harder" problem of heterophily is naturally robust enough to handle "easier" homophilic tasks, making it a versatile tool for general graph learning.

Key Insights

  • Layer-Wise Customization: The research demonstrates that heterophilic graphs require different strategies at different depths. Auto-HeG’s ability to customize operations layer-by-layer—for instance, using non-local neighbors in early layers and ego-separation in later ones—is critical to its success.
  • Strategy Over Space: The authors tested a baseline (SANE-hete) that simply added heterophilic operations to a standard NAS framework. It performed poorly, proving that simply expanding the search space is insufficient; a dedicated search strategy (like the $D_{hete}$ criterion) is required to navigate heterophilic data effectively.
  • Efficiency: Despite the expanded search space, the progressive shrinking strategy allowed Auto-HeG to find optimal architectures in a timeframe comparable to, or faster than, traditional NAS methods.

Conclusion and Future Work

Auto-HeG represents a significant step forward in making GNNs more adaptable to complex, real-world data structures. By automating the discovery of heterophily-aware architectures, it removes the need for manual expert tuning. While the current framework focuses on node classification, future research aims to extend these automated techniques to link prediction and graph-level classification tasks, further broadening the applicability of heterophily-aware automated design.

Summary updated

BibTeX
@inproceedings{zheng2023auto,
  author = {Xin Zheng and Miao Zhang and Chunyang Chen and Qin Zhang and Chuan Zhou and Shirui Pan},
  title = {{Auto-HeG: Automated Graph Neural Network on Heterophilic Graphs}},
  booktitle = {The Web Conference},
  year = {2023},
  doi = {10.1145/3543507.3583498},
}
Figure