Explicitly Learning Topology for Differentiable Neural Architecture Search

Tao Huang, Shan You, Yibo Yang, Zhuozhuo Tu, Fei Wang, Chen Qian, Changshui Zhang

Abstract

Differentiable neural architecture search (DARTS) has gained much success in discovering flexible and diverse cell types. To reduce the evaluation gap, the supernet is expected to have identical layers with the target network. However, even for this consistent search, the searched cells often suffer from poor performance, especially for the supernet with fewer layers, as current DARTS methods are prone to wide and shallow cells, and this topology collapse induces sub-optimal searched cells. In this paper, we alleviate this issue by endowing the cells with explicit stretchability, so the search can be directly implemented on our stretchable cells for both operation type and topology simultaneously. Concretely, we introduce a set of topological variables and a combinatorial probabilistic distribution to explicitly model the target topology. With more diverse and complex topologies, our method adapts well for various layer numbers. Extensive experiments on CIFAR-10 and ImageNet show that our stretchable cells obtain better performance with fewer layers and parameters. For example, our method can improve DARTS by 0.28% accuracy on CIFAR-10 dataset with 45% parameters reduced or 2.9% with similar FLOPs on ImageNet dataset.

Introduction

Differentiable Neural Architecture Search (DARTS) has revolutionized automated network design by using gradient descent to find optimal architectures. However, DARTS suffers from a critical flaw known as topology collapse. Standard DARTS restricts cell structures with a rigid "two-input rule," where every node must have exactly two input edges. This constraint often forces the search algorithm toward shallow, wide architectures dominated by skip-connections, which fail to scale effectively.

Furthermore, a significant "evaluation gap" exists: architectures are typically searched on shallow networks (e.g., 8 layers) but deployed on deeper ones (e.g., 20 layers). Cells optimized for shallow depths often perform poorly when scaled, yet the rigid topology of DARTS prevents these cells from "stretching" or adapting to different depths.

Methods: Explicit Stretchability

To address these limitations, the authors introduce Stretchable Cells, a plug-and-play method that allows for the explicit learning of network topology alongside operations.

Evolution of cell structures from a basic skeleton (a) to DARTS (c) and the proposed Stretchable Cells (d).

The approach relies on several key innovations:

  1. Decoupling Operations and Topology: By introducing topological variables ($\beta$), the model can independently decide which edges should exist, regardless of the operation assigned to them.
  2. Output-Edge Perspective: Instead of selecting inputs for a node, the method determines which future nodes should receive a node's output. This prevents early-node features from overwhelming the training process.
  3. Combinatorial Probabilistic Distribution: The topology is modeled using a distribution over edge combinations, allowing nodes to connect to any number of posterior nodes. This enables the cell to naturally become deeper or shallower as required by the task.
  4. Passive-Aggressive Regularization: A specific loss term ensures the search produces valid, connected topologies by penalizing isolated nodes only when they occur.

Experimental Results

The authors evaluated Stretchable Cells on CIFAR-10 and ImageNet, demonstrating that "stretching" leads to more efficient and robust models.

Error rates across different network depths, comparing Stretchable Cells (Ours) with standard DARTS variants.

Performance and Efficiency

On CIFAR-10, the proposed method achieved 97.28% accuracy with only 1.8M parameters. In contrast, vanilla DARTS required 3.3M parameters to reach a lower 97.00% accuracy—a 45% reduction in parameters with superior performance. On ImageNet, the MiLeNAS-SC-L8 model achieved a 23.8% top-1 error rate, significantly outperforming vanilla DARTS (26.7%) and P-DARTS (24.4%).

Consistency and Stability

A major advantage of stretchable cells is the elimination of the evaluation gap. Because the cells can adapt, search and evaluation can occur at the same depth (e.g., searching and evaluating at 12 layers). Unlike vanilla DARTS, which often collapses into skip-connection-heavy structures during extended searches, the stretchable cell method remains stable.

The Importance of Topology

The research highlights that topology is a primary driver of performance. In a "random operation" baseline, a model using the learned topology but random operations still outperformed standard DARTS, proving that the network's "skeleton" is often more important than the specific operations used.

Conclusion

Stretchable Cells provide a robust solution to the topology collapse and evaluation gap issues in DARTS. By explicitly learning the network's skeleton, the method produces more efficient models that adapt better to varying depths. Future work may involve reducing the search cost and extending the concept of stretchability to macro-architecture search.

Summary updated

BibTeX
@misc{huang2020explicitly,
  author = {Tao Huang and Shan You and Yibo Yang and Zhuozhuo Tu and Fei Wang and Chen Qian and Changshui Zhang},
  title = {{Explicitly Learning Topology for Differentiable Neural Architecture Search}},
  year = {2020},
  eprint = {2011.09300},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2011.09300},
}
Figure