CircConv: A Structured Convolution with Low Complexity.

Siyu Liao, Bo Yuan

Abstract

Deep neural networks (DNNs), especially deep convolutional neural networks (CNNs), have emerged as the powerful technique in various machine learning applications. However, the large model sizes of DNNs yield high demands on computation resource and weight storage, thereby limiting the practical deployment of DNNs. To overcome these limitations, this paper proposes to impose the circulant structure to the construction of convolutional layers, and hence leads to circulant convolutional layers (CircConvs) and circulant CNNs. The circulant structure and models can be either trained from scratch or re-trained from a pre-trained non-circulant model, thereby making it very flexible for different training environments. Through extensive experiments, such strong structure-imposing approach is proved to be able to substantially reduce the number of parameters of convolutional layers and enable significant saving of computational cost by using fast multiplication of the circulant tensor.

Introduction

Modern Convolutional Neural Networks (CNNs) are highly accurate but computationally expensive and memory-heavy, with convolutional layers taking up the bulk of the resources. Deep Neural Networks are notoriously resource-intensive, making them difficult to deploy on edge devices or in latency-sensitive applications. Historically, researchers tackled this by compressing fully-connected (FC) layers using pruning, clustering, or structured matrices.

However, modern state-of-the-art architectures like ResNet and Inception have largely phased out massive FC layers. Today, the vast majority of parameters and computational processing (FLOPs) reside in the convolutional layers. Previous attempts to compress convolutional layers (like Low Rank Approximation or sparsity regularization) either yielded marginal compression rates or required costly, iterative fine-tuning cycles. This paper addresses the need for a mathematically rigorous, highly efficient way to compress 4D convolutional tensors without destroying network accuracy.

Methodology

The authors propose CircConv (Circulant Convolutional layers). Instead of allowing the 4D weight tensor of a convolutional layer to be completely unstructured, they impose a circulant structure along the input and output channel dimensions.

The circulant structure imposed on the weight tensor, dividing it into sub-tensors defined by cyclic shifts.

This approach offers two primary advantages:

  1. Space Efficiency: A circulant matrix (or tensor slice) is entirely defined by its first row. Every subsequent row is just a cyclic shift of the one above it. This inherent weight-sharing drastically reduces the number of unique parameters that need to be stored.
  2. Time Efficiency: Because the weights are circulant, the standard sliding-window convolution can be replaced by multiplication in the frequency domain using 1-D Fast Fourier Transforms (FFTs). This reduces the time complexity of the operation from $O(N^2)$ to $O(N \log N)$.

The authors provide exact mathematical formulations for both forward and backward propagation using FFTs. Crucially, they offer two ways to use CircConv: training from scratch or retrofitting a pre-trained model via a projection algorithm that finds the nearest circulant approximation.

Experimental Evaluation

The authors evaluated their approach on standard image classification benchmarks, including CIFAR-10 (for ResNet-32 and Wide ResNet) and ImageNet (for AlexNet).

Key Results

The results demonstrate significant efficiency gains with minimal accuracy loss:

  • ResNet-32 on CIFAR-10: CircConv achieved a ~50% reduction in both model size and FLOPs with virtually no drop in test accuracy.
  • Wide ResNet on CIFAR-10: The method achieved up to an 8.35x reduction in model size. A specific compressed model ("48-4") actually beat the baseline ResNet-110 in accuracy while using fewer parameters (1.6M vs 1.7M) and requiring only ~36% of the original FLOPs.
  • AlexNet on ImageNet: CircConv matched the accuracy and parameter reduction of state-of-the-art Structured Sparsity Learning (SSL) methods while requiring significantly fewer computations (~31% of original FLOPs).
Comparison of parameter counts across different Wide ResNet configurations, showing substantial reduction with CircConv.

Discussion and Insights

Imposing a circulant structure acts as a strong regularizer. By reducing parameter redundancy, the compressed models sometimes achieve better accuracy than standard models of similar sizes. Furthermore, while previous FFT-based methods used 2-D FFTs on spatial dimensions, CircConv applies 1-D FFTs along the channel dimensions, resulting in lower complexity.

Limitations: There is a trade-off controlled by the partition size $N$. Larger $N$ yields higher compression but can degrade accuracy. Additionally, the first few layers of a CNN are highly sensitive to compression and were left uncompressed in some experiments to maintain performance.

Conclusion

CircConv provides a mathematically rigorous framework for compressing convolutional layers by targeting the channel dimensions with circulant structures. By leveraging 1-D FFTs, it achieves significant savings in both storage and computation, making it a promising technique for deploying deep CNNs on resource-constrained platforms.

Summary updated

BibTeX
@inproceedings{liao2019circconv,
  author = {Siyu Liao and Bo Yuan},
  title = {{CircConv: A Structured Convolution with Low Complexity.}},
  booktitle = {AAAI},
  year = {2019},
  url = {https://openreview.net/forum?id=H74bvzzedaS},
}
Figure