Manuscript Offprint

arXiv:2609.10994

Importance Weighting for Unlabeled-unlabeled Learning under Distribution Shift

Atsutoshi Kumagai, Tomoharu Iwata, Hiroshi Takahashi, Taishi Nishiyama, Kazuki Adachi, Yasuhiro Fujiwara

Abstract

Unlabeled-unlabeled (UU) learning allows us to learn a binary classifier from two sets of unlabeled data with different class-priors. It is a general framework because it includes a wide variety of supervised learning such as positive-unlabeled (PU) learning, noisy label learning, and similarity-based learning. Existing UU learning assumes that the test and training distributions have the same class-conditional densities. However, this assumption rarely holds in practice due to distribution shifts. This paper proposes a distribution shift adaptation method for UU learning that uses UU data in the training distribution and a few UU data in the test distribution. The proposed method is based on the importance weighting, which minimizes the test risk by using training data with estimated importance weights. Although existing importance weighting methods cannot handle UU data, we show that it can be done in a principled manner. Thanks to the generality of UU learning, our method can handle various learning problems such as PU and noisy label learning under distribution shift within a single framework while existing methods are usually tailored to a specific problem. Moreover, it does not require any assumption of the shift types such as covariate shift. We experimentally demonstrate the effectiveness of the proposed method with real-world datasets.

1 Introduction

In supervised learning, a large amount of labeled data is required for learning accurate classifiers. However, in practice, labeled data are often very costly or even infeasible to collect. This fact has motivated us to investigate learning algorithms that work well from data with weak supervision (e.g., noisy labels), which are often easier to collect than clean and complete labeled data [50]. In this paper, we consider unlabeled-unlabeled (UU) learning where the aim is to learn a binary classifier from two unlabeled datasets that share the class-conditional densities but have different class-priors (i.e., the proportion of positives in each unlabeled data) [33, 35, 32]. In this setting, class-priors can be regarded as weak supervision. We focus on this challenging setting because of its high generality: it can represent a wide variety of learning problems, such as positive-negative (PN) learning [54], positive-unlabeled (PU) learning [6, 20, 2], noisy label learning [58, 4], pairwise-comparison learning [10], and similarity-based learning [1, 45], by specifying values of the class-priors [5].

Although several UU learning methods have recently been proposed [33, 35, 32, 56], they assume that the test and training distributions have the same class-conditional densities. However, in practice, this assumption is often violated by various factors such as differences in data collection periods [27] and environments [24]. For example, in cyber security, (noisy) labeled malicious and normal data can be regarded as UU data, and the data distribution can vary over time by the emergence of new types of attacks [26]. When such a distribution shift occurs, the performances of existing methods drastically deteriorate.

Preprint.

Figure

Figure 1: Our problem setting. We are given UU data in the training distribution and a few UU data in the test distribution. UU data in each distribution shares the class-conditional densities but have different class-priors (i.e., θtra≠θtrb\theta_{\mathrm{tr}}^{\mathrm{a}} \neq \theta_{\mathrm{tr}}^{\mathrm{b}} and θtea≠θteb\theta_{\mathrm{te}}^{\mathrm{a}} \neq \theta_{\mathrm{te}}^{\mathrm{b}}). The class-conditional densities can vary between the training and test distributions. The aim is to learn a binary classifier that can accurately classify test data drawn from the test distribution with true class-prior πte\pi_{\mathrm{te}} by using these UU datasets. More details of our problem setting are provided in subsection 4.1.

In this paper, we propose a distribution shift adaptation method for UU learning that uses UU data in the training distribution and a few UU data in the test distribution 1^{1}. A few UU data are relatively easy to collect even in the test distribution. Figure 1 shows the overview of our problem setting. Our method is based on the importance weighting, which is a well-established and commonly used framework for distribution shift adaptation on ordinary supervised learning [51, 8, 34]. This framework estimates importance weights, i.e., the ratio between training and test densities, and learns classifiers by minimizing the importance-weighted empirical training risk that is approximately equivalent to the test risk. Although many distribution shift adaptation methods have been proposed for settings such as PN learning [7, 8] and PU learning [27], no existing methods can treat UU data. To the best of our knowledge, we are the first to show that importance weighting can be performed from UU data in a principled manner. By minimizing a weighted sum of the importance-weighted empirical risk with UU data in the training distribution and the empirical risk with UU data in the test distribution, the proposed method can train classifiers that fit on the test distribution.

Thanks to the generality of UU learning, the proposed method can handle various types of learning problems under distribution shift within a single framework, including PN, PU, noisy label, pairwise-comparison, and similarity-based learning. This contrasts with existing distribution shift adaptation methods, which are typically tailored to a specific problem [39, 48]. Note that there are no existing distribution shift adaptation methods that assume noisy labels in both distributions nor methods for similarity-based learning or paired-comparison learning. In addition, the proposed method can flexibly handle different types of supervision between the training and test phases, e.g., noisy labeled data in the training distribution and a few PN data in the test distribution. Furthermore, by using UU data in the test distribution, the proposed method does not require assumptions about shift types such as covariate shift [46] and concept shift [37], which are usually required in existing distribution shift adaptation methods that use unlabeled data in the test distribution [46]. Since shift types are generally difficult or impossible to identify from unlabeled data [27], this property is preferable in practice.

References (55)

  • Classification from pairwise similarity and unlabeled data
  • Learning from positive and unlabeled data: A survey
  • Discriminative learning under covariate shift
  • On symmetric losses for learning from corrupted labels
  • Convex formulation for learning from positive and unlabeled data
  • Rethinking importance weighting for deep learning under distribution shift
  • Generalizing importance weighting to a universal solver for distribution shift problems
  • A brief review of domain adaptation
  • Pointwise binary classification with pairwise confidence comparisons
  • Unsupervised domain adaptation by backpropagation
  • Benchmarking distribution shift in tabular data with tableshift
  • Learning from positive and unlabeled data with arbitrary positive shift
  • Gui, H. Sun, Y. Yin, and S. Li
  • Do we need zero training loss after achieving zero training error? In ICML, 2020
  • Estimating the class prior and posterior from noisy positives and unlabeled data
  • A least-squares approach to direct importance estimation
  • Non-negative bregman divergence minimization for deep direct density ratio estimation
  • Adam: A Method for Stochastic Optimization
  • Positive-unlabeled learning with non-negative risk estimator
  • Discriminative clustering by regularized information maximization
  • Unsupervised domain adaptation by matching distributions based on the maximum mean discrepancy via unilateral transformations
  • Transfer anomaly detection by inferring latent domain representations
  • Meta-learning for relative density-ratio estimation
  • Auc maximization under positive distribution shift
  • Importance-weighted positive-unlabeled learning for distribution shift adaptation
  • Gradient-based learning applied to document recognition
  • Generative moment matching networks
  • Classification with noisy labels by importance reweighting
  • Binary classification from multiple unlabeled datasets via surrogate set classification
  • On the minimal supervision for training any binary classifier from only unlabeled data
  • Rethinking importance weighting for transfer learning
  • Mitigating overfitting in supervised classification from two unlabeled datasets: a consistent risk correction approach
  • Learning from corrupted binary labels via class-probability estimation
  • A unifying view on dataset shift in classification
  • Unified deep supervised domain adaptation and generalization
  • A survey on transfer learning
  • Automatic differentiation in pytorch
  • Telescoping density-ratio estimation
  • Maximum classifier discrepancy for unsupervised domain adaptation
  • Covariate shift adaptation on learning from positive and unlabeled data
  • Classification from pairwise similarities/dissimilarities and unlabeled data via empirical risk minimization
  • Transferable curriculum for weakly-supervised domain adaptation
  • Domain adaptation: challenges, methods, datasets, and applications
  • Positive-unlabeled domain adaptation (opens arXiv in a new tab)
  • Machine learning from weak supervision: an empirical risk minimization approach
  • Density ratio estimation in machine learning
  • A survey on deep transfer learning
  • A survey of unsupervised deep domain adaptation
  • Making binary classification from multiple unlabeled datasets almost free of supervision (opens arXiv in a new tab)
  • Fashion-MNIST: a Novel Image Dataset for Benchmarking Machine Learning Algorithms
  • He, M. Li, and Z.-H
  • Maximum margin clustering
  • Relative density-ratio estimation for robust distribution comparison
  • Robust unsupervised domain adaptation from a corrupted source
  • Label-noise robust domain adaptation