RelativeNAS: Relative Neural Architecture Search via Slow-Fast Learning

Hao Tan, Ran Cheng, S. Huang, Cheng He, Changxiao Qiu, Fan Yang, Ping Luo · DOI

Abstract

Despite the remarkable successes of convolutional neural networks (CNNs) in computer vision, it is time-consuming and error-prone to manually design a CNN. Among various neural architecture search (NAS) methods that are motivated to automate designs of high-performance CNNs, the differentiable NAS and population-based NAS are attracting increasing interests due to their unique characters. To benefit from the merits while overcoming the deficiencies of both, this work proposes a novel NAS method, RelativeNAS. As the key to efficient search, RelativeNAS performs joint learning between fast learners (i.e., decoded networks with relatively lower loss value) and slow learners in a pairwise manner. Moreover, since RelativeNAS only requires low-fidelity performance estimation to distinguish each pair of fast learner and slow learner, it saves certain computation costs for training the candidate architectures. The proposed RelativeNAS brings several unique advantages: 1) it achieves state-of-the-art performances on ImageNet with top-1 error rate of 24.88%, that is, outperforming DARTS and AmoebaNet-B by 1.82% and 1.12%, respectively; 2) it spends only 9 h with a single 1080Ti GPU to obtain the discovered cells, that is, 3.75× and 7875× faster than DARTS and AmoebaNet, respectively; and 3) it provides that the discovered cells obtained on CIFAR-10 can be directly transferred to object detection, semantic segmentation, and keypoint detection, yielding competitive results of 73.1% mAP on PASCAL VOC, 78.7% mIoU on Cityscapes, and 68.5% AP on MSCOCO, respectively.

Introduction: The Efficiency-Diversity Trade-off

Designing high-performance Convolutional Neural Networks (CNNs) manually is a complex task requiring immense domain expertise. Neural Architecture Search (NAS) aims to automate this process, but current methodologies face a significant trade-off between efficiency and robustness.

Differentiable NAS methods, such as DARTS, are highly efficient because they use gradient-based optimization on a "supernet." However, they are prone to architectural "collapse," where the search space becomes dominated by simple operations like skip-connections, leading to poor final performance. Conversely, Population-Based NAS methods like AmoebaNet are robust and diverse due to their evolutionary nature, but they are computationally expensive, often requiring thousands of GPU hours to train and evaluate every candidate model.

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

Methodology: The Slow-Fast Paradigm

RelativeNAS introduces a novel framework that optimizes architectures through relative comparisons rather than absolute performance metrics. This approach is built upon three core innovations:

Comparison of search paradigms: DARTS (differentiable), Population-based NAS (evolutionary), and RelativeNAS (slow-fast learning).

1. 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 instance, a real number in the range $[0, 1)$ might represent a Max Pooling operation, while $[1, 2)$ represents Average Pooling. This mapping allows the search to occur in a smooth, geometric space, facilitating more efficient optimization.

2. Slow-Fast Learning Paradigm

Rather than using complex genetic crossovers, the algorithm randomly pairs architectures from its population. It identifies a Fast-Learner (the architecture with lower validation loss) and a Slow-Learner. The Slow-Learner’s architecture vector is then updated using a "pseudo-gradient"—a mathematical nudge that pulls the Slow-Learner's configuration closer to the Fast-Learner's configuration in the continuous encoding space.

RelativeNAS continuous encoding and pairwise slow-fast update mechanism vs. the DARTS operation weight matrix.

3. Low-Fidelity Performance Estimation

To minimize the cost of training, RelativeNAS utilizes a global Weight Set that acts as a shared knowledge base. Candidate models inherit weights from this set and are trained for only one epoch before being compared. This "low-fidelity" testing is sufficient to determine which model is relatively better, drastically cutting down search time while allowing the population to co-evolve its knowledge.

Key Results and Transferability

The efficiency of RelativeNAS is its most striking feature. The framework discovered its optimal cells in just 9 hours on a single NVIDIA 1080Ti GPU. This represents a 3.75x speedup over DARTS and a staggering 7,875x speedup over the evolutionary AmoebaNet.

Beyond speed, the discovered architectures achieved state-of-the-art accuracy:

  • ImageNet: Achieved a 24.88% top-1 error rate, outperforming DARTS (26.7%) and AmoebaNet-B (26.0%) with a similar parameter count (~5M).
  • Cross-Domain Transferability: Architectures discovered on CIFAR-10 transferred exceptionally well to downstream tasks:
  • 73.1% mAP on PASCAL VOC for Object Detection.
  • 78.7% mIoU on Cityscapes for Semantic Segmentation.
  • 68.5% AP on MSCOCO for Keypoint Detection.

Conclusion

RelativeNAS demonstrates that by focusing on relative performance and utilizing a slow-fast learning paradigm, it is possible to automate the design of high-performance CNNs with minimal computational resources. While currently focused on cell-based search for vision tasks, the underlying principle of pairwise relative optimization offers a promising path for searching more complex macro-architectures and expanding into other domains like Natural Language Processing.

Summary updated

BibTeX
@article{tan2023relativenas,
  author = {Hao Tan and Ran Cheng and S. 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