DARTS without a Validation Set: Optimizing the Marginal Likelihood

Miroslav Fil, Binxin Ru, Clare Lyle, Yarin Gal

TL;DR

Standard DARTS (Differentiable Architecture Search) is fast but notoriously unstable, frequently failing due to "skip connection collapse" when optimizing on a validation set. By swapping validation loss optimization for Training-Speed-Estimate (TSE)—a marginal likelihood proxy computed solely on training data—TSE-DARTS eliminates the skip collapse, improves stability, and sheds light on the overlooked roles of cell topology and search network depth.

What Problem Does This Paper Address?

Weight-sharing neural architecture search (NAS) methods like DARTS made NAS practical by cutting search costs from thousands of GPU days to single-digit days. However, DARTS relies on bi-level optimization where network weights are updated on training data and architectural mixing weights ($\alpha$) are updated on a held-out validation set.

In practice, this process is prone to catastrophic failure: DARTS heavily overfits to parameter-free operations, often producing degenerate architectures consisting almost entirely of skip connections. In addition, the gap between the shallow network used during search (e.g., 8 layers) and the deep network used during evaluation (e.g., 20 layers)—known as the depth gap—often prevents the best search-time architectures from performing well at evaluation time.

Methods

  • Training-Speed-Estimate (TSE) as Architecture Objective: Instead of using validation loss $\mathcal{L}_{\text{val}}$, the authors optimize architecture weights using TSE, defined as the cumulative training loss over $T$ iterations: $$\text{TSE} = \sum_{t=1}^T \mathcal{L}(f_{\theta_t}(x_{i(t)}), y_{i(t)})$$ Rooted in Bayesian model selection, TSE acts as an evidence lower bound on marginal likelihood. Crucially, no validation split is needed; both model weights and architecture parameters are learned on the training set.

  • First-Order Gradient Approximation: Differentiating TSE through $T$ steps of SGD unrolling naively requires $O(T)$ memory. Following Ru et al. (2021), the authors approximate the gradient by summing only the direct gradients at each step: $$\nabla_\alpha \text{TSE} \approx \sum_{t=1}^T \frac{\partial \mathcal{L}^t_{\text{train}}}{\partial \alpha}$$ This approximation can be computed concurrently with normal weight backpropagation, matching the compute and memory efficiency of standard first-order DARTS.

  • Searching Without a Depth Gap (TSE-DARTS-20): Because TSE avoids memory-intensive second-order Hessian-vector products, the authors run searches directly on 20-layer supernetworks using standard batch sizes (~23 GB VRAM), eliminating the depth gap entirely.

Datasets

The authors evaluated their approach across several standard NAS benchmarks:

  • NASBench-201: Tabulated benchmark evaluated across CIFAR-10, CIFAR-100, and ImageNet16-120.
  • NASBench-1shot1: Tabulated benchmark evaluating three search spaces (focusing primarily on Space 3 / NB101-3).
  • DARTS Search Space: Evaluated on CIFAR-10 using the standard 600-epoch retraining protocol for discovered cells (both 8-layer and 20-layer evaluation setups), as well as the reduced S2 search space.

No new datasets were introduced.

Key Insights and Ideas

  • Skip Collapse is Gone (and Explained): TSE-DARTS completely stops overfitting to skip connections. In shallow 8-layer search spaces, it picks zero skip connections, preferring separable convolutions. When searched with 20 layers (TSE-DARTS-20), it naturally chooses a moderate, healthy number of skip connections. This reveals that skip connections are favored in deeper networks because they smooth rough loss landscapes—not merely because they accelerate early training.
  • The Cell Depth Paradox: DARTS is known to be biased toward shallow cell DAGs (short longest paths) due to smoother local loss landscapes. Surprisingly, TSE-DARTS finds significantly deeper cells than DARTS, despite an objective that encourages fast training.
  • Topology Selection Matters More Than Operations: On NASBench-1shot1 (which contains no skip connections), standard DARTS performs well by choosing shallow topologies, while TSE-DARTS performs poorly because it chooses cells that are excessively deep. This demonstrates that cell topology selection can be as critical a failure mode as operation selection.
  • Eigenvalue Diagnostics Are Not Universal: Previous literature linked DARTS failure to exploding dominant eigenvalues of the architecture Hessian ($\nabla^2_\alpha \mathcal{L}$). In TSE-DARTS, eigenvalues show divergent patterns: on NASBench-1shot1, eigenvalues decrease even as search performance drops, while on NASBench-201, performance improves steadily despite rising eigenvalues.

Key Results

  • NASBench-201 (CIFAR-10): Standard DARTS collapses to 65.38% (2nd-order) and 59.84% (1st-order) test accuracy. TSE-DARTS avoids collapse, reaching 92.66%, while TSE-DrNAS reaches 93.76%.
  • Original DARTS Search Space (CIFAR-10 test error, 20-layer eval):
  • Standard 1st-order DARTS: 3.00%
  • Standard 2nd-order DARTS: 2.76%
  • TSE-DARTS (1st-order cost): 2.73%
  • TSE-DARTS-20 (full-depth search): 2.68% (outperforming DARTS-20 at 2.89%).
  • 8-layer Evaluation: When evaluating without the depth gap (training 8-layer standalone models), TSE variants consistently beat their baseline counterparts (e.g., TSE-DrNAS achieves 4.35% error vs. DrNAS at 4.47%).

Limitations and Future Work

  • Pathological Depth Bias on Certain Spaces: Because TSE-DARTS tends to select deeper cells, it struggles in search spaces like NASBench-1shot1 where shallow cell topologies are strictly optimal (scoring 87.87% vs. DARTS's 93.35%).
  • Poor Synergy with Progressive Deepening Heuristics: Combining TSE with methods like PDARTS degraded performance (3.19% error) because existing heuristics were tailored specifically to counteract standard DARTS's skip-connection pathology.
  • Future Directions: Developing search algorithms that explicitly decouple and optimize cell topology (graph structure) from operation selection, rather than relying on standard edge-level argmax discretization.

Summary updated

BibTeX
@inproceedings{fil2021darts,
  author = {Miroslav Fil and Binxin Ru and Clare Lyle and Yarin Gal},
  title = {{DARTS without a Validation Set: Optimizing the Marginal Likelihood}},
  booktitle = {MetaLearn @ NeurIPS},
  year = {2021},
  url = {https://openreview.net/forum?id=661Wz3zOzlt},
}
Figure