Neural Architecture Optimization with Graph VAE

Jian Li, Yong Liu, Jiankun Liu, Weiping WangarXiv 2020

Abstract: Due to their high computational efficiency on a continuous space, gradient optimization methods have shown great potential in the neural architecture search (NAS) domain. The mapping of network representation from the discrete space to a latent space is the key to discovering novel architectures, however, existing gradient-based methods fail to fully characterize the networks. In this paper, we propose an efficient NAS approach to optimize network architectures in a continuous space, where the latent space is built upon variational autoencoder (VAE) and graph neural networks (GNN). The framework jointly learns four components: the encoder, the performance predictor, the complexity predictor and the decoder in an end-to-end manner. The encoder and the decoder belong to a graph VAE, mapping architectures between continuous representations and network architectures. The predictors are two regression models, fitting the performance and computational complexity, respectively. Those predictors ensure the discovered architectures characterize both excellent performance and high computational efficiency. Extensive experiments demonstrate our framework not only generates appropriate continuous representations but also discovers powerful neural architectures.

Introduction

Neural Architecture Search (NAS) aims to automate the design of deep learning models, but it faces two major hurdles. First, the Search Space Problem: neural networks are discrete graphs, making searches through billions of possible combinations computationally expensive and mathematically "jagged." Second, the Efficiency Gap: most NAS methods focus solely on maximizing accuracy, often ignoring the physical cost or complexity of the resulting model.

This paper introduces NGAE (Neural architecture optimization with Graph variational AutoEncoder), a method that maps complex, discrete neural network structures into a smooth, continuous latent space. By jointly training a Graph VAE with performance and complexity predictors, the authors enable efficient gradient-based searches for architectures that are both high-performing and computationally efficient.

Methods

The NGAE framework consists of four components trained in an end-to-end fashion to bridge the gap between discrete graphs and continuous optimization:

  • The Encoder (GNN + VAE): Instead of treating a network like a simple sequence of layers, NGAE uses a specialized Graph Neural Network (GNN) designed for Directed Acyclic Graphs (DAGs). This captures the actual computational flow. A Variational Autoencoder (VAE) then compresses this structural information into a continuous vector representation ($s$).
  • The Predictors (Dual MLPs): Two separate regression models sit on top of the latent space. One predicts the model's performance (accuracy), and the other predicts its complexity (computational cost).
  • The Decoder: This component takes a point in the continuous space and "unpacks" it back into a functional neural network architecture.
  • Gradient-Based Optimization: Once the space is learned, searching for a new model involves starting at a random point and using gradient ascent to move toward the "peak" where predicted accuracy is high and complexity is low.
The NGAE framework jointly learns an encoder, decoder, and dual predictors for performance and complexity.

Key Insights and Ideas

One of the most striking findings is the "Smoothness" of Architecture Space. The latent space created by the Graph VAE is remarkably smooth, meaning that moving slightly in the latent space leads to predictable, incremental changes in model performance. This is achieved through Joint Training: unlike previous methods that train the VAE and search model separately, NGAE trains all components together. This ensures the latent space is specifically organized to be "search-friendly" for both accuracy and efficiency.

Training curves showing convergence and a visualization of the smooth latent space.

Additionally, the framework utilizes Asynchronous Message Passing. The GNN waits for all "incoming messages" (predecessor layers) before computing a node's representation, mimicking how real-time computation happens in a neural network.

Key Results

The authors evaluated their framework using the ENAS dataset (19,020 architectures) and the CIFAR-10 image classification benchmark. Key findings include:

  • Near-Perfect Reconstruction: The Graph VAE achieved a 99.99% reconstruction accuracy, successfully mapping complex graphs to vectors and back with almost zero information loss.
  • Superior Architectures: NGAE consistently found models that outperformed existing methods like D-VAE on CIFAR-10.
  • Efficiency Gains: By including the complexity predictor, NGAE discovered architectures that maintained high accuracy while significantly reducing computational overhead.
  • Validity and Novelty: 100% of the architectures generated from the latent space were functional DAGs and novel (not seen in the training set).

Conclusion

While NGAE shows great promise, the authors acknowledge limitations regarding search space constraints due to hardware. Future work involves testing on larger benchmarks like NAS-Bench-101 and exploring generalization to other domains like Recurrent Neural Networks (RNNs). Despite these constraints, NGAE demonstrates that joint training of a Graph VAE with multi-objective predictors is a powerful path forward for efficient, automated model design.

Summary updated

BibTeX
@misc{li2020neural,
  author = {Jian Li and Yong Liu and Jiankun Liu and Weiping Wang},
  title = {{Neural Architecture Optimization with Graph VAE}},
  year = {2020},
  eprint = {2006.10310},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2006.10310},
}
Figure