Fully Learnable Group Convolution for Acceleration of Deep Neural Networks

Xijun Wang, Meina Kan, Shiguang Shan, Xilin Chen

Abstract

Deep neural networks are increasingly deployed on resource-constrained mobile devices, necessitating efficient architectural designs. Group convolutions are a popular solution but often rely on rigid, manually-defined structures. This paper introduces Fully Learnable Group Convolution (FLGC), which automates the grouping process by learning it end-to-end during training. FLGC achieves up to a $5\times$ practical speedup on standard CPUs for ResNet50 with negligible accuracy loss, outperforming state-of-the-art manually designed and pruned architectures.

Introduction: The Limitations of Rigid Grouping

Standard Convolutional Neural Networks (CNNs) are computationally expensive. Group convolutions, where input channels are partitioned into independent groups, significantly reduce parameters and computation. However, traditional implementations (e.g., ResNeXt, ShuffleNet) suffer from two primary drawbacks:

  1. Rigid Structure: Channels are typically split into fixed, contiguous blocks, ignoring the actual data flow and inter-channel dependencies.
  2. Manual Tuning: Determining the optimal number of groups is a trial-and-error process, often constrained to powers of two for hardware convenience.
Comparison of different convolution types: (a) Normal, (b) Standard Group, (c) ShuffleNet, and (d) the proposed FLGC.

FLGC addresses these issues by making the grouping structure fully learnable, allowing the network to dynamically determine which input channels and filters belong together.

Methodology: Learning the Grouping Structure

The core of FLGC is treating the grouping of input channels and filters as a differentiable optimization problem.

Differentiable Selection

The authors represent the assignment of input channels and filters to groups using binary selection matrices. To enable gradient-based optimization, they employ a Softmax trick: "meta-selection matrices" are passed through a Softmax function during training. This creates a continuous approximation of the discrete binary choices, allowing the network to "decide" the optimal connections via standard Stochastic Gradient Descent (SGD).

Index-Reordering for Efficient Inference

A key challenge with learned grouping is that it can result in non-contiguous memory access, which is slow on real hardware. To solve this, FLGC uses an Index-Reordering strategy. During the transition from training to testing, the learned groups are reorganized into contiguous memory blocks. This ensures that the final model runs as efficiently as a standard, hard-coded group convolution.

The FLGC mechanism during training (differentiable selection) and testing (reordered for efficiency).

Experimental Evaluation

The authors evaluated FLGC on standard benchmarks including CIFAR-10, ImageNet, and face verification tasks (CASIA-WebFace, LFW).

ResNet50 Acceleration

On ImageNet, applying FLGC to ResNet50 yielded a theoretical $18\times$ reduction in Multi-Adds. More importantly, it achieved a $5\times$ practical speedup on a single-core CPU while maintaining comparable accuracy to the vanilla model.

Comparison with State-of-the-Art

FLGC was integrated into the CondenseNet architecture. The resulting CondenseNet-FLGC achieved a Top-1 error of 25.3% on ImageNet, outperforming the original CondenseNet (26.2%) and ShuffleNet V2 (26.3%) at similar complexity levels. Unlike pruning methods, FLGC does not require a complex multi-stage pipeline (train-prune-finetune), as the structure is learned simultaneously with the weights.

Conclusion

Fully Learnable Group Convolution represents a significant step toward automating the design of efficient neural networks. By breaking the "power-of-two" rule and targeting the 1x1 convolution bottleneck, FLGC provides a fine-grained trade-off between speed and accuracy. Its ability to learn optimal structures end-to-end makes it a powerful tool for deploying high-performance models on mobile and embedded devices.

Summary updated

BibTeX
@inproceedings{wang2019fully,
  author = {Xijun Wang and Meina Kan and Shiguang Shan and Xilin Chen},
  title = {{Fully Learnable Group Convolution for Acceleration of Deep Neural Networks}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2019},
  doi = {10.1109/cvpr.2019.00926},
}
Figure