Hypothesis Testing for Class-Conditional Label Noise

Rafael Poyiadzi, Weisong Yang, Niall Twomey, Raúl Santos-Rodríguez · DOI

Abstract

Detecting label noise is critical for building reliable machine learning models. While uniform label noise is often benign, class-conditional noise (CCN) introduces systematic bias that shifts decision boundaries. This paper proposes a statistical hypothesis test to detect CCN by leveraging the properties of Logistic Regression at specific "anchor points" where class probabilities are balanced. We demonstrate that this z-test provides a formal measure of evidence for noise asymmetry, with sensitivity improving as more anchor points are utilized.

Introduction

Label noise is a pervasive issue in real-world datasets, typically categorized into two types: Uniform Label Noise (UN), where labels are flipped at a constant rate across all classes, and Class-Conditional Noise (CCN), where flip rates depend on the true class. While many standard algorithms are robust to UN, CCN biases the model, leading to poor real-world performance. Existing tools often attempt to estimate these noise rates directly, which is mathematically challenging and lacks a measure of statistical confidence. This work shifts the objective toward a formal hypothesis test to detect the existence of CCN.

Methodology

The proposed framework establishes a null hypothesis ($H_0$) of uniform noise ($\alpha = \beta$) against an alternative ($H_1$) of class-conditional noise ($\alpha \neq \beta$). The core of the test involves "anchor points"—data instances where the true probability of belonging to either class is approximately 0.5.

By utilizing the asymptotic properties of Maximum Likelihood Estimators (MLE) for Logistic Regression, the authors derive a two-sided z-test. Because the MLE follows a predictable normal distribution as the dataset grows, any significant deviation in the predicted probability at these 0.5-probability anchor points suggests that CCN is biasing the model. The framework is flexible, allowing for "relaxed" anchor points (those only approximately 0.5) and the combination of multiple points ($k$) to increase detection sensitivity.

Results and Analysis

The effectiveness of the test was validated using synthetic Gaussian datasets. The research highlights several key insights regarding the test's performance:

  1. Sensitivity to Noise Imbalance: The test's power—the probability of correctly rejecting the null hypothesis—increases as the difference between noise rates ($|\beta - \alpha|$) grows.
  2. Impact of Anchor Points: Increasing the number of anchor points ($k$) significantly boosts the test's power. Even if these points are not perfectly at the 0.5 probability threshold, having more of them compensates for the lack of precision.
  3. Sample Size Scaling: As the training set size ($N$) increases, the variance of the model decreases, making the test much better at spotting even minor differences in noise rates.
The power of the proposed z-test increases as the number of anchor points ($k$) and the difference in noise rates ($|\beta - \alpha|$) grow.

Discussion and Limitations

While the framework provides a rigorous approach to noise detection, it currently assumes a Logistic Regression model. Future work aims to extend this to non-linear models and multi-class scenarios. Additionally, identifying anchor points in high-dimensional spaces (e.g., complex imagery) remains a practical challenge, though expert-labeled "ambiguous" cases in domains like healthcare offer a promising path forward. By providing a p-value for the presence of class-conditional noise, this research offers practitioners a formal tool to assess dataset integrity before model deployment.

Summary updated

BibTeX
@inproceedings{poyiadzi2022hypothesis,
  author = {Rafael Poyiadzi and Weisong Yang and Niall Twomey and Raúl Santos-Rodríguez},
  title = {{Hypothesis Testing for Class-Conditional Label Noise}},
  booktitle = {ECML/PKDD},
  year = {2022},
  doi = {10.1007/978-3-031-26409-2\_11},
}
Figure