swap-nas/README.md

34 lines
1.2 KiB
Markdown
Raw Permalink Normal View History

2024-02-20 07:59:33 +01:00
# Sample-Wise Activation Patterns for Ultra-Fast NAS <br/> (ICLR 2024 Spotlight)
2024-05-10 16:32:39 +02:00
SWAP-Score, based on sample-wise activation patterns, is a metric that assesses the performance of neural networks without training.
2024-02-20 07:59:33 +01:00
# Usage
The following instruction demonstrates the usage of evaluating network's performance through SWAP-Score.
**/src/metrics/swap.py** contains the core components of SWAP-Score.
2024-05-30 05:19:49 +02:00
**/datasets/DARTS_archs_CIFAR10.csv** contains 1000 architectures (randomly sampled from DARTS search space) along with their CIFAR-10 validation accuracies (trained for 200 epochs).
2024-02-20 07:59:33 +01:00
* Install necessary dependencies (a new virtual environment is suggested).
```
cd SWAP
pip install -r requirements.txt
```
2024-05-30 05:19:49 +02:00
* Calculate the correlation between SWAP-Score and CIFAR-10 validation accuracies of 1000 CNN architectures.
2024-02-20 07:59:33 +01:00
```
python correlation.py
```
If you use or build on our code, please consider citing our paper:
```
@inproceedings{
peng2024swapnas,
title={{SWAP}-{NAS}: Sample-Wise Activation Patterns for Ultra-fast {NAS}},
author={Yameng Peng and Andy Song and Haytham M. Fayek and Vic Ciesielski and Xiaojun Chang},
booktitle={The Twelfth International Conference on Learning Representations},
year={2024},
url={https://openreview.net/forum?id=tveiUXU2aa}
}
```