Abstract
Deep learning models often struggle with domain shift, where test data differs significantly from training data. While Domain Generalization (DG) aims to learn invariant features across multiple source domains, existing methods often fail to account for the "gaps" between these domains. This paper introduces Cross Domain Generative Augmentation (CDGA), a framework that utilizes Latent Diffusion Models (LDMs) to synthesize data that interpolates between styles and domains. By creating a continuous bridge of data, CDGA significantly enhances model robustness and achieves state-of-the-art performance on the DomainBed benchmark.
Introduction
The brittleness of deep learning models under domain shift remains a major hurdle for real-world deployment. A classifier trained on high-resolution photographs may fail when presented with sketches or cartoons of the same objects. Traditional Domain Generalization (DG) approaches attempt to solve this by training on multiple source domains to extract domain-invariant features. However, these methods often treat domains as isolated entities. CDGA addresses this by using generative AI to "fill the gaps" between disparate domains, creating a more cohesive and representative training distribution.
Methodology: Bridging Domains with LDMs
The core of CDGA is the use of Latent Diffusion Models (LDMs), such as Stable Diffusion, to perform cross-domain transformations. Unlike standard data augmentation that operates within a single domain, CDGA generates images that blend characteristics from multiple domains.
The authors propose two primary implementation strategies:
- CDGA-PG (Prompt-Guided): Utilizes text prompts (e.g., "Painting," "Cartoon") to guide the LDM in transforming an image from one domain into the style of another.
- CDGA-IG (Image-Guided): Employs an "image mixer" technique to blend visual features between two images from different domains, particularly useful when textual descriptions are unavailable (e.g., in specialized fields like medical imaging).
By systematically pairing training domains, CDGA creates a dense, diverse dataset that forces the model to learn features that are truly invariant to domain-specific stylistic shifts.
Key Insights: Filling the Feature Space
A critical finding of this research is how CDGA affects the model's internal representation of data. Visualizing the feature space using t-SNE reveals that standard training data typically forms isolated "islands" corresponding to different domains.
As shown in the visualization, CDGA-generated samples act as bridges, filling the empty space between these islands. This creates a more continuous distribution, which helps the model generalize to unseen target domains that might fall within these gaps.
Furthermore, loss landscape analysis indicates that CDGA leads models toward flatter local minima. In deep learning theory, flatter minima are associated with better generalization performance. The method also demonstrates improved adversarial robustness and can be used to mitigate class imbalance by synthesizing samples for underrepresented categories.
Experimental Results
CDGA was rigorously evaluated on the DomainBed benchmark across several diverse datasets:
- PACS: CDGA-PG achieved an average accuracy of 88.5%, a significant improvement over the 85.5% baseline.
- OfficeHome: Performance reached 68.2% compared to the 66.5% baseline.
- DomainNet: On this massive-scale dataset, the authors generated over 5 million synthetic images, improving accuracy to 43.1% (vs. 40.9%).
The results consistently show that "cross-domain" augmentation is significantly more effective than "single-domain" generative augmentation (SDGA), highlighting the importance of bridging the inter-domain gaps.
Conclusion
Cross Domain Generative Augmentation represents a powerful shift in how we approach domain generalization. By leveraging the creative capabilities of Latent Diffusion Models, CDGA moves beyond simple data transformations to create a continuous, interconnected training landscape. While the computational cost of generating millions of images is a consideration, the substantial gains in accuracy and robustness make CDGA a compelling new tool for building generalizable AI systems.
Summary updated