Depth-wise Decomposition for Accelerating Separable Convolutions in Efficient Convolutional Neural Networks

Yihui He, Jianing Qian, Cindy X. Le, Congrui Hetang, Qi Lyu, Wenping Wang, Tianwei Yue

Abstract

This paper introduces Depth-wise Decomposition, a post-training method that converts standard, "heavy" convolutional layers into efficient depth-wise separable convolutions using Singular Value Decomposition (SVD). By training a high-accuracy redundant model first and then decomposing it with a novel inter-channel error compensation technique, the authors improve the accuracy of models like ShuffleNet V2 by up to 2% while maintaining the same inference speed.

Introduction

Deep Convolutional Neural Networks (CNNs) are the gold standard for computer vision, but their high computational cost makes them difficult to deploy on "edge" devices like smartphones or robots. To address this, researchers typically use depth-wise separable convolutions—an efficient operation that splits a standard convolution into a spatial "depth-wise" filter and a 1x1 "point-wise" filter.

Standard convolution compared to sparse connection and channel pruning.

While architectures like MobileNet and ShuffleNet use these to save on FLOPs, they often suffer from a "performance gap": a model built with these efficient layers from the start is almost always less accurate than a standard "heavy" CNN. This paper explores whether we can train a heavy, accurate model and then mathematically "shrink" its layers into efficient ones without losing that hard-earned accuracy.

Methodology: The "Heavy-to-Light" Strategy

The core contribution is a novel decomposition pipeline that transforms a standard convolutional layer into a depth-wise separable counterpart post-training.

1. The "Heavy" Proxy

The process begins by creating a "folded" version of a lightweight network (e.g., ShuffleNet V2). All efficient depth-wise separable layers are replaced with standard, "heavy" convolutions. This model is then trained to high accuracy on the ImageNet dataset.

2. Depth-wise Decomposition via SVD

The convolution operation is treated as a matrix multiplication. By applying Singular Value Decomposition (SVD), the heavy weight matrix is factorized into two smaller matrices corresponding to the depth-wise and point-wise components of a separable convolution.

The proposed depth-wise decomposition process, splitting a heavy convolution into depth-wise and point-wise components.

3. Inter-Channel Error Compensation

A naive decomposition of each channel independently leads to a massive accumulation of approximation errors. To mitigate this, the authors use Generalized SVD (GSVD) for an asymmetric reconstruction. When decomposing channel $i$, the algorithm explicitly accounts for errors introduced during the decomposition of channel $i-1$, effectively "canceling out" noise as it propagates through the layer.

4. Fine-Tuning

After decomposition, a short fine-tuning phase (10 epochs) is performed to recover any minor remaining accuracy loss.

Key Insights

  • Redundancy as a Feature: Standard CNNs are over-parameterized, making them easier to train to high accuracy. Decomposition "distills" this knowledge into efficient architectures more effectively than training from scratch.
  • Mitigating Error Accumulation: Most decomposition methods fail in deep networks due to error snowballing. Using the error from the previous step as a bias for the current step's optimization is critical for scaling to multi-layer networks.
  • Mathematical Equivalence: Regular convolutions can be viewed as a sum of single-input-channel convolutions, enabling the application of matrix factorization techniques.

Results and Discussion

The proposed method demonstrates significant improvements in both accuracy and efficiency on the ImageNet (ILSVRC 2012) benchmark:

  • Accuracy Gains: On ShuffleNet V2 (0.5x), the method achieved a 37.9% Top-1 error, outperforming the original model's 39.7%. Similar gains were observed for ShuffleNet V2 1.0x (+1.6%), 2.0x (+1.7%), and Xception (+1.6%).
  • Computational Efficiency: The decomposition achieves a 9x acceleration for individual 3x3 convolutional layers.
  • Baseline Comparison: The method consistently outperformed standard "Channel Decomposition" baselines.

Limitations and Future Work

The primary trade-off is the increased initial training overhead required for the "heavy" proxy model. Future research may focus on applying this decomposition to more complex tasks like object detection and semantic segmentation, as well as optimizing for specific hardware backends where the speedup of depth-wise operations can vary.

Summary updated

BibTeX
@article{he2023depth,
  author = {Yihui He and Jianing Qian and Cindy X. Le and Congrui Hetang and Qi Lyu and Wenping Wang and Tianwei Yue},
  title = {{Depth-wise Decomposition for Accelerating Separable Convolutions in Efficient Convolutional Neural Networks}},
  journal = {Adv. Artif. Intell. Mach. Learn.},
  year = {2023},
  doi = {10.54364/aaiml.2023.1197},
}
Figure