Representation Enhancement-Stabilization: Reducing Bias-Variance of Domain Generalization

Wei Huang, Yilei Shi, Zhitong Xiong, Xiao Xiang ZhuECCV 2024

Introduction: The Fragility of Deep Learning

Deep learning models are notoriously fragile when encountering data from a "target" domain that differs from the "source" training data—a phenomenon known as domain shift. Domain Generalization (DG) seeks to train models on multiple source domains to ensure robust performance on unseen target domains. While many DG methods exist, the authors of this paper argue that we lack a clear understanding of why these models fail, proposing a lens of bias-variance decomposition to explain test errors.

The Core Problem: Cross-Domain Bias and Variance

The authors identify two primary drivers of test error in DG scenarios:

  1. Cross-Domain Bias: Models often over-rely on domain-specific "styles" (like texture or color) rather than invariant "content" (like object shape). This leads to a discrepancy between the model’s average prediction and the actual labels in a new domain.
  2. Cross-Domain Variance: Models exhibit high sensitivity to fluctuations during training, leading to unstable performance when faced with unfamiliar data.
Challenges of cross-domain bias and variance in domain generalization.

The RES Framework

To address these issues, the Representation Enhancement-Stabilization (RES) framework introduces two synergistic modules designed to reduce bias and variance respectively.

Overview of the RES framework architecture, featuring Representation Enhancement (RE) and Representation Stabilization (RS).

1. Representation Enhancement (RE)

RE targets cross-domain bias by performing feature-level augmentation in the frequency domain. Using a Fast Fourier Transform (FFT), intermediate feature maps are split into phase (which carries structural/semantic information) and amplitude (which carries low-level style information). RE preserves the phase while aggressively augmenting the amplitude through random noise, dropout, and mixup. This forces the model to ignore domain-specific styles and focus on invariant semantic content.

2. Representation Stabilization (RS)

RS addresses cross-domain variance using a Mutual Exponential Moving Average (MEMA) strategy. It maintains a "Student" model (the active learner) and a "Teacher" model (the stable reference). Unlike standard teacher-student setups, MEMA creates a mutual feedback loop: the Teacher's parameters are a moving average of the Student's, but the Student also periodically "assimilates" parameters back from the Teacher. This stabilizes the optimization process, preventing the model from falling into "sharp" minima that generalize poorly.

Experimental Results

The RES framework was evaluated on five major DG benchmarks: PACS, VLCS, OfficeHome, TerraIncognita, and DomainNet.

  • State-of-the-Art Performance: RES achieved an average accuracy of 67.9% across all benchmarks, outperforming established methods like SWAD (66.9%) and standard ERM (63.8%).
  • Robustness on PACS: On the PACS dataset, RES reached 90.0% accuracy while significantly reducing performance variance (standard deviation dropped from 1.1 to 0.3).
  • Feature Invariance: Analysis showed that RES produces features with higher cosine similarity between source and target domains, confirming a successful reduction in domain bias.

Conclusion

By explicitly addressing both bias and variance through frequency-domain augmentation and mutual parameter stabilization, the RES framework provides a theoretically grounded and highly effective solution for robust domain generalization. Future work will look to explore these interactions within Vision Transformer (ViT) architectures.

Summary updated

BibTeX
@inproceedings{huang2024representation,
  author = {Wei Huang and Yilei Shi and Zhitong Xiong and Xiao Xiang Zhu},
  title = {{Representation Enhancement-Stabilization: Reducing Bias-Variance of Domain Generalization}},
  booktitle = {European Conference on Computer Vision},
  year = {2024},
  doi = {10.1007/978-3-031-72764-1\_7},
}
Figure