Neural Architecture Performance Prediction Using Graph Neural Networks

Jovita Lukasik, David Friede, Heiner Stuckenschmidt, Margret Keuper

Abstract

Training neural networks from scratch to evaluate their design is computationally expensive. This paper proposes using Graph Neural Networks (GNNs) as surrogate models to predict network performance based on architecture. The approach treats neural architectures as Directed Acyclic Graphs (DAGs) and employs bidirectional message passing to capture global context. Results on the NAS-Bench-101 dataset demonstrate that the GNN-based predictor outperforms standard baselines like Random Forests and RNNs, particularly in zero-shot scenarios where it predicts the performance of unseen network structures.

Introduction

Neural Architecture Search (NAS) aims to automate the design of deep learning models. However, the standard approach—designing a candidate, training it to completion, and checking its accuracy—is a computational nightmare. To solve this, researchers use surrogate models: lightweight predictors that take an architecture's description as input and output an estimated accuracy.

The challenge is that most surrogate models, such as Multi-Layer Perceptrons (MLPs) or Recurrent Neural Networks (RNNs), struggle to understand the complex, non-linear connectivity of modern neural networks. Furthermore, they often fail at "zero-shot" scenarios—predicting the performance of an architecture that is structurally different (e.g., larger or with different connectivity patterns) than those seen during the surrogate's training phase.

Methodology

The authors treat neural architectures as Directed Acyclic Graphs (DAGs), where nodes represent operations (like convolutions or pooling) and edges represent the flow of data.

The GNN-based encoder architecture featuring bidirectional message passing and gated aggregation.

Key components of the GNN-based encoder include:

  • Bidirectional Message Passing: Unlike standard GNNs that might only look "forward," this model passes information both along the data flow and in reverse. This helps the model capture the global context of how an operation affects the rest of the network.
  • Gated Recurrent Units (GRU): The node update function uses a GRU cell to iteratively refine the "hidden state" of each node based on its neighbors.
  • Gated Aggregation: To turn the individual node features into a single "graph embedding" (a vector representing the whole architecture), a linear layer is combined with a sigmoid gating mechanism. This allows the model to learn which parts of the architecture are most influential for performance.
  • Regression Head: A four-layer MLP takes the final graph embedding and predicts the validation accuracy.

Experimental Setup

The study utilizes NAS-Bench-101, the first large-scale public dataset for NAS research. It contains over 423,000 unique architectures fully trained on the CIFAR-10 dataset. This allows for training and validation against "ground truth" performance metrics without the prohibitive cost of training thousands of networks from scratch.

Results and Analysis

The GNN-based approach demonstrates significant improvements over traditional sequence-based or feature-based models.

Superior Accuracy

In a supervised setting, the GNN achieved a Root Mean Squared Error (RMSE) of 0.0486, significantly lower than Random Forests or RNNs.

Performance comparison of the GNN Encoder against standard baseline models.

Topology and Zero-Shot Extrapolation

By explicitly modeling the topology of the network, the GNN captures fundamental principles of architecture design. This is evidenced by its robust performance in zero-shot tasks. When trained on networks of specific sizes (e.g., 2-5 nodes), it accurately predicts the performance of larger, unseen networks (e.g., 6-7 nodes), maintaining a low RMSE between 0.0523 and 0.0573.

Focus on High Performance

The model is notably more accurate at predicting high-performing architectures. While lower accuracy on "bad" models is observed, this is considered a beneficial trait for NAS, where the primary goal is identifying top-tier candidates. This discrepancy is largely attributed to the data distribution in NAS-Bench-101, where approximately 98.8% of architectures reside in the top two accuracy bins.

Conclusion and Future Work

While highly effective on the NAS-Bench-101 search space, future work involves testing these GNN surrogates on even larger and more diverse search spaces. The authors suggest that integrating this GNN predictor into an active NAS search loop could enable the real-time discovery of novel, high-performing architectures.

Summary updated

BibTeX
@inproceedings{lukasik2020neural,
  author = {Jovita Lukasik and David Friede and Heiner Stuckenschmidt and Margret Keuper},
  title = {{Neural Architecture Performance Prediction Using Graph Neural Networks}},
  booktitle = {GCPR},
  year = {2020},
  doi = {10.1007/978-3-030-71278-5\_14},
}
Figure