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:
- Rigid Structure: Channels are typically split into fixed, contiguous blocks, ignoring the actual data flow and inter-channel dependencies.
- Manual Tuning: Determining the optimal number of groups is a trial-and-error process, often constrained to powers of two for hardware convenience.
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.
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