Source-linked AI summary
Learning to Diversify for Single Domain Generalization
Zijian Wang, Yadan Luo, Ruihong Qiu, Zi Huang, Mahsa Baktashmotlagh
TL;DR
Single-DG remains under-explored because training uses only one source domain. L2D synthesizes complementary out-of-domain styles and optimizes mutual information; it surpasses state-of-the-art DG and Single-DG methods across three benchmark datasets.
Problem
Single-DG remains under-explored because training has only one source domain, leaving multiple-source samples and domain identifiers unavailable to conventional DG approaches.
Source: §1 · p. 1Method
L2D synthesizes out-of-domain images with a style-complement module and alternates MI minimization for source/generated diversity with MI maximization among same-category samples.
Source: §1 · p. 2Results
L2D surpasses state-of-the-art DG and Single-DG methods on all three benchmark datasets.
Source: §1 · p. 2Takeaways & Limitations
The experiments also demonstrate L2D's effectiveness in standard DG under a leave-one-domain-out protocol, beyond the single-source setting.
Source: §1 · p. 2The paper notes that its MI upper-bound estimator can be reliable if the two distributions are close.
Source: §3 · p. 4
Abstract
from arXiv · showhide
Domain generalization (DG) aims to generalize a model trained on multiple source (i.e., training) domains to a distributionally different target (i.e., test) domain. In contrast to the conventional DG that strictly requires the availability of multiple source domains, this paper considers a more realistic yet challenging scenario, namely Single Domain Generalization (Single-DG), where only one source domain is available for training. In this scenario, the limited diversity may jeopardize the model generalization on unseen target domains. To tackle this problem, we propose a style-complement module to enhance the generalization power of the model by synthesizing images from diverse distributions that are complementary to the source ones. More specifically, we adopt a tractable upper bound of mutual information (MI) between the generated and source samples and perform a two-step optimization iteratively: (1) by minimizing the MI upper bound approximation for each sample pair, the generated images are forced to be diversified from the source samples; (2) subsequently, we maximize the MI between the samples from the same semantic category, which assists the network to learn discriminative features from diverse-styled images. Extensive experiments on three benchmark datasets demonstrate the superiority of our approach, which surpasses the state-of-the-art single-DG methods by up to 25.14%.
1. Introduction
Domain shifts can degrade models trained on a single source domain, where existing methods lack enough diversity to cover unseen targets. L2D addresses this by generating complementary styles and learning discriminative, style-invariant representations through mutual-information optimization.
Introduction
- Domain shifts such as changes in illumination, appearance, or background can degrade source-trained models; domain generalization targets unseen domains, unlike adaptation to unlabeled targets.DG methods broadly use alignment across source domains or augmentation through transformations and pseudo-novel samples.Source: §1 · p. 1
- Single-DG trains with only one source domain, limiting access to domain identifiers; prior adversarial-noise methods [37] [50] produce images insufficiently diverse to cover real target distributions.Without multiple sources or domain information, alignment- and augmentation-based DG methods cannot readily identify robust features or transformations.Source: §1 · p. 1
- L2D’s style-complement module synthesizes unseen-style samples in latent feature space and alternates their generation with discriminative, style-invariant representation learning.The generated samples challenge the task model and are intended to improve its resilience to target shifts.Source: §1 · p. 2
- L2D minimizes a tractable mutual-information upper bound between generated and source samples, then maximizes mutual information between samples in the same semantic category.This iterative min-max strategy diversifies generated samples while bringing same-category samples close in latent space.Source: §1 · p. 2
- Experiments on digits recognition, corrupted CIFAR-10, and PACS report that L2D surpasses state-of-the-art DG and Single-DG methods on all datasets.The paper also evaluates standard DG under a leave-one-domain-out protocol.Source: §1 · p. 2
2. Related Work
Prior work addresses domain shift through domain adaptation and domain generalization, but this paper focuses on single-domain generalization and generating samples with styles complementary to the source distribution.
Domain Shift
- Domain-adaptation methods reduce domain shift by matching marginal [26] [13] or conditional distributions [27] [29], often using partially labelled or unlabelled target data [38] [26] [28].Few-shot domain adaptation uses a small number of labelled target samples alongside source samples [32].Source: §2 · p. 2
Domain Generalization
Domain Generalization: Data Augmentation
- Domain-generalization augmentation generates out-of-domain samples for training, including adversarial hard examples [42], domain-change perturbations [39], pseudo-novel-domain synthesis [51], and jigsaw self-supervision [5].Source: §2 · pp. 2–3
Single-Domain Generalization
- Single-DG trains on one source domain and evaluates on unseen domains; this paper aims to generate samples with novel styles, textures, and appearances that complement the source distribution [37] [50].Prior Single-DG methods use gradient-based augmentation to encourage semantic consistency [37] or generate challenging perturbations through entropy maximization [50]; their visual changes mostly concern color and texture.Source: §2 · p. 3
3. Methodology
The method augments a single source domain with same-semantic images in different styles, then trains the generator and task network iteratively to diversify styles while learning discriminative features.
Style-Complement Module
- The generator uses K convolution–style-learning–transposed-convolution transformations with learnable mean and variance shifts, then combines their reconstructions using normally sampled weights.The shifts are applied at the pixel level, and the module produces images that retain the source image’s semantic information while changing its style.Source: §3 · pp. 3–4
Objective Function
- Training alternates between minimizing source/generated mutual information to diversify styles and freezing the generator while training the task network to maximize same-class mutual information.Source: §3 · pp. 3, 5
Synthesizing Novel Styles
- To decorrelate source and generated latent features, the method minimizes a variational approximation to the MI upper bound, using qθ(z+|z) because p(z+|z) is intractable [7].The approximation is considered reliable when the variational and conditional distributions are close; optimization uses negative log-likelihood rather than directly minimizing the bound gap.Source: §3 · p. 4
Semantic Consistency
- Class-conditional maximum mean discrepancy constrains latent distribution shifts among samples of the same class to mitigate semantic distortion in generated images.Source: §3 · p. 4
MI Maximization
- The task network increases same-class mutual information with supervised contrastive loss and applies cross-entropy to predictions on both source and generated images.Source: §3 · pp. 4–5
4. Experiments
Experiments evaluate single-domain generalization on Digits, corrupted CIFAR-10, and PACS, comparing L2D with baselines and analyzing its components, parameter sensitivity, and learned target features.
4.2. Comparisons on Corrupted CIFAR-10
- Approximately 2.6% above the best baseline, L2D achieves the highest average accuracy across level-5 CIFAR-10-C corruption categories.The evaluation averages accuracy across Weather, Blur, Noise, and Digital corruptions.Source: Table 2 · p. 6, §4.2 · p. 6
4.1. Comparisons on Digits
- 14.9% improvement in overall accuracy accompanies improvements of 20.3% on SVHN, 29.36% on MNIST-M, and 13.33% on SYN.L2D achieves the second-best performance on USPS; the paper suggests the small style shift from MNIST may limit the benefit of diverse generated images.Source: §4.1 · p. 6
4.3. Comparisons on PACS
- L2D achieves the best average accuracy on PACS when trained on photo and evaluated on art painting, cartoon, and sketch.It has a relatively large margin on sketch, which has the largest domain shift from photo in this evaluation.Source: Table 3 · p. 6, §4.3 · p. 6
4.2. Comparisons on Corrupted CIFAR-10
- 13.2% improvement on noise corruptions accompanies a performance margin that grows with corruption severity, supporting L2D's resilience to severe corruptions.The margin over other methods is relatively small at severity level 1 and gradually enlarges at higher levels.Source: §4.2 · p. 6, Figure 3 · p. 7
4.3. Comparisons on PACS
- L2D achieves state-of-the-art leave-one-domain-out generalization on PACS without using domain identifiers during training.The image augmentation module gradually enlarges the domain shift between generated and source images.Source: Table 4 · p. 7, §4.3 · p. 7
4.4. Empirical Analysis
- 1.35%, 1.26%, and 3.76% lower accuracy follows removing style modification, MI minimization, and MI maximization, respectively.Removing the style-complement module also produces a large performance margin below the full model; MI minimization constrains generated images to diversify from the source, while MI maximization brings same-class diverse images closer in the embedding space.Source: §4.4 · pp. 7–8
- On unseen Digits target domains, L2D produces tighter, better class-wise-separated feature clusters than the baselines.The visualized features are from 1,000 randomly selected samples per target domain; ERM, ADA, and ME-ADA show multiple sub-clusters within classes.Source: Figure 4 · p. 8, §4.4 · p. 8
- Average performance rises as transformations increase and stabilizes after k = 5; excessive transformations may add noise, while α1 = α2 = 1 yields the best accuracy.The method surpasses state-of-the-art performance across a wide range of α settings; the sensitivity analysis is on PACS under Single-DG.Source: Figure 2 · p. 7, §4.4 · p. 8
5. Conclusion
Learning-to-Diversify (L2D) addresses single-domain generalization by generating diverse out-of-domain images and optimizing mutual information to improve generalization. Experiments on three benchmark datasets show it outperforms state-of-the-art methods in both single-domain and standard leave-one-domain-out generalization.
- Across three benchmark datasets, L2D outperforms state-of-the-art methods on both single-domain and standard leave-one-domain-out domain generalization.Source: §5 · p. 8
- L2D uses a style-complement module to generate diverse out-of-domain images from a single source domain.Source: §5 · p. 8
- Its iterative min-max mutual-information strategy minimizes a tractable upper bound for generated-image diversity and maximizes MI among same-category samples for style-invariant representations.Source: §5 · p. 8
Related papers
This paper cites
- Representation Learning with Contrastive Predictive Coding2018
- Unsupervised Domain Adaptation by Backpropagation2014
- Benchmarking Neural Network Robustness to Common Corruptions and Perturbations2019
- Supervised Contrastive Learning2020
- Domain Separation Networks2016
- Domain Generalization via Invariant Feature Representation2013