BlockQNN: Efficient Block-wise Neural Network Architecture Generation

Zhao Zhong, Zichen Yang, Boyang Deng, Junjie Yan, Wei Wu, Jing Shao, Cheng-Lin LiuIEEE TPAMI 2018

TL;DR

This paper introduces BlockQNN, a novel framework that uses Q-learning to automatically design high-performance neural network blocks, which are then stacked to form complete architectures. This block-wise approach significantly reduces the search space and computational cost compared to existing methods, achieving state-of-the-art results on image classification tasks and demonstrating strong transferability to larger datasets like ImageNet.

What Problem Does This Paper Address?

Designing effective Convolutional Neural Network (CNN) architectures for computer vision tasks has traditionally been a labor-intensive process, heavily relying on expert knowledge and manual trial-and-error. While automated neural architecture search (NAS) methods exist, they often suffer from massive search spaces and prohibitive computational costs, especially for large datasets. Furthermore, architectures designed for one dataset may not generalize well to others. This paper tackles these challenges by proposing an efficient and generalizable method for automatically generating reusable neural network blocks rather than entire networks from scratch.

Methods

The core of BlockQNN is a Q-learning agent that learns to construct optimal neural network blocks. Instead of designing layer by layer, the agent sequentially selects components to build a "block" – a fundamental, repeatable unit similar to Inception or ResNet blocks. This block-wise approach drastically prunes the search space.

Key methodological contributions include:

  • Q-Learning for Block Design: The agent uses Q-learning to explore the space of possible block structures, represented by a novel "Network Structure Code" (NSC).
  • Distributed Asynchronous Framework: To accelerate training, a distributed system with a master node, controller node, and compute nodes is employed.
  • Early Stop Strategy with Reward Redefinition: To further speed up the search, an early stop strategy is introduced. To mitigate accuracy loss from early stopping, the reward function is redefined to incorporate not only validation accuracy but also negative correlations with FLOPs and density, ensuring that blocks with good performance-to-complexity ratios are favored.
  • Faster BlockQNN with Performance Prediction: A faster version is proposed that uses a predictive model (based on LSTMs and MLPs) to estimate network performance before full training, significantly reducing computational demands.
  • Block Connection Exploration: Beyond just block design, the framework also explores optimal ways to connect these blocks, moving beyond simple sequential stacking.

Datasets

  • CIFAR-10: Used for training and evaluation, achieving a top-1 error rate of 2.35%.
  • CIFAR-100: Used for training and evaluation, with the best generated network achieving a 14.83% error rate.
  • ImageNet: Used to evaluate the transferability and generalizability of blocks trained on CIFAR. The best network achieved 82.0% top-1 and 96.0% top-5 accuracy.
  • MPII: Used for an additional experiment on person keypoints task.
  • COCO: Used to evaluate the transferability of the model trained on MPII.

Key Insights and Ideas

  • Block-wise design is a game-changer: By focusing on generating reusable blocks rather than entire networks, the search space is dramatically reduced, making automated architecture design more feasible and efficient.
  • Q-learning is effective for structural search: The reinforcement learning paradigm, specifically Q-learning, proves adept at navigating the complex space of neural network block structures.
  • Early stopping can be salvaged: While early stopping saves time, it can sacrifice accuracy. By redefining the reward function to penalize complexity (FLOPs, density), the system can effectively balance speed and performance.
  • Transferability is a key advantage: Blocks learned on smaller datasets like CIFAR can be effectively transferred to larger, more complex datasets like ImageNet, showcasing the generality of the learned block structures.
  • Beyond sequential stacking: Simple sequential connection of blocks is not always optimal. Exploring different connection styles can further boost performance.

Key Results

  • State-of-the-art performance: BlockQNN achieved a top-1 error rate of 2.35% on CIFAR-10, outperforming many hand-crafted and existing auto-generated networks.
  • Efficiency: The full BlockQNN framework took only 3 days with 32 GPUs to search for optimal blocks on CIFAR.
  • Faster BlockQNN: A significantly accelerated version achieved comparable results with just 1 GPU in 20 hours, making automated design accessible to more researchers.
  • ImageNet performance: The best generated network achieved 82.0% top-1 and 96.0% top-5 accuracy on ImageNet, demonstrating strong transferability.
  • Improved block connection: Exploring block connection styles led to better performance than simple sequential stacking.

Limitations and Future Work

  • Dataset-specific block connections: While block structures are transferable, the optimal connection style between blocks can be dataset-specific, limiting universal applicability in this aspect.
  • Future Work: The authors plan to extend their framework to automatically generate backbone networks for other tasks like detection, segmentation, and tracking. They also aim to unify the automatic generation of network architecture, preprocessing, and training hyperparameters into a single framework.

Summary updated

BibTeX
@article{zhong2018blockqnn,
  author = {Zhao Zhong and Zichen Yang and Boyang Deng and Junjie Yan and Wei Wu and Jing Shao and Cheng-Lin Liu},
  title = {{BlockQNN: Efficient Block-wise Neural Network Architecture Generation}},
  journal = {IEEE Trans. Pattern Anal. Mach. Intell.},
  year = {2018},
  url = {https://openreview.net/forum?id=0o_iazmtmCX},
}
Figure