Abstract
Designing high-performance Convolutional Neural Networks (CNNs) has traditionally required significant manual expertise and trial-and-error. While early Neural Architecture Search (NAS) aimed to automate this process, it was often computationally prohibitive. This paper introduces BlockQNN, an automated pipeline that utilizes reinforcement learning (Q-Learning) to design optimized network "blocks." By stacking these modular components, BlockQNN achieves state-of-the-art performance on CIFAR-10 with a 3.54% error rate, while reducing the search time to just three days on 32 GPUs.
Introduction
The evolution of CNN architectures, from AlexNet to ResNet, reflects a transition from simple linear stacks to complex, modular designs. However, manual design is an "art" that is difficult to scale. Early automated approaches like the original NAS faced astronomical computational costs—requiring hundreds of GPUs for weeks—and often lacked generalizability across different datasets.
BlockQNN addresses these challenges by focusing on the design of a small, complex module—a "block"—which is then repeated to construct the full network. This modular approach significantly constrains the search space without sacrificing the potential for deep, high-performance topologies.
Methodology: The BlockQNN Framework
BlockQNN treats architecture generation as a reinforcement learning problem governed by a Q-learning agent.
Q-Learning Paradigm and NSC
The agent constructs a block by sequentially selecting components defined by a Network Structure Code (NSC). Each NSC is a 5D vector specifying the layer index, operation type (e.g., convolution, pooling), kernel size, and up to two predecessor layers. This representation enables the discovery of complex topologies, including multi-branch structures and shortcut connections.
Pre-activation Convolutional Cell (PCC)
To streamline the search process, the authors introduced the Pre-activation Convolutional Cell (PCC). A PCC groups ReLU, Convolution, and Batch Normalization into a single atomic unit. This abstraction reduces the number of steps required for the agent to form a functional block, enhancing search efficiency.
Reward Shaping and Distributed Evaluation
To avoid the bottleneck of training every candidate to full convergence, BlockQNN employs early stopping. A redefined reward function is used to mitigate the noise of early-stop signals. This function incorporates penalties for high computational complexity (FLOPs) and excessive connection density, guiding the agent toward efficient yet powerful models. The evaluation is performed across a distributed framework of 32 GPUs.
Experimental Results
The effectiveness of BlockQNN was validated across several benchmark datasets, primarily using CIFAR-100 for the initial search.
- Efficiency: The optimal architecture was discovered in just 3 days using 32 GPUs, a massive improvement over previous NAS methods which took 28 days on 800 GPUs.
- Performance: On CIFAR-10, the generated model achieved a 3.54% top-1 error rate, outperforming many hand-crafted models and contemporary auto-generated networks.
- Transferability: Blocks discovered on CIFAR-100 were successfully applied to ImageNet, achieving a competitive 22.6% Top-1 error (Block-QNN-S), demonstrating that modular blocks can scale to large-scale real-world tasks.
- Generalization: Further experiments on MPII and COCO showed the blocks' utility in diverse tasks such as person key-point detection.
Conclusion
BlockQNN demonstrates that reinforcement learning can effectively automate the design of sophisticated neural network modules. By focusing on blocks rather than entire architectures, the search space becomes manageable, and the resulting designs are both high-performing and transferable. The agent's independent discovery of "expert" features like shortcut connections validates the mathematical optimality of these strategies. Future work may involve incorporating advanced operations like depth-wise separable convolutions to further push the boundaries of efficiency.
Summary updated