Optimized Separable Convolution: Yet Another Efficient Convolution Operator

Tao Wei, Yonghong Tian, Yaowei Wang, Yun Liang, Chang Wen Chen

TL;DR

This paper introduces "Optimized Separable Convolution" (OSC), a novel convolution operator that significantly reduces model parameters and computation compared to existing methods like depthwise and spatial separable convolutions. OSC achieves this by principled optimization of internal hyperparameters, leading to better accuracy-parameter trade-offs across various deep learning architectures.

What Problem Does This Paper Address?

Deep learning models, particularly those relying on Convolutional Neural Networks (CNNs), have seen a dramatic increase in their complexity, primarily due to the growing number of parameters in convolutional layers. Conventional 2D convolutions have a parameter complexity of $O(C^2K^2)$, where $C$ is the channel size and $K$ is the kernel size. This high parameter count makes deploying these models on resource-constrained devices (like mobile phones or robots) challenging. While existing separable convolution techniques (depthwise and spatial) offer improvements, they are often considered "ad hoc" designs that don't guarantee optimal parameter reduction. The paper aims to address this by proposing a principled method for designing separable convolutions that achieve superior efficiency without sacrificing accuracy.

Methods

The core contribution is the Optimized Separable Convolution (OSC) operator. Unlike previous methods that use heuristic designs, OSC formulates the problem of separable convolution as an optimization task. It aims to minimize representational complexity (number of parameters) while adhering to a novel volumetric receptive field (RF) condition. This condition ensures that the decomposed separable convolution maintains the same effective input region (spatial and channel-wise) as the original convolution.

Key aspects of the method include:

  • Volumetric Receptive Field Condition: This is a crucial theoretical constraint. It ensures that the separable convolution doesn't lose essential information by requiring the decomposed components to collectively cover the same spatial and channel information as the original convolution.
  • Principled Optimization: OSC optimizes internal hyperparameters like the number of groups and kernel sizes to achieve the best parameter efficiency under the volumetric RF constraint.
  • Generalization to N-Separable Convolutions: The framework is extended to an "N-separable" case, where the convolution is decomposed into $N$ stages. This allows for even greater complexity reduction, potentially reaching $O(C \cdot \log(CK^2))$.
  • Spatial Separable Variant: The proposed method also offers a spatial separable configuration, further enhancing efficiency.

Datasets

The paper evaluates its proposed method on the following datasets:

  • CIFAR10: A standard image classification dataset with 32x32 images across 10 classes.
  • CIFAR100: Similar to CIFAR10 but with 100 object classes.
  • ImageNet40: A downscaled version of ImageNet (40x40 pixels) used for resource-constrained experiments.
  • Full ImageNet: The standard ImageNet dataset for large-scale evaluation.

No new benchmarks were introduced; the focus was on evaluating OSC on existing, widely-used datasets.

Key Insights and Ideas

  • The "Ad Hoc" Nature of Existing Separable Convolutions: The paper argues that depthwise and spatial separable convolutions, while effective, are not derived from a principled optimization framework and thus may not achieve the theoretical best trade-offs.
  • The Importance of Volumetric Receptive Field: Maintaining the volumetric RF is shown to be critical for performance. Deviating from this condition (as in depthwise-only convolutions) leads to significant accuracy degradation, highlighting the need for channel information fusion.
  • Principled Optimization Yields Superior Trade-offs: By formulating separable convolution as an optimization problem with the volumetric RF constraint, OSC consistently outperforms existing methods in accuracy-parameter and accuracy-FLOPs trade-offs.
  • Generalization Across Architectures: OSC is demonstrated to be effective not just on ResNet but also on other architectures like DARTS and MobileNet, suggesting its broad applicability.
  • Potential for AutoML: The principled nature of OSC opens up new possibilities for neural architecture search, potentially leading to more efficient and performant models.

Key Results

  • Significant Parameter Reduction: OSC achieves substantial reductions in parameters. For example, on CIFAR10 with ResNet, o-ResNet110 had fewer parameters than a 20-layer ResNet baseline while achieving higher accuracy.
  • Improved Accuracy-Parameter/FLOPs Trade-offs: Across CIFAR10, CIFAR100, and ImageNet, OSC consistently pushed the Pareto frontier, offering better accuracy for a given number of parameters or FLOPs compared to conventional, depthwise, and depth separable convolutions.
  • Accuracy Gains: On CIFAR100, o-ResNet achieved 4-5% performance gains over ResNet baselines. On ImageNet40, similar gains were observed.
  • DARTS Generalization: Replacing depth separable convolutions in DARTS with OSC (o-DARTS) improved accuracy from 97.24% to 97.67% with fewer parameters.
  • N-Separable Complexity: The theoretical complexity of $O(C \cdot \log(CK^2))$ for N-separable convolutions suggests even greater efficiency potential.

Limitations and Future Work

  • Inference Time on GPU: The paper notes that the current Python implementation of OSC can be slower on GPUs compared to conventional or depth separable convolutions due to overheads in grouped convolution and channel shuffling. This is attributed to inefficient hardware implementation and suggests future work on optimizing the CUDNN library for OSC.
  • CPU Inference Advantage: Interestingly, OSC shows faster inference times on CPUs than depth separable convolutions, suggesting its potential for mobile applications.
  • Further Architecture Exploration: The authors plan to test OSC on more neural network architectures like EfficientNet.
  • AutoML Integration: The paper anticipates OSC's impact on AutoML, suggesting future work in exploring its use within neural architecture search frameworks.
  • Overlap Coefficient (γ): While setting $\gamma=1$ is found to be optimal, further investigation into the role of $\gamma$ and its impact on channel fusion could be explored.

Summary updated

BibTeX
@inproceedings{wei2022optimized,
  author = {Tao Wei and Yonghong Tian and Yaowei Wang and Yun Liang and Chang Wen Chen},
  title = {{Optimized Separable Convolution: Yet Another Efficient Convolution Operator}},
  booktitle = {International Conference on Learning Representations},
  year = {2022},
  url = {https://openreview.net/forum?id=o8iGesI9HN-},
}
Figure