Skip to main content
QUICK REVIEW

[Paper Review] A Study on Encodings for Neural Architecture Search

Colin White, Willie Neiswanger|arXiv (Cornell University)|Jul 9, 2020
Neural Networks and ApplicationsComputer Science32 references5 citations
TL;DR

This paper presents the first formal study of neural architecture search (NAS) encodings, analyzing how different representations—such as adjacency matrix and path-based encodings—affect algorithm performance. It demonstrates that encoding choice significantly impacts key NAS subroutines like random sampling, architecture perturbation, and predictor training, with adjacency encodings outperforming path-based ones in generalization and scalability.

ABSTRACT

Neural architecture search (NAS) has been extensively studied in the past few years. A popular approach is to represent each neural architecture in the search space as a directed acyclic graph (DAG), and then search over all DAGs by encoding the adjacency matrix and list of operations as a set of hyperparameters. Recent work has demonstrated that even small changes to the way each architecture is encoded can have a significant effect on the performance of NAS algorithms. In this work, we present the first formal study on the effect of architecture encodings for NAS, including a theoretical grounding and an empirical study. First we formally define architecture encodings and give a theoretical characterization on the scalability of the encodings we study Then we identify the main encoding-dependent subroutines which NAS algorithms employ, running experiments to show which encodings work best with each subroutine for many popular algorithms. The experiments act as an ablation study for prior work, disentangling the algorithmic and encoding-based contributions, as well as a guideline for future work. Our results demonstrate that NAS encodings are an important design decision which can have a significant impact on overall performance. Our code is available at https://github.com/naszilla/nas-encodings.

Motivation & Objective

  • To formally define and analyze the impact of architecture encodings on neural architecture search (NAS) performance.
  • To identify and evaluate encoding-dependent subroutines in NAS algorithms, such as random sampling, perturbation, and predictor training.
  • To disentangle algorithmic contributions from encoding-based contributions in prior NAS work through ablation studies.
  • To assess the generalization capability of neural predictors trained on different encodings across search space boundaries.
  • To provide actionable recommendations for selecting optimal encodings based on specific NAS subroutines and use cases.

Proposed method

  • Define an encoding as a multi-function mapping a neural architecture to a real-valued tensor, formalizing prior ad hoc representations.
  • Characterize scalability using information loss from truncation, identifying a phase change at $ r^{k/n} $ for path-based encodings.
  • Implement and evaluate eight distinct encodings: adjacency, categorical adjacency, path, truncated path, categorical path, and truncated categorical path.
  • Conduct ablation studies across three core NAS subroutines: random architecture sampling, architecture perturbation, and predictor model training.
  • Train neural predictors on a subset of NASBench-101 and test generalization to disjoint search spaces with different encodings.
  • Measure average standard deviation of accuracies within equivalence classes defined by each encoding to assess information loss.

Experimental results

Research questions

  • RQ1How does the choice of architecture encoding affect the scalability and information retention of NAS representations?
  • RQ2Which encoding performs best for each of the three core NAS subroutines: random sampling, perturbation, and predictor training?
  • RQ3Can a neural predictor trained on one search space generalize to a disjoint search space, and how does this depend on the encoding used?
  • RQ4To what extent do different encodings preserve or lose information, especially when truncated?
  • RQ5How does the non-injective nature of certain encodings (e.g., path encoding) affect the variance of accuracy within equivalence classes?

Key findings

  • The path-based encoding exhibits a sharp phase transition in information loss at $ r^{k/n} $, with near-total information loss below $ r^{k/(2n)} $, as predicted by theory.
  • Adjacency encodings outperform path-based encodings in predictor generalization, achieving a top-10 average test error of 6.056 compared to 6.335 for truncated categorical path.
  • The average standard deviation of accuracies within equivalence classes for path encoding is 0.353%, significantly lower than the 5.55% across all architectures, indicating favorable clustering of similar-performance models.
  • Categorical adjacency and path encodings show worse generalization than standard adjacency encoding, likely due to sparsity and feature mismatch in out-of-distribution architectures.
  • The theoretical scalability characterization of path encodings aligns with empirical results, validating the phase transition model.
  • The study disentangles algorithmic and encoding-based contributions, showing that encoding choice can be a dominant factor in NAS performance, independent of algorithm design.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.