Rethinking FUN: Frequency-Domain Utilization Networks

Kfir Goldberg, Stav Shapiro, Elad Richardson, Shai AvidanarXiv 2020

Abstract

Frequency-Domain Utilization Networks (FUN) propose a paradigm shift in computer vision by processing images in the frequency domain rather than the standard RGB pixel space. By utilizing the Discrete Cosine Transform (DCT) to provide "pre-digested" inputs, FUN architectures like eFUN achieve significant efficiency gains, being 20% smaller and 65% faster than EfficientNet-B0 while maintaining competitive accuracy.

Introduction: Breaking the Hardware Wall

As neural networks scale to improve accuracy, they increasingly encounter a "hardware wall" where inference latency and model size become prohibitive for edge deployment. Traditional optimization techniques—such as pruning, quantization, or Neural Architecture Search (NAS)—typically operate within the redundant RGB pixel space.

This research argues that the input data format itself is a bottleneck. By leveraging the frequency domain (the mathematical foundation of JPEG compression), models can receive a more compact representation of visual information. This allows for shallower architectures that are significantly faster without sacrificing performance.

Methods: Frequency-Domain Architectures

The core of the FUN approach is the transition from spatial pixels to frequency coefficients.

DCT Preprocessing

Instead of raw RGB pixels, images are converted to the YCbCr color space. Each channel is partitioned into $8 \times 8$ blocks and transformed via the Discrete Cosine Transform (DCT). This process reshapes a $224 \times 224 \times 3$ RGB image into a $28 \times 28 \times 192$ volume of frequency coefficients.

The DCT preprocessing pipeline transforms spatial redundancy into a compact frequency representation.

Architecture Adaptation

Because the input is already spatially reduced ($28 \times 28$ vs. $224 \times 224$), FUN models skip the initial high-resolution downsampling layers common in standard CNNs. The authors developed two primary families:

  • ResFUN: A frequency-based adaptation of ResNet-50.
  • eFUN: An efficient variant based on EfficientNet-B0 using Inverted Residual Blocks (MBConv) and compound scaling.

Key Insights

  • Efficiency through Shallowness: Standard CNNs dedicate significant computation to early layers for resolution reduction and low-level feature extraction. Since DCT coefficients already encode these features, FUN models can be shallower, leading to massive inference speedups.
  • The FLOPs Paradox: FUN models may exhibit higher FLOP counts than RGB counterparts but run faster on GPUs. Their shallower, wider structure better utilizes the parallel processing capabilities of modern hardware compared to deep, narrow networks.
  • Dynamic Inference Compression: DCT coefficients are ordered by frequency importance. The authors demonstrated that high-frequency channels can be "zeroed out" during inference to save power with minimal (<1%) accuracy loss, requiring no retraining.

Key Results

The FUN family demonstrates a superior Pareto frontier for the accuracy-latency trade-off.

Top-1 Accuracy vs. Latency on ImageNet, showing eFUN's superior speed compared to state-of-the-art models.
  • eFUN Performance: The base eFUN model achieves 77% Top-1 accuracy on ImageNet. It is 20% smaller (4.2M vs 5.3M parameters) and 65% faster (124 vs 77 images/sec) than EfficientNet-B0.
  • Scaling and Transferability: The eFUN-S+ variant outperforms MobileNet-V2 while being 30% smaller. Furthermore, transfer learning on CIFAR-100 showed eFUN outperforming EfficientNet-B0 by 0.9% in accuracy while maintaining its 65% speed advantage.

Conclusion and Future Work

While FUN models are optimized for GPU parallelism, their higher FLOP counts may present challenges in CPU-constrained environments. Future research directions include tighter integration with hardware-level JPEG decoders to enable end-to-end inference from compressed files and extending the frequency-domain approach to tasks like object detection and segmentation.

Summary updated

BibTeX
@misc{goldberg2020rethinking,
  author = {Kfir Goldberg and Stav Shapiro and Elad Richardson and Shai Avidan},
  title = {{Rethinking FUN: Frequency-Domain Utilization Networks}},
  year = {2020},
  eprint = {2012.03357},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2012.03357},
}
Figure