A Robust Classifier Under Missing-Not-At-Random Sample Selection Bias

Huy Mai, Wen Huang, Wei Du, Xintao Wu · DOI

Abstract

Standard machine learning models typically rely on the assumption that training data is Independent and Identically Distributed (IID). However, real-world datasets often suffer from sample selection bias, particularly Missing-Not-At-Random (MNAR) bias, where the likelihood of a label being observed depends on the value of the label itself. This paper introduces BiasCorr, a novel framework designed to mitigate MNAR bias by incorporating unlabeled samples into the training process through pseudolabeling and soft selection values. Our results demonstrate that BiasCorr significantly outperforms classical statistical methods and existing robust classifiers across multiple real-world datasets.

1. Introduction

In many practical applications, the data available for training a model is not a perfect representation of the target population. This discrepancy, known as sample selection bias, can lead to models that generalize poorly. The most challenging form of this is Missing-Not-At-Random (MNAR) bias. In an MNAR scenario, the mechanism that determines whether a data point is labeled is correlated with the label's value. For instance, in financial or medical surveys, individuals with extreme values (e.g., very high income or specific health conditions) may be less likely to disclose their information.

Traditional approaches to this problem, such as Greene’s method, were developed in the context of classical statistics. However, as this paper demonstrates, these methods often fail when applied to modern machine learning architectures because they effectively discard any data point missing a label, thereby losing the informative value of the features associated with those points.

2. The "Zero Gradient" Problem in Classical Methods

A key contribution of this research is the identification of the "Zero Gradient" flaw in Greene’s original formulation. In Greene’s method, the optimization process for a classifier involves a likelihood function that accounts for the selection mechanism. However, the authors find that the gradient of this loss function with respect to the model parameters becomes exactly zero for any sample where the label is missing.

Consequently, the model learns nothing from the features of the unlabeled data. In modern high-dimensional settings, where features are highly informative, this omission leads to a significant loss of predictive power and a failure to correct the underlying bias.

3. The BiasCorr Framework

To address the limitations of existing methods, the authors propose BiasCorr. The framework ensures that every sample—whether labeled or unlabeled—contributes to the model's optimization. The process follows three primary stages:

3.1 Auxiliary Classifiers

BiasCorr begins by training two auxiliary models:

  1. Selection Model ($g_s$): Predicts the probability that a specific sample's label will be observed.
  2. Label Predictor ($g_y$): A preliminary classifier trained only on the observed portion of the data to provide initial label estimates.

3.2 Data Augmentation and Pseudolabeling

For samples missing a label, BiasCorr performs a form of informed imputation:

  • Pseudolabels ($\tilde{y}$): The model assigns a label generated by the auxiliary $g_y$.
  • Soft Selection Values ($\bar{s}$): Instead of a binary selection indicator, the model uses an average probability of selection across the unlabeled set. This "soft" value allows the model to weight the importance of these imputed points based on the overall missingness of the dataset.

3.3 Robust Optimization

These augmented data points are integrated into a modified negative log-likelihood function ($\hat{\mathcal{L}}'$). By "hallucinating" informed labels for the missing data, BiasCorr forces the gradient to be non-zero, allowing the model to learn from the feature distributions of the entire dataset.

For scenarios involving a biased labeled set and a separate, unbiased unlabeled set (common in domain adaptation), the authors also provide BiasCorr*, an extension that leverages the unbiased distribution to further refine the correction.

4. Experimental Evaluation

The researchers evaluated BiasCorr against standard biased training (SSBias), Greene’s method, and other robust classifiers (RFLearn, RBA) using three UCI repository datasets: Adult (workclass prediction), German (credit risk), and Drug (consumption patterns). Bias was simulated by selectively hiding labels based on specific features (e.g., education level or personality scores).

4.1 Key Results

  • Adult Dataset: BiasCorr achieved a test accuracy of approximately 85.8%, nearly reaching the "NoBias" (ideal) performance of 86.5%. In stark contrast, Greene’s method collapsed to an accuracy of 62.9%.
  • Consistency: Across all tested datasets, BiasCorr provided improvements of 5% to 20% over standard biased training.
  • Theoretical Validation: The authors mathematically proved that BiasCorr is guaranteed to have lower bias than Greene’s method, provided the "missingness ratio" ($\eta$) exceeds a specific threshold. This suggests that the more severe the data missingness, the more beneficial BiasCorr becomes.

5. Conclusion and Future Work

BiasCorr represents a significant step forward in handling MNAR selection bias. By solving the zero-gradient problem and utilizing pseudolabels with soft selection, it allows models to extract maximum utility from biased datasets.

While the current framework is optimized for logistic regression and multi-layer perceptrons (MLP) in binary classification, it does introduce some computational overhead, requiring approximately 1.5 to 2 minutes to train on the Adult dataset due to the auxiliary simulations. Future research will focus on extending this logic to non-linear models like kernel ridge regression to handle more complex, non-linear data distributions.

Summary updated

BibTeX
@inproceedings{mai2023robust,
  author = {Huy Mai and Wen Huang and Wei Du and Xintao Wu},
  title = {{A Robust Classifier Under Missing-Not-At-Random Sample Selection Bias}},
  booktitle = {IEEE Big Data},
  year = {2023},
  doi = {10.1109/bigdata59044.2023.10386877},
}
Figure