Skip to content
AI360Xpert
Beta

DARTS Searches Cells by Gradients

DARTS relaxes discrete ops to softmax weights, so architecture search becomes gradient descent over cells.

Softmax over 8 ops finds cells in 4 days not 2000
Softmax over 8 ops finds cells in 4 days not 2000

Why Does This Exist?

RL search trains thousands of nets for 20002000 GPU days. Most labs cannot pay that.

DARTS differentiates. It grounds efficient architectures, searches convolutional layers cells, and lifts image classification backbones.

Think of It Like This

Blending paints before picking one color

Instead of painting eight walls to pick best, you blend eight colors with adjustable ratios and slide ratios toward the winner.

Ops are colors, softmax weights are ratios. Where it stops: blends flatter winners, just as relaxation favors skips.

How It Actually Works

Edge (i,j)(i,j) mixes 88 ops oo with oˉ=∑softmax(α)oo(x)\bar{o} = \sum softmax(\alpha)_o o(x), where α\alpha are architecture weights. Bi-level: inner trains ww on train split, outer trains α\alpha on val split. Discretize by argmax per edge.

Worked example

Weights α=[2.0,1.0,0.0]\alpha = [2.0, 1.0, 0.0] over skip, conv, pool. Softmax e2=7.39e^2 = 7.39, e1=2.72e^1 = 2.72, e0=1e^0 = 1, sum 11.1111.11, probs [0.665,0.245,0.090][0.665, 0.245, 0.090]. Output blends 0.6650.665 skip plus 0.2450.245 conv. Search 44 days versus 20002000, a 500500 times cut (2000/4=5002000/4 = 500).

Watch Out For

Collapsing to skip heavy cells

Softmax favors fast converging skips. Symptom: searched cells full of skips with weak test accuracy. Fix: regularize skips, early stop, or use robust variants before final training.

The Quick Version

  • DARTS relaxes 88 ops per edge to softmax blends.
  • Bi-level trains weights inner and architecture outer.
  • Fixture probs 0.665,0.245,0.0900.665, 0.245, 0.090 blend skip plus conv.
  • Search 44 days replaces 20002000, 500 times cheaper.
  • Guard against skip collapse with regularization.