SWAP-NAS: Sample-Wise Activation Patterns for Ultra-fast NAS

Yameng Peng, Andy Song, Haytham M. Fayek, Victor Ciesielski, Xiaojun Chang
2/12/2026

No official code found. Best implementation: pym1024/SWAP (9 stars, AFL-3.0, last commit 2024-09-13).

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.

View on arXivView PDF

Code Implementations(1)

pym1024/SWAPCommunity100%
AFL-3.0
90PythonFeb 20, 20242 years agoAFL-3.0

Similar Papers

Cite this paper

@article{peng2026swapnas,
  title  = {SWAP-NAS: Sample-Wise Activation Patterns for Ultra-fast NAS},
  author = {Yameng Peng and Andy Song and Haytham M. Fayek and Victor Ciesielski and Xiaojun Chang},
  year   = {2026},
  eprint = {2403.04161},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2403.04161},
  journal = {ICLR 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2403.04161.svg)](https://codeofpaper.com/paper/2403.04161)

Discussion