HetConv: Heterogeneous Kernel-Based Convolutions for Deep CNNs

Pravendra Singh, Vinay Kumar Verma, Piyush Rai, Vinay P. Namboodiri · DOI

Abstract

We present a novel deep learning architecture in which the convolution operation leverages heterogeneous kernels. The proposed HetConv (Heterogeneous Kernel-Based Convolution) reduces the computation (FLOPs) and the number of parameters as compared to standard convolution operation while still maintaining representational efficiency. To show the effectiveness of our proposed convolution, we present extensive experimental results on the standard convolutional neural network (CNN) architectures such as VGG and ResNet. We find that after replacing the standard convolutional filters in these architectures with our proposed HetConv filters, we achieve 3X to 8X FLOPs based improvement in speed while still maintaining (and sometimes improving) the accuracy. We also compare our proposed convolutions with group/depth wise convolutions and show that it achieves more FLOPs reduction with significantly higher accuracy.

What Problem Does This Paper Address?

Deep Convolutional Neural Networks (CNNs) are incredibly accurate but computationally expensive, making them difficult to deploy on resource-constrained edge devices. To solve this, researchers typically use one of two approaches:

  1. Model Compression (Pruning): Training a massive model, identifying the least important filters, removing them, and fine-tuning. This is a costly, multi-step process that often results in a sharp drop in accuracy if compressed too much.
  2. Efficient Architectures: Models like MobileNet replace standard convolutions with a combination of Depthwise Convolutions (DWC) and Pointwise Convolutions (PWC). While this reduces FLOPs, it splits a single layer into two sequential layers. Because the second layer must wait for the first to finish, this reduces parallelizability on GPUs and increases the network's overall running latency.

The authors tackle the challenge of drastically reducing a model's FLOPs and parameters without relying on tedious pruning pipelines and without introducing the sequential latency penalties of DWC/PWC splits.

Methodology: Heterogeneous Kernel-Based Convolution (HetConv)

Standard convolutional filters are homogeneous—every kernel in the filter has the same spatial dimensions (e.g., all $3 \times 3$). The authors propose HetConv, which uses a heterogeneous filter containing a mix of different kernel sizes within the same layer.

Comparison of standard convolutional filters with HetConv filters for different values of P.

In a HetConv filter, only a small fraction of the kernels are spatial (e.g., $3 \times 3$), while the rest are pointwise ($1 \times 1$). To control this, they introduce a "part" parameter, $P$. If $P=4$, then $1/4$ of the kernels in the filter are $3 \times 3$, and the remaining $3/4$ are $1 \times 1$. To ensure the network still learns spatial correlations across all input channels, the $3 \times 3$ kernels are arranged in a shifted, staggered pattern across the different filters in a layer. Because HetConv is executed as a single convolutional layer, it acts as a direct, drop-in replacement for standard convolutions.

Key Insights: Efficiency Without Latency

A core insight of this work is that spatial correlation doesn't need to be computed on every channel to extract meaningful features. A sparse distribution of $3 \times 3$ kernels, padded with computationally cheap $1 \times 1$ kernels, is sufficient for high performance.

Crucially, HetConv maintains the parallel execution speed of standard convolutions. By avoiding the sequential layer splitting used in architectures like MobileNet, HetConv achieves FLOP reduction without the latency bottleneck.

Latency comparison between sequential DWC/PWC layers and the single-layer HetConv approach.

As shown in the latency comparison, standard and HetConv filters operate in a single stage (Latency-0), whereas Depthwise-Pointwise or Groupwise-Pointwise splits require two sequential stages (Latency-0 and Latency-1). This makes HetConv a more hardware-friendly choice for real-time applications.

Key Results

The authors evaluated HetConv on CIFAR-10 and ImageNet using VGG and ResNet architectures:

  • VGG-16 on CIFAR-10: HetConv reduced FLOPs by ~85% (from 313M to 45M) with only a negligible accuracy drop (94.06% to 93.73%), significantly outperforming state-of-the-art pruning methods.
  • ResNet-50 on ImageNet: HetConv reduced FLOPs by 30% (from 4.09G to 2.85G) with absolutely zero loss in top-1 accuracy (23.84% error vs the baseline 23.86%).
  • Beating MobileNet: When replacing MobileNet's DWC+PWC layers with HetConv layers on CIFAR-10, the HetConv version achieved ~1% higher accuracy (92.06% vs 91.17%) while maintaining similar FLOPs and reducing latency.

Limitations and Future Work

While theoretical FLOPs are reduced, the paper does not deeply discuss low-level hardware implementation details, such as whether standard libraries like cuDNN can optimally execute staggered kernels without custom programming. Additionally, the authors noted that adding Squeeze-and-Excitation (SE) blocks to HetConv caused overfitting on smaller datasets. Future research may focus on designing entirely new architectures optimized specifically for heterogeneous kernels from the ground up.

Summary updated

BibTeX
@inproceedings{singh2019hetconv,
  author = {Pravendra Singh and Vinay Kumar Verma and Piyush Rai and Vinay P. Namboodiri},
  title = {{HetConv: Heterogeneous Kernel-Based Convolutions for Deep CNNs}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2019},
  doi = {10.1109/cvpr.2019.00497},
}
Figure