Skip to main content
QUICK REVIEW

[Paper Review] DiffusionNAG: Predictor-guided Neural Architecture Generation with Diffusion Models

Sohyun An, Hayeon Lee|arXiv (Cornell University)|May 26, 2023
Neural Networks and ApplicationsComputer Science3 citations
TL;DR

DiffusionNAG proposes a diffusion-based neural architecture generation framework that uses parameterized predictors to guide the generation of task-optimal architectures, significantly reducing search time. By modeling architectures as directed graphs and employing a score network to encode node order, it achieves up to 20× speedup in Transferable NAS and outperforms existing BO-based NAS methods on ImageNet-1K with MobileNetV3.

ABSTRACT

Existing NAS methods suffer from either an excessive amount of time for repetitive sampling and training of many task-irrelevant architectures. To tackle such limitations of existing NAS methods, we propose a paradigm shift from NAS to a novel conditional Neural Architecture Generation (NAG) framework based on diffusion models, dubbed DiffusionNAG. Specifically, we consider the neural architectures as directed graphs and propose a graph diffusion model for generating them. Moreover, with the guidance of parameterized predictors, DiffusionNAG can flexibly generate task-optimal architectures with the desired properties for diverse tasks, by sampling from a region that is more likely to satisfy the properties. This conditional NAG scheme is significantly more efficient than previous NAS schemes which sample the architectures and filter them using the property predictors. We validate the effectiveness of DiffusionNAG through extensive experiments in two predictor-based NAS scenarios: Transferable NAS and Bayesian Optimization (BO)-based NAS. DiffusionNAG achieves superior performance with speedups of up to 35 times when compared to the baselines on Transferable NAS benchmarks. Furthermore, when integrated into a BO-based algorithm, DiffusionNAG outperforms existing BO-based NAS approaches, particularly in the large MobileNetV3 search space on the ImageNet 1K dataset. Code is available at https://github.com/CownowAn/DiffusionNAG.

Motivation & Objective

  • Address the high search cost in existing Neural Architecture Search (NAS) methods due to repeated training of irrelevant architectures.
  • Overcome the inefficiency of NAS methods that treat predictors passively as evaluators rather than active guides in architecture generation.
  • Enable conditional generation of task-optimal neural architectures by integrating parameterized predictors into a diffusion-based generative framework.
  • Design a score network that captures directional relationships in neural architecture graphs to ensure valid and semantically meaningful architecture generation.
  • Develop a plug-and-play framework applicable to diverse NAS scenarios, including latency-constrained, robustness-constrained, and transferable NAS tasks.

Proposed method

  • Model neural architectures as directed acyclic graphs (DAGs) to represent computational flow and preserve directional dependencies between layers.
  • Develop a graph score network that encodes node positional information to capture the order of operations in DAGs, enabling valid architecture generation.
  • Train a base diffusion model on the search space without requiring performance labels, learning to generate architectures that follow the distribution of valid architectures.
  • Introduce predictor-guided sampling by leveraging gradients from parameterized property predictors to steer the diffusion process toward architectures with desired properties (e.g., high accuracy, robustness).
  • Use a discrete diffusion model with architectural tokens (one-hot vectors) representing design choices (e.g., number of blocks, hidden dimensions), and train via masked token prediction with cross-entropy loss.
  • Enable plug-and-play integration by swapping predictors for different objectives (e.g., accuracy, latency, robustness) without retraining the base generative model.

Experimental results

Research questions

  • RQ1Can diffusion models be effectively adapted to generate valid, task-optimal neural architectures in a conditional manner?
  • RQ2How does predictor-guided diffusion generation compare to traditional NAS in terms of search efficiency and performance?
  • RQ3Can the proposed score network effectively model directed architectural graphs to ensure structural validity during generation?
  • RQ4To what extent can DiffusionNAG accelerate search in Transferable NAS and Bayesian Optimization-based NAS settings?
  • RQ5Can the framework generalize across diverse NAS objectives through plug-and-play predictor integration?

Key findings

  • DiffusionNAG achieves up to 20× speedup over baseline methods in Transferable NAS benchmarks, including on the large MobileNetV3 search space.
  • On the NAS-Bench-201 and Transferable NAS datasets, DiffusionNAG matches or exceeds the performance of state-of-the-art NAS methods with significantly reduced search time.
  • In BO-based NAS, DiffusionNAG outperforms existing approaches that rely on heuristic sampling or mutation strategies, especially in the large MobileNetV3 search space on ImageNet-1K.
  • DiffusionNAG demonstrates superior generation quality compared to MetaD2A, a related unconditional generation method, in the same evaluation settings.
  • The framework enables efficient, conditional generation of architectures by leveraging predictor gradients, reducing wasted computation on low-potential candidates.
  • The plug-and-play design allows seamless adaptation to different objectives (e.g., accuracy, latency, robustness) by replacing predictors without retraining the generative model.

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.