Deep neural networks have achieved remarkable success in computer vision tasks. Existing neural networks mainly operate in the spatial domain with fixed input sizes. For practical applications, images are usually large and have to be downsampled to the predetermined input size of neural networks. Even though the downsampling operations reduce computation and the required communication bandwidth, it removes both redundant and salient information obliviously, which results in accuracy degradation. Inspired by digital signal processing theories, we analyze the spectral bias from the frequency perspective and propose a learning-based frequency selection method to identify the trivial frequency components which can be removed without accuracy loss. The proposed method of learning in the frequency domain leverages identical structures of the wellknown neural networks, such as ResNet-50, MobileNetV2, and Mask R-CNN, while accepting the frequency-domain information as the input. Experiment results show that learning in the frequency domain with static channel selection can achieve higher accuracy than the conventional spatial downsampling approach and meanwhile further reduce the input data size. Specifically for ImageNet clas-sification with the same input size, the proposed method achieves 1.60% and 0.63% top-1 accuracy improvements on ResNet-50 and MobileNetV2, respectively. Even with half input size, the proposed method still improves the top-1 accuracy on ResNet-50 by 1.42%. In addition, we observe a 0.8% average precision improvement on Mask R-CNN for instance segmentation on the COCO dataset.
Convolutional neural networks (CNNs) have revolutionized the computer vision community because of their exceptional performance on various tasks such as image clas-sification [1, 2], object detection [3, 4], and semantic segmentation [5, 6]. Constrained by the computing resources and memory limitations, most CNN models only accept RGB images at low resolutions (e.g., ). However, images produced by modern cameras are usually much larger. For example, the high definition (HD) resolution images () are considered relatively small by modern standards. Even the average image resolution in the ImageNet dataset  is 482415, which is roughly four times the size accepted by most CNN models. Therefore, a large portion of real-world images are aggressively downsized to to meet the input requirement of classi-fication networks. However, image downsizing inevitably incurs information loss and accuracy degradation . Prior works [9, 10] aim to reduce information loss by learning task-aware downsizing networks. However, those networks are task-specific and require additional computation, which are not favorable in practical applications. In this paper, we propose to reshape the high-resolution images in the frequency domain, i.e., discrete cosine transform (DCT) domain 1, rather than resizing them in the spatial domain, and then feed the reshaped DCT coefficients to CNN models for inference. Our method requires little modification to the existing CNN models that take RGB images as input. Thus, it is a universal replacement for the routine data pre-processing pipelines. We demonstrate that our method achieves higher accuracy in image classification, object detection, and instance segmentation tasks than the conventional RGB-based methods with an equal or smaller input data size. The proposed method leads to a direct reduction in the required inter-chip communication bandwidth that is often a bottleneck in modern deep learning inference systems, i.e., the computational throughput of rapidly evolving AI accelerators/GPUs is becoming increasingly higher than the data loading throughput of CPUs, as shown in Figure 1.
Inspired by the observation that human visual system (HVS) has unequal sensitivity to different frequency components , we analyze the image classification, detection and segmentation task in the frequency domain and find that CNN models are more sensitive to low-frequency channels than the high-frequency channels, which coincides
Figure 1: (a) The workflow of the conventional CNN-based methods using RGB images as input. (b) The workflow of the proposed method using DCT coefficients as input. CB represents the required communication bandwidth between CPU and GPU/accelerator.
with HVS. This observation is validated by a learning-based channel selection method that consists of multiple “on-off switches”. The DCT coefficients with the same frequency are packed as one channel, and each switch is stacked on a specific frequency channel to either allow the entire channel to flow into the network or not.
Using the decoded high-fidelity images for model training and inference has posed significant challenges, from both data transfer and computation perspectives [12, 13]. Due to the spectral bias of the CNN models, one can only keep the important frequency channels during inference without losing accuracy. In this paper, we also develop a static channel selection approach to preserve the salient channels rather than using the entire frequency spectrum for inference. Experiment results show that the CNN models still retain the same accuracy when the input data size is reduced by 87.5%.
The contributions of this paper are as follows:
• We propose a method of learning in the frequency domain (using DCT coefficients as input), which requires little modification to the existing CNN models that take RGB input. We validate our method on ResNet-50 and MobileNetV2 for the image classification task and Mask R-CNN for the instance segmentation task.
• We show that learning in the frequency domain better preserves image information in the pre-processing stage than the conventional spatial downsampling approach (spatially resizing the images to , the default input size of most CNN models) and consequently achieves improved accuracy, i.e., +1.60% on ResNet-50 and +0.63% on MobileNetV2 for the ImageNet classification task, +0.8% on Mask R-CNN for both object detection and instance segmentation tasks.
• We analyze the spectral bias from the frequency perspective and show that the CNN models are more sen-
sitive to low-frequency channels than high-frequency channels, similar to the human visual system (HVS).
• We propose a learning-based dynamic channel selection method to identify the trivial frequency components for static removal during inference. Experiment results on ResNet-50 show that one can prune up to 87.5% of the frequency channels using the proposed channel selection method with no or little accuracy degradation in the ImageNet classification task.
• To the best of our knowledge, this is the first work that explores learning in the frequency domain for object detection and instance segmentation. Experiment results on Mask R-CNN show that learning in the frequency domain can achieve a 0.8% average precision improvement for the instance segmentation task on the COCO dataset.
Learning in the frequency domain: Compressed representations in the frequency domain contain rich patterns for image understanding tasks. [14, 15, 16] train dedicated autoencoder-based networks on compression and inference tasks jointly.  extracts features from the frequency domain to classify images.  proposes a model conversion algorithm to convert the spatial-domain CNN models to the frequency domain. Our method differs from the prior works in two aspects. First, we avoid the complex model transition procedure from the spatial to the frequency domain. Thus, our method has a broader application scope. Second, we provide an analysis method to interpret the spectral bias of neural networks in the frequency domain.
Figure 2: The data pre-processing pipeline for learning in the frequency domain.
These works adjust the model complexity in response to the input of each convolutional block. Only the intermediate features that are most relevant to the inputs are computed in the inference stage to reduce computation cost. In contrast, our method exclusively operates on the raw inputs and distills the salient frequency components to lower the communication bandwidth requirement for input data.
Efficient Network Training: There are substantial recent interests in training efficient networks [24, 25, 26, 27], which focus on network compression via kernel pruning, learned quantization, and entropy encoding. Another line of works aim to compress the CNN models in the frequency domain.  reduces the storage space by converting filter weights to the frequency domain and using a hash function to group the frequency parameters into hash buckets.  also transforms the kernels to the frequency domain and discards the low-energy frequency coefficients for high compression.  constrains the frequency spectra of CNN kernels to reduce memory consumption. These network compression works in the frequency domain all rely on the FFT-based convolution, which is generally more effective on larger kernels. Nevertheless, the state-of-the-art CNN models use small kernels, e.g., or . Extensive efforts need to be taken to optimize the computation efficiency of these FFT-based CNN models . In contrast, our method makes little modification to the existing CNN models. Thus, our method requires no extra effort to improve its computation efficiency on the CNN models with small kernels. Another fundamental difference is that our method aims at reducing the input data size rather than model complexity.
In this paper, we propose a generic method on learning in the frequency domain, including a data pre-processing pipeline as well as an input data size pruning method.
Figure 1 shows the comparison of our method and the
conventional approach. In the conventional approach, high-resolution RGB images are usually pre-processed on a CPU and transmitted to a GPU/AI accelerator for real-time inference. Because uncompressed images in the RGB format are usually large, the requirement of the communication bandwidth between a CPU and a GPU/AI accelerator is usually high. Such communication bandwidth can be the bottleneck of the system performance, as shown in Figure 1(a). To reduce both the computation cost and the communication bandwidth requirement, high-resolution RGB images are downsampled to smaller images, which often results in information loss and thus lower inference accuracy.
In our method, high-resolution RGB images are still pre-processed on a CPU. However, they are first transformed to the YCbCr color space and then to the frequency domain. This coincides with the most widely-used image compression standards, such as JPEG. All components of the same frequency are grouped into one channel. In this way, multiple frequency channels are generated. As shown in Section 3.2, certain frequency channels have bigger impact on the inference accuracy than the others. Thus, we propose to only preserve and transmit the most important frequency channels to a GPU/AI accelerator for inference. Compared to the conventional approach, the proposed method requires less communication bandwidth and achieves higher accuracy at the same time.
We demonstrate that the input features in the frequency domain can be applied to all existing CNN models developed in the spatial domain with minimal modification. Specifically, one just need to remove the input CNN layer and reserve the remaining residual blocks. The first residual layer is used as the input layer, and the number of input channels is modified to fit the dimension of the DCT co-efficient inputs. As such, a modified model can maintain similar parameter count and computational complexity to the original model.
Based on our frequency-domain model, we propose a
Figure 3: Connecting the pre-processed input features in the frequency domain to ResNet-50. The three input layers (the dashed gray blocks) in a vanilla ResNet-50 are removed to admit the 5664 DCT inputs. We take 64 channels as an example. This value can vary based on the channel selection. In learning-based channel selection, all 192 channels are analyzed for their importance to accuracy, based on which only a subset (channels) is used in the static selection approach.
learning-based channel selection method to explore the spectral bias of a given CNN model, i.e., which frequency components are more informative to the subsequent inference task. The findings motivate us to prune the trivial frequency components for inference, which significantly reduces the input data size, consequently reducing both the computational complexity of domain transformation and the required communication bandwidth, while maintaining inference accuracy.
3.1. Data Pre-processing in the Frequency Domain
The data pre-processing flow is shown in Figure 2. We follow the pre-processing and augmentation flow in the spatial domain, consisting of image resizing, cropping, and flipping (spatial resize and crop in Figure 2). Then images are transformed to the YCbCr color space and converted to the frequency domain (DCT transform in Figure 2). The two-dimensional DCT coefficients at the same frequency are grouped into one channel to form three-dimensional DCT cubes (DCT reshape in Figure 2). As will be discussed in Section 3.2, a subset of impactful frequency channels are selected (DCT channel select in Figure 2). The selected channels in the YCbCr color space are concatenated together to form one tensor (DCT concatenate in Figure 2). Lastly, every frequency channel is normalized by the mean and variance calculated from the training dataset.
The DCT reshape operation in Figure 2 groups a two-dimensional DCT coefficients to a three-dimensional DCT cube. Since the JPEG compression standard uses DCT transformation on the YCbCr color space, we group the components of the same frequency in all the blocks into one channel, maintaining their spatial relations at each frequency. Thus, each of the Y, Cb, and Cr components provides channels, one for each frequency, with a total of 192 channels in the frequency domain. Suppose the shape of the original RGB input image is , where C = 3 and the height and width of the image is denoted as H and W, respectively. After converting to the frequency domain, the input feature shape becomes , which maintains the same input data size.
Since the input feature maps in the frequency domain are smaller in the H and W dimensions but larger in the C dimension than the spatial-domain counterpart, we skip the input layer of a conventional CNN model, which is usually a stride-2 convolution. If a max-pooling operator immediately follows the input convolution (e.g., ResNet-50), we skip the max-pooling operator as well. Then we adjust the channel size of the next layer to match the number of channels in the frequency domain. It is illustrated in Figure 3. This way, we minimally adjust the existing CNN models to accept the frequency-domain features as input.
In the image classification task, the CNN models usually take input features of the shape , which is usually downsampled from images with a much higher resolution. When the classification is performed in the frequency domain, larger images can be taken as input. Take ResNet-50 as an example, the input features in the frequency domain are connected to the first residue block with the number of channels adjusted to 192, forming an input feature of the shape , as shown in Figure 2. That is DCTtransformed from input images of size , which preserves four times more information than the counterpart in the spatial domain, at the cost of 4 times the input feature size. Similarly, for the model MobileNetV2, the input feature shape is , reshaped from images of size . As discussed in Section 3.3, the majority of the frequency channels can be pruned without sacrificing accuracy. The frequency channel pruning operation is referred to as DCT channel select in Figure 2.
Figure 4: The gate module that generates the binary decisions based on the features extracted by the SE-Block. The white color channels of Tensor 5 indicate the unselected channels.
3.2. Learning-based Frequency Channel Selection
As different channels of the input feature are at different frequencies, we conjecture that some frequency channels are less informative to the subsequent tasks such as image classification, object detection, and instance segmentation, and removing the trivial frequency channels shall not result in performance degradation. Thus, we propose a learning-based channel selection mechanism to exploit the relative importance of each input frequency channel. We employ a dynamic gate module that assigns a binary score to each frequency channel. The salient channels are rated as one, the others as zero. The input frequency channels with zero scores are detached from the network. Thus, the input data size is reduced, leading to reduced computation complexity of domain transformation and communication bandwidth requirement. The proposed gate module is simple and can be part of the model to be applied in online inference.
Figure 4 describes our proposed gate module in detail. The input is of shape in this paper), with C frequency channels (Tensor 1 in Figure 4). It is first converted to Tensor 2 in Figure 4 of shape by average pooling. Then it is converted to Tensor 3 in Figure 4 of shape by a convolutional layer. Conversion from Tensor 1 to Tensor 3 is exactly the same as a two-layer squeeze-and-excitation block (SE-Block) , which utilizes the channel-wise information to emphasize the informative features and suppress the trivial ones. Then, Tensor 3 is converted to Tensor 4 in Figure 4 of the shape by multiplying every element in Tensor 3 with two trainable parameters. During inference, the two numbers for each of the 192 channels in Tensor 4 are normalized and serve as the probability of being sampled as 0 or 1, and then, point-wise multiplied to the input frequency channels to obtain Tensor 5 in Figure 4. As an example, if the two numbers in the ith channel in Tensor 4 are 7.5 and 2.5, there is a 75% probability that the ith gate is turned off. In other words, the ith frequency channel in Tensor 5 becomes all zeros 75% of the times, which effectively blocks this frequency channel from being used for inference.
Our gate module differs from the conventional SE-Block in two ways. First, the proposed gate module outputs a tensor of dimension , where the two numbers in the last dimension describe the probability of being on and off for each frequency channel, respectively. Thus we add another convolution layer for the conversion. Second, the number multiplied to each frequency channel is either 0 or 1, i.e., a binary decision of using the frequency or not. The decision is obtained by sampling a Bernoulli distribution Bern(p), where p is calculated by the 2 numbers in the tensor mentioned above.
One of the challenges in the proposed gate module is that the Bernoulli sampling process is not differentiable in case one needs to update the weights in the gate module. [33, 34, 35] propose a reparameterization method, called Gumbel Softmax trick, which allows the gradients to back propagate through a discrete sampling process (see Gumbel samples in Figure 4).
Let be the input channels in the frequency domain (C = 192) for a CNN model. Let F denote the proposed gate module such that F, for each frequency channel . Then is selected if
where is the element-wise product.
We add a regularization term to the loss function that balances the number of selected frequency channels, which is minimized together with the cross-entropy loss or other accuracy-related loss. Our loss function is thus as follows,
where is the loss that is related to accuracy. is a hyperparameter indicating the relative weight of the regularization term.
3.3. Static Frequency Channel Selection
The learning-based channel selection provides a dynamic estimation of the importance of each frequency channel, i.e., different input images may have different subsets of the frequency channels activated.
To understand the pattern of frequency channel activation, we plot two heat maps, one on the classification task (Figure 5a) and one on the segmentation task (Figure 5b). The number in each box indicates the frequency index of the channel, with a lower and higher index indicating a lower and higher frequency, respectively. The heat map value indicates the likelihood a frequency channel being selected for inference across all the validation images.
Based on the patterns in the heat maps shown in Figure 5, we make several observations:
• The low-frequency channels (boxes with small indices) are selected much more often than the high-frequency channels (boxes with with large indices). This demonstrates that low-frequency channels are more informative than high-frequency channels in general for vision inference tasks.
• The frequency channels in luma component Y are selected more often than the channels in chroma components Cb and Cr. This indicates that the luma component is more informative for vision inference tasks.
• The heat maps share a common pattern between the classification and segmentation tasks. This indicates that the above-mentioned two observations are not spe-cific to one task and is very likely to be general to more high-level vision tasks.
Figure 5: A heat map visualization of input frequency channels on the ImageNet validation dataset for image classification and COCO validation dataset for instance segmentation. The numbers in each square represent the corresponding channel indices. The color from bright to dark indicates the possibility of a channel being selected from low to high.
• Interestingly, some lower frequency channels have lower probability of being selected than the slightly higher frequency channels. For example, in Cb and Cr components, both tasks favor Channel 6 and 9 over Channel 5 and 3.
Those observations imply that the CNN models may indeed exhibit similar characteristics to the HVS, and the image compression standards (e.g., JPEG) targeting human eyes may be suitable for the CNN models as well.
The JPEG compression standard puts more bits to the low-frequency and the luma components. Following the same principle, we statically select the lower frequency channels, with more emphasis on the luma component than the chroma components. This ensures the frequency channels with higher activation probabilities are fed into the CNN models. The rest of the frequency channels can be pruned by either the image encoder or decoder to reduce the required data transmission bandwidth and input data size.
We benchmark our proposed methodology on three different high-level vision tasks: image classification, detection, and segmentation.
4.1. Experiment Settings on Image Classification
We benchmark our method on image classification using the ImageNet 2012 Large-Scale Visual Recognition Challenge dataset (ILSVRC-2012) . We use the stochastic gradient descent (SGD) optimizer. SGD is applied with an initial learning rate of 0.1, a momentum of 0.9, and a weight decay of 4e-5. We choose ResNet-50  and Mo-bileNetV2  as the CNN models because they contain important building blocks (e.g., residue blocks and depthwise separable convolutions) widely used in modern CNN models. Note that our method can be generally applied to any CNN model. We train 210 and 150 epochs and decay the learning rate by 0.1 every 50 epochs for ResNet-50 and MobileNetV2, respectively.
To normalize the input channels, we compute the mean and variance of the DCT coefficients for each of the 192 frequency channels separately on all the training images.
As described in Section 3.1, the input features in the frequency domain are generated from images with a much higher resolution than the spatial-domain counterpart. However, some of the images in the ImageNet dataset have lower resolutions. We perform similar pre-processing steps as in the spatial domain, including resizing and cropping to a larger image size, performing upsampling when needed.
4.2. Experiment Results on Image Classification
We train the ResNet-50 model with 192 frequency channel inputs on the image classification task using the approach described in Section 3.2. The gate module for channel selection is trained together with the ResNet-50 model. Figure 5a shows a heat map of the selection results over
Table 1: ResNet-50 classification results on ImageNet (validation). The input size of each method is normalized over the baseline ResNet-50. The input frequency channels are selected with the square and triangle channel selection pattern if the postfix S and T is specified, respectively.
Table 2: MobileNetV2 classification results on ImageNet (validation).
the validation set with . Note that different regularization parameters generate different number of activated frequency channels in heat maps. A typical example is shown in Figure 5a, that most channels () have very low possibility () of being selected.
Observing that low frequency channels are more important in the heat maps, we explore the sensitivity of the precise shapes of selected channels. In Table 1, DCT-24D shows the accuracy when 24 (14+5+5) channels are precisely selected based on the result of the dynamic selection in Figure 5a. In comparison, DCT-24T and DCT-24S show the accuracy when a total of 24 channels for Y, Cb, Cr components are close to upper-left triangles and squares, respectively. The variation of the top-1 accuracy is almost negligible and all of them outperform a baseline ResNet-50 by roughly 1.4%. This demonstrates that the benefit of the proposed frequency-domain learning can be applied to many tasks as long as a majority of low-frequency channels are selected. Note the input data size is only a half of the baseline ResNet-50. Since DCT-24S provides a slightly better result, the remaining static selection are based on patterns that are close to upper-left squares (some lower right channels may be missing).
Similarly, we choose the top (32, 8, 8) channels for DCT-48S/T and top (44, 10, 10) channels for DCT-64S/T. The results on the ImageNet dataset are shown in Table 1 along with selecting all 192 frequency channels. In particular, compared with the baseline ResNet-50, the top-1 accuracy is improved by 1.4% using all frequency channels. One should also note that the accuracy is dropped when the inputs are transformed from the RGB to the YCbCr color space (both in the spatial domain) by roughly 0.5%, and the improvement of our method (in the frequency domain) over the YCbCr case is even larger.
Another interesting observation is that the model trained with a subset of channels may perform better than the model trained with all the 192 channels. Such a counter-intuitive observation implies that a small number (e.g., 24) of low-frequency channels are sufficient to capture useful features and additional frequency components may introduce noise.
Similar experiments are performed using the Mo-bileNetV2 as the baseline CNN model and the results are shown in Table 2. Note that DCT-12S and DCT-6S select 12 and 6 frequency channels, and the input data size is the same and a half of the baseline MobileNetV2, respectively. The top-1 accuracy of DCT-12S and DCT-6S is improved by 0.454% and 0.074%, respectively. The top-1 accuracy is improved by 0.662% and 0.580% by selecting 32 and 24 frequency channels, respectively.
4.3. Experiment Settings on Instance Segmentation
We train our model on the COCO train2017 split containing about 118k images and evaluate on the val2017 split containing 5k images. We evaluate the bounding box (bbox) average precision (AP) for the object detection task and the mask AP for the instance segmentation task. Based on the Mask R-CNN , our model consists of a frequency-domain ResNet-50 model as introduced in Section 4.1 and a feature pyramid network  as the backbone. The frequency-domain ResNet-50 model is fine-tuned with the bounding-box recognition head and the mask prediction head. Input images are resized to a maximum scale
Table 3: Bbox AP results of Mask R-CNN using different backbones on COCO 2017 validation set. The baseline Mask RCNN uses a ResNet-50-FPN as the backbone. The DCT method uses the frequency-domain ResNet-50-FPN as the backbone.
Table 4: Mask AP results of Mask R-CNN using different backbones on COCO 2017 validation set.
of without changing the aspect ratio. The corresponding DCT coefficients have a maximum size of , which are fed into the ResNet-50-FPN  for feature extraction.
We train our networks for 20 epochs with an initial learning rate of 0.0025, which is decreased by after 16 and 19 epochs. The rest of the configurations follow those of MMDetection .
In Table 5 and Table 4, we report the AP metric that averages APs across IoU thresholds from 0.5 to 0.95 with an interval of 0.05. Both the bbox AP and the mask AP are evaluated. For the mask AP, we also report AP@0.5 and AP@0.75 at the IoU threshold of 0.5 and 0.75 respectively, as well as AP, AP, and APat different scales.
4.4. Experiment Results on Instance Segmentation
We train our Mask R-CNN model using the 192-channel inputs in the frequency domain for instance segmentation. The gate module for dynamic channel selection is trained together with the entire Mask R-CNN. Figure 5b shows the heat maps for the dynamic selection.
We further train our models using only the top 24, 48, and 64 high-probability frequency channels. The bbox and mask AP of our method in different cases is reported in Table 5 and Table 4, respectively. The experiment results show that our method outperforms the RGB-based Mask R-CNN baseline with both an equal (DCT-48S) or smaller (DCT-24S) input data size. Specifically, the 24-channel model (DCT-24S) achieves an improvement of 0.4 in both bbox AP and mask AP with a half of the input data size compared to the RGB-based Mask R-CNN baseline.
Figure 6 visually illustrates the segmentation results of the Mask R-CNN model trained and performing inference in the frequency domain.
Figure 6: Examples of instance segmentation results on the COCO dataset.
In this paper, we propose a method of learning in the frequency domain and demonstrate its generality and superiority for a variety of tasks, including classification, detection, and segmentation. Our method requires little modi-fication to the existing CNN models that take RGB input thus can be generally applied to existing network training and inference methods. We show that learning in the frequency domain better preserves image information in the pre-processing stage than the conventional spatial downsampling approach and consequently achieves improved accuracy. We propose a learning-based dynamic channel selection method and empirically show that the CNN models are more sensitive to low-frequency channels than high-frequency channels. Experiment results show that one can prune up to 87.5% of the frequency channels using the proposed channel selection method with no or little accuracy degradation in the classification, object detection, and instance segmentation tasks.
Acknowledgement. The work by Arizona State University is supported by an NSF grant (IIS/CPS-1652038).
 A. Krizhevsky, I. Sutskever, and G. E Hinton. Imagenet classification with deep convolutional neural networks. In NIPS, 2012.
 A. Karpathy, G. Toderici, S. Shetty, T. Leung, R. Suk- thankar, and L. Fei-Fei. Large-scale video classifica-tion with convolutional neural networks. In CVPR, 2014.
 S. Ren, K. He, R. Girshick, and J. Sun. Faster r-cnn: Towards real-time object detection with region proposal networks. In NIPS, 2015.
 J. Redmon, S. Divvala, R. Girshick, and A. Farhadi. You only look once: Unified, real-time object detection. In CVPR, 2016.
 J. Long, E. Shelhamer, and T. Darrell. Fully convolu- tional networks for semantic segmentation. In CVPR, 2015.
 L. Chen, Y. Zhu, G. Papandreou, F. Schroff, and H. Adam. Encoder-decoder with atrous separable convolution for semantic image segmentation. In ECCV, 2018.
 O. Russakovsky, J. Deng, H. Su, J. Krause, S. Satheesh, S. Ma, Z. Huang, A. Karpathy, A. Khosla, M. Bernstein, A. Berg, and L. Fei-Fei. ImageNet Large Scale Visual Recognition Challenge. In IJCV, 2015.
 Y. Pei, Y. Huang, Q. Zou, X. Zhang, and S. Wang. Effects of image degradation and degradation removal to cnn-based image classification. In TPAMI, 2019.
 H. Kim, M. Choi, B. Lim, and K. Lee. Task-aware image downscaling. In ECCV, 2018.
 F. Saeedan, N. Weber, M. Goesele, and S. Roth. Detail-preserving pooling in deep networks. In CVPR, 2018.
 J. Kim and S. Lee. Deep learning of human visual sensitivity in image quality assessment framework. In CVPR, 2017.
 X. Wei, Y. Liang, P. Zhang, C. Yu, and J. Cong. Over- coming data transfer bottlenecks in dnn accelerators via layer-conscious memory managment. In FPGA, 2019.
 Y. You, Z. Zhang, C. Hsieh, J. Demmel, and K. Keutzer. Imagenet training in minutes. In ICPP, 2018.
 R. Torfason, F. Mentzer, E. gstsson, M. Tschannen, R. Timofte, and L. Gool. Towards image understanding from deep compression without decoding. In ICLR, 2018.
 K. XU, Z. Zhang, and F. Ren. Lapran: A scalable laplacian pyramid reconstructive adversarial network
for flexible compressive sensing reconstruction. In ECCV), 2018.
 C. Wu, M. Zaheer, H. Hu, R. Manmatha, A. Smola, and P. Kr¨ahenb¨uhl. Compressed video action recognition. In CVPR, 2018.
 L. Gueguen, A., B., R. Liu, and J. Yosinski. Faster neural networks straight from jpeg. In NIPS, 2018.
 M. Ehrlich and L. Davis. Deep Residual Learning in the JPEG Transform Domain. In ICCV, 2019.
 A. Veit and S. Belongie. Convolutional networks with adaptive inference graphs. In ECCV, 2018.
 X. Wang, F. Yu, Z. Dou, T. Darrell, and J. Gonzalez. Skipnet: Learning dynamic routing in convolutional networks. In ECCV, 2018.
 Q. Guo, Z. Yu, Y. Wu, D. Liang, H. Qin, and J. Yan. Dynamic recursive neural network. In CVPR, 2019.
 Z. Wu, T. Nagarajan, A. Kumar, S. Rennie, L. Davis, K. Grauman, and R. Feris. Blockdrop: Dynamic inference paths in residual networks. In CVPR, 2018.
 Z. Chen, Y. Li, S. Bengio, and S. Si. You look twice: Gaternet for dynamic filter selection in cnns. In CVPR, 2019.
 J. Frankle and M. Carbin. The lottery ticket hypoth- esis: Finding sparse, trainable neural networks. In ICLR, 2019.
 P. Molchanov, A. Mallya, S. Tyree, I. Frosio, and J. Kautz. Importance estimation for neural network pruning. In CVPR, 2019.
 K. Wang, Z. Liu, Y. Lin, J. Lin, and S. Han. Haq: Hardware-aware automated quantization with mixed precision. In CVPR, 2019.
 S. Han, H. Mao, and W. Dally. Deep compression: Compressing deep neural networks with pruning, trained quantization and huffman coding. ICLR, 2016.
 W. Chen, J. Wilson, S. Tyree, K. Weinberger, and Y. Chen. Compressing convolutional neural networks in the frequency domain. In KDD, 2016.
 Y. Wang, C. Xu, C. Xu, and D. Tao. Packing con- volutional neural networks in the frequency domain. TPAMI, 2019.
 A. Dziedzic, J. Paparrizos, S. Krishnan, A. Elmore, and M. Franklin. Band-limited training and inference for convolutional neural networks. In ICML, 2019.
 A. Lavin and S. Gray. Fast algorithms for convolu- tional neural networks. In CVPR, 2016.
 J. Hu, L. Shen, and G. Sun. Squeeze-and-excitation networks. In CVPR, 2018.
 E. Jang, S. Gu, and B. Poole. Categorical reparame- terization with gumbel-softmax. In ICLR, 2017.
 G. Tucker, A. Mnih, C. Maddison, J. Lawson, and J. Sohl-Dickstein. Rebar: Low-variance, unbiased gradient estimates for discrete latent variable models. In NIPS, 2017.
 C. Maddison, A. Mnih, and Y. Teh. The concrete dis- tribution: A continuous relaxation of discrete random variables. In ICLR, 2017.
 J. Deng, W. Dong, R. Socher, L.-J. Li, K. Li, and L. Fei-Fei. ImageNet: A Large-Scale Hierarchical Image Database. In CVPR, 2009.
 K. He, X. Zhang, S. Ren, and J. Sun. Deep residual learning for image recognition. In CVPR, 2016.
 M. Sandler, A. Howard, M. Zhu, A. Zhmoginov, and L. Chen. Mobilenetv2: Inverted residuals and linear bottlenecks. In CVPR, 2018.
 K. He, G. Gkioxari, P. Dollr, and R. Girshick. Mask r-cnn. In ICCV, 2017.
 T. Lin, P. Dollr, R. Girshick, K. He, B. Hariharan, and S. Belongie. Feature Pyramid Networks for Object Detection. In CVPR, 2017.
 K. Chen, J. Wang, J. Pang, Y. Cao, Y. Xiong, X. Li, S. Sun, W. Feng, Z. Liu, J. Xu, Z. Zhang, D. Cheng, C. Zhu, T. Cheng, Q. Zhao, B. Li, X. Lu, R. Zhu, Y. Wu, J. Dai, J. Wang, J. Shi, W. Ouyang, C. Loy, and D. Lin. MMDetection: Open mmlab detection toolbox and benchmark. ArXiv:1906.07155, 2019.
This document supplements our paper entitled Learning in the Frequency Domain by providing further quantitative and qualitative insights of the results.
We have provided the source code to reproduce the experiments in the paper. The code is based on PyTorch and is available at https://github.com/calmevtime/ DCTNet. There are two folders in the repo named “classi-fication” 1 and “segmentation” 2. The classification folder contains all the necessary code and instructions to reproduce our work using the pretrained models on the image classification task. The segmentation folder contains all the necessary code and instructions on the object detection and instance segmentation task.
In addition to the Mask R-CNN model provided in the paper, we train our model for object detection on the COCO train2017 split and evaluate on the val2017 split using the Faster R-CNN  model. Our model consists of a frequency-domain ResNet-50 model (introduced in Section 4.1 in the main paper) and a feature pyramid network  as the backbone. The frequency-domain ResNet-50 model is fine-tuned with the classification head and bounding box regression head. Input images are resized to a maximum scale of16002666 without changing the aspect ratio. The corresponding DCT coefficients have a maximum size of 200334, which are fed into the ResNet-50-FPN for feature extraction. The rest of the configurations follow those of MMDetection .
In Table 5, we report the results on the object detection task using the frequency domain Faster R-CNN. The proposed method achieves a 0.8% AP improvement compared to the baseline Faster R-CNN on the COCO dataset.
 S. Ren, K. He, R. Girshick, and J. Sun. Faster R-CNN: Towards Real-time Object Detection with Region Proposal Networks. In NIPS, 2015.
 T. Lin, P. Dollr, R. Girshick, K. He, B. Hariharan, and S. Belongie. Feature Pyramid Networks for Object Detection. In CVPR, 2017.
 K. Chen, J. Wang, J. Pang, Y. Cao, Y. Xiong, X. Li, S. Sun, W. Feng, Z. Liu, J. Xu, Z. Zhang, D. Cheng, C. Zhu, T. Cheng, Q. Zhao, B. Li, X. Lu, R. Zhu, Y. Wu, J. Dai, J. Wang, J. Shi, W. Ouyang, C. Loy, and D. Lin.
Figure 7: Examples of instance segmentation results on the COCO dataset.
Table 5: Bbox AP results of Faster R-CNN using different backbones on COCO 2017 validation set. The baseline Mask R- CNN use a ResNet-50-FPN as the backbone. The DCT method uses the frequency-domain ResNet-50-FPN as the backbone.