Robust Domain Generalization under Divergent Marginal and Conditional Distributions
Abstract
Domain generalization (DG) studies prediction on unseen domains, where changes in class frequencies can accompany changes in class-conditional appearance. We analyze these compound shifts by decomposing a query-support risk gap into a prior mismatch term and a class-conditional feature mismatch term. Under explicit bounded-feature and classifier-head assumptions, we connect the latter to a temperature-scaled domain-class alignment objective, with additive scatter and approximation terms. The resulting analysis motivates RC-Align, which combines episodic first-order meta-learning, domain-class alignment in both inner and outer objectives, and Manifold Mixup. Across four standard DG benchmarks, it achieves the highest average accuracy among the reported comparisons, while individual benchmarks favor different methods. It also improves average accuracy across five multi-domain long-tailed recognition benchmarks. Matched component studies, controlled prior shifts, and diagnostics clarify when alignment helps and distinguish empirical improvements from the assumptions and approximations in the theoretical bound.