Abstract
Designing Graph Neural Networks (GNNs) typically involves extensive manual experimentation with neighbor sampling, message functions, and aggregation schemes. We present GraphNAS, a framework that utilizes a Recurrent Neural Network (RNN) controller to automatically search for optimal GNN architectures. By framing the design process as a reinforcement learning problem, GraphNAS discovers novel configurations that outperform established models like GCN and GAT on benchmark datasets. Our results demonstrate that the discovered architectures are not only high-performing but also transferable across different graph domains.
Introduction
Graph Neural Networks (GNNs) have become the gold standard for analyzing non-Euclidean data, such as social networks and molecular structures. However, designing effective GNNs is notoriously difficult, requiring researchers to manually choose between various neighbor sampling methods, message functions, and aggregation schemes. While Neural Architecture Search (NAS) has successfully automated the design of convolutional neural networks in computer vision, GNNs present unique challenges due to their distinct search spaces and the computational cost of processing massive graphs. GraphNAS addresses these challenges by bringing the power of automated design to the graph domain.
Methods
GraphNAS frames GNN design as a reinforcement learning problem. The system consists of two primary components: an RNN-based Controller and a Child Network.
The controller acts as an architect, generating a variable-length string that describes a GNN's architecture. For each layer, it specifies four key components:
- Neighbor Sampling ($Smpl$): The method for selecting neighbors (e.g., full neighborhood or fixed-size sample).
- Message Computation ($Func$): The function used to process neighbor features (e.g., GCN, GAT, or linear).
- Message Aggregation ($Aggr$): The method for combining neighbor messages (e.g., sum, mean, or max).
- Readout ($Read$): The method for combining multi-head outputs (e.g., concatenation or averaging).
The architecture suggested by the controller is instantiated as a child network, trained on a graph, and evaluated on a validation set. The resulting validation accuracy is returned to the controller as a reward. The controller then uses the REINFORCE policy gradient algorithm to update its parameters, learning to generate architectures that yield higher rewards over time. To handle the complexity of deep networks, the authors introduce a layer-wise search constraint, assuming layers are independent to keep the search space manageable.
Key Results and Insights
GraphNAS was evaluated on standard benchmarks, including citation networks (Cora, Citeseer, Pubmed) and transfer learning datasets (Amazon product graphs).
Performance and Efficiency
GraphNAS consistently outperformed human-designed models. On the Pubmed dataset, it achieved 80.5% accuracy in semi-supervised learning, surpassing GCN (79.0%) and GAT (79.0%). A critical finding was the superiority of the RL-based controller over random search (GraphNAS-R). As the controller trains, the expected accuracy of its proposed architectures increases significantly compared to random guessing.
Transferability and Scalability
One of the most significant insights is the transferability of the discovered architectures. Configurations optimized for the Cora dataset performed exceptionally well when applied to Amazon product graphs, suggesting that GraphNAS identifies robust structural patterns rather than just overfitting to a single dataset. Furthermore, the gap between GraphNAS and human-designed models like APPNP grows as training data increases, indicating that these automated architectures scale effectively.
Conclusion and Future Work
GraphNAS demonstrates that automated search can discover GNN configurations that surpass the performance of manually designed models. By assuming layer independence, the authors reduced the search space to a size manageable on a single GPU, making NAS feasible for graph data.
Despite its success, the search process remains computationally intensive (e.g., 12 GPU hours for Pubmed). Future research could explore deeper architectures with complex skip-connections and incorporate hardware-aware rewards to penalize architectures that are excessively slow or memory-intensive.
Summary updated