NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Dynamic Group Convolution for Accelerating Convolutional Neural Networks

Zhuo Su, Linpu Fang, Wenxiong Kang, Dewen Hu, Matti Pietikäinen, Li Liu

Abstract

Standard group convolutions (SGC) are widely used to reduce the computational footprint of convolutional neural networks (CNNs) by partitioning channels into static groups. However, this fixed connectivity limits the network's representational power. We propose Dynamic Group Convolution (DGC), an approach that adaptively selects input channels for each group based on the specific input image. DGC utilizes a lightweight saliency generator and a gating mechanism to perform on-the-fly "rewiring," maintaining high efficiency while significantly improving accuracy. Our results on ImageNet and CIFAR benchmarks show that DGC consistently outperforms static group convolutions and existing pruning techniques.

Introduction

The deployment of deep neural networks on resource-constrained edge devices necessitates the development of compact architectures. Group convolution (SGC) has emerged as a standard technique to reduce parameters and Multiply-Accumulate (MAC) operations. Despite its efficiency, SGC suffers from a fundamental flaw: its connectivity is static. Once defined, the mapping between input and output channel groups remains fixed regardless of the input data.

Empirical observations suggest that the "importance" of an input channel to an output channel is highly dependent on the specific image being processed. As illustrated in Figure 1, the contribution of various input channels shifts dramatically between different samples. By forcing a sparse, static structure, standard group convolutions may permanently ignore features that are critical for certain inputs, leading to a loss in accuracy.

Input-dependent channel importance: The average activation contribution of input channels differs significantly between two different bird images, suggesting that static connectivity is suboptimal.

Dynamic Group Convolution Layer

The core of our proposal is the DGC layer, which replaces static connections with a dynamic feature selection mechanism. This allows the network to effectively "rewire" itself for every sample it processes.

Architecture and Gating

The DGC layer consists of several key components designed to facilitate dynamic connectivity with minimal overhead:

  1. Saliency Generator: Each group (or "head") in the convolution is paired with a small auxiliary module. This module uses Global Average Pooling to compress the input feature map into a vector, which is then processed by a small multi-layer perceptron (MLP) to generate "importance scores" for every input channel.
  2. Dynamic Gating: Based on the generated scores, the layer selects the top-$k$ most important channels for that specific group. Channels falling below the threshold are pruned on-the-fly for that specific sample, ensuring that only the most relevant information is processed.
  3. Diversified Heads: By equipping each head with its own saliency generator, different groups learn to attend to complementary features, mimicking the behavior of multi-head self-attention mechanisms.
The Dynamic Group Convolution (DGC) architecture. A saliency generator produces importance scores used by a gating mechanism to select the top-k channels for each head.

Training Strategy

Training a network with dynamic sparsity requires a stable approach to avoid convergence issues. We employ a gradual pruning strategy, where the network begins with full connectivity and the pruning rate is slowly increased throughout the training process. To encourage the saliency generators to be selective and sparse, we incorporate a Lasso ($L_1$) loss term into the objective function. This regularization forces the generators to identify a small subset of truly critical channels.

Experimental Results

We evaluated DGC by integrating it into several popular architectures, including ResNet-18, MobileNetV2, and CondenseNet.

ImageNet Classification

On the ILSVRC2012 (ImageNet) dataset, DGC demonstrated superior performance compared to traditional pruning methods. For instance, a ResNet-18 model using DGC achieved a 2.04x MAC saving with a Top-1 error of 31.22%. In comparison, the Filter Pruning via Geometric Median (FPGM) method resulted in a higher error of 31.59% despite a lower saving of 1.53x.

CIFAR Benchmarks

On CIFAR-10 and CIFAR-100, DGC consistently reached lower error rates than standard SGC and "Fixed Learnable" Group Convolutions (FLGC). When applied to CondenseNet, replacing its native learned group convolutions with DGC improved the CIFAR-100 error rate from 26.2% to 25.4% while maintaining equivalent computational efficiency.

Discussion and Conclusion

Dynamic Group Convolution offers a powerful paradigm for balancing efficiency and accuracy in CNNs. By allowing input-dependent "rewiring," DGC preserves the network's full structural potential without the permanent information loss associated with static pruning.

While DGC significantly reduces theoretical MACs, we acknowledge that actual "wall-clock" speedups on current GPU hardware can be limited by the overhead of dynamic indexing. Future work will focus on optimizing CUDA kernels and exploring hardware-level support for dynamic sparse operations to fully realize the speed potential of this approach.

Summary updated

BibTeX
@inproceedings{su2020dynamic,
  author = {Zhuo Su and Linpu Fang and Wenxiong Kang and Dewen Hu and Matti Pietikäinen and Li Liu},
  title = {{Dynamic Group Convolution for Accelerating Convolutional Neural Networks}},
  booktitle = {European Conference on Computer Vision},
  year = {2020},
  doi = {10.1007/978-3-030-58539-6\_9},
}
Figure