Skip to main content
QUICK REVIEW

[Paper Review] DCT Perceptron Layer: A Transform Domain Approach for Convolution Layer

Hongyi Pan, Xin Zhu|arXiv (Cornell University)|Nov 15, 2022
Neural Networks and ApplicationsComputer Science5 citations
TL;DR

This paper proposes the DCT Perceptron Layer, a novel transform-domain neural network layer that replaces $3\times3$ Conv2D layers in ResNet by performing convolution-like operations in the DCT domain using element-wise multiplications, enabled by the DCT convolution theorem. The method reduces parameters by over 21% and MACs by over 32% on ImageNet-1K while maintaining comparable accuracy, and can further boost accuracy when inserted post-global average pooling with batch normalization.

ABSTRACT

In this paper, we propose a novel Discrete Cosine Transform (DCT)-based neural network layer which we call DCT-perceptron to replace the $3 imes3$ Conv2D layers in the Residual neural Network (ResNet). Convolutional filtering operations are performed in the DCT domain using element-wise multiplications by taking advantage of the Fourier and DCT Convolution theorems. A trainable soft-thresholding layer is used as the nonlinearity in the DCT perceptron. Compared to ResNet's Conv2D layer which is spatial-agnostic and channel-specific, the proposed layer is location-specific and channel-specific. The DCT-perceptron layer reduces the number of parameters and multiplications significantly while maintaining comparable accuracy results of regular ResNets in CIFAR-10 and ImageNet-1K. Moreover, the DCT-perceptron layer can be inserted with a batch normalization layer before the global average pooling layer in the conventional ResNets as an additional layer to improve classification accuracy.

Motivation & Objective

  • To reduce the computational and parameter burden of deep convolutional networks like ResNet without sacrificing accuracy.
  • To replace standard $3\times3$ Conv2D layers with a more efficient transform-domain alternative using the Discrete Cosine Transform (DCT).
  • To enable end-to-end training of network filters in the DCT domain using backpropagation.
  • To improve model efficiency on edge devices by leveraging fast real-valued DCT and element-wise operations.
  • To explore the use of trainable soft-thresholding as a nonlinearity in the DCT domain for better feature learning.

Proposed method

  • The DCT Perceptron Layer performs convolution operations in the DCT domain via element-wise multiplication between input DCT coefficients and learned filter coefficients, exploiting the DCT convolution theorem.
  • The method uses a trainable soft-thresholding function as the nonlinearity, enabling effective activation learning in the frequency domain.
  • The layer is implemented using forward and inverse DCT (DCT and IDCT) transforms, with fast $O(N\log_2 N)$ algorithms for efficiency.
  • The DCT-based layer is inserted in place of $3\times3$ Conv2D layers in residual blocks, maintaining spatial and channel specificity.
  • A $1\times1$ Conv2D layer is used after the DCT to allow feature transformation and parameter sharing across channels.
  • An additional DCT Perceptron layer with batch normalization is inserted before global average pooling to further improve accuracy with minimal computational overhead.

Experimental results

Research questions

  • RQ1Can convolution operations be efficiently and accurately performed in the DCT domain using element-wise multiplication, replacing standard spatial convolutions?
  • RQ2How does the performance of a DCT-based layer compare to standard Conv2D layers in terms of accuracy, parameters, and MACs on image classification benchmarks?
  • RQ3Can trainable soft-thresholding in the DCT domain effectively replace ReLU-like nonlinearities while preserving representational capacity?
  • RQ4Does replacing Conv2D layers with DCT Perceptron Layers reduce model complexity without degrading accuracy on CIFAR-10 and ImageNet-1K?
  • RQ5Can an additional DCT Perceptron layer improve the accuracy of existing ResNets when inserted before global average pooling?

Key findings

  • On CIFAR-10, the DCT Perceptron Layer reduced parameters by 44.39% while maintaining accuracy within -0.07% of the baseline ResNet-20.
  • On CIFAR-10, the method achieved a 0.09% accuracy improvement with 26.64% fewer parameters compared to the baseline.
  • On ImageNet-1K, the DCT-ResNet-50 model reduced parameters by 28.5% and MACs by 32.8% with only a 0.89% drop in center-crop top-1 accuracy.
  • The tripod DCT-ResNet-50 variant reduced parameters by 21.1% and MACs by 32.6% while maintaining a top-1 accuracy of 75.52%, compared to 76.06% for the baseline.
  • Inserting an additional DCT Perceptron layer before global average pooling improved ResNet-18’s top-1 accuracy from 69.76% to 70.50% with only 2.3% more parameters.
  • The additional DCT layer increased ResNet-50’s top-5 accuracy from 92.85% to 93.80% with 16.4% more parameters and negligible MAC increase.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.