Structured Convolutions for Efficient Neural Network Design

Yash Bhalgat, Yizhe Zhang, Jamie Menjay Lin, Fatih Porikli

Abstract

Deep neural networks are often over-parameterized, making them difficult to deploy on resource-constrained edge devices. This paper introduces Structured Convolutions, a novel compression method that decomposes standard convolutions into a computationally inexpensive sum-pooling operation followed by a significantly smaller convolution. By utilizing a specialized Structural Regularization loss during training, networks are encouraged to adopt this efficient structure with minimal impact on accuracy. This approach effectively reduces both parameter count and the number of expensive multiplication operations, facilitating more efficient deployment on low-power hardware.

Introduction

The deployment of deep neural networks on edge devices is hindered by their high computational and memory requirements. While techniques like pruning and tensor decomposition offer some relief, they often result in unstructured sparsity that is difficult to accelerate on standard hardware or merely reduce training-time degrees of freedom without improving inference speed.

A critical bottleneck is the reliance on multiplication operations, which are significantly more power-intensive and slower than additions on low-level hardware. This research aims to design a structured, hardware-friendly decomposition that trades expensive multiplications for cheaper additions without sacrificing model performance.

Methodology

Composite Kernels and Structured Basis

The core idea involves representing a convolution kernel as a linear combination of binary masks, termed Composite Kernels. Since these masks consist only of 0s and 1s, the initial convolution step involves only additions, not multiplications.

Examples of structured basis elements (a, b, c) used to construct composite kernels.

Structured Convolutions

A highly efficient special case is proposed where the binary masks are shifted versions of a constant-size block of 1s. This structural constraint allows for a mathematical decomposition into two distinct steps:

  1. Sum-pooling: A parameter-free operation requiring only additions.
  2. Small Standard Convolution: A layer with significantly fewer parameters and multiplications than the original.
Mathematical decomposition of a 3x3 structured convolution into a 2x2 sum-pooling operation followed by a 2x2 convolution.

Structural Regularization

To maintain performance, the authors introduce Structural Regularization. Rather than training the decomposed architecture from scratch, the full-sized network is trained with a regularization loss that pushes weights into the restricted subspace defined by the structured basis. Post-training, the weights are decomposed, and layers are replaced with their efficient equivalents.

Experimental Results

The method was evaluated across various architectures and datasets:

  • Image Classification (ImageNet/CIFAR-10):
  • ResNets: "Struct-A" variants achieved a 2x reduction in model size and multiplications. For instance, Struct-ResNet50-A halved parameters (from 25.56M to 13.49M) with only a ~0.5% drop in Top-1 accuracy on ImageNet.
  • MobileNetV2: Struct-MobileNetV2-A achieved a 1.33x size reduction and outperformed other methods like AMC and Channel Pruning by ~1%, maintaining 71.29% accuracy.
  • Semantic Segmentation (Cityscapes): Applied to HRNetV2, the method reduced model size by 50% and operations by 30%, with a minor 1.5% drop in mean IoU.
  • Latency: Struct-ResNet18-A reduced inference latency on a CPU from 0.039s to 0.030s.

Discussion and Key Insights

Trading Mults for Adds

By using binary basis elements, the computational burden is shifted from power-hungry multiplications to efficient additions, a significant advantage for ASIC/FPGA designs.

Amortization of Shared Computation

The overlapping computations in the basis masks allow for a single, reusable sum-pooling pass shared across all output channels in a layer. As the number of channels increases, the cost of sum-pooling is amortized, leading to proportional drops in total operations.

Soft Constraints

Gradually imposing structural constraints via regularization allows the network to find better local minima compared to training a constrained architecture from scratch.

Limitations and Future Work

The realized inference speedup depends on low-level software optimizations. On platforms like GPUs using Fused Multiply-Add (FMA) instructions, additions and multiplications may take similar time, requiring specialized hardware or custom kernels to see full gains. Future work includes integrating this method with other compression schemes like quantization or channel pruning.

Summary updated

BibTeX
@inproceedings{bhalgat2020structured,
  author = {Yash Bhalgat and Yizhe Zhang and Jamie Menjay Lin and Fatih Porikli},
  title = {{Structured Convolutions for Efficient Neural Network Design}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2020},
  url = {https://openreview.net/forum?id=M8oL1G4U3pu},
}
Figure