[Paper Review] Semi-Supervised Learning of Class Balance under Class-Prior Change by Distribution Matching
This paper proposes a semi-supervised method to estimate class priors in test data under class-prior shift by matching the input data distributions between training and test sets using distribution matching. The approach enables accurate bias correction in classification without labeled test data, achieving state-of-the-art performance in estimating class ratios under distribution shift.
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.
Motivation & Objective
- To address the challenge of class-prior shift in real-world classification, where training and test data have different class distributions.
- To estimate the test set class ratio when no labeled test data is available, a common scenario in practical applications.
- To develop a semi-supervised method that leverages unlabeled test data to correct estimation bias caused by class-prior shift.
- To improve model generalization by learning the true class balance in the test distribution using distribution matching techniques.
Proposed method
- The method uses distribution matching to align the input distributions of training and test data by minimizing the discrepancy between their joint distributions.
- It formulates the problem as a semi-supervised learning task where unlabeled test data is used to estimate the test class prior.
- The approach employs a kernel-based method to measure distribution divergence, specifically using the Maximum Mean Discrepancy (MMD) to match feature distributions.
- A re-weighting scheme is applied to the training data based on the estimated class ratio, reducing bias in model predictions.
- The algorithm iteratively refines the class ratio estimate by alternating between distribution matching and model retraining.
- The method is trained end-to-end using a combination of labeled training data and unlabeled test data, without requiring test labels.
Experimental results
Research questions
- RQ1Can we accurately estimate the class prior in the test distribution when no labeled test data is available?
- RQ2How can we leverage unlabeled test data to correct for class-prior shift in supervised learning?
- RQ3To what extent does distribution matching improve class ratio estimation compared to baseline methods?
- RQ4Does the proposed method lead to better generalization and reduced bias in downstream classification tasks under class-prior shift?
Key findings
- The proposed method achieves significantly more accurate class ratio estimation than baseline approaches on benchmark datasets under class-prior shift.
- The method reduces prediction bias in downstream classifiers by effectively correcting for distribution shift using only unlabeled test data.
- Empirical results show that distribution matching via MMD leads to stable and consistent performance across multiple datasets and shift scenarios.
- The approach outperforms existing semi-supervised methods in estimating class priors under unknown test distribution shifts.
- The method is robust to varying degrees of class-prior shift and maintains high accuracy even when the shift is substantial.
- The use of unlabeled test data enables reliable bias correction without requiring access to test labels, making it practical for real-world deployment.
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.