Latent-Space Importance Weighting under Covariate Shift
Organizations: School of Artificial Intelligence, and Hubei Key Laboratory of Computational Science, Wuhan University, Wuhan, 430072, China · Institute for Math and AI, Wuhan University, Wuhan, 430072, China · Department of Mathematics, The Hong Kong University of Science and Technology, Hong Kong, China, and Algorithms of Machine Learning and Autonomous Driving Research Lab, HKUST Shenzhen-Hong Kong Collaborative Innovation Research Institute, Shenzhen, China · School of Mathematics and Statistics, and Hubei Key Laboratory of Computational Science, Wuhan University, Wuhan, 430072, China ·
Abstract
In this work, we propose a transfer learning algorithm for covariate shift, integrating sample reweighting with representation learning. A key feature of our approach is the use of a lower-dimensional latent space for modeling, in contrast to conventional methods that operate directly in the high-dimensional ambient space. Our method estimates the density ratio of learned latent features for downstream weighted prediction. We establish explicit target-domain excess-risk rates with independent data folds for strictly sufficient learned representations with regular learned-space prediction scores and density ratios. We give dimension comparisons under stated smoothness conditions and a variance comparison for true weights and a fixed predictor. General finite-sample inequalities retain representation-quality errors. Experiments on simulated and real-world datasets demonstrate gains from combining learned representations and latent weighting, and reveal sensitivity to initialization and domain choice.
Figures & tables
| Method | Representation | Upper bound |
|---|---|---|
| Latent weights (ours) ( 10 ) | ✓ | |
| Original weights ( 11 ) | ✓ | |
| No representation ( 13 ) | ✗ |
| Dataset | Top-1 accuracy(%) | |||
|---|---|---|---|---|
| Method ( 10 ) | Method ( 11 ) | Method ( 12 ) | Method ( 13 ) | |
| Circle | 97.02 | 96.40 | 95.21 | 95.70 |
| Moon | 91.08 | 81.55 | 84.82 | 71.72 |
| Blood | 74.42 | 65.98 | 62.99 | 50.62 |
| Breast cancer | 92.19 | 90.63 | 90.63 | 89.06 |
| Haberman | 70.00 | 66.67 | 66.67 | 50.0 |
| Methods | {C,D,W} A | {A,D,W} C | {A, C, D } W | {A, C, W} D |
|---|---|---|---|---|
| AFN ( Xu et al., 2019 ) | 47.6 | 37.9 | 45.8 | 61.3 |
| BSP ( Chen et al., 2019 ) | 60.7 | 35.3 | 55.9 | 54.8 |
| CDAN ( Long et al., 2018 ) | 61.3 | 40.2 | 57.6 | 64.5 |
| DANN ( Ganin and Lempitsky, 2015 ) | 59.2 | 42.0 | 64.4 | 58.1 |
| DAN ( Long et al., 2015 ) | 59.7 | 40.2 | 40.7 | 64.5 |
| ERM | 59.2 | 35.3 | 52.5 | 71.0 |
| Methods | A W | D W | W D | A D | D A | W A |
|---|---|---|---|---|---|---|
| AFN ( Xu et al., 2019 ) | 23.7 | 47.5 | 77.4 | 9.7 | 9.9 | 19.9 |
| BSP ( Chen et al., 2019 ) | 42.4 | 33.9 | 64.5 | 16.1 | 12.6 | 12.6 |
| CDAN ( Long et al., 2018 ) | 13.6 | 50.8 | 35.5 | 25.8 | 9.4 | 13.6 |
| DANN ( Ganin and Lempitsky, 2015 ) | 30.5 | 32.2 | 32.3 | 25.8 | 16.2 | 6.8 |
| DAN ( Long et al., 2015 ) | 22.0 | 50.8 | 51.6 | 9.7 | 5.2 | 13.1 |
| ERM | 11.9 | 35.6 | 38.7 | 9.7 | 7.9 | 8.4 |
| Methods | {C,D,W} A | {A,D,W} C | {A, C, D } W | {A, C, W} D |
|---|---|---|---|---|
| AFN ( Xu et al., 2019 ) | 96.3 | 92.9 | 96.6 | 96.8 |
| BSP ( Chen et al., 2019 ) | 95.3 | 86.2 | 96.8 | 96.6 |
| CDAN ( Long et al., 2018 ) | 95.8 | 87.9 | 86.4 | 93.5 |
| DANN ( Ganin and Lempitsky, 2015 ) | 95.8 | 87.5 | 88.1 | 96.8 |
| DAN ( Long et al., 2015 ) | 95.3 | 87.1 | 100.0 | 96.6 |
| ERM | 95.8 | 87.5 | 100.0 | 91.5 |
| Methods | A W | D W | W D | A D | D A | W A |
|---|---|---|---|---|---|---|
| AFN ( Xu et al., 2019 ) | 93.2 | 100.0 | 100.0 | 100.0 | 83.8 | 86.9 |
| BSP ( Chen et al., 2019 ) | 91.5 | 100.0 | 100.0 | 96.8 | 84.8 | 84.3 |
| CDAN ( Long et al., 2018 ) | 83.1 | 96.6 | 100.0 | 93.5 | 88.0 | 84.3 |
| DANN ( Ganin and Lempitsky, 2015 ) | 81.4 | 100.0 | 100.0 | 64.5 | 88.5 | 83.8 |
| DAN ( Long et al., 2015 ) | 89.8 | 96.6 | 100.0 | 90.3 | 86.4 | 84.8 |
| ERM | 79.7 | 81.4 | 100.0 | 83.9 | 73.3 | 78.5 |
Appendix figures & tables7 assets
Supplementary material from the paper’s appendix.
Appendix
| Datasets | Number- Source | Number- Target | Covariates | Labels | Features | |
| Tabular | Circle | 10000 | 10000 | 2 | 2 | (1, 32, 32) |
| Moon | 10000 | 10000 | 2 | 2 | (1, 32, 32) | |
| Breast cancer | 365 | 318 | 9 | 2 | (1, 20, 20) | |
| Blood | 369 | 379 | 3 | 2 | (1, 20, 20) | |
| Haberman | 158 | 148 | 3 | 2 | (1, 20, 20) | |
| Office-Caltech | Caltech (C) | 1123 | - | - | 10 | (Variable) |
| Dataset | latent dim | ||
|---|---|---|---|
| Circle | 0.5 | 0.9 | 2 |
| Moon | 3.0 | 0.4 | 2 |
| Blood | 1.0 | 0.5 | 3 |
| Breast cancer | 3.0 | 0.1 | 6 |
| Haberman | 1.5 | 0.3 | 3 |
| Office-Caltech | 0.2 | 0.8 | 128 |
| Layers | Details | Output shape |
|---|---|---|
| Conv-1 | Conv | |
| Maxpool-1 | Maxpool | |
| Conv-2 | ||
| Conv-3 | ||
| Conv-4 | ||
| Conv-5 |
| Layers | Details | Output shape |
|---|---|---|
| Conv-1 | Conv | |
| Dense Block-1 | ||
| Transition Layer-1 | BN, ReLU, Average Pool, Conv, | |
| Dense Block-2 | ||
| Transition Layer-2 | BN, ReLU, Average Pool, Conv, | |
| Dense Block-3 |
| Layers | Details | Output shape |
|---|---|---|
| Linear-1 | Linear | |
| Linear-2 | ||
| Linear-3 | LeakyReLU(0.2), Linear |
| Layers | Details | Output shape |
|---|---|---|
| Linear-1 | Linear, ReLU | |
| Linear-2 | Linear, ReLU | |
| Linear-3 | Linear |
Covariate Shift
Covariate shift studies how to adapt and evaluate models when input distributions change but the relationship between inputs and labels remains stable.
See all 51 papers