Generalized Label Shift Correction via Minimum Uncertainty Principle: Theory and Algorithm

You-Wei Luo, Chuan-Xian RenarXiv 2022

Abstract

As a fundamental problem in machine learning, dataset shift induces a paradigm to learn and transfer knowledge under changing environment. Previous methods assume the changes are induced by covariate, which is less practical for complex real-world data. We consider the Generalized Label Shift (GLS), which provides an interpretable insight into the learning and transfer of desirable knowledge. Current GLS methods: 1) are not well-connected with the statistical learning theory; 2) usually assume the shifting conditional distributions will be matched with an implicit transformation, but its explicit modeling is unexplored. In this paper, we propose a conditional adaptation framework to deal with these challenges. From the perspective of learning theory, we prove that the generalization error of conditional adaptation is lower than previous covariate adaptation. Following the theoretical results, we propose the minimum uncertainty principle to learn conditional invariant transformation via discrepancy optimization. Specifically, we propose the conditional metric operator on Hilbert space to characterize the distinctness of conditional distributions. For finite observations, we prove that the empirical estimation is always well-defined and will converge to underlying truth as sample size increases. The results of extensive experiments demonstrate that the proposed model achieves competitive performance under different GLS scenarios.

Introduction: The Challenge of Generalized Label Shift

In real-world machine learning deployments, the assumption that training and test data share the same distribution often fails, a phenomenon known as dataset shift. While most research focuses on covariate shift—where input features $X$ change but the labeling rule $P(Y|X)$ remains static—this paper addresses the more complex Generalized Label Shift (GLS).

In GLS, two shifts occur simultaneously:

  1. Label Shift: The proportion of classes changes (e.g., training on a balanced dataset but testing on one where a single class dominates).
  2. Conditional Shift: The features for a specific class change (e.g., training on indoor images of animals but testing on outdoor ones).
Comparison of Generalized Label Shift (a) with standard adaptation paradigms like Covariate Adaptation (b) and Conditional Adaptation (c).

Methodology: Minimum Uncertainty Learning (MUL)

To address GLS, the authors introduce the Minimum Uncertainty Learning (MUL) principle. This framework aims to learn a conditional invariant transformation $G(\cdot)$ that maps inputs to a latent space $Z$ where domain discrepancies are minimized while class separability is maximized. This is achieved by optimizing two key components:

  • Transfer Uncertainty ($\mathcal{J}_{TU}$): This measures the discrepancy between the same class across different domains. The goal is to align "source cats" with "target cats" in the feature space.
  • Decision Uncertainty ($\mathcal{J}_{DU}$): This measures the overlap between different classes. It ensures that even after aligning domains, classes remain distinct and easily separable by a classifier.
The MUL framework architecture, illustrating the flow from input $X$ to latent space $Z$ and output $\hat{Y}$, guided by uncertainty minimization.

Technical Innovations

A core innovation is the Conditional Metric Operator defined in Reproducing Kernel Hilbert Space (RKHS). This operator allows for measuring conditional distribution discrepancies without the need for high-dimensional density estimation, making optimization computationally feasible via the "kernel trick."

Theoretically, the authors prove that the generalization error for conditional adaptation is strictly lower than that of traditional covariate adaptation. Additionally, the model incorporates Black Box Shift Estimation (BBSE) to handle unknown target class proportions by re-weighting samples during training.

Experimental Evaluation

The MUL framework was evaluated on four major Unsupervised Domain Adaptation (UDA) benchmarks: Office-Home, VisDA-2017, Office-31, and ImageCLEF.

  • VisDA-2017: MUL achieved a state-of-the-art accuracy of 82.8%, a significant improvement over the 52.4% source-only baseline.
  • Partial Domain Adaptation: In scenarios where the target domain only contains a subset of source classes, MUL demonstrated robustness against "negative transfer," reaching 77.5% on Office-Home.
  • Severe Shift: In custom tests designed to simulate extreme GLS, MUL maintained a mean accuracy of 64.0%, outperforming the next best method (IWCDAN) by nearly 3%.

Conclusion

MUL offers a theoretically grounded approach to domain adaptation under complex distribution shifts. By framing the problem as uncertainty minimization, the model achieves tighter error bounds and superior empirical performance. Future work includes extending the principle to multi-source and universal domain adaptation scenarios where class sets may only partially overlap.

Summary updated

BibTeX
@misc{luo2022generalized,
  author = {You-Wei Luo and Chuan-Xian Ren},
  title = {{Generalized Label Shift Correction via Minimum Uncertainty Principle: Theory and Algorithm}},
  year = {2022},
  eprint = {2202.13043},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2202.13043},
}
Figure