Skip to main content
QUICK REVIEW

[Paper Review] SWAP-NAS: Sample-Wise Activation Patterns for Ultra-fast NAS

Yameng Peng, Andy Song|arXiv (Cornell University)|Mar 7, 2024
Parallel Computing and Optimization TechniquesComputer Science3 citations
TL;DR

This paper proposes SWAP-Score, a novel training-free metric based on sample-wise activation patterns that strongly correlates with neural network performance across diverse search spaces and tasks. By leveraging activation pattern diversity and regularization, SWAP-NAS achieves state-of-the-art accuracy on CIFAR-10 and ImageNet in just 6 and 9 minutes of GPU time, respectively, using an evolutionary search strategy with minimal computational cost.

ABSTRACT

Training-free metrics (a.k.a. zero-cost proxies) are widely used to avoid resource-intensive neural network training, especially in Neural Architecture Search (NAS). Recent studies show that existing training-free metrics have several limitations, such as limited correlation and poor generalisation across different search spaces and tasks. Hence, we propose Sample-Wise Activation Patterns and its derivative, SWAP-Score, a novel high-performance training-free metric. It measures the expressivity of networks over a batch of input samples. The SWAP-Score is strongly correlated with ground-truth performance across various search spaces and tasks, outperforming 15 existing training-free metrics on NAS-Bench-101/201/301 and TransNAS-Bench-101. The SWAP-Score can be further enhanced by regularisation, which leads to even higher correlations in cell-based search space and enables model size control during the search. For example, Spearman's rank correlation coefficient between regularised SWAP-Score and CIFAR-100 validation accuracies on NAS-Bench-201 networks is 0.90, significantly higher than 0.80 from the second-best metric, NWOT. When integrated with an evolutionary algorithm for NAS, our SWAP-NAS achieves competitive performance on CIFAR-10 and ImageNet in approximately 6 minutes and 9 minutes of GPU time respectively.

Motivation & Objective

  • To address the limitations of existing training-free metrics, such as weak correlation and poor generalization across search spaces and tasks.
  • To develop a metric that enables model size control during neural architecture search without retraining.
  • To design an ultra-fast NAS pipeline that achieves competitive performance with minimal GPU time.
  • To validate the robustness and generalization of the proposed metric across diverse architectures and tasks.

Proposed method

  • SWAP-Score computes network expressivity by analyzing the diversity of activation patterns across individual input samples within a mini-batch.
  • It measures the variation in activations across samples to capture how well a network can represent complex functions.
  • Regularization is applied to SWAP-Score to improve correlation with ground-truth performance, especially in cell-based search spaces.
  • The method integrates SWAP-Score into an evolutionary NAS algorithm, using it to evaluate initial populations, mutated offspring, and crossover-generated architectures.
  • Crossover operations are applied randomly to exchange architectural components (e.g., connection weights) between parent networks.
  • The population is updated via elitism, replacing the lowest-performing network with the highest-scoring offspring to accelerate convergence.

Experimental results

Research questions

  • RQ1Can a training-free metric based on sample-wise activation patterns achieve stronger correlation with ground-truth performance than existing zero-cost proxies?
  • RQ2Does SWAP-Score generalize well across different search spaces, including stack-based and cell-based architectures?
  • RQ3Can regularization of SWAP-Score improve its predictive accuracy and enable model size control during NAS?
  • RQ4How does SWAP-NAS compare in efficiency and performance to state-of-the-art NAS methods on standard benchmarks?
  • RQ5Can SWAP-NAS discover high-performing architectures on ImageNet with minimal GPU time?

Key findings

  • On NAS-Bench-201, regularized SWAP-Score achieves a Spearman’s rank correlation of 0.90 with CIFAR-100 validation accuracy, outperforming the second-best metric (NWOT) by 0.10.
  • The correlation remains strong across all five benchmark search spaces, including NAS-Bench-101, 201, 301, and TransNAS-Bench-101 (Micro/Macro), with consistent superiority over 15 existing metrics.
  • SWAP-NAS completes a search on CIFAR-10 in only 0.004 GPU days (6 minutes), achieving state-of-the-art performance.
  • On ImageNet, SWAP-NAS completes a search in 0.006 GPU days (9 minutes), demonstrating ultra-fast efficiency.
  • Architectures discovered by SWAP-NAS show increasing topological complexity with larger model size constraints, confirming effective size control via regularization.
  • Visualizations confirm that regularized SWAP-Score produces a more concentrated distribution of points around the ground-truth performance, indicating higher predictive fidelity.

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.