Representation Bayesian Risk Decompositions and Multi-Source Domain Adaptation

Xi Wu, Yang Guo, Jiefeng Chen, Yingyu Liang, Somesh Jha, Prasad ChalasaniarXiv 2020

Abstract

Domain Adaptation (DA) aims to leverage knowledge from a source domain to improve performance on a related but distinct target domain. While empirical methods like Domain Adversarial Neural Networks (DANN) and Invariant Risk Minimization (IRM) have seen widespread use, their failure modes often lack clear theoretical explanations. This paper provides a novel framework for understanding these failures through exact Bayesian risk decompositions. By moving beyond traditional upper bounds to an equality-based decomposition, the authors identify specific components of risk—such as representation covariate shift and conditional label divergence—that popular DA methods fail to address.

Introduction

A fundamental challenge in machine learning is the distribution shift between training (source) and deployment (target) environments. Domain Adaptation techniques attempt to mitigate this by learning representations that are invariant across domains. However, existing theoretical frameworks often rely on loose "upper bounds" that include unlearnable constants, making it difficult to diagnose why a specific model underperforms.

The paper "Representation Bayesian Risk Decompositions and Multi-Source Domain Adaptation" addresses this gap by providing an exact mathematical decomposition of target risk. This "microscope" allows researchers to see whether a model's failure stems from a shift in feature distributions or a change in the underlying relationship between features and labels.

Theoretical Framework: Exact Risk Decompositions

The authors model the learning process as a composition $H = F \circ G$, where $G: \mathcal{X} \to \mathcal{Z}$ maps inputs to a representation space, and $F: \mathcal{Z} \to \mathcal{Y}$ maps representations to predictions.

Single-Source Domain Adaptation (SSDA)

The core contribution is Theorem 1, which establishes that the Target Risk is exactly equal to the sum of three components:

  1. Source Risk: The error of the predictor on the source representation.
  2. Representation Conditional Label Divergence: This measures how much the "meaning" of a representation changes. For instance, if a specific feature vector represents "cat" in the source domain but "dog" in the target, this term will be high.
  3. Representation Covariate Shift: This measures the difference in the marginal distributions of representations between the two domains.

By applying the Lebesgue Decomposition, the authors further split the covariate shift into "Absolute Continuous Risk" (where source and target supports overlap) and "Singular Risk" (where the target has data in regions unexplored by the source).

Multi-Source Domain Adaptation (MSDA)

In scenarios with multiple source domains, the authors introduce the Predictor Adaptation Gap. This metric evaluates whether a predictor that performs well across multiple training sources can maintain its performance on a completely unseen target domain. This provides a formal way to assess the generalizability of alignments found during training.

Experimental Validation

The theoretical framework was tested using standard benchmarks: MNIST & MNIST-M (for disjoint supports) and Colored-MNIST (for spurious correlations).

The Blind Spots of DANN and IRM

The analysis reveals a critical trade-off in popular algorithms. DANN primarily targets covariate shift by aligning marginal distributions but often ignores conditional label divergence. Conversely, IRM focuses on finding invariant relationships (addressing label divergence) but neglects covariate shift.

DANN performance under mild (left) vs. strong (right) covariate shift. Standard DANN (orange/blue) fails significantly as shift increases. The "oracle" reweighting (red/green), derived from the paper's risk decomposition, successfully restores target accuracy.

As shown in the figure above, DANN's performance drops sharply under strong covariate shift. However, when the source data is reweighted using an "oracle" based on the authors' decomposition, the model's performance is largely restored, validating the precision of the theoretical components.

IRM and the Limits of Invariance

In multi-source experiments, the authors demonstrated that IRM is not a panacea for domain shift. As the representation covariate shift increases, IRM’s test accuracy continues to decline.

Analysis of IRM performance. The left plot shows a clear downward trend in test accuracy as the control parameter for covariate shift increases. The middle and right plots illustrate the training dynamics (Accuracy vs. Step) under these conditions.

Key Insights and Future Directions

One of the most significant theoretical findings is an Information-Theoretic Limit: in single-source adaptation with only unlabeled target data, it is mathematically impossible to resolve conditional label divergence. Without target labels, there is no way to know if the relationship between features and labels has fundamentally changed.

The authors also provide a theoretical justification for the common "Two-Stage" IRM training heuristic. They show that the first stage effectively acts as a pre-training step that shrinks the hypothesis class, which in turn reduces the Predictor Adaptation Gap.

Future Work: * Algorithmic Development: Creating new loss functions that explicitly penalize the singular risk component of covariate shift. * Semi-Supervised Adaptation: Exploring how minimal amounts of labeled target data can be used to bound the Predictor Adaptation Gap. * Scalability: Applying these fine-grained decompositions to high-dimensional, real-world datasets beyond digit classification.

Summary based on the paper "Representation Bayesian Risk Decompositions and Multi-Source Domain Adaptation."

Summary updated

BibTeX
@misc{wu2020representation,
  author = {Xi Wu and Yang Guo and Jiefeng Chen and Yingyu Liang and Somesh Jha and Prasad Chalasani},
  title = {{Representation Bayesian Risk Decompositions and Multi-Source Domain Adaptation}},
  year = {2020},
  eprint = {2004.10390},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2004.10390},
}
Figure