Frequency Dynamic Convolution for Dense Image Prediction

Linwei Chen, Lin Gu, Liang Li, Chenggang Yan, Ying Fu

Abstract

While Dynamic Convolution (DY-Conv) has shown promising performance by enabling adaptive weight selection through multiple parallel weights combined with an attention mechanism, the frequency response of these weights tends to exhibit high similarity, resulting in high parameter costs but limited adaptability. In this work, we introduce Frequency Dynamic Convolution (FDConv), a novel approach that mitigates these limitations by learning a fixed parameter budget in the Fourier domain. FDConv divides this budget into frequency-based groups with disjoint Fourier indices, enabling the construction of frequency-diverse weights without increasing the parameter cost. To further enhance adaptability, we propose Kernel Spatial Modulation (KSM) and Frequency Band Modulation (FBM). KSM dynamically adjusts the frequency response of each filter at the spatial level, while FBM decomposes weights into distinct frequency bands in the frequency domain and modulates them dynamically based on local content. Extensive experiments on object detection, segmentation, and classification validate the effectiveness of FDConv. We demonstrate that when applied to ResNet-50, FDConv achieves superior performance with a modest increase of +3.6M parameters, outperforming previous methods that require substantial increases in parameter budgets (e.g., CondConv +90M, KW +76.5M). Moreover, FDConv seamlessly integrates into a variety of architectures, including ConvNeXt, Swin-Transformer, offering a flexible and efficient solution for modern vision tasks.

Introduction

Standard convolutional layers utilize static weights, which remain constant regardless of the input. Dynamic Convolution (DY-Conv) was introduced to address this limitation by employing multiple parallel weights and an attention mechanism to aggregate them adaptively. However, this approach often incurs a significant "parameter tax." To achieve substantial performance gains, models typically require many parallel weights (e.g., 4x or 8x), yet these weights frequently exhibit high redundancy in the frequency domain. This redundancy implies that substantial memory is consumed for limited additional representational power. Frequency Dynamic Convolution (FDConv) addresses this by shifting weight learning to the Fourier domain to ensure diversity and efficiency.

Methodology: FDConv Architecture

FDConv optimizes a fixed parameter budget in the Fourier domain through three integrated modules:

  1. Fourier Disjoint Weight (FDW): Instead of learning $n$ independent spatial kernels, FDW learns spectral coefficients and partitions them into $n$ disjoint groups based on frequency indices. Applying an inverse Discrete Fourier Transform (iDFT) to these groups generates multiple kernels that are mathematically guaranteed to be diverse, as they represent non-overlapping segments of the frequency spectrum.
  2. Kernel Spatial Modulation (KSM): Unlike traditional dynamic convolutions that use a single scalar weight per kernel, KSM predicts a dense modulation matrix. This matrix fine-tunes individual elements within the kernel by integrating local information (via 1D convolution) and global context (via fully connected layers).
  3. Frequency Band Modulation (FBM): FBM enables spatial variance by decomposing the kernel into distinct frequency bands (low, mid, high). It applies spatially-aware modulation values, allowing the network to adaptively focus on high-frequency details like edges or suppress low-frequency noise depending on the local image content.
The FDConv architecture, illustrating Fourier Disjoint Weight, Kernel Spatial Modulation, and Frequency Band Modulation modules.

Analysis of Weight Diversity

A core innovation of FDConv is the "forced diversity" achieved through spectral partitioning. By constraining weights to disjoint Fourier indices, the model is prevented from learning redundant kernels—a common failure mode in spatial-domain dynamic convolutions.

Comparison of frequency response and t-SNE visualizations for ODConv and FDConv. FDConv demonstrates significantly higher diversity in both frequency response and weight distribution.

As shown in the visualizations above, the frequency responses of traditional dynamic weights (like those in ODConv) tend to cluster, whereas FDConv weights are distributed across the spectrum. Similarly, t-SNE plots reveal that FDConv weights are widely dispersed, confirming their superior representational diversity compared to the tightly clustered weights of previous methods.

Experimental Results

The effectiveness of FDConv was evaluated across multiple benchmarks for dense prediction and classification:

  • Object Detection and Segmentation (COCO): When integrated into a ResNet-50 backbone, FDConv achieved 39.4 box AP, surpassing ODConv (39.2 AP) while utilizing approximately 60M fewer parameters. It also provided significant boosts to modern architectures like ConvNeXt-T (+1.8 AP) and Swin-T (+1.8 AP).
  • Semantic Segmentation (ADE20K & Cityscapes): On ADE20K, FDConv reached a mean Intersection over Union (mIoU) of 43.8, outperforming the Kernel Warehouse (KW) method (43.5 mIoU) despite KW having double the parameter count (141M vs. 70M).
  • Image Classification (ImageNet-1K): FDConv serves as a robust backbone enhancement, consistently improving top-1 accuracy across various model scales.

Conclusion

FDConv represents a significant step forward in making dynamic neural networks efficient and truly adaptive. By leveraging the Fourier domain to enforce weight diversity, it breaks the traditional trade-off between parameter count and performance. While the use of Fourier transforms introduces some architectural complexity and a slight increase in FLOPs, the dramatic reduction in parameter overhead makes it a compelling choice for modern vision tasks. Future research may explore extending these frequency-domain principles to other layer types, such as those found in Transformer architectures.

Summary updated

BibTeX
@inproceedings{chen2025frequency,
  author = {Linwei Chen and Lin Gu and Liang Li and Chenggang Yan and Ying Fu},
  title = {{Frequency Dynamic Convolution for Dense Image Prediction}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2025},
  url = {https://openreview.net/forum?id=FCf3RweEZr},
}
Figure