Domain Agnostic Conditional Invariant Predictions for Domain Generalization
Zongbin Wang, Bin Pan, Zhenwei Shi
TL;DR
This paper tackles domain generalization without domain labels by introducing Discriminant Risk Minimization (DRM), which associates stability of the model’s prediction distribution with invariant feature use. The authors prove an upper bound showing that lowering source Discriminant Risk can reduce target risk, and instantiate DRM with a Bayesian last layer and a Categorical Discriminant Risk (CDR) penalty to encourage invariance. The resulting algorithm combines variational inference, a reparameterization trick, and a sliding Discriminant matrix to approximate distributional differences across source subsets, optimizing $\mathbb{E}_{q(b)}(R_{D_s}(Y,b\cdot\phi(X)))$ with a JS-based consistency term. Empirically, DRM achieves strong, robust performance on PACS, VLCS, and Office-Home without requiring domain labels, often outperforming domain-label baselines and displaying reduced variance, with implications for both generalization and fairness in real-world deployments.
Abstract
Domain generalization aims to develop a model that can perform well on unseen target domains by learning from multiple source domains. However, recent-proposed domain generalization models usually rely on domain labels, which may not be available in many real-world scenarios. To address this challenge, we propose a Discriminant Risk Minimization (DRM) theory and the corresponding algorithm to capture the invariant features without domain labels. In DRM theory, we prove that reducing the discrepancy of prediction distribution between overall source domain and any subset of it can contribute to obtaining invariant features. To apply the DRM theory, we develop an algorithm which is composed of Bayesian inference and a new penalty termed as Categorical Discriminant Risk (CDR). In Bayesian inference, we transform the output of the model into a probability distribution to align with our theoretical assumptions. We adopt sliding update approach to approximate the overall prediction distribution of the model, which enables us to obtain CDR penalty. We also indicate the effectiveness of these components in finding invariant features. We evaluate our algorithm against various domain generalization methods on multiple real-world datasets, providing empirical support for our theory.
