Profile

Settings

Loading…

← Papers

Help

FAQ

Which features require signing in?

You can read the commentary, paper info, Model Structure and related papers of public papers without signing in. Sign in to manage your account or contact us about your inquiries.

Can I upload a PDF file?

Upload papers with an arXiv or DOI link; the commentary is public to everyone. Papers whose source and terms of use can't be verified, so the commentary can't be made public, can't be uploaded. Uploading PDF files and keeping papers private are for subscribers only, and a paper uploaded as a file is saved as private only. Searching for official info by title runs only when you press the button.

Are the figures and AI commentary accurate?

Figures come only from the original paper, and only those whose terms of use are verified are shown. The commentary is written by AI and may be wrong. Check important claims, numbers and figure context against the evidence in the original paper.

I want to report a copyright issue.

Terms of use and the source of the original paper are on the Paper info tab. If there's a problem, choose "Paper content, figures and copyright" under Contact us and send the paper link, the part in question, and evidence that you hold the rights. Receiving your report doesn't confirm any rights or remove anything right away. You can see the result of the review under My inquiries.

I forgot my password.

If you signed up with email, use Forgot password in the sign-in window to reset it with your verified email. If you signed up with Google, Naver or Kakao, change your password with that service.

What should I include in an inquiry?

Tell us which screen you were on and what you were doing when the problem happened, along with the paper link. Don't include personal information such as passwords, API keys, verification codes or phone numbers. Inquiries and replies are stored in Refivu and you can see them under My inquiries.

How do I delete my account?

In Settings, under My account, press Delete account. Review what will be deleted and complete identity verification to delete your account. For other requests, choose "Account" under Contact us.

Paper commentary

DARTS: Differentiable Architecture Search

DARTS finds neural architectures with gradient descent instead of sampling candidates one by one

  • Problem Search methods based on reinforcement learning or evolution find strong convolutional cells but need very large search budgets. Each candidate is evaluated one at a time as a black-box sample from a discrete space.
  • Method DARTS relaxes each edge's choice into a softmax mixture of operations. It tunes the mixing weights by gradient descent on validation loss.
  • Results DARTS reached 2.76± 0.09% test error on CIFAR-10 with 3.3M parameters after 4 GPU days of search.

Why architecture search is expensive

Search methods based on reinforcement learning or evolution have produced strong convolutional cells, but their search budgets are very large. The cost follows from treating each candidate as a black-box sample from a discrete domain, so a large number of candidates must be evaluated one at a time.

DARTS keeps the same kind of search space but changes how it is explored: the discrete choice on each edge becomes a continuous quantity that gradient descent can adjust against validation performance. Prior methods use validation performance as a reward or fitness signal, whereas DARTS differentiates through that signal to move the architecture variables directly.

Relaxing the choice of operations

A cell is a directed acyclic graph with an ordered set of N nodes, two input nodes and one output node, where each intermediate node is computed from its predecessors. Each intermediate node is the sum over earlier nodes of the operation on the edge applied to that node, as in \\( x^{(j)}=\\sum_{i<j} o^{(i,j)}(x^{(i)}) \\).

Every edge holds a candidate set O that includes a zero operation, which marks the absence of a connection. Instead of picking one candidate, DARTS mixes all of them with softmax weights taken from a vector α(i,j) with one entry per operation: \\[ \\bar o^{(i,j)}(x)=\\sum_{o\\in O}\\frac{\\exp(\\alpha^{(i,j)}_o)}{\\sum_{o'\\in O}\\exp(\\alpha^{(i,j)}_{o'})}\\,o(x) \\]

After search, each mixed operation is replaced by the operation with the largest α entry, and α is then called the encoding of the architecture. The weights w of the operations, such as convolution filters, and α are learned jointly, so the search becomes one differentiable objective.

Choosing architecture variables against validation loss

The goal is to find α that minimizes the validation loss at weights w* that were fitted on the training loss for that same α. This gives a bilevel problem with α as the upper-level variable and w as the lower-level variable: \\[ \\min_{\\alpha} L_{val}(w^*(\\alpha),\\alpha)\\quad \\text{s.t.}\\quad w^*(\\alpha)=\\arg\\min_w L_{train}(w,\\alpha) \\]

Solving the inner problem to convergence for every update of α is too expensive, so the method takes a single training step with learning rate ξ as a stand-in for w*(α). The resulting approximate gradient is \\[ \\nabla_\\alpha L_{val}(w^*(\\alpha),\\alpha)\\approx\\nabla_\\alpha L_{val}\\big(w-\\xi\\nabla_w L_{train}(w,\\alpha),\\alpha\\big) \\]

Algorithm 1 alternates two steps: α is moved by descending the approximate gradient, and w is then moved by descending the training loss gradient. Setting ξ to zero turns the approximation into the first-order case, which uses the current w as if it were optimal for the training loss. No convergence guarantee is known for this procedure, but in practice it reaches a fixed point with a suitable ξ, which the paper suggests setting to the learning rate of the weight optimizer.

Avoiding the Hessian-vector product

Applying the chain rule to the approximate gradient gives a second term, a mixed second derivative multiplied by a vector, which is costly to compute directly. Written out, the update is \\[ \\nabla_\\alpha L_{val}(w',\\alpha)-\\xi\\,\\nabla^2_{\\alpha,w}L_{train}(w,\\alpha)\\,\\nabla_{w'}L_{val}(w',\\alpha) \\], where \\( w'=w-\\xi\\nabla_w L_{train}(w,\\alpha) \\) is the one-step forward model.

A finite difference replaces that product: with a small scalar ϵ and \\( w^{\\pm}=w\\pm\\epsilon\\nabla_{w'}L_{val}(w',\\alpha) \\), the term is approximated by \\[ \\frac{\\nabla_\\alpha L_{train}(w^+,\\alpha)-\\nabla_\\alpha L_{train}(w^-,\\alpha)}{2\\epsilon} \\].

The first-order variant drops the second term entirely, which speeds up each step but gave weaker results in the paper's tables than the second-order variant.

Turning the learned weights into a cell

Each node keeps its top-k strongest incoming operations, taken from distinct earlier nodes and excluding zero, where strength is the softmax weight of the operation on that edge. The paper uses k = 2 for convolutional cells and k = 1 for recurrent cells, to match the existing models.

Zero is excluded for two reasons: a fair comparison needs exactly k non-zero incoming edges per node, and raising the logit of zero only rescales node outputs, which batch normalization removes.

Convolutional search space on CIFAR-10

Operations are stride one where applicable, and each separable convolution is applied twice, following the ReLU-Conv-BN order.

A convolutional cell has N = 7 nodes, and its output is the depthwise concatenation of the intermediate nodes, with input nodes excluded. Reduction cells sit at 1/3 and 2/3 of the network depth, and the normal and reduction cells each have their own α, written as α_normal and α_reduce.

Recurrent search space on Penn Treebank

Available operations are linear transformations followed by tanh, ReLU or sigmoid, together with the identity and zero. A recurrent cell has N = 12 nodes, and its first intermediate node applies a tanh after linearly transforming and adding the two inputs.

Each operation has a highway bypass, the cell output is the average of the intermediate nodes, and batch normalization is enabled during search but disabled at evaluation. The recurrent network consists of a single cell, so the search does not assume a repeated pattern inside the architecture.

Repeated search runs and cell selection

Four search runs with different random seeds are repeated for each task, and each snapshot of the search is retrained from scratch for 100 epochs on CIFAR-10 or 300 epochs on PTB before being scored on validation data. The best cell is picked from the four runs by validation performance after this short retraining, which the paper says matters more for recurrent cells because their optimization is initialization-sensitive.

The selected architecture gets fresh random weights, is trained from scratch, and is scored on the test set, which is never used for search or selection.

CIFAR-10 results

All rows in the CIFAR-10 table use the same evaluation setup with cutout, and the rows marked with a dagger were retrained in the paper's own setup. The second-order DARTS cell reached 2.76± 0.09% test error with 3.3M parameters, after 4 GPU days of search.

The DARTS search cost excludes the 1 GPU day selection cost and the 1.5 GPU day final training of the chosen cell. Against ENAS, the paper reports comparable error rates with fewer parameters at a longer search time, which it attributes to repeating the search four times.

Penn Treebank results

The first-order variant reached 57.6 test perplexity at 0.5 GPU days of search.

The random search baseline, the best of 8 samples, reached 59.4 test perplexity at 2 GPU days, while ENAS reached 58.6 test perplexity under the paper's setup. Random search is therefore competitive here too, yet DARTS improves on it with comparable or lower search cost.

The four search runs together took within 1 GPU day, which is close to ENAS and much faster than NAS. The mixture-of-softmaxes LSTM of Yang et al. reached 56.0 test perplexity, which the DARTS cell roughly matches, and the authors note the searched cell beats the extensively tuned LSTM of Melis et al.

Transfer to ImageNet and WikiText-2

NASNet-A reached 26.0 top-1 error in the same table, at 2000 GPU days of search, while the transferred DARTS cell used 4 GPU days.

On WikiText-2 the Penn Treebank recurrent cell reached 69.6 test perplexity, against 70.4 for the ENAS cell trained under the same setup. The gap to the Penn Treebank result is wider, and the authors attribute part of this to the small size of the Penn Treebank source dataset used for search. The authors suggest that searching directly on the target task could avoid this transfer gap, but they do not test it.

Joint optimization without the bilevel split

As a control, α and w were optimized jointly over the union of training and validation data using coordinate descent.

Joint SGD over all the available data reached 3.56± 0.10% with 3.0M parameters.

Limits of the evidence

The method is evaluated on CIFAR-10, Penn Treebank, and transfers to ImageNet and WikiText-2, and these are the only settings reported in the paper. The convergence of the approximate optimizer is not established.

The first-order variant trades accuracy for speed, and the paper's tables show it is worse than the second-order variant. Recurrent cells are sensitive to initialization, so their selection relies on four runs and short retraining, while convolutional cells depend less on initialization.

Search costs reported for DARTS leave out the selection and final evaluation costs. The weaker Penn Treebank to WikiText-2 transfer is not resolved in the paper.

Paper info

Authors
Hanxiao Liu, Karen Simonyan, Yiming Yang
Venue
arXiv · Preprint
First published
2018-6-24
Added
2026-11-12
Updated
2019-4-23
Version
v2
arXiv
1806.09055
Category
cs.LG · cs.CL · cs.CV · stat.ML
Original paper terms
arXiv non-exclusive 1.0
What we show
Paper info and commentary

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

Quote from the paper

Hanxiao Liu, Karen Simonyan, Yiming Yang (2018). DARTS: Differentiable Architecture Search. arXiv:1806.09055v2. https://arxiv.org/abs/1806.09055v2

BibTeX
@misc{liu2018darts,
  title = {{DARTS: Differentiable Architecture Search}},
  author = {Hanxiao Liu and Karen Simonyan and Yiming Yang},
  year = {2018},
  eprint = {1806.09055},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1806.09055v2}
}

See related papersBrowse other papers

Paper preview
Account security

Connect Google account

If you connect a Google account, you can sign in with it too.

Refivu

Delete account

Refivu
Refivu

Sign up