AutoShrink: A Topology-aware NAS for Discovering Efficient Neural Architecture

Tunhou Zhang, Hsin-Pai Cheng, Zhenwen Li, Feng Yan, Chengyu Huang, Hai Helen Li, Yiran Chen

Abstract

Deploying deep neural networks on edge devices requires architectures that are both high-performing and computationally efficient. Traditional Neural Architecture Search (NAS) methods often focus on operation selection within fixed topologies or rely on hand-crafted backbone motifs. AutoShrink introduces a topology-aware NAS that discovers efficient building blocks by progressively shrinking edges from a complete graph. This method significantly reduces search time while discovering architectures that outperform state-of-the-art models in efficiency and accuracy.

Introduction

The deployment of Deep Neural Networks (DNNs) on mobile and edge devices is constrained by strict memory and computational budgets. While Neural Architecture Search (NAS) has automated the design process, many existing approaches are "topology-agnostic." Cell-based methods often use rigid, hand-crafted motifs (e.g., MobileNetV2 blocks), while node-based methods fix the graph topology and only search for operations. Even unconstrained random-wiring approaches can lead to structural redundancy and memory bloat. AutoShrink addresses these limitations by jointly optimizing operations and information flow (wiring) between nodes without the typical computational overhead associated with large-scale search spaces.

Methodology: The AutoShrink Algorithm

AutoShrink models a neural network cell as a Directed Acyclic Graph (DAG), where nodes represent operations and edges represent tensor flow. The search process is characterized by four primary stages:

  1. Complete DAG Initialization: The search begins with a fully connected DAG where every node is connected to every subsequent node, representing the maximum possible search space.
  2. Edge Shrinking: The algorithm iteratively optimizes the cell structure by removing one edge at a time, effectively pruning connections that do not contribute significantly to performance.
  3. K-Candidate Selection: To maintain computational efficiency, AutoShrink randomly selects $K$ candidate graphs (each with one edge removed). These candidates are briefly trained and evaluated.
  4. Resource-Aware Evaluation: The evaluation metric incorporates both accuracy (or perplexity) and resource consumption (MACs and parameter count), steering the search toward lightweight architectures.
The AutoShrink search pipeline: (A) Initial topology, (B) K-candidate selection, (C) Evaluation using proxy datasets and metrics, and (D) Updating the base topology.

By starting with a complex graph and progressively removing edges, the search space intrinsically shrinks over time. This prevents combinatorial explosion and allows the algorithm to accumulate topological knowledge, compensating for the aggressive random sampling used to accelerate the search.

Experimental Results

AutoShrink was evaluated on standard benchmarks including CIFAR-10, ImageNet-1K, and Penn Treebank (PTB). The search process proved remarkably efficient, requiring only 1.5 GPU hours for both CNN and RNN discovery—up to 16x faster than existing methods like DARTS.

CNN Efficiency (ShrinkCNN)

The discovered ShrinkCNN achieved a 24.9% Top-1 error on ImageNet-1K with only 3.6M parameters and 0.385G MACs. Compared to the manually designed MobileNetV2, this represents a 48% reduction in parameters and a 34% reduction in MACs while maintaining comparable accuracy.

The discovered ShrinkCNN cell architecture, illustrating the optimized wiring and diverse node operations (e.g., SepConv3x3, Conv1x1).

RNN Efficiency (ShrinkRNN)

For language modeling, ShrinkRNN achieved a test perplexity of 56.5 on the Penn Treebank dataset. It matched the performance of state-of-the-art models like ENAS and DARTS but was discovered at a significantly lower search cost.

Conclusion

AutoShrink demonstrates that a topology-aware, "shrink-based" approach to NAS can discover highly efficient neural architectures with minimal computational overhead. By treating the wiring of the network as a primary search target and using resource-aware metrics, the method bridges the gap between automated design and the practical constraints of edge deployment. Future work may extend this framework to other complex domains beyond classification and language modeling.

Summary updated

BibTeX
@inproceedings{zhang2020autoshrink,
  author = {Tunhou Zhang and Hsin-Pai Cheng and Zhenwen Li and Feng Yan and Chengyu Huang and Hai Helen Li and Yiran Chen},
  title = {{AutoShrink: A Topology-aware NAS for Discovering Efficient Neural Architecture}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2020},
  doi = {10.1609/aaai.v34i04.6163},
}
Figure