HyperAIHyperAI

Command Palette

Search for a command to run...

3 months ago

Searching for A Robust Neural Architecture in Four GPU Hours

Xuanyi Dong Yi Yang

Searching for A Robust Neural Architecture in Four GPU Hours

Abstract

Conventional neural architecture search (NAS) approaches are based on reinforcement learning or evolutionary strategy, which take more than 3000 GPU hours to find a good model on CIFAR-10. We propose an efficient NAS approach learning to search by gradient descent. Our approach represents the search space as a directed acyclic graph (DAG). This DAG contains billions of sub-graphs, each of which indicates a kind of neural architecture. To avoid traversing all the possibilities of the sub-graphs, we develop a differentiable sampler over the DAG. This sampler is learnable and optimized by the validation loss after training the sampled architecture. In this way, our approach can be trained in an end-to-end fashion by gradient descent, named Gradient-based search using Differentiable Architecture Sampler (GDAS). In experiments, we can finish one searching procedure in four GPU hours on CIFAR-10, and the discovered model obtains a test error of 2.82\% with only 2.5M parameters, which is on par with the state-of-the-art. Code is publicly available on GitHub: https://github.com/D-X-Y/NAS-Projects.

Code Repositories

xxlya/COS598D_Assignment1
pytorch
Mentioned in GitHub
D-X-Y/AutoDL-Projects
pytorch
Mentioned in GitHub
rwbfd/OpenCompetitionV2
pytorch
Mentioned in GitHub
D-X-Y/GDAS
pytorch
Mentioned in GitHub
D-X-Y/NAS-Projects
Official
pytorch
Mentioned in GitHub

Benchmarks

BenchmarkMethodologyMetrics
neural-architecture-search-on-cifar-10GDAS
Search Time (GPU days): 0.21
Top-1 Error Rate: 3.4%
neural-architecture-search-on-cifar-10GDAS (FRC)
Search Time (GPU days): 0.17
Top-1 Error Rate: 2.5%
neural-architecture-search-on-nas-bench-201GDAS
Accuracy (Test): 41.71
Search time (s): 28926
neural-architecture-search-on-nas-bench-201-1GDAS
Accuracy (Test): 93.61
Accuracy (Val): 89.89
Search time (s): 28926
neural-architecture-search-on-nas-bench-201-2GDAS
Accuracy (Test): 70.70
Accuracy (Val): 71.34
Search time (s): 28926

Build AI with AI

From idea to launch — accelerate your AI development with free AI co-coding, out-of-the-box environment and best price of GPUs.

AI Co-coding
Ready-to-use GPUs
Best Pricing
Get Started

Hyper Newsletters

Subscribe to our latest updates
We will deliver the latest updates of the week to your inbox at nine o'clock every Monday morning
Powered by MailChimp
Searching for A Robust Neural Architecture in Four GPU Hours | Papers | HyperAI