Source-linked AI summary

Semi-Supervised Learning of Class Balance under Class-Prior Change by Distribution Matching

Marthinus Du Plessis, Masashi Sugiyama

arXiv:1206.4677v1cs.LGstat.ML

TL;DR

When class balances differ between training and test data, correcting bias by reweighting or resampling requires knowing the test class ratio, which may be unavailable without labeled test data. The paper estimates that ratio by matching input distributions with density-ratio-based Pearson divergence estimation; experiments report more accurate estimates than competing methods and better classification accuracy.

  • Problem

    Test class ratios can differ from training ratios, but are often unknown when no labeled data are available from the test domain.

    Source: §1 · p. 1
  • Method

    The method estimates test class priors by matching test and training input distributions, using density-ratio-based Pearson divergence estimation.

    Source: §1 · pp. 1–2
  • Results

    Experiments report more accurate class-ratio estimates than competing methods, which can translate into better classification accuracy.

    Source: §6 · p. 7
  • Takeaways & Limitations

    The proposed PE-divergence estimator is reported to be robust to noise and outliers, numerically stable, and computationally efficient.

    Source: §4.4 · p. 5, §6 · p. 7

    The approach assumes that training and test class-conditional densities are unchanged, so its stated setting is class-prior change rather than class-conditional change.

    Source: §2.1 · p. 2

Abstract

from arXiv · show

In real-world classification problems, the class balance in the training dataset does not necessarily reflect that of the test dataset, which can cause significant estimation bias. If the class ratio of the test dataset is known, instance re-weighting or resampling allows systematical bias correction. However, learning the class ratio of the test dataset is challenging when no labeled data is available from the test domain. In this paper, we propose to estimate the class ratio in the test dataset by matching probability distributions of training and test input data. We demonstrate the utility of the proposed approach through experiments.

1. Introduction

Class-prior changes can bias classification when training and test class balances differ, but correcting that bias by reweighting or resampling requires the test class balance. This paper addresses the often-unknown test ratio without labeled test-domain data, using distribution matching to estimate it.

  • A class-prior change occurs when training and test class balances differ, and known test balance permits systematic bias correction by instance reweighting or resampling.Source: §1 · p. 1
  • The test class ratio is often unknown, and this paper targets its estimation when no labeled test-domain data are available.Source: §1 · p. 1
  • Saerens et al. (2001) estimate test class ratios with EM by alternating test priors and posteriors until convergence, with applications in word sense disambiguation and remote sensing.Source: §1 · p. 1
  • The paper interprets EM as KL matching of test inputs to a linear combination of class-wise input distributions, approximated through class-posterior estimates.Source: §1 · p. 1
  • The paper proposes semi-supervised class-ratio estimation using density-ratio-based Pearson divergence estimation and reports experimental utility.Source: §1 · pp. 1–2

2. Problem Formulation and Existing Method

The formulation assumes that training and test class-conditional densities are unchanged while their class priors may differ; the goal is to estimate test priors from labeled training and unlabeled test samples. The reviewed EM method estimates training posteriors and priors, then iteratively updates test posteriors and priors until convergence.

2.1. Problem Formulation

  • The formulation allows training and test class priors to differ but assumes their class-conditional densities are the same.Source: §2.1 · p. 2
  • The goal is to estimate test class priors from labeled training samples and unlabeled test samples, without test labels.Source: §2.1 · p. 2

2.2. Existing Method

  • The reviewed Saerens et al. (2001) method uses EM for semi-supervised test class-prior estimation.Source: §2.2 · p. 2
  • The procedure first estimates training class-posterior probabilities, for example with kernel logistic regression or its squared-loss variant.Source: §2.2 · p. 2
  • It estimates the training class prior from labeled samples as the class count divided by the total, then uses that estimate to initialize the test-posterior estimate.Source: §2.2 · p. 2
  • EM repeatedly updates the test class-posterior estimate and computes a new test class-prior estimate from the current one.Source: §2.2 · p. 2
  • The updates use Bayes' formula and empirical marginalization, and the procedure is reported to converge to a local optimal solution.Source: §2.2 · p. 2

3. Reformulation of the EM Algorithm as Distribution Matching

The paper interprets the EM algorithm as matching the test input density to a mixture of class-wise input densities under KL divergence. This reformulation yields a convex optimization view and clarifies the relation between the matching solution and EM updates.

  • The EM algorithm can be interpreted as matching the test input density to a linear combination of class-wise input distributions under KL divergence.Source: §3 · pp. 2–3
  • Assuming unchanged class-conditional densities, the model represents the test input density as a mixture whose coefficients correspond to test class priors.Source: §3 · p. 2
  • The method matches the mixture model to the test input density under KL divergence and approximates the resulting expectation empirically after dropping a constant term.Source: §3 · p. 3
  • The convexity of the optimization implies no local minima, and the resulting formulation is shown to correspond to the EM update.Source: §3 · p. 3

4. Class-Prior Estimation by Direct Divergence Minimization

The section develops direct class-ratio learning by minimizing divergence between input distributions, using density-ratio estimation rather than indirect class-posterior estimation. It motivates PE-divergence matching as an efficient, robust, and stable choice.

4. Class-Prior Estimation by Direct Divergence Minimization

  • The approach learns class-ratio coefficients by minimizing an estimated divergence between input distributions.The section proposes PE-divergence estimation for this purpose.Source: §4 · p. 3

4.1. Framework of f-Divergence Approximation

  • Legendre-Fenchel duality expresses f-divergence approximation through expectations that can be estimated with sample averages.The maximum is attained when r(x) = q′(x)/p′(x).Source: §4.1 · p. 3

4.2. KL-Divergence Approximation

  • The KL-divergence estimator is a convex optimization problem with global optima, but its coefficient optimization is time-consuming.Kernel-width tuning can be performed by cross-validation.Source: §4.2 · p. 4

4.3. PE-Divergence Approximation

  • The PE divergence is a squared-loss variant of KL, and its regularized estimator has an analytical solution.Its tuning parameters can be selected by cross-validation.Source: §4.3 · p. 4

4.4. Learning Class Ratios by PE Divergence Matching

  • PE divergence is more robust to outliers than KL divergence and has the minimum condition number among a general class of estimators.The paper identifies these properties as useful for noisy, outlier-prone data and estimator stability.Source: §4.4 · p. 5
  • Because the PE-divergence estimator is analytic in θ, it can be minimized efficiently without recomputing the estimator at each step.The paper gives alternate gradient descent with projection and grid search as optimization options.Source: §4.4 · p. 5

5. Experiments

Experiments compare five class-prior estimators on binary benchmarks and a three-class geophone task. PE-DR is most accurate in benchmark class-ratio estimation and gives the lowest classification error in the real-world task.

5.1. Setup

  • Five methods compare EM-KLR with KL- and PE-divergence estimators based on KDE or density ratios.EM-KLR estimates class posteriors with kernel logistic regression; the proposed KL-DR and PE-DR use density-ratio-based divergence estimators.Source: §5.1 · p. 5

5.2. Benchmark Datasets

  • Binary benchmark experiments use 10 training samples per class and 50 test samples at each of five first-class priors, from 0.1 to 0.5.Source: §5.2 · p. 5
  • KL-KDE tends to outperform KL-DR, while PE-DR outperforms PE-KDE.The authors attribute KL-DR’s additional estimation error possibly to implicitly estimating negative entropy; PE-DR’s result favors direct density-ratio estimation over density estimation for PE divergence.Source: §5.2 · p. 5
  • PE-DR is the most accurate benchmark class-ratio estimator overall.Methods based on KL and PE divergences overall outperform EM-KLR.Source: §5.2 · p. 5, Figure 1 · p. 6
  • With learned class priors used as instance weights, more accurate ratio estimates tend to yield lower misclassification rates.Figure 2 reports average misclassification rates for a regularized least-squares classifier.Source: §5.2 · p. 5, Figure 2 · p. 6

5.3. Real-World Application

  • The real-world task uses 50-dimensional geophone recordings to classify two vehicle classes and recorded noise, with test priors [0.6, 0.1, 0.3]; KL-DR was omitted for computational cost.Source: §5.3 · p. 6
  • Across 1,000 runs, PE-DR gives the most accurate class-prior estimates and lowest classification error among the compared methods.Both prior-estimation and classification performance improve as the number of training samples increases.Source: §5.3 · p. 7

6. Conclusion

The conclusion addresses estimating test class ratios when labeled test-domain data are unavailable. It interprets the EM estimator as indirect distribution matching and reports that density-ratio methods improve class-ratio estimates and classification accuracy.

  • The paper studies estimating test class ratios under semi-supervised learning, where test-domain labels are unavailable.Source: §6 · p. 7
  • The EM-based estimator can be viewed as indirectly matching the test input distribution to a linear combination of class-wise input distributions.Source: §6 · p. 7
  • The proposed density-ratio divergence method is reported to have high robustness to noise and outliers, numerical stability, and computational efficiency.Source: §6 · p. 7
  • Experiments report more accurate estimated class ratios than competing methods, translating into better classification accuracy.Source: §6 · p. 7
Loading 1206.4677v1…