Revisiting Parameter Sharing for Automatic Neural Channel Number Search

Jiaxing Wang, Haoli Bai, Jiaxiang Wu, Xupeng Shi, Junzhou Huang, Irwin King, Michael R. Lyu, Jian ChengNeurIPS 2020

TL;DR

This paper introduces Affine Parameter Sharing (APS), a unified framework for analyzing how parameter sharing impacts neural architecture search for convolutional neural network channel numbers. They propose a "transitionary" APS strategy that dynamically adjusts sharing levels to balance efficient training with discriminative architecture selection, achieving superior results on benchmark datasets.

What Problem Does This Paper Address?

Designing efficient convolutional neural networks (CNNs) for resource-constrained devices is crucial. Neural Architecture Search (NAS) has become a popular method for automating this, particularly for determining the optimal number of channels in each layer (Channel Number Search or CNS). To speed up the computationally intensive NAS process, parameter sharing is widely adopted, where parameters from different candidate network architectures are reused. However, the exact mechanism and impact of this parameter sharing on the search process remain unclear. Specifically, it's unknown how it affects both the efficiency of training candidate architectures and the ability to distinguish between good and bad architectures. This paper aims to fill this gap by providing a formal analysis of parameter sharing and proposing a more effective strategy.

Methods

The core contribution is the Affine Parameter Sharing (APS) framework. APS unifies existing parameter sharing heuristics by representing candidate kernels as affine transformations of shared "meta-weights." This allows for a quantitative analysis of the "sharing level" (how much parameters are shared) using a novel metric based on the cross-covariance matrix between candidate kernels.

The paper then analyzes the trade-offs:

  • High sharing level: Accelerates training by aligning gradients across candidates, leading to faster accuracy gains. However, it couples the optimization of different architectures, making them less distinguishable.
  • Low sharing level: Improves architecture discrimination but requires more training iterations.

To strike a balance, they propose Transitionary APS (APS-T). This strategy starts with a high sharing level (akin to ordinal selection) to quickly warm up the network and accelerate early training. Then, the sharing level is gradually annealed (reduced) over time, promoting better architecture discrimination in later stages. This transition is achieved by optimizing the transformation matrices (P and Q) that define the affine transformations, using a projected gradient descent approach.

Datasets

The experiments were conducted on:

  • CIFAR-10
  • ImageNet 2012

Key Insights and Ideas

  • Parameter sharing is a double-edged sword: It significantly speeds up the search by allowing gradients to benefit multiple architectures simultaneously. However, this comes at the cost of making architectures less distinct from each other, potentially hindering the controller's ability to pick the best one.
  • A unified view of heuristics: APS provides a general framework that encompasses previous methods like ordinal and independent selection, allowing for a more systematic study of their properties.
  • The "sweet spot" for sharing: There's a critical trade-off between search efficiency and architecture discrimination. Neither maximum nor minimum sharing is optimal; a dynamic approach is needed.
  • Transitionary APS works: By starting with high sharing and gradually reducing it, APS-T effectively leverages the benefits of both fast training and good discrimination, leading to better final architectures.

Key Results

  • Faster Training: APS-T and APS-O (maximum sharing) show significantly faster accuracy gains during the initial training phases compared to APS-I (minimum sharing).
  • Improved Discrimination: APS-T demonstrates better architecture discrimination, as evidenced by the controller's more confident layer-wise channel decisions, leading to more stable attainment of optimal architectures.
  • State-of-the-Art Performance: APS-T outperforms existing state-of-the-art methods (including hand-crafted and automatic approaches) on both CIFAR-10 and ImageNet datasets, achieving comparable or better accuracy with reduced FLOPs. For instance, on CIFAR-10 with ResNet-20, APS-T achieved 93.14% accuracy with 41.7M FLOPs, outperforming other methods. On ImageNet with ResNet-18, it achieved 69.34% top-1 accuracy with a 41.8% FLOPs reduction.

Limitations and Future Work

  • Limited to Channel Number Search: The current framework and analysis are focused on channel number search. The authors suggest that the insights might be generalizable to other NAS tasks.
  • Computational Cost: While APS-T improves efficiency, NAS is still computationally intensive. Further research could explore more efficient search strategies.
  • Broader Impact: The authors believe their work can inspire more general NAS algorithms that are both efficient and accurate, benefiting the broader field of AutoML. They also highlight the need to consider potential risks associated with automated AI services, such as data privacy and over-reliance on models.

Summary updated

BibTeX
@inproceedings{wang2020revisiting,
  author = {Jiaxing Wang and Haoli Bai and Jiaxiang Wu and Xupeng Shi and Junzhou Huang and Irwin King and Michael R. Lyu and Jian Cheng},
  title = {{Revisiting Parameter Sharing for Automatic Neural Channel Number Search}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2020},
  url = {https://openreview.net/forum?id=Etdsh4PwEwQ},
}
Figure