Abstract
3D Convolutional Neural Networks (CNNs) are essential for processing volumetric and temporal data but suffer from high computational and memory costs. This paper proposes Frequency Domain Compact 3D CNNs (FDC3D), a novel compression framework that leverages learned orthogonal transforms to represent 3D filters in the frequency domain. By exploiting temporal redundancy and performing structural pruning on frequency coefficients, FDC3D achieves significant speedups with minimal accuracy loss. Evaluations on action recognition (UCF101) and medical imaging (BraTS) benchmarks demonstrate that FDC3D outperforms traditional spatial pruning methods, offering a 2× speedup on 3D-ResNet-18 with only a 0.1% increase in error.
Introduction
While 2D CNNs have revolutionized image processing, 3D CNNs are required to capture temporal information in videos or volumetric data in MRI scans. However, the addition of a third dimension causes a massive spike in resource requirements. For example, a 3D-ResNet-50 requires over 3.4× the memory and 5.5× the floating-point operations (FLOPs) of its 2D counterpart. Existing model compression techniques often fail to exploit the unique "temporal redundancy" found in 3D filters, where adjacent frames or slices are highly correlated. FDC3D addresses this by transforming computation into the frequency domain, where redundancy can be more effectively identified and eliminated.
Methodology
The core of FDC3D is the conversion of 3D filters into a sparse frequency representation using a learned transform. The process involves four key components:
- Learned Optimal Transform: Instead of using a fixed transform like the Discrete Cosine Transform (DCT), the authors learn a specific transform matrix ($S$) for each layer, optimized during training.
- Orthogonality Constraint: To maintain mathematical consistency with spatial convolution, the learned transform is forced to be orthogonal ($S^\top S = I$).
- Structural Pruning: Filters are pruned by identifying and removing components with low importance (measured by $\ell_2$-norm) in the frequency matrix.
- Frequency Domain Computation: Convolution is performed directly on compressed frequency coefficients, avoiding the overhead of domain switching during inference.
Experimental Results
The researchers evaluated FDC3D on two distinct benchmarks: UCF101 for human action recognition and BraTS 2018 for brain tumor segmentation.
On the UCF101 dataset using a 3D-ResNet-18 architecture, FDC3D achieved a 2× speedup with a negligible 0.10% increase in error. Even at a 4× speedup, the error increase was limited to 2.16%, significantly outperforming standard spatial pruning methods which saw error spikes as high as 14%. For medical imaging, the compressed 3D U-Net maintained nearly identical Dice scores compared to the original model, proving the method's reliability for high-precision tasks.
Key Insights
- Temporal Redundancy as Sparsity: 3D filters often show similar patterns across the temporal dimension. In the frequency domain, this similarity manifests as sparsity, allowing the model to discard redundant information without losing critical features.
- Learning Beats Fixed Transforms: While DCT is effective for natural images, neural network filters have unique properties. Learning the transform allows the network to adaptively determine which frequencies are most important for the specific task.
- Hardware-Friendly Pruning: By pruning entire rows and channels (structural pruning) rather than individual weights, the method translates directly into faster matrix multiplications on standard hardware.
Conclusion and Future Work
FDC3D demonstrates that frequency-domain representation is a powerful tool for compressing heavy 3D architectures. The method effectively balances computational efficiency with model accuracy. Future research may explore multi-dimensional frequency transforms to address spatial redundancy or investigate the synergy between frequency-domain pruning and other techniques like quantization.
Summary updated