Abstract
Deep Frequency Filtering (DFF) is a novel approach to Domain Generalization (DG) that explicitly modulates frequency components within a neural network's latent space. By leveraging the Fast Fourier Transform (FFT) and learnable, instance-adaptive attention masks, the model learns to amplify transferable features, such as global structure, while suppressing domain-specific noise like local textures. This mechanism significantly improves model performance and robustness on unseen target domains.
Introduction
Standard Deep Learning models typically operate under the i.i.d. assumption, where training and testing data are drawn from the same distribution. However, real-world applications often encounter "domain gaps" caused by variations in lighting, background, or camera styles. Domain Generalization (DG) seeks to overcome this by building models capable of performing well on target domains not encountered during training.
Recent insights into the "F-Principle" suggest that Deep Neural Networks (DNNs) prioritize learning low-frequency components but often rely on high-frequency components to boost accuracy on training data, which can compromise robustness on unseen data. This paper addresses the challenge of identifying and preserving only the "transferable" frequency components that remain consistent across different domains.
Methodology
The core of the proposed approach is the Deep Frequency Filtering (DFF) module, which operates within the network's intermediate layers. The process is divided into three primary stages:
- Frequency Transformation: Intermediate feature maps are converted into the frequency domain using a 2D Fast Fourier Transform (FFT).
- Adaptive Filtering: Rather than employing static filters, DFF utilizes a lightweight attention module to learn a spatial mask. This mask is instance-adaptive, allowing the network to dynamically determine which frequencies to preserve or suppress based on the specific input image.
- Spatial Restitution: The filtered frequency representation is transformed back into the spatial domain via an Inverse FFT (iFFT).
The authors integrate this module into a two-branch architecture. While one branch processes standard spatial features to capture local details, the DFF branch focuses on global frequency information. This dual-path approach ensures the model retains fine-grained details necessary for classification while benefiting from the robustness provided by frequency filtering.
Experimental Setup
The DFF framework was evaluated across two distinct tasks:
- Close-set Classification: Benchmarked on the Office-Home and PACS datasets.
- Open-set Retrieval (Person Re-Identification): Tested on large-scale datasets including Market-1501, MSMT17, CUHK03, and CUHK-SYSU, as well as smaller "unseen" target datasets like VIPeR, PRID, GRID, and iLIDS.
- General Utility: The model was also tested on ImageNet-1K to evaluate its performance as a general-purpose enhancement for standard architectures.
Results and Discussion
The experimental results demonstrate the efficacy of frequency-based modulation:
- State-of-the-Art Performance: On the Office-Home dataset, DFF achieved an average accuracy of 67.6%, outperforming previous methods like MixStyle by 2.2%.
- Significant Gains in Re-ID: In open-set person retrieval, DFF surpassed the second-best method by an average of 8.9% in Rank-1 accuracy across unseen domains.
- Generalization to ImageNet: Integrating DFF into a standard ResNet-18 increased Top-1 accuracy on ImageNet-1K from 69.8% to 72.3% (+2.5%).
Visual evidence from feature maps indicates that models equipped with DFF focus more precisely on transferable features, such as the human body in Re-ID tasks, while ignoring noisy, domain-specific backgrounds. This confirms that frequency representations act as an effective proxy for transferability, allowing the model to suppress globally distributed domain-specific information (like lighting or tint) more effectively than standard spatial convolutions.
Conclusion
Deep Frequency Filtering provides a robust mechanism for Domain Generalization by explicitly editing features in the frequency domain. The transition from task-wise to instance-adaptive filtering is crucial, as different images require unique strategies to preserve their core identity. While the current implementation uses a lightweight attention module, future work may explore more sophisticated architectures or extend these principles to temporal frequencies for video-based generalization.
Summary updated