Simplifying Architecture Search for Graph Neural Network

Huan Zhao, Lanning Wei, Quanming Yao

Abstract

Graph Neural Networks (GNNs) often require manual tuning of architectures for specific tasks, a process that is both time-consuming and prone to sub-optimal results. While Neural Architecture Search (NAS) has been successful in other domains, its application to GNNs has been hindered by incomplete search spaces and computational inefficiency. This paper introduces SNAG (Simplified Neural Architecture search for Graph neural networks), a framework featuring a streamlined, highly expressive search space based on a unified message-passing schema. By focusing on critical components like node and layer aggregators, SNAG identifies superior architectures more efficiently than previous automated methods. Experimental results across transductive and inductive benchmarks demonstrate that SNAG consistently outperforms human-designed GNNs and existing NAS approaches in both accuracy and search speed.

Introduction

The "No Free Lunch" theorem is particularly relevant in graph learning: a GNN architecture that excels at classifying research papers in citation networks may perform poorly when predicting protein functions in biological networks. This variability forces researchers to manually tune aggregators, network depth, and skip connections for every new task.

Early attempts to automate this via NAS, such as GraphNAS and Auto-GNN, faced two major roadblocks. First, they utilized incomplete search spaces that missed state-of-the-art designs like GeniePath or JK-Networks. Second, their search spaces were often cluttered with redundant choices, making the search process computationally expensive and slow. SNAG addresses these issues by rethinking the GNN search space through the lens of a unified message-passing schema.

Methods

The SNAG framework introduces a refined search space that avoids a "kitchen sink" approach, focusing instead on two critical architectural decisions:

  1. Node Aggregators: Choosing from 12 popular functions (e.g., Mean, Max, GAT-style attention, and LSTM) to pool neighbor information.
  2. Layer Aggregators: Deciding how to combine outputs from different layers (e.g., Concatenation, Max-pooling, or LSTM). This is inspired by "Jumping Knowledge" (JK) networks, which allow the model to adaptively choose the appropriate neighborhood range.
The SNAG framework overview, showing the RNN controller sampling architectures from the designed search space.

To navigate this space, SNAG employs an RNN-based reinforcement learning controller. The controller samples candidate architectures and receives rewards based on their validation accuracy, gradually learning to identify optimal designs. The authors also explored a weight-sharing variant (SNAG-WS) to determine if sharing parameters across architectures could further accelerate the search process in the graph domain.

Experiments and Results

SNAG was evaluated on four gold-standard benchmarks: transductive citation networks (Cora, CiteSeer, PubMed) and an inductive biological network (PPI).

Performance and Efficiency

SNAG consistently outperformed human-designed baselines (like GCN, GraphSAGE, and GAT) and previous NAS methods. On the Cora dataset, SNAG-WS achieved 88.95% accuracy, surpassing GraphNAS (88.40%) and standard GCN (87.61%). In the inductive PPI task, SNAG achieved a Micro-F1 score of 0.9887, outperforming complex models like GeniePath.

Validation accuracy vs. elapsed time across four datasets, demonstrating SNAG's superior efficiency compared to GraphNAS.

As shown in the efficiency plots, SNAG reaches peak validation accuracy significantly faster than its predecessors. By pruning the search space to focus on impactful components, SNAG achieves higher accuracies in a fraction of the time required by GraphNAS.

Discussion and Conclusion

A key insight from this work is the critical importance of the layer aggregator. Experiments showed that incorporating the ability to combine multi-hop information (the "JK" style) consistently boosted performance across all datasets. Furthermore, the results suggest that weight sharing (SNAG-WS) does not always provide a clear advantage in accuracy compared to searching from scratch, aligning with recent skepticism in the broader NAS community regarding its effectiveness in ranking architectures correctly.

While SNAG excels at node classification, future work could involve adapting the search space for link prediction or whole-graph classification. Additionally, investigating the behavior of weight sharing in GNNs versus CNNs and automating hyperparameter tuning remain open avenues for creating a truly end-to-end automated pipeline.

Summary updated

BibTeX
@inproceedings{zhao2020simplifying,
  author = {Huan Zhao and Lanning Wei and Quanming Yao},
  title = {{Simplifying Architecture Search for Graph Neural Network}},
  booktitle = {Workshops @ CIKM},
  year = {2020},
  url = {https://openreview.net/forum?id=iz8F9WRxwKu},
}
Figure