lliai / Stochastic_neural_architecture_search

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SNAS(Stochastic Neural Architecture Search)

Pytorch implementation of SNAS (Caution : This is not official version and was not written by the author of the paper)

Requirements

Python >= 3.6.5, PyTorch == 1.0

Datasets

Cifar-10

Hyperparameters

I followed hyperparameters that were given in the paper.

However, there are several parameters that were not given in the paper.

Ex) Softmax Temperature , annealiation rate of the softmax temperature, parameters regarding the levels of resource constraints

Run the training code

bash scripts/main_constraint_new.sh (WITH resource contraint)

Evaluation the searched architecture

bash scripts/retrain.sh (WITH resource contraint)

Search Validation Accuracy (with resource constraint)

train test

Figure1 : Search Validation Accuracy

(Note : the model was not fully trained(<==>converged) due to the limited resources (E.g., GPU and TIME!!)

Search Validation Accuracy of ENAS

enas_train enas_validation

Figure2 : Search Validation Accuracy of ENAS

Network Architecture (with resource constraint at epoch 120)

Normal Cell Reduction Cell

Figure3 : Network Architecture of normal cell (left) and reduction cell (right)

Evaluation results on cifar10

Architecture Accuracy Params
SNAS 96.27% 2.9M
ENAS 97.01% 4.6M

Reference

https://github.com/quark0/darts/

About


Languages

Language:Python 98.8%Language:Shell 1.2%