Abstract
Domain Generalization (DG) seeks to train models on multiple source domains such that they generalize effectively to unseen target domains. This paper introduces a dual-strategy approach to improve DG by simultaneously disentangling spurious correlations and enhancing potential correlations. We propose two portable modules: a Two-step High-pass Filter for frequency-based data augmentation and a Tail Interaction module for cross-sample feature learning. Experimental results across standard benchmarks like PACS, VLCS, and Digits-DG demonstrate that our method achieves state-of-the-art performance with minimal computational overhead.
Introduction
Standard machine 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 shifts. For instance, a model might learn to identify a cow based on a green pasture background (a spurious correlation) rather than the cow's intrinsic features. When presented with a cow on a beach, such a model often fails.
Domain Generalization (DG) addresses this by extracting domain-invariant representations—features that remain consistent across different styles (e.g., photos, sketches, cartoons). The goal is to ignore domain-specific noise while focusing on robust semantic information.
Methodology
The proposed framework consists of two main components designed to be integrated into existing neural network architectures.
1. Frequency Restriction Module
The authors observe that semantic information, such as object edges and shapes, primarily resides in high-frequency components, whereas domain-specific styles and backgrounds are often found in low frequencies. To exploit this, they implement a Two-step High-pass Filter:
- Step 1: Isolate high-frequency components using a Fast Fourier Transform (FFT).
- Step 2: Apply amplitude and phase scaling. Since raw high-pass filtering can introduce excessive noise, scaling these components helps "denoise" the image, compelling the model to learn from robust structural skeletons.
2. Tail Interaction Module
While standard self-attention mechanisms compute relationships within a single image, the Tail Interaction module identifies correlations across different samples from all source domains. By projecting features into a shared interaction space, the model learns patterns common to the object class regardless of the domain. Notably, this module maintains $O(n)$ linear complexity, ensuring scalability and efficiency compared to traditional quadratic self-attention.
Experiments and Results
The method was evaluated on several rigorous DG benchmarks, including PACS, VLCS, Office-Home, Digits-DG, and the large-scale DomainNet.
Key Performance Metrics
- Digits-DG: Achieved an average accuracy of 92.30%, significantly outperforming baseline models.
- PACS: Reached 90.95% accuracy using an MLP backbone, surpassing specialized methods like FACT.
- Efficiency: The Tail Interaction module is extremely lightweight, adding fewer than 65,000 parameters.
- Robustness: On the challenging TerraIncognita dataset, the model showed a +3.1% improvement over previous state-of-the-art methods.
Discussion and Conclusion
The success of this approach highlights two critical insights: high-frequency components are vital for generalizable semantics, and cross-sample interaction is superior to single-sample learning for capturing domain-invariant features. The modules are architecture-agnostic, performing well with both CNN and MLP backbones.
A current limitation is the sensitivity to hyper-parameters, such as the filter's severity and scaling ratios. Future research may focus on adaptive schemes to automatically tune these parameters based on input data characteristics, further enhancing the model's robustness to domain shifts.
Summary updated