Auto-Keras: An Efficient Neural Architecture Search System

Haifeng Jin, Qingquan Song, Xia Hu

TL;DR

This paper introduces Auto-Keras, an efficient system for automatically designing neural network architectures (Neural Architecture Search or NAS). It combines Bayesian optimization with a novel "network morphism" technique to explore the vast space of possible architectures more effectively, significantly reducing the computational cost typically associated with NAS.

What Problem Does This Paper Address?

Designing optimal neural network architectures for specific tasks is a crucial but incredibly challenging problem. Traditional methods often involve manual design by experts or computationally expensive automated search algorithms. Existing automated methods like NASNet and PNAS, while powerful, suffer from prohibitive computational costs, requiring extensive training of numerous network architectures from scratch. This makes them inaccessible for many researchers and practitioners. The paper aims to bridge this gap by developing a more efficient NAS approach that drastically reduces the search time and computational resources needed.

Methods

The core innovation lies in combining Bayesian Optimization (BO) with Network Morphism.

  • Bayesian Optimization: BO is a powerful technique for optimizing expensive black-box functions. Here, it's used to intelligently guide the search for the best neural architecture. Instead of randomly exploring, BO builds a probabilistic model of the search space and uses an acquisition function to decide which architecture to evaluate next, balancing exploration (trying new areas) and exploitation (refining promising ones).
  • Network Morphism: This technique allows modifying an existing neural network's architecture while preserving its functionality. This is key because it means new architectures don't need to be trained from scratch; they can be evolved from existing ones with only a few additional training epochs. This significantly reduces the "evaluation cost" in BO.
  • Neural Network Kernel: A novel kernel function is introduced to measure the "edit distance" between two neural network architectures. This kernel is designed to work with the tree-structured search space of network morphisms, allowing BO to operate effectively even though neural architectures aren't easily represented as fixed-length vectors in Euclidean space.
  • Tree-Structured Acquisition Function Optimization: Traditional BO methods optimize acquisition functions in Euclidean space. This paper proposes a method to optimize the acquisition function within the tree-structured search space generated by network morphisms.
  • Graph-Level Network Morphism: To handle the complex interdependencies within a network, a graph-level approach is used to ensure that changes made by network morphism operations maintain consistency across the entire network.
  • Auto-Keras System: The paper presents an open-source AutoML system, Auto-Keras, built upon these methods. It leverages parallel processing on CPUs and GPUs and includes adaptive strategies for different GPU memory constraints.

Datasets

The following benchmark datasets were used for training and evaluation:

  • MNIST
  • CIFAR10
  • FASHION-MNIST

The paper does not introduce new benchmarks.

Key Insights and Ideas

  • Network Morphism as a Game-Changer for NAS Efficiency: The core insight is that network morphism can dramatically reduce the computational burden of NAS by allowing incremental updates to architectures rather than full retraining. This makes NAS feasible within practical time and resource constraints.
  • Bridging the Gap Between BO and Non-Euclidean Search Spaces: The development of a specialized neural network kernel based on edit distance is crucial. It allows Bayesian optimization, which typically works with Euclidean data, to effectively navigate the discrete, tree-like search space of network architectures.
  • Balancing Exploration and Exploitation in a Tree Structure: The paper tackles the challenge of optimizing acquisition functions in a non-Euclidean, tree-structured space, which is a significant departure from standard BO applications.
  • Practical AutoML System: The successful implementation of Auto-Keras demonstrates that these advanced NAS techniques can be packaged into a user-friendly, open-source system, democratizing access to powerful deep learning model design.

Key Results

  • State-of-the-Art Performance: Auto-Keras (AK and AK-DP) achieved the lowest error rates on MNIST, CIFAR10, and FASHION-MNIST datasets compared to various baselines, including random search, grid search, SPMT, SMAC, SEAS, and NASBOT.
  • Significant Efficiency Gains:
    • Comparing AK with BFS (which uses network morphism but not BO), AK achieved a much lower error rate with a similar number of searched architectures, highlighting the benefit of BO.
  • Comparing AK with BO (which uses BO but not network morphism), AK searched significantly more architectures within the same time frame, demonstrating the efficiency boost from network morphism.
  • Robustness to Hyperparameters: Parameter sensitivity analysis showed that the proposed method is relatively robust, with optimal performance achieved within a reasonable range for key parameters like $\beta$ (balancing exploration/exploitation) and $\lambda$ (balancing layer vs. skip-connection distance).
  • Kernel Quality: The proposed kernel matrix showed a strong correlation with the performance similarity matrix of neural architectures, indicating its effectiveness in capturing meaningful architectural relationships.

Limitations and Future Work

  • Limitations:
    • The paper acknowledges that the current implementation primarily focuses on convolutional neural networks and does not yet support recurrent neural networks.
  • The search space is limited by the defined network morphism operations.
  • Future Work:
    • Expand the search space to include recurrent neural networks.
  • Jointly tune neural architecture and training process hyperparameters.
  • Develop task-oriented NAS for specific problems like image segmentation and object detection.

Summary updated

BibTeX
@inproceedings{jin2019auto,
  author = {Haifeng Jin and Qingquan Song and Xia Hu},
  title = {{Auto-Keras: An Efficient Neural Architecture Search System}},
  booktitle = {ACM SIGKDD Conference on Knowledge Discovery and Data Mining},
  year = {2019},
  url = {https://openreview.net/forum?id=HCMzWRo6G5},
}
Figure