Does Unsupervised Architecture Representation Learning Help Neural Architecture Search?

Shen Yan, Yu Zheng, Wei Ao, Xiao Zeng, Mi Zhang

Abstract

Neural Architecture Search (NAS) has traditionally relied on jointly learning architecture representations and search policies through supervised signals. However, this coupling often results in biased searches and fragmented latent spaces that hinder optimization. We introduce arch2vec, a novel framework that decouples representation learning from the search process. By employing a Variational Graph Isomorphism Autoencoder for unsupervised pre-training, arch2vec constructs a continuous and structurally consistent latent space. Our results demonstrate that this decoupled approach significantly improves the efficiency of standard search algorithms, achieving state-of-the-art performance across multiple NAS benchmarks including NAS-Bench-101, NAS-Bench-201, and the DARTS search space.

Introduction

The goal of Neural Architecture Search (NAS) is to automate the design of high-performing neural network architectures. While early methods operated directly on discrete search spaces, modern approaches often map these architectures into a continuous latent space to leverage gradient-based or Bayesian optimization.

A critical limitation of existing continuous NAS methods is the joint optimization of the architecture encoder and the search strategy. This supervised coupling introduces two primary issues:

  1. Search Bias: Supervised signals early in training often favor architectures with weight-free operations (e.g., skip connections), which may not be optimal for the final converged model.
  2. Discontinuous Latent Spaces: Forcing the latent space to organize based solely on accuracy labels destroys structural relationships. This results in a "jagged" performance surface where structurally similar architectures are mapped far apart, making it difficult for optimization algorithms to navigate effectively.

The arch2vec Framework

To address these challenges, arch2vec proposes a complete decoupling of architecture representation learning from the search process. The core idea is to learn a meaningful embedding space in an unsupervised manner before any search begins.

Comparison between supervised joint optimization (top) and the proposed unsupervised decoupled approach (bottom).

Unsupervised Pre-training

The framework utilizes a Variational Graph Isomorphism Autoencoder (VGIAE) to learn architecture embeddings.

  • Encoder: A Graph Isomorphism Network (GIN) processes the architecture, represented as a Directed Acyclic Graph (DAG). GINs are chosen for their high expressivity and invariance to graph isomorphisms, ensuring that different representations of the same graph yield identical embeddings.
  • Decoder: A Multi-Layer Perceptron (MLP) is tasked with reconstructing the original adjacency and operation matrices from the latent vector.
  • Regularization: A KL-divergence loss is applied to ensure the latent space is continuous and follows a standard normal distribution, facilitating smooth transitions between architectures.

Once the latent space is established, the encoder is frozen. Standard search algorithms, such as Reinforcement Learning (REINFORCE) or Bayesian Optimization (DNGO), are then applied within this fixed, smooth latent space to identify optimal architectures based on validation performance.

Key Insights: Structure and Performance

The primary advantage of arch2vec lies in its ability to preserve the structural properties of architectures within the latent space.

Left: Correlation between Euclidean distance in latent space and structural edit distance. Right: Visualization of the latent space colored by test accuracy, showing a smooth performance surface.

As shown in the figure above, the unsupervised approach ensures that the Euclidean distance between embeddings strongly correlates with their structural edit distance. Because structural similarity often implies performance similarity, this naturally leads to a smooth "performance surface." High-performing architectures cluster together, allowing search algorithms to effectively "climb the hill" toward the global optimum without getting trapped by the noise inherent in supervised latent spaces.

Experimental Results

The authors evaluated arch2vec across several standard benchmarks:

  • NAS-Bench-101: arch2vec-RL reached 94.10% test accuracy with only 400 queries, outperforming both supervised continuous methods (like NAO) and discrete search methods.
  • NAS-Bench-201: Using Bayesian Optimization, the method achieved state-of-the-art results on CIFAR-10 (94.18%), CIFAR-100 (73.37%), and ImageNet-16-120 (46.34%).
  • DARTS Search Space: arch2vec-BO discovered a cell on CIFAR-10 with a 2.56% test error. When transferred to ImageNet, it achieved a competitive 25.5% top-1 error under mobile constraints (<600M MACs).

Conclusion

arch2vec demonstrates that decoupling representation learning from search is a powerful strategy for NAS. By focusing on structural properties through unsupervised pre-training, it creates a more navigable and less biased search space. Future work may involve scaling these unsupervised techniques to even larger, non-cell-based search spaces where supervised signals become increasingly sparse and expensive to obtain.

Summary updated

BibTeX
@inproceedings{yan2020does,
  author = {Shen Yan and Yu Zheng and Wei Ao and Xiao Zeng and Mi Zhang},
  title = {{Does Unsupervised Architecture Representation Learning Help Neural Architecture Search?}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2020},
}
Figure