Skip to main content
QUICK REVIEW

[Paper Review] Contrastive Neural Architecture Search with Neural Architecture Comparators

Yaofo Chen, Yong Guo|arXiv (Cornell University)|Mar 8, 2021
Adversarial Robustness in Machine LearningComputer Science57 references5 citations
TL;DR

This paper proposes Contrastive Neural Architecture Search (CTNAS), a method that improves neural architecture search by using pairwise comparisons between candidate and baseline architectures as training signals, rather than relying on absolute performance estimates. It introduces a Neural Architecture Comparator (NAC) to predict which architecture performs better, employs a curriculum learning-based baseline update strategy, and uses data exploration to reduce labeled data dependency. CTNAS achieves state-of-the-art accuracy (93.92% on NAS-Bench-101) with significantly faster evaluation (4.1 ms per 100 architectures), outperforming methods like ReNAS and ENAS.

ABSTRACT

One of the key steps in Neural Architecture Search (NAS) is to estimate the performance of candidate architectures. Existing methods either directly use the validation performance or learn a predictor to estimate the performance. However, these methods can be either computationally expensive or very inaccurate, which may severely affect the search efficiency and performance. Moreover, as it is very difficult to annotate architectures with accurate performance on specific tasks, learning a promising performance predictor is often non-trivial due to the lack of labeled data. In this paper, we argue that it may not be necessary to estimate the absolute performance for NAS. On the contrary, we may need only to understand whether an architecture is better than a baseline one. However, how to exploit this comparison information as the reward and how to well use the limited labeled data remains two great challenges. In this paper, we propose a novel Contrastive Neural Architecture Search (CTNAS) method which performs architecture search by taking the comparison results between architectures as the reward. Specifically, we design and learn a Neural Architecture Comparator (NAC) to compute the probability of candidate architectures being better than a baseline one. Moreover, we present a baseline updating scheme to improve the baseline iteratively in a curriculum learning manner. More critically, we theoretically show that learning NAC is equivalent to optimizing the ranking over architectures. Extensive experiments in three search spaces demonstrate the superiority of our CTNAS over existing methods.

Motivation & Objective

  • To address the instability and high cost of estimating absolute performance in Neural Architecture Search (NAS), which often leads to poor search efficiency and performance.
  • To reduce reliance on large amounts of labeled performance data, which is expensive and difficult to obtain in practice.
  • To improve search stability and performance by using relative comparisons (i.e., 'is this architecture better than the baseline?') as the primary training signal.
  • To develop a method that generalizes well to unseen architectures using limited labeled data and active data exploration.

Proposed method

  • Proposes a Neural Architecture Comparator (NAC), a deep learning model that takes two architectures as input and outputs the probability that the first is better than the second.
  • Uses pairwise comparison results as the reward signal in reinforcement learning-based NAS, replacing absolute performance estimation.
  • Introduces a curriculum learning-based baseline updating scheme that iteratively improves the baseline architecture to maintain a challenging but fair comparison target.
  • Employs a data exploration strategy that uses NAC-predicted labels on unlabeled architectures to expand the training data, improving generalization with minimal labeled data.
  • Designs a contrastive learning objective that theoretically optimizes ranking performance over architectures, ensuring the NAC learns meaningful comparisons.
  • Reduces evaluation cost by avoiding forward passes on validation data; NAC operates directly on architecture graphs with low-dimensional inputs and a shallow 3-layer network.

Experimental results

Research questions

  • RQ1Can pairwise architecture comparisons provide a more stable and efficient signal for NAS than absolute performance estimation?
  • RQ2How can a neural comparator be trained effectively with limited labeled performance data?
  • RQ3Does iteratively improving the baseline architecture through curriculum learning enhance search stability and performance?
  • RQ4Can data exploration using NAC-predicted labels on unlabeled architectures improve generalization and reduce dependency on labeled data?
  • RQ5How does the proposed method compare in accuracy and efficiency to state-of-the-art NAS methods?

Key findings

  • CTNAS achieves 93.92% top-1 accuracy on the NAS-Bench-101 search space, outperforming existing methods including ReNAS and ENAS.
  • The method evaluates 100 architectures in just 4.1 ms, significantly faster than ReNAS (85.6 ms) and ENAS (2.7 s).
  • The baseline updating scheme via curriculum learning improves search performance by 0.53% over fixed baseline and 0.39% over random updating.
  • Using a data exploration ratio of r=0.5 (50% predicted labels) yields the best performance, with 93.92% accuracy, while lower or higher ratios degrade results.
  • Performance plateaus with 423 labeled samples, indicating that the method is data-efficient and generalizes well even with small labeled datasets.
  • Theoretical analysis shows that training the NAC is equivalent to optimizing the ranking of architectures, justifying the use of comparison-based learning.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.