[Paper Review] Learning Invariant Representations and Risks for Semi-supervised Domain Adaptation
This paper proposes LIRR, a novel semi-supervised domain adaptation method that jointly learns invariant representations and invariant risks to improve target domain generalization. By deriving finite-sample generalization bounds that account for both marginal and conditional distribution shifts, LIRR outperforms state-of-the-art methods on image classification and regression tasks, especially with limited labeled target data, demonstrating the superiority of simultaneous optimization of invariance in representations and risks.
The success of supervised learning hinges on the assumption that the training and test data come from the same underlying distribution, which is often not valid in practice due to potential distribution shift. In light of this, most existing methods for unsupervised domain adaptation focus on achieving domain-invariant representations and small source domain error. However, recent works have shown that this is not sufficient to guarantee good generalization on the target domain, and in fact, is provably detrimental under label distribution shift. Furthermore, in many real-world applications it is often feasible to obtain a small amount of labeled data from the target domain and use them to facilitate model training with source data. Inspired by the above observations, in this paper we propose the first method that aims to simultaneously learn invariant representations and risks under the setting of semi-supervised domain adaptation (Semi-DA). First, we provide a finite sample bound for both classification and regression problems under Semi-DA. The bound suggests a principled way to obtain target generalization, i.e. by aligning both the marginal and conditional distributions across domains in feature space. Motivated by this, we then introduce the LIRR algorithm for jointly extbf{L}earning extbf{I}nvariant extbf{R}epresentations and extbf{R}isks. Finally, extensive experiments are conducted on both classification and regression tasks, which demonstrates LIRR consistently achieves state-of-the-art performance and significant improvements compared with the methods that only learn invariant representations or invariant risks.
Motivation & Objective
- Address the limitation of unsupervised domain adaptation methods that only learn invariant representations or risks, which can fail under label distribution shift.
- Propose a more realistic semi-supervised domain adaptation (Semi-DA) setting with access to a small amount of labeled target data.
- Provide a finite-sample generalization bound for both classification and regression in the Semi-DA setting, identifying marginal and conditional distribution discrepancies as key factors in target performance.
- Develop a principled algorithm, LIRR, that jointly minimizes both representation and risk invariance to reduce target domain accuracy discrepancy.
- Demonstrate through extensive experiments that simultaneous learning of invariant representations and risks leads to superior performance compared to methods optimizing only one objective.
Proposed method
- Derive finite-sample generalization bounds for classification (Theorem 4.1) and regression (Theorem 4.2) in the Semi-DA setting, showing that target error depends on both marginal and conditional distribution discrepancies.
- Introduce an information-theoretic interpretation of the bounds to guide the design of a bound minimization algorithm.
- Propose LIRR (Learning Invariant Representations and Risks), a joint optimization framework that minimizes domain shift in both feature marginal distributions and conditional label distributions.
- Leverage a contrastive learning objective to align representations across domains and a risk-invariance regularizer to align optimal predictors across domains.
- Integrate a cosine classifier (CosC) module with LIRR to further improve performance, especially in few-shot labeled target scenarios.
- Train the model end-to-end using labeled source data, a small set of labeled target data, and unlabeled target data, with gradient-based optimization.
Experimental results
Research questions
- RQ1Can a finite-sample generalization bound for semi-supervised domain adaptation be derived that accounts for both marginal and conditional distribution shifts?
- RQ2Is it possible to improve target domain generalization by simultaneously learning invariant representations and invariant risks, rather than optimizing only one?
- RQ3How does the proportion of labeled target data affect the performance gap between LIRR and other methods?
- RQ4Does combining LIRR with a cosine classifier further enhance performance on semi-supervised domain adaptation tasks?
- RQ5Can LIRR outperform existing SOTA methods that focus solely on invariant representations or invariant risks in both classification and regression settings?
Key findings
- LIRR achieves state-of-the-art performance on image classification benchmarks across multiple datasets, outperforming methods that only learn invariant representations or risks.
- On traffic counting regression tasks, LIRR achieves the lowest mean absolute error (MAE) with 1% and 5% labeled target data, demonstrating consistent superiority.
- With 25% or 30% labeled target data, LIRR and its variant LIRR+CosC outperform even the oracle model trained on fully labeled target data.
- The ablation study confirms that optimizing only one invariant objective (e.g., representations or risks) leads to worse performance than jointly learning both, validating the theoretical design.
- Grad-CAM visualizations show that LIRR learns attention to invariant features—such as the shape of a horse—across domains like snow and grass, confirming robust feature learning.
- The integration of the cosine classifier (CosC) with LIRR leads to a larger performance gain than using LIRR alone, especially in low-data regimes.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.