KNAS: Green Neural Architecture Search
About
Many existing neural architecture search (NAS) solutions rely on downstream training for architecture evaluation, which takes enormous computations. Considering that these computations bring a large carbon footprint, this paper aims to explore a green (namely environmental-friendly) NAS solution that evaluates architectures without training. Intuitively, gradients, induced by the architecture itself, directly decide the convergence and generalization results. It motivates us to propose the gradient kernel hypothesis: Gradients can be used as a coarse-grained proxy of downstream training to evaluate random-initialized networks. To support the hypothesis, we conduct a theoretical analysis and find a practical gradient kernel that has good correlations with training loss and validation performance. According to this hypothesis, we propose a new kernel based architecture search approach KNAS. Experiments show that KNAS achieves competitive results with orders of magnitude faster than "train-then-test" paradigms on image classification tasks. Furthermore, the extremely low search cost enables its wide applications. The searched network also outperforms strong baseline RoBERTA-large on two text classification tasks. Codes are available at \url{https://github.com/Jingjing-NLP/KNAS} .
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Image Classification | CIFAR-10 NAS-Bench-201 (test) | Accuracy93.43 | 173 | |
| Image Classification | CIFAR-100 NAS-Bench-201 (test) | Accuracy71.05 | 169 | |
| Image Classification | ImageNet-16-120 NAS-Bench-201 (test) | Accuracy34.11 | 139 | |
| Neural Architecture Search | NAS-Bench-201 ImageNet-16-120 (test) | Accuracy34.11 | 86 | |
| Neural Architecture Search | NAS-Bench-201 CIFAR-10 (test) | Accuracy93.05 | 85 | |
| Text Classification | RTE | Accuracy83.75 | 78 | |
| Neural Architecture Search | NAS-Bench-201 CIFAR-100 (test) | Accuracy68.91 | 78 | |
| Image Classification | ImageNet-16 NAS-Bench-201 (test) | Accuracy45.05 | 18 | |
| Neural Architecture Search (Topology Search) | NATS-Bench CIFAR-10 (test) | Accuracy93.05 | 10 | |
| Neural Architecture Search (Topology Search) | NATS-Bench CIFAR-100 (test) | Accuracy68.91 | 10 |