Automated Search-Space Generation Neural Architecture Search

Tianyi Chen, Luming Liang, Tianyu Ding, Ilya ZharkovSubmission to ICLR 2024 · Withdrawn

TL;DR

Existing Neural Architecture Search (NAS) methods rely heavily on handcrafted, pre-specified search spaces and manual tuning, limiting their generalization to arbitrary neural networks. This paper introduces ASGSSD (Automated Search-Space Generation for Sub-Network Search with DNNs), an end-to-end, one-shot framework that automatically derives a search space directly from a general deep neural network's computational graph. Using a new optimizer called H2SPG (Hierarchical Half-Space Projected Gradient), it searches and trains compact, valid sub-networks in a single run without requiring auxiliary architectural variables or post-search retraining.

What Problem Does This Paper Address?

Most weight-sharing and gradient-based NAS techniques (such as DARTS) require human experts to design a rigid search space upfront, introduce specialized auxiliary architecture parameters (e.g., continuous mixture weights), and construct complex bi-level optimization routines. This reliance on human engineering makes it difficult and costly to adapt NAS pipelines to arbitrary, custom deep neural networks (DNNs).

The authors set out to answer a simple question: Given an arbitrary DNN that contains candidate connections and operations, can we automatically generate its search space, train it once, and extract a valid, compact, high-performing sub-network?

Methods

ASGSSD operates through three automated stages:

  1. Automated Search Space Generation:
  2. Uses PyTorch and ONNX tracing to extract the network's directed acyclic execution graph ($V, E$).
  3. Constructs a segment graph ($V_s, E_s$) via depth-first and breadth-first search.
  4. Identifies candidate "removal structures"—subgraphs that can be pruned without disconnecting data flow or disrupting mandatory shapes—and partitions parameters into removable groups ($\mathcal{G}_s$) and mandatory groups ($\mathcal{G}_s^C$).
  5. Hierarchical Half-Space Projected Gradient (H2SPG) Optimizer:
  6. Formulates sub-network discovery as a hierarchical structured sparsity optimization problem.
  7. Hierarchical Search Phase: Ranks removable groups using a proxy saliency metric (combining weight magnitude and gradient-projection cosine similarity) while enforcing network connectivity via graph validity checks.
  8. Hybrid Training Phase: Applies standard SGD/Adam to essential parameter groups while using half-space projection to drive redundant candidate groups precisely to zero.
  9. Automated Sub-Network Construction:
  10. Erases zeroed-out structures, cleans up dependent operations (such as channel slicing or matrix dimensions on downstream operators), and eliminates redundant operations (e.g., identity additions or singleton concatenations), resulting in a ready-to-deploy compact network without requiring retraining or fine-tuning.
+-------------+      +--------------------------+      +-------------------+      +----------------------+
| General DNN | ---> | Auto Search-Space Gen.   | ---> | H2SPG Optimizer   | ---> | Auto Sub-Network     |
| (PyTorch)   |      | (Segment Graph & Groups) |      | (Train + Sparsify)|      | Construction (Prune) |
+-------------+      +--------------------------+      +-------------------+      +----------------------+

Datasets

The authors evaluate ASGSSD across several standard vision benchmarks:

  • CIFAR-10 (evaluated on RegNet and SuperResNet)
  • ImageNet (evaluated on 14-cell DARTS and OFA networks)
  • SVHN (evaluated on StackedUNets)
  • Fashion-MNIST (evaluated on DemoNet)
  • STL-10 (evaluated on 8-cell DARTS)

Note: No new datasets were introduced; the benchmark suite covers standard classification tasks ranging from small-scale digits to full-scale ImageNet.

Key Insights and Ideas

  • Pruning as Architecture Search: Instead of searching over continuous architecture mixtures, finding a sub-network is treated as structured group sparsity constrained by graph topological validity.
  • Topological Sanity Checks Prevent Broken Graphs: Conventional sparse optimizers (e.g., DHSPG, ProxSG) disregard network hierarchy, frequently severing paths from input to output and producing broken architectures. H2SPG verifies directed acyclic graph (DAG) reachability before committing any block to the redundant set.
  • One-Shot Without Retraining: By progressively projecting unimportant weights to zero during training rather than pruning after the fact, H2SPG allows the remaining weights to co-adapt, yielding high validation performance immediately upon extraction.

Key Results

  • RegNet-800M on CIFAR-10: At 10% and 30% sparsity, ASGSSD achieves 95.30% and 95.08% Top-1 accuracy respectively, surpassing the full baseline (95.01%) while reducing parameters from 5.58M down to 3.54M. Non-hierarchical baselines like DHSPG failed to produce valid networks at sparsity levels $\ge 0.5$.
  • StackedUNets on SVHN: Cuts parameters by over half (0.80M $\rightarrow$ 0.37M) and FLOPs from 184M to 115M, while improving accuracy from 95.3% to 96.1%.
  • SuperResNet on CIFAR-10: Matches state-of-the-art accuracy (97.5%) with 2.0M parameters and a search cost of just 0.1 GPU days, matching or outperforming zero-shot and gradient-based NAS methods (e.g., ZenNAS, DARTS, ISTA-NAS).
  • DARTS (14-Cells) on ImageNet: Achieves 75.9% Top-1 / 92.8% Top-5 accuracy (4.9M parameters, 552M FLOPs), competitive with manually configured gradient NAS approaches.

Limitations and Future Work

  • Parameterless Operations: The current implementation requires removable operations to possess trainable parameters. Operations without weights (such as parameter-free skip connections or identity mappings) cannot yet be treated as removal candidates.
  • Framework and Operator Dependencies: The graph tracing pipeline depends on ONNX export; models containing operators not supported by ONNX cannot be searched directly.
  • Single-Level Formulation: Because search space generation is automated and parameter-free, ASGSSD uses a single-level optimization framework rather than bi-level optimization over a separate validation split, leaving potential performance gains on the table for benchmarks like DARTS.

Summary updated

Abstract

To search an optimal sub-network within a general deep neural network (DNN), existing neural architecture search (NAS) methods typically rely on handcrafting a search space beforehand. Such requirements make it challenging to extend them onto general scenarios without significant human expertise and manual intervention. To overcome the limitations, we propose Automated Search-Space Generation Neural Architecture Search (ASGNAS), perhaps the first automated system to train general DNNs that cover all candidate connections and operations and produce high-performing sub-networks in the one shot manner. Technologically, ASGNAS delivers three noticeable contributions to minimize human efforts: (i) automated search space generation for general DNNs; (ii) a Hierarchical Half-Space Projected Gradient (H2SPG ) that leverages the hierarchy and dependency within generated search space to ensure the network validity during optimization, and reliably produces a solution with both high performance and hierarchical group sparsity; and (iii) automated sub-network construction upon the H2SPG solution. Numerically, we demonstrate the effectiveness of ASGNAS on a variety of general DNNs, including RegNet, StackedUnets, SuperResNet, and DARTS, over benchmark datasets such as CIFAR10, Fashion-MNIST, ImageNet, STL-10 , and SVNH. The sub-networks computed by ASGNAS achieve competitive even superior performance compared to the starting full DNNs and other state-of-the-arts.
BibTeX
@misc{chen2023automated,
  author = {Tianyi Chen and Luming Liang and Tianyu Ding and Ilya Zharkov},
  title = {{Automated Search-Space Generation Neural Architecture Search}},
  year = {2023},
  eprint = {2305.18030},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2305.18030},
}
Figure