[Paper Review] DARTS: Differentiable Architecture Search
DARTS introduces a differentiable, gradient-based method to search neural network architectures by relaxing a discrete search space into a continuous one, enabling efficient architecture discovery for both convolutional and recurrent networks.
This paper addresses the scalability challenge of architecture search by formulating the task in a differentiable manner. Unlike conventional approaches of applying evolution or reinforcement learning over a discrete and non-differentiable search space, our method is based on the continuous relaxation of the architecture representation, allowing efficient search of the architecture using gradient descent. Extensive experiments on CIFAR-10, ImageNet, Penn Treebank and WikiText-2 show that our algorithm excels in discovering high-performance convolutional architectures for image classification and recurrent architectures for language modeling, while being orders of magnitude faster than state-of-the-art non-differentiable techniques. Our implementation has been made publicly available to facilitate further research on efficient architecture search algorithms.
Motivation & Objective
- Motivate scalable architecture search beyond costly RL/evolution methods.
- Propose a differentiable, bilevel optimization framework to learn architectures and weights jointly.
- Show that gradient-based search yields competitive or superior performance on CIFAR-10 and PTB with far lower computational cost.
- Demonstrate transferability of learned cells to ImageNet and WikiText-2.
Proposed method
- Represent an architecture as a directed acyclic graph cell with edges assigned candidate operations.
- Apply a continuous relaxation by replacing discrete operation choices with a weighted softmax over operations, parameterized by architecture parameters alpha.
- Formulate a bilevel optimization: minimize validation loss with respect to architecture alpha, while training weights w on training loss given alpha.
- Use an approximate architecture gradient via one-step unrolled optimization: nabla_alpha L_val(w', alpha) with w' = w - xi nabla_w L_train(w, alpha).
- Compute a finite-difference-based approximation to reduce second-order cost when computing the architecture gradient.
- Derive the final discrete architecture by keeping the top-k strongest operations per node (k=2 for conv, k=1 for recurrent) and excluding zeros for fair comparison.
Experimental results
Research questions
- RQ1Can a differentiable relaxation enable gradient-based search of neural architectures in both CNN and RNN domains?
- RQ2Does gradient-based architecture search match or surpass non-differentiable NAS methods while drastically reducing search compute?
- RQ3Are architectures found on CIFAR-10/PTB transferable to larger datasets like ImageNet and WikiText-2?
Key findings
- DARTS achieves CIFAR-10 test error of 2.76 ± 0.09% with 3.3M parameters using 1.5 GPU days (or 4 GPU days in some setups) for search, competitive with state-of-the-art methods that require orders of magnitude more compute.
- On Penn Treebank, the learned recurrent cell achieves 55.7 test perplexity, outperforming extensively tuned LSTM and other NAS methods under similar constraints.
- Transfer experiments show CIFAR-10 learned cells transfer to ImageNet (mobile setting) with a top-1 error of 26.7% and 8.7M parameters, and PTB-derived recurrent cells transfer to WikiText-2.
- DARTS outperforms ENAS on comparable resources and matches or exceeds state-of-the-art results on PTB, while requiring far less search cost than RL/evolution-based NAS approaches.
- The paper emphasizes strong efficiency, with four search runs totaling about 1 GPU day for the architectures evaluated, and notes random search is competitive in the search space but DARTS yields significant gains.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.