NAT: Neural Architecture Transformer for Accurate and Compact Architectures

Yong Guo, Yin Zheng, Mingkui Tan, Qi Chen, Jian Chen +2 more
10/31/2019
cs.LGstat.ML
transformer-attentionrl

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

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-searched architecture may still contain many non-significant or redundant modules or operations (e.g., convolution or pooling), which may not only incur substantial memory consumption and computation cost but also deteriorate the performance. Thus, it is necessary to optimize the operations inside an architecture to improve the performance without introducing extra computation cost. Unfortunately, such a constrained optimization problem is NP-hard. To make the problem feasible, we cast the optimization problem into a Markov decision process (MDP) and seek to learn a Neural Architecture Transformer (NAT) to replace the redundant operations with the more computationally efficient ones (e.g., skip connection or directly removing the connection). Based on MDP, we learn NAT by exploiting reinforcement learning to obtain the optimization policies w.r.t. different architectures. To verify the effectiveness of the proposed strategies, we apply NAT on both hand-crafted architectures and NAS based architectures. Extensive experiments on two benchmark datasets, i.e., CIFAR-10 and ImageNet, demonstrate that the transformed architecture by NAT significantly outperforms both its original form and those architectures optimized by existing methods.

View on arXivView PDF

Code Implementations(1)

guoyongcs/NATOfficial100%

Implementation for NAT.

5712PythonSep 29, 20196 years ago

Similar Papers

Cite this paper

@article{guo2019nat,
  title  = {NAT: Neural Architecture Transformer for Accurate and Compact Architectures},
  author = {Yong Guo and Yin Zheng and Mingkui Tan and Qi Chen and Jian Chen and Peilin Zhao and Junzhou Huang},
  year   = {2019},
  eprint = {1910.14488},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1910.14488}
}

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/1910.14488.svg)](https://codeofpaper.com/paper/1910.14488)

Discussion