Neural Architecture Transfer

Zhichao Lu, Gautam Sreekumar, Erik D. Goodman, Wolfgang Banzhaf, Kalyanmoy Deb, Vishnu Naresh Boddeti · DOI

Abstract: Neural architecture search (NAS) has emerged as a promising avenue for automatically designing task-specific neural networks. Existing NAS approaches require one complete search for each deployment specification of hardware or objective. This is a computationally impractical endeavor given the potentially large number of application scenarios. In this paper, we propose Neural Architecture Transfer (NAT) to overcome this limitation. NAT is designed to efficiently generate task-specific custom models that are competitive under multiple conflicting objectives. To realize this goal we learn task-specific supernets from which specialized subnets can be sampled without any additional training. The key to our approach is an integrated online transfer learning and many-objective evolutionary search procedure. A pre-trained supernet is iteratively adapted while simultaneously searching for task-specific subnets. We demonstrate the efficacy of NAT on 11 benchmark image classification tasks ranging from large-scale multi-class to small-scale fine-grained datasets. In all cases, including ImageNet, NATNets improve upon the state-of-the-art under mobile settings ($\leq$ 600M Multiply-Adds). Surprisingly, small-scale fine-grained datasets benefit the most from NAT. At the same time, the architecture search and transfer is orders of magnitude more efficient than existing NAS methods. Overall, the experimental evaluation indicates that, across diverse image classification tasks and computational objectives, NAT is an appreciably more effective alternative to conventional transfer learning of fine-tuning weights of an existing network architecture learned on standard datasets.

Introduction

Designing the optimal neural network for a specific task and hardware target remains a significant bottleneck in AI deployment. Currently, practitioners typically choose between two sub-optimal paths: standard transfer learning, which fine-tunes the weights of a fixed architecture (like ResNet) pre-trained on ImageNet, or Neural Architecture Search (NAS), which automatically searches for a custom architecture from scratch. While powerful, standard NAS is computationally expensive, often requiring a fresh search for every new dataset or hardware constraint.

Neural Architecture Transfer (NAT) addresses this "efficiency gap" by transferring architectural knowledge alongside weights. NAT efficiently generates task-specific, high-performance networks by simultaneously optimizing both topology and parameters through an integrated online evolutionary search.

The NAT Framework

NAT's core innovation is the integrated online transfer learning and many-objective evolutionary search. Instead of training a model from scratch, NAT starts with a supernet—a large network containing billions of possible sub-networks (subnets) that share weights.

The NAT framework alternates between supernet adaptation and evolutionary search to efficiently find task-specific architectures.

The process follows an iterative loop:

  1. Many-Objective Evolutionary Search: Using the NSGA-III algorithm, NAT searches for subnets that provide the best trade-offs between multiple conflicting objectives, such as maximizing accuracy while minimizing model size and latency.
  2. Online Accuracy Predictor: To avoid the cost of evaluating every subnet, NAT uses an ensemble of Radial Basis Function (RBF) models to predict performance. This predictor is trained online only on the promising architectures found during the search, ensuring high sample efficiency.
  3. Supernet Adaptation: Instead of training the entire supernet, NAT fine-tunes only the weights of the subnets currently on the "Pareto front" (the best trade-off models). This solves the dependency between finding good subnets and having a well-trained supernet.

Search Space and Encoding

The search space is based on the MobileNetV2 family, allowing NAT to tune input resolution, width multipliers, and layer-specific parameters like kernel sizes and expansion ratios.

The encoding scheme for NAT, focusing on variants of the inverted residual bottleneck block across multiple stages.

As shown in the encoding scheme, the architecture is represented as a vector where each element corresponds to a specific architectural choice (e.g., expansion ratio $E$, kernel size $K$, or skipping a layer). This structured representation allows the evolutionary algorithm to efficiently navigate the vast search space.

Experimental Evaluation

NAT was evaluated across 11 benchmark image classification tasks, including large-scale multi-class (ImageNet, CINIC-10), medium-scale (CIFAR-10/100), and several fine-grained recognition datasets (Food-101, Stanford Cars, etc.).

Key Results

  • State-of-the-Art Performance: Under mobile constraints ($\leq$ 600M Multiply-Adds), NATNets achieved a new Top-1 accuracy record of 80.5% on ImageNet.
  • Efficiency Gains: NAT is orders of magnitude faster than traditional NAS. For CIFAR-10, NAT requires approximately 0.1k GPU hours, compared to 16k for NASNet or 0.6k for PNASNet.
  • Superiority over Manual Design: NAT-M1 outperformed MobileNetV3 on ImageNet by 2.3% in accuracy while maintaining similar efficiency.
  • Small Data Benefits: NAT provided the most significant relative boosts on small-scale, fine-grained datasets, where standard architectures often lack the appropriate inductive bias.

Conclusion

Neural Architecture Transfer demonstrates that topology matters in transfer learning. By treating accuracy and hardware constraints as separate objectives, NAT provides a diverse set of optimal models in a single run. This allows developers to select the best model for their specific hardware after the search is complete. While the initial supernet pre-training involves a one-time cost, the subsequent transfer is highly efficient, making custom NAS practical for a wide range of downstream applications.

Summary updated

BibTeX
@article{lu2020neural,
  author = {Zhichao Lu and Gautam Sreekumar and Erik D. Goodman and Wolfgang Banzhaf and Kalyanmoy Deb and Vishnu Naresh Boddeti},
  title = {{Neural Architecture Transfer}},
  journal = {IEEE Trans. Pattern Anal. Mach. Intell.},
  year = {2020},
  doi = {10.1109/tpami.2021.3052758},
}
Figure