Approximating Continuous Convolutions for Deep Network Compression

Theo W. Costain, Victor Adrian Prisacariu · DOI

Abstract

Deep neural networks have achieved state-of-the-art performance at the cost of massive parameter counts, complicating deployment on resource-constrained edge devices. This paper introduces ApproxConv, a compression framework that represents convolutional filters as continuous mathematical functions rather than discrete weight grids. By approximating filters using Cosine or Chebyshev series, the method achieves significant parameter reduction with minimal accuracy loss. Experimental results on ImageNet demonstrate that ApproxConv can reduce ResNet-18 parameters by over 50% with less than a 2% drop in Top-1 accuracy, while offering strong synergy with existing quantization techniques.

1. Introduction

The evolution of computer vision has been characterized by a trend toward increasingly large architectures, such as ResNet and ConvNeXt. While these models provide high accuracy, their memory and computational requirements often exceed the capabilities of smartphones and embedded sensors. Traditional compression techniques, including pruning and quantization, typically treat convolutional kernels as collections of independent discrete points.

ApproxConv departs from this view by arguing that convolutional filters possess an inherent underlying structure. Most filters in trained networks are dominated by low-frequency information, suggesting they can be more efficiently represented as continuous functions over a spatial domain. By leveraging functional approximations, ApproxConv provides a structured approach to model compression that preserves the essential features of the original filters.

2. Methodology

The core contribution of this work is the transition from discrete convolution to continuous functional representation.

2.1 Functional Approximation

Instead of storing a standard $3 \times 3$ or $7 \times 7$ grid of weights, ApproxConv represents the kernel as a function $w(p)$, where $p$ denotes the spatial coordinates. To ensure the function is learnable and compact, two primary series expansions are employed:

  1. Cosine Series (CosConv): Filters are approximated as a weighted sum of cosine harmonics.
  2. Chebyshev Series (ChebConv): Utilizing Chebyshev polynomials, this method benefits from rapid convergence properties, allowing complex filter shapes to be captured with very few terms.

By selecting a limited number of harmonics ($N$), the number of parameters required to define a filter is decoupled from its spatial resolution. For instance, a $7 \times 7$ filter (49 parameters) can be approximated using a low-order series requiring only 9 or 16 parameters.

2.2 Optimization Workflow

The deployment of ApproxConv follows a two-stage process:

  • Initialization: Starting with a pre-trained model, gradient descent is used to find the optimal functional coefficients that best approximate the existing discrete weights.
  • Fine-tuning: To compensate for approximation errors, the compressed network undergoes a brief fine-tuning phase (typically 5 epochs), allowing the model to adapt to the smoothed functional filters.

3. Experimental Results

The effectiveness of ApproxConv was evaluated on standard benchmarks, including CIFAR-10 and ImageNet.

3.1 ImageNet Performance

On the ImageNet dataset, ApproxConv demonstrated robust compression capabilities across different architectures:

  • ResNet-18: The model achieved a 50.88% parameter reduction with only a 1.86% drop in Top-1 accuracy.
  • ConvNeXt-T: Focusing on the $7 \times 7$ depth-wise filters, the method reached 42% compression with a 2.8% accuracy loss.

3.2 Synergy with Quantization

ApproxConv is orthogonal to bit-width reduction techniques. When combined with 4-bit quantization on ResNet-18, the total model size was reduced from 46.7 MB to 8.9 MB—a nearly 5x reduction. This suggests that functional approximation and quantization can be used in tandem to achieve extreme compression ratios.

4. Discussion

The success of ApproxConv highlights several key properties of deep learning filters. First, the ability to represent filters with low-order harmonics confirms that trained kernels are generally "smooth" and lack high-frequency noise. This smoothness acts as a form of natural regularization, which may enhance model robustness against adversarial attacks.

Furthermore, the method is particularly advantageous for modern architectures using large kernels. As kernel sizes increase (e.g., $7 \times 7$ or $11 \times 11$), the relative savings of functional approximation grow, as the number of coefficients needed for a good approximation does not scale linearly with the number of pixels in the grid.

5. Limitations and Future Work

Despite its advantages, ChebConv exhibits sensitivity to weight initialization, where poor starting points can hinder convergence. Additionally, the current implementation uses isotropic harmonics (equal detail in X and Y dimensions). Future research into anisotropic kernels and automated Neural Architecture Search (NAS) to determine the optimal number of harmonics per layer could further optimize the compression-accuracy trade-off.

6. Conclusion

ApproxConv provides a novel and effective pathway for compressing deep neural networks by treating filters as continuous functions. By significantly reducing parameter counts while maintaining high accuracy, it facilitates the deployment of state-of-the-art models on resource-constrained hardware.

Summary updated

BibTeX
@inproceedings{costain2022approximating,
  author = {Theo W. Costain and Victor Adrian Prisacariu},
  title = {{Approximating Continuous Convolutions for Deep Network Compression}},
  booktitle = {BMVC},
  year = {2022},
}
Figure