Multi-conditioned Graph Diffusion for Neural Architecture Search

Rohan Asthana, Joschua Conrad, Youssef Dawoud, Maurits Ortmanns, Vasileios Belagiannis · Submission to ICLR 2024 · Withdrawn

Introduction

Neural Architecture Search (NAS) aims to automate the design of deep learning models, alleviating the need for manual, trial-and-error engineering. However, NAS is notoriously resource-intensive. Traditional methods, such as Reinforcement Learning or Evolutionary algorithms, require evaluating thousands of candidate models, which is computationally prohibitive.

Recent generative approaches attempt to solve this by learning the "latent space" of high-performing architectures. Yet, many existing generative NAS methods rely on complex GANs or require training separate "predictor" networks to estimate how a generated model will perform. Furthermore, representing neural networks as graphs presents a unique challenge: continuous diffusion models often struggle to maintain the sparse, directed acyclic graph (DAG) structure essential for valid neural architectures.

To address these challenges, researchers introduce DiNAS (Multi-conditioned Graph Diffusion for Neural Architecture Search). DiNAS leverages discrete graph diffusion and multi-conditioned classifier-free guidance to simultaneously optimize for multiple constraints—such as high accuracy and low hardware latency—generating unique, valid architectures in less than 0.2 seconds without needing a separate performance predictor.

Methodology: The DiNAS Framework

DiNAS treats architecture generation as a discrete graph diffusion process, fundamentally shifting how architectures are sampled and optimized.

Overview of the DiNAS training and sampling phases.

1. Discrete Graph Diffusion

Instead of adding Gaussian noise to continuous values (as seen in standard image diffusion), DiNAS uses a Markov process to progressively "corrupt" the categorical nodes (e.g., operations like 3x3 convolutions) and edges (connections) of an architecture graph. The model is then trained to reverse this process, effectively learning to denoise a random graph into a valid neural network architecture.

2. Positional Encoding for DAGs

Because neural networks rely on a specific directional flow of data (from input to output), the authors incorporated sinusoidal positional encodings into the node features. This addition helps the underlying Graph Transformer backbone understand the sequential and hierarchical nature of the architecture's DAG structure.

3. Multi-conditioned Classifier-Free Guidance (CFG)

The core innovation of DiNAS is the application of Multi-conditioned Classifier-Free Guidance to graph generation. Originally popularized in image generation models like DALL-E, CFG allows the model to be conditioned on specific targets (e.g., "Accuracy > 95%" and "Latency < 2ms") during training.

Training algorithm for DiNAS highlighting conditional dropout and positional encoding.

By randomly dropping these conditions during training (conditional dropout), the model learns both unconditional and conditional distributions. At inference, it uses the difference between these two distributions to "guide" the generation toward the desired performance metrics. Crucially, this eliminates the need for an external classifier or performance predictor.

Experimental Setup

The authors evaluated DiNAS across a comprehensive suite of NAS benchmarks to ensure robustness and generalizability:

  • Tabular Benchmarks: NAS-Bench-101 and NAS-Bench-201 (where every possible model's performance is pre-calculated).
  • Surrogate Benchmarks: NAS-Bench-301 (DARTS search space) and NAS-Bench-NLP.
  • Hardware-Aware Benchmarks: HW-NAS-Bench, which includes latency data for devices like EdgeGPUs, Raspberry Pi 4, and FPGAs.
  • Large-Scale Evaluation: ImageNet-1K, testing the real-world generalizability of the discovered architectures.

Key Findings and Results

Unprecedented Speed and Efficiency

Because the model generates the entire graph in a single pass rather than node-by-node, it is incredibly fast. DiNAS produces a new architecture in roughly 0.15 to 0.2 seconds. When searching for ImageNet architectures, DiNAS completed the search in just 53.76 GPU seconds. For context, classic methods like NASNET-A required roughly $1.7 \times 10^8$ seconds.

State-of-the-Art Performance

On NAS-Bench-101, DiNAS discovered models achieving 94.27% test accuracy using only 150 queries, outperforming previous methods like AG-Net and BANANAS. Furthermore, 100% of the architectures generated by DiNAS were "novel" (not present in the training set), proving the model learns the underlying principles of high-performance topologies rather than simply memorizing the training data.

Hardware Flexibility

In hardware-constrained tasks—such as searching for a model optimized for a Raspberry Pi—DiNAS consistently found models that met strict latency requirements while maintaining higher accuracy than random search or AG-Net.

Technical Insights

  • Predictor-Free: Unlike previous diffusion-based NAS methods (e.g., DiffusionNAG), DiNAS's reliance on CFG means it does not require a separate accuracy predictor, making the training pipeline simpler and entirely differentiable.
  • Discretization of Performance: The authors found that discretizing continuous performance metrics (accuracy and latency) into "bins" (e.g., top 5% vs. the rest) significantly improved the guidance process.
  • Negative Guidance Scales: Interestingly, using negative values for the guidance scale ($\gamma$) yielded better results than positive ones. This departs from standard image diffusion behavior and suggests a unique relationship between guidance scales and discrete graph structures.

Limitations and Future Directions

While DiNAS represents a significant leap forward, it has limitations. The model's performance is somewhat sensitive to how the performance metrics are discretized; finding the optimal number of bins remains an empirical challenge. Additionally, while DiNAS is extremely fast on ImageNet, it did not surpass the absolute top-tier "non-generative" SOTA methods (like DrNAS), which the authors attribute to the lack of a massive dataset of DARTS-style cell architectures for training.

Future work will likely focus on extending DiNAS to even more complex search spaces beyond cell-based DAGs, potentially allowing the model to design entire macro-architectures from scratch.

Summary updated

BibTeX
@article{asthana2023multi,
  author = {Rohan Asthana and Joschua Conrad and Youssef Dawoud and Maurits Ortmanns and Vasileios Belagiannis},
  title = {{Multi-conditioned Graph Diffusion for Neural Architecture Search}},
  journal = {Accepted by TMLR},
  year = {2023},
  url = {https://openreview.net/forum?id=5VotySkajV},
}
Figure