Introduction
Neural Architecture Search (NAS) has revolutionized the automated design of deep learning models. However, the computational cost remains a significant barrier, as evaluating a single candidate architecture typically requires full training. While surrogate models trained on datasets like NAS-Bench-101 can predict performance, they often struggle with the discrete nature of neural architectures, which are represented as Directed Acyclic Graphs (DAGs). Traditional search methods in discrete space rely on artificial metrics like edit distance, which do not necessarily correlate with functional similarity.
This paper introduces the Variational-Sequential Graph Autoencoder (VS-GAE), a framework that maps these discrete DAGs into a continuous, differentiable latent space. By doing so, the model enables more stable sampling and highly accurate performance prediction, even for architectures of sizes unseen during training.
The VS-GAE Framework
To bridge the gap between discrete graph structures and continuous vector representations, the authors propose a novel autoencoder architecture that utilizes Graph Neural Networks (GNNs) for both encoding and decoding.
Bidirectional GNN Encoder
The encoder is designed to capture the structural nuances of a neural architecture through bidirectional message passing. It updates individual node embeddings by aggregating information from both predecessors and successors in the DAG. These refined embeddings are then pooled into a single continuous graph embedding that represents the entire architecture.
Sequential GNN Decoder
Unlike previous approaches that use Recurrent Neural Networks (RNNs) for graph generation, the VS-GAE employs a GNN-based decoder. The graph is constructed sequentially—node by node and edge by edge. At each step, a GNN summarizes the partially constructed graph, providing a structural context that Multi-Layer Perceptrons (MLPs) use to decide the next node's type and its connectivity to existing nodes. This approach captures complex structural dependencies more effectively than linear sequence models.
Experimental Results
The model was evaluated using the NAS-Bench-101 dataset, which contains over 423,000 unique convolutional architectures.
Performance and Zero-Shot Generalization
The VS-GAE demonstrated exceptional predictive capabilities, achieving a Root Mean Square Error (RMSE) of approximately 0.0487 on validation accuracy. Notably, the model exhibited strong zero-shot generalization. When trained on graphs with 2–5 and 7 nodes and tested on 6-node graphs, it maintained an RMSE of 0.0526. This suggests the encoder learns fundamental structural properties rather than just memorizing specific graph sizes.
Reconstruction and Validity
The autoencoder achieved a near-perfect reconstruction accuracy of 99.99%, ensuring that the latent space faithfully represents the input graphs. Furthermore, it reached a prior validity of 95.09%, meaning the vast majority of points sampled from the latent space decode into valid architectures that adhere to the NAS-Bench-101 constraints.
Key Insights
- Latent Space Stability: Sampling from the continuous latent space proved significantly more stable for training performance predictors than traditional discrete sampling methods. This indicates that the GNN successfully clusters structurally and functionally similar architectures together.
- Impact of Dataset Imbalance: While the model is highly accurate for high-performing architectures, its performance dips for low-accuracy ones. This is attributed to the NAS-Bench-101 dataset distribution, where nearly 99% of architectures achieve high accuracy, leaving the model with insufficient data to learn the features of "poor" designs.
Conclusion and Future Work
The VS-GAE provides a robust method for translating discrete neural architectures into a continuous space, facilitating efficient performance prediction and stable architecture sampling. Future research will focus on leveraging this latent space for active neural architecture generation, using the performance predictor to guide the search for novel, high-performing models.
Summary updated