RelativeNAS: Relative Neural Architecture Search via Slow-Fast Learning

Hao Tan, Ran Cheng, Shihua Huang, Cheng He, Changxiao Qiu, Fan Yang, Ping Luo

TL;DR

RelativeNAS is a hybrid Neural Architecture Search (NAS) framework that combines the efficiency of differentiable search with the diversity of population-based methods. By using a "slow-fast" learning paradigm—where underperforming architectures (slow-learners) move toward better ones (fast-learners) in a continuous search space—it discovers state-of-the-art models in just 9 hours on a single consumer-grade GPU.

What Problem Does This Paper Address?

Designing high-performance Convolutional Neural Networks (CNNs) manually is a "black art" that requires immense expertise. Neural Architecture Search (NAS) aims to automate this, but existing methods face a trade-off:

  1. Differentiable NAS (e.g., DARTS): These are fast because they use gradients to optimize a "supernet." However, they often lack robustness and can "collapse" into simple, low-performing architectures (like those dominated by skip-connections) as the search progresses.
  2. Population-Based NAS (e.g., AmoebaNet): These are diverse and robust because they evolve a population of models. However, they are computationally ruinous, often requiring thousands of GPU hours because every candidate model needs to be trained and evaluated.

RelativeNAS seeks to bridge this gap: achieving the search efficiency of differentiable methods while maintaining the population diversity and robustness of evolutionary methods.

Methods

The authors introduce three core innovations to make NAS both fast and effective:

  • Continuous Encoding Scheme: Instead of treating architecture choices as discrete "on/off" switches, RelativeNAS maps connections and operations into a continuous real-valued space. For example, a real number falling in the range $[0, 1)$ might represent a Max Pooling operation, while $[1, 2)$ represents Average Pooling. This allows the search to happen in a smooth, geometric space.
  • Slow-Fast Learning Paradigm: Instead of using complex genetic crossovers or mutations, the algorithm randomly pairs architectures from its population. It identifies a Fast-Learner (the one with lower validation loss) and a Slow-Learner. The Slow-Learner’s architecture vector is then updated using a "pseudo-gradient"—essentially a mathematical nudge that pulls the Slow-Learner's configuration closer to the Fast-Learner's configuration.
  • Low-Fidelity Performance Estimation: To avoid the cost of training every model to convergence, RelativeNAS uses a global Weight Set (a knowledge base of weights for all possible operations). Candidate models inherit weights from this set, train for just one epoch, and are then compared. After the comparison, the global weight set is updated with the newly trained weights, allowing the population to "co-evolve" its knowledge.

Datasets

The researchers evaluated RelativeNAS across a wide variety of standard computer vision benchmarks:

  • CIFAR-10 & CIFAR-100: Used for the initial architecture search and to test "intra-domain" transferability.
  • ImageNet: Used to evaluate the discovered architectures at a massive scale.
  • PASCAL VOC & MSCOCO: Used to test "inter-domain" transferability for object detection and keypoint detection.
  • Cityscapes: Used to evaluate performance in semantic segmentation.

Key Insights and Ideas

  • Relativity over Absolute Accuracy: The "aha moment" here is that the search algorithm doesn't need to know exactly how accurate a model is (e.g., 92.1% vs 92.2%). It only needs to know which of two models is relatively better. This allows for "low-fidelity" testing (1-epoch training), which drastically cuts down search time.
  • Pseudo-Gradients: By treating the difference between a Fast-Learner and a Slow-Learner as a vector, the authors bypass the need for the complex, memory-heavy "supernet" calculus required by DARTS, while still benefiting from a directional, gradient-like optimization.
  • Collective Memory: The global Weight Set acts as a "warm start" for every new architecture in the population. This ensures that even a 1-epoch training run provides a meaningful signal for comparison.

Key Results

  • Efficiency: RelativeNAS discovered its best "cells" in just 9 hours on a single NVIDIA 1080Ti GPU. For context, this is roughly 3.75x faster than DARTS and a staggering 7,875x faster than the evolutionary AmoebaNet.
  • Accuracy: On ImageNet, the discovered architecture achieved a 24.88% top-1 error rate, outperforming DARTS (26.7%) and AmoebaNet-B (26.0%) while using a similar number of parameters (~5M).
  • Transferability: Architectures found on the tiny CIFAR-10 images transferred exceptionally well to complex tasks:
  • 73.1% mAP on PASCAL VOC (Object Detection).
  • 78.7% mIoU on Cityscapes (Segmentation).
  • 68.5% AP on MSCOCO (Keypoint Detection).

Limitations and Future Work

  • Cell-Based Constraint: Like many modern NAS methods, this work focuses on searching for "cells" (small blocks) that are then stacked in a predefined way. It does not search for the "macro-architecture" (the overall skeleton of the network).
  • Heuristic Weight Merging: The logic for updating the global Weight Set (Equation 6 in the paper) is a specific heuristic. The authors note that more sophisticated ways to merge or distill knowledge into the weight set could further improve stability.
  • Generalization: While tested extensively on CNNs for vision, the authors suggest the slow-fast paradigm could be applied to other domains (like Transformers or RNNs), but this remains a direction for future research.

Summary updated

BibTeX
@article{tan2023relativenas,
  author = {Hao Tan and Ran Cheng and Shihua Huang and Cheng He and Changxiao Qiu and Fan Yang and Ping Luo},
  title = {{RelativeNAS: Relative Neural Architecture Search via Slow-Fast Learning}},
  journal = {IEEE Trans. Neural Networks Learn. Syst.},
  year = {2023},
  url = {https://openreview.net/forum?id=GZBThtu0I4},
}
Figure