Rethinking Depthwise Separable Convolutions: How Intra-Kernel Correlations Lead to Improved MobileNets

Daniel Haase, Manuel AmthorCVPR 2020

Introduction

Deep learning models are increasingly deployed in resource-constrained environments, such as mobile devices and automotive systems. To manage the computational burden, researchers developed Depthwise Separable Convolutions (DSC), the core component of the MobileNet family. DSC decomposes a standard convolution into a spatial "depthwise" step followed by a channel-mixing "pointwise" step. However, this paper argues that the theoretical justification for DSC is flawed: while intended to exploit redundancies within a single filter kernel (intra-kernel correlation), its structure actually enforces redundancies between different kernels (cross-kernel correlation).

Empirical Motivation: Intra-Kernel Redundancy

The authors began by analyzing trained "vanilla" CNNs like ResNet and VGG. Using Principal Component Analysis (PCA), they discovered that kernels are highly redundant along the depth axis. Specifically, about 50% of the variance in a filter kernel can be explained by a single 2D "blueprint" scaled across the depth axis.

Visualizing intra-kernel correlation in ResNet-50: kernels often consist of a single spatial pattern (blueprint) scaled across the depth dimension.

Methods: Blueprint Separable Convolutions (BSConv)

To better exploit these intra-kernel correlations, the authors proposed Blueprint Separable Convolutions (BSConv). The fundamental shift is reversing the order of operations used in standard DSC. By performing the pointwise (1x1) convolution first, the model distributes information across channels before applying spatial filters. This allows each spatial filter to "see" a combination of all input channels, significantly increasing expressiveness.

Comparison between a Standard Convolution Layer and the proposed Blueprint Separable Convolution (BSConv) Layer. BSConv uses a single 'blueprint' kernel per output channel, scaled by learnable weights.

The researchers introduced two variants:

  1. BSConv-U (Unconstrained): A direct reversal of DSC (Pointwise then Depthwise).
  2. BSConv-S (Subspace): A low-rank approximation that projects inputs into a smaller subspace before the depthwise step, utilizing a novel orthonormal regularization loss to ensure the basis vectors remain independent.

Key Results and Insights

BSConv serves as a highly efficient drop-in replacement for both standard convolutions and DSC. The performance gains are particularly notable in fine-grained recognition tasks where subtle feature differences are critical:

  • Accuracy Gains: On CIFAR-100, BSConv-U improved MobileNetV1 accuracy by 2.3 percentage points. On the Stanford Dogs dataset, improvements reached up to 5.1 points for MobileNetV3-large.
  • Model Compression: A ResNet-34 modified with BSConv can match the accuracy of a standard ResNet-18 while using only 20% of the parameters.
  • Efficiency: BSConv models consistently achieve higher accuracy than standard DSC models at the same level of computational complexity (FLOPs) and parameter count.

Conclusion

By rethinking the mathematical structure of separable convolutions to align with empirical observations of kernel redundancy, BSConv provides a more theoretically sound building block for efficient neural networks. The approach demonstrates that the order of operations in separable convolutions is not arbitrary; putting channel-mixing first allows for better utilization of spatial features, leading to significant performance boosts across a wide variety of architectures and datasets.

Summary updated

BibTeX
@inproceedings{haase2020rethinking,
  author = {Daniel Haase and Manuel Amthor},
  title = {{Rethinking Depthwise Separable Convolutions: How Intra-Kernel Correlations Lead to Improved MobileNets}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2020},
  doi = {10.1109/cvpr42600.2020.01461},
}
Figure