Towards Accurate and Compact Architectures via Neural Architecture Transformer

Yong Guo, Yin Zheng, Mingkui Tan, Qi Chen, Zhipeng Li +3 more
2/20/2021
46 citations
cs.CV
transformer-attention

Official code: guoyongcs/NAT (57 stars, Python, last commit 2020-01-18). 1 more implementation below.

Abstract

Designing effective architectures is one of the key factors behind the success of deep neural networks. Existing deep architectures are either manually designed or automatically searched by some Neural Architecture Search (NAS) methods.

Show full abstract

However, even a well-designed/searched architecture may still contain many nonsignificant or redundant modules/operations. Thus, it is necessary to optimize the operations inside an architecture to improve the performance without introducing extra computational cost. To this end, we have proposed a Neural Architecture Transformer (NAT) method which casts the optimization problem into a Markov Decision Process (MDP) and seeks to replace the redundant operations with more efficient operations, such as skip or null connection. Note that NAT only considers a small number of possible transitions and thus comes with a limited search/transition space. As a result, such a small search space may hamper the performance of architecture optimization. To address this issue, we propose a Neural Architecture Transformer++ (NAT++) method which further enlarges the set of candidate transitions to improve the performance of architecture optimization. Specifically, we present a two-level transition rule to obtain valid transitions, i.e., allowing operations to have more efficient types (e.g., convolution->separable convolution) or smaller kernel sizes (e.g., 5x5->3x3). Note that different operations may have different valid transitions. We further propose a Binary-Masked Softmax (BMSoftmax) layer to omit the possible invalid transitions. Extensive experiments on several benchmark datasets show that the transformed architecture significantly outperforms both its original counterpart and the architectures optimized by existing methods.

View on arXivView PDF

Code Implementations(2)

Code implementations of this paper
RepositoryTypeStarsLanguageLicenseLast commit
guoyongcs/NATOfficial57Python–2020-01-18
guoyongcs/NATv2Official23Python–2021-02-20
guoyongcs/NATOfficial100%

Implementation for NAT.

5712PythonSep 29, 20196 years ago
guoyongcs/NATv2Official100%

Implementation for NATv2.

233PythonJan 8, 20205 years ago

Similar Papers

Cite this paper

@article{guo2021towards,
  title  = {Towards Accurate and Compact Architectures via Neural Architecture Transformer},
  author = {Yong Guo and Yin Zheng and Mingkui Tan and Qi Chen and Zhipeng Li and Jian Chen and Peilin Zhao and Junzhou Huang},
  year   = {2021},
  eprint = {2102.10301},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2102.10301}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2102.10301.svg)](https://codeofpaper.com/paper/2102.10301)

Discussion