AutoBSS: An Efficient Algorithm for Block Stacking Style Search

Yikang Zhang, Jian Zhang, Zhao ZhongNeurIPS 2020

TL;DR

AutoBSS is an efficient AutoML algorithm that optimizes the "macro" structure of neural networks—specifically, how many blocks to stack in each stage and how many channels to assign them. By using Bayesian Optimization paired with clever refinement and clustering techniques, it finds configurations that significantly outperform human-designed baselines (e.g., boosting ResNet50 by over 2%) in just a few dozen trials.

What Problem Does This Paper Address?

In the world of Convolutional Neural Networks (CNNs), researchers usually focus on two things: designing a better "building block" (like the ResNet bottleneck) or finding complex internal wiring (micro-search). However, the high-level configuration—Block Stacking Style (BSS)—is often left to simple rules of thumb.

Common "human" rules include:

  1. Doubling the number of channels whenever the feature map is downsampled.
  2. Placing more blocks in the middle stages of the network.

The authors argue that these heuristic designs are sub-optimal. While Neural Architecture Search (NAS) could theoretically solve this, the search space for BSS is massive and discrete. Existing NAS methods often rely on "biased" evaluation tricks like weight-sharing or early stopping, which can lead to inaccurate rankings. AutoBSS aims to find the optimal macro-structure efficiently enough to use "unbiased" evaluation (training models to completion).

Methods: The AutoBSS Framework

The authors propose AutoBSS, a framework based on Bayesian Optimization (BO). Since BO typically struggles with large, discrete search spaces, they introduced key innovations to make the search tractable:

AutoBSS Pipeline
  1. Block Stacking Style Coding (BSSC): They represent a network configuration as a fixed-length vector (coding).
  2. BSSC Refining: BO relies on the assumption that similar inputs produce similar outputs (Lipschitz continuity). To make this true for neural networks, they use a linear layer to transform the raw BSSC into a refined space where the Euclidean distance between two codes correlates linearly with their difference in accuracy.
  3. BSS Clustering: To handle the huge search space, they use k-means clustering to group similar configurations. Instead of searching every possible point, the algorithm searches over cluster centers. This ensures the sampled models are diverse and prevents the search from getting stuck in local optima.
  4. Candidate Set Construction: They use a recursive approximation method to sample a subset of 10,000 "promising" configurations from the near-infinite search space to act as the pool for the BO search.

Crucially, because the search is so efficient (only ~64 trials), they can afford to train each sampled network fully, avoiding the noise introduced by the "proxy" evaluations used in other NAS methods.

Key Insights and Ideas

  • Macro Matters: The way you stack blocks is just as important as the block design itself. You can take a "solved" architecture like ResNet50 and find significant gains just by re-allocating the computation.
  • Human Intuition is Flawed: AutoBSS discovered that the "uniform" or "pyramidal" allocation of FLOPs favored by humans isn't ideal.
  • Late-Stage Heavy: The searched models tended to allocate more FLOPs to the later stages of the network. The authors hypothesize that while low-level features in early layers are important, the complex semantic features in later layers require more "delicate" extraction via more channels or deeper stacks.
  • Efficiency via Priors: By assuming that "similar configurations have similar performance," the authors turned a needle-in-a-haystack search into a manageable optimization problem.

Key Results

The performance gains across different architectures were substantial, often achieved with fewer parameters or FLOPs than the original human-designed networks:

Performance Comparison Table
  • ResNet50: Jumped from 77.09% to 79.29% on ImageNet (a +2.2% absolute gain).
  • MobileNetV2: Improved from 72.13% to 74.50%.
  • EfficientNet-B0: Even though EfficientNet was already optimized via NAS, AutoBSS found a style that improved it from 77.10% to 77.79%.
  • Model Compression: When constrained to very low FLOP counts (130M), AutoBSS outperformed specialized pruning methods like Meta Pruning and ThiNet, suggesting that "searching for a small style" is better than "pruning a large one."
  • Generalization: A BSS searched for Mask R-CNN on COCO improved the bounding box AP by 0.91% and mask AP by 0.63% without any extra tuning.

Limitations and Future Work

  • Search Cost: While 64 trials is "efficient" for NAS, it still requires training 64 full models on ImageNet. This is significantly more expensive than "one-shot" NAS methods, though the authors argue the accuracy gain justifies the cost.
  • Decoupled Search: Currently, the algorithm searches for the stacking style given a fixed block type. The authors suggest that a joint search—optimizing the internal block topology and the stacking style simultaneously—could yield even better results.
  • Hardware Specifics: The paper focuses on FLOPs as a constraint. Future work could incorporate hardware-specific latency (e.g., on mobile vs. GPU) directly into the search objective.

Summary updated

BibTeX
@inproceedings{zhang2020autobss,
  author = {Yikang Zhang and Jian Zhang and Zhao Zhong},
  title = {{AutoBSS: An Efficient Algorithm for Block Stacking Style Search}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2020},
  url = {https://openreview.net/forum?id=idMsPJ03G_B},
}
Figure