Bridge the Gap Between Architecture Spaces via A Cross-Domain Predictor

Yuqiao Liu, Yehui Tang, Zeqiong Lv, Yunhe Wang, Yanan SunNeurIPS 2022

TL;DR

The Cross-Domain Predictor (CDP) drastically slashes the cost of Neural Architecture Search (NAS) by repurposing existing, pre-computed benchmarks to predict performance in entirely new, larger search spaces. By using progressive domain adaptation and an intermediate "assistant" space, CDP finds top-tier architectures (achieving 76.9% top-1 accuracy on ImageNet) in just 0.1 GPU days—thousands of times faster than traditional methods.

Neural Architecture Search (NAS) represents the "automated engineering" of deep learning, promising to discover optimal neural network structures without human bias. However, it comes with a massive computational and carbon footprint. Finding the best model traditionally requires training thousands of candidate architectures from scratch, consuming thousands of GPU days.

"Neural predictors" were introduced to mitigate this by learning to estimate a model's performance purely from its graph structure. Unfortunately, these predictors suffer from a "chicken and egg" problem: training a reliable predictor for a specific search space still requires training and labeling hundreds or thousands of architectures within that exact space first.

Comparison of existing methods and the proposed CDP

While the research community has developed massive "NAS Benchmarks" (like NAS-Bench-101) where every model is pre-trained and labeled, these benchmarks are confined to small, simplified search spaces. They do not translate directly to the massive, complex search spaces (like DARTS) used for state-of-the-art models. This paper tackles this domain discrepancy—the structural and performance gap between small, labeled benchmarks and large-scale, unlabeled target search spaces.

The Cross-Domain Predictor (CDP)

To bridge this gap, the authors introduce the Cross-Domain Predictor (CDP), which leverages three core strategies to transfer knowledge from existing benchmarks to new domains:

Architecture of the Cross-Domain Predictor
  1. Uniform Encoding: Different search spaces operate on different rules and node operations. To overcome this, CDP utilizes a Graph Convolutional Network (GCN) paired with a unified encoding scheme. This allows the predictor to process architectures from disparate domains using a common language of adjacency matrices and operation features.
  2. Progressive Subspace Partition (PSP): Instead of attempting to align the entire source and target domains simultaneously (Global Domain Adaptation), the authors employ Local Maximum Mean Discrepancy (LMMD). This technique aligns architectures that share similar performance levels. Crucially, this is done progressively: architectures are initially grouped into one large set and slowly partitioned into finer "subspaces" as the model's predictive accuracy improves, preventing early-stage alignment errors.
  3. Assistant Architecture Space: Jumping directly from a tiny benchmark space to the massive DARTS space is too abrupt. To solve this, the authors introduce an intermediate "Tiny DARTS" space. This acts as a structural stepping stone, smoothing the transfer process so the predictor can gradually learn features common to both the source and the final target.

Datasets and Evaluation

The framework was trained and evaluated across several distinct domains:

  • Source Domains (Training): NAS-Bench-101 (423k architectures) and NAS-Bench-201 (15.6k architectures).
  • Target Domain (Search): The DARTS search space (containing approximately $10^{18}$ possible architectures).
  • Evaluation Datasets: ImageNet and CIFAR-10.
  • Ablation Dataset: A custom "Shallow DARTS" set (100 architectures with only 8 layers) was created to test the predictor's ranking accuracy using Kendall’s Tau.

Key Insights

  • NAS Knowledge is Transferable: A major takeaway is that structural patterns leading to high performance in one search space (such as specific shortcut connections) often hold true in others.
  • Local Alignment Matters: Simply making the average architecture in the source look like the average in the target is insufficient. Effective adaptation requires ensuring that "high-performing" models in the source align specifically with "high-performing" models in the target.
  • The "Smoothing" Strategy: The success of the assistant space (Tiny DARTS) demonstrates that domain adaptation in NAS is significantly more effective when the structural transition is continuous rather than a sudden leap in complexity.

Results: Extreme Efficiency and High Accuracy

The proposed CDP achieves remarkable efficiency, completing its search in just 0.1 GPU days. To put this in perspective, it is 2000x faster than NAO and 40x faster than SemiNAS.

Despite this low computational cost, the architectures discovered by CDP are highly competitive:

  • ImageNet: Achieves 76.9% Top-1 accuracy, surpassing established methods like PC-DARTS and FairDARTS.
  • CIFAR-10: Reaches a highly competitive 97.51% accuracy.
  • Superior Ranking: In ablation studies, combining LMMD with the Progressive Subspace Partition (PSP) yielded a Kendall’s Tau of 0.5306, significantly outperforming standard domain adaptation methods like DANN or standard MMD.

Limitations and Future Work

  • Benchmark Dependency: CDP inherently relies on the existence of high-quality source benchmarks. Searching in radically different domains (e.g., searching for novel Transformer variants) may require new source benchmarks that are structurally closer than current CNN-based ones.
  • Assistant Space Design: Currently, the intermediate "assistant space" is manually designed based on the target. Automating the creation of these bridge spaces could make the method more robust and hands-off.
  • Generalization Beyond Vision: While highly effective for ImageNet and CIFAR-10, testing the cross-domain predictor on non-vision tasks, such as Natural Language Processing (NLP) or Automatic Speech Recognition (ASR), remains an exciting open area for future exploration.

Summary updated

BibTeX
@inproceedings{liu2022bridge,
  author = {Yuqiao Liu and Yehui Tang and Zeqiong Lv and Yunhe Wang and Yanan Sun},
  title = {{Bridge the Gap Between Architecture Spaces via A Cross-Domain Predictor}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2022},
  url = {https://openreview.net/forum?id=4D1rT88EkD},
}
Figure