This CVPR 2021 paper introduces a novel perspective on how deep neural networks (DNNs) perceive images. By analyzing images through the lens of the Fourier Transform, the authors propose a method to help models ignore "distracting" style information and focus on the core semantic structures that remain consistent across different domains.
The Core Intuition: Phase vs. Amplitude
The fundamental premise of this work is based on a classic property of the Fourier Transform. When an image is decomposed into its frequency components, it yields two spectra:
- Amplitude Spectrum: This captures low-level statistics, such as style, texture, and color distributions.
- Phase Spectrum: This preserves high-level semantics and structural information, such as edges and shapes.
As shown in the visualization below, an image reconstructed using only its phase information remains recognizable to the human eye, whereas an amplitude-only reconstruction appears as colorful noise. The authors argue that standard DNNs fail at domain generalization because they overfit to the amplitude (style) of the training data rather than learning the invariant phase (structure).
The FACT Framework
To address the brittleness of models under domain shift—where a model trained on photos might fail on sketches or cartoons—the authors propose FACT (Fourier Augmented Co-Teacher). This framework forces the model to prioritize phase information through two primary mechanisms.
1. Fourier-based Data Augmentation (Amplitude Mix)
Instead of standard pixel-level augmentations like cropping, the authors introduce Amplitude Mix (AM). This technique takes two images from different source domains and linearly interpolates their amplitude spectra while keeping the phase of the original image intact. The resulting augmented image retains the structure of the original but adopts the "style" or "texture" of the second image. This implicitly trains the model to look past changing styles to find invariant structural features.
2. Co-teacher Regularization
To explicitly enforce consistency, FACT employs a Mean Teacher framework. It maintains a "Student" model (updated via gradients) and a "Teacher" model (an exponential moving average of the student). The system calculates a dual-formed consistency loss: the Student's prediction on an augmented image should match the Teacher's prediction on the original image, and vice versa. This ensures that the model's internal representations remain stable regardless of amplitude perturbations.
Experimental Results
FACT was evaluated on three major domain generalization benchmarks, demonstrating significant performance gains over previous state-of-the-art (SOTA) methods:
- Digits-DG: Achieved 81.5% average accuracy, outperforming the previous best (L2A-OT) by 3.4%.
- PACS: Using a ResNet-50 backbone, FACT reached 88.15% average accuracy, surpassing competitive methods like RSC across Photo, Art-painting, Cartoon, and Sketch domains.
- OfficeHome: Achieved 66.56% average accuracy, showing consistent improvements even in datasets with higher category counts.
Ablation studies confirmed that both the dual-consistency loss and the momentum teacher were essential; removing either component led to a measurable drop in generalization performance.
Limitations and Future Outlook
While highly effective, the authors noted a slight trade-off in the "Photo" domain of the PACS dataset. In highly realistic domains, some amplitude information (like specific textures) can actually be beneficial for classification. Completely ignoring it can occasionally be a double-edged sword. Additionally, the strength of the amplitude mixing ($\eta$) requires tuning based on the diversity of the source domains.
Ultimately, this Fourier-based perspective offers a robust way to bridge the gap between source and unseen target domains by focusing on the "what" (phase) rather than the "how" (amplitude). The authors suggest this approach could be extended beyond classification to tasks like semantic segmentation or object detection in cross-domain scenarios.
Summary updated