On Statistical Bias In Active Learning: How and When To Fix It

Sebastian Farquhar, Yarin Gal, Tom Rainforth

Abstract

Active learning (AL) improves data efficiency by selectively labeling the most informative data points. However, this process violates the fundamental machine learning assumption that training data is independent and identically distributed (i.i.d.), introducing a significant statistical bias. This paper formally characterizes this bias and introduces the Levelled Unbiased Risk Estimator ($\tilde{R}_{LURE}$) to eliminate it. Our findings reveal a critical nuance: while removing bias is essential for rigid models like linear regression, the statistical bias in deep neural networks often acts as a beneficial regularizer that offsets overfitting bias.

The Problem: Non-Representative Sampling

In standard machine learning, we assume training data accurately represents the broader population. Active learning intentionally breaks this by cherry-picking "hard" or "confusing" examples. This creates a skewed dataset that does not reflect the true data distribution. Consequently, training a model on this data using standard empirical risk minimization leads to biased loss estimates. Despite the theoretical implications, modern deep learning research has largely ignored this statistical discrepancy.

Methods: Unbiased Risk Estimation

To address this, we developed two novel risk estimators that apply corrective weights to actively sampled data:

  1. $\tilde{R}_{PURE}$ (Plain Unbiased Risk Estimator): This estimator uses inverse probability weighting adapted for sequential, without-replacement sampling. While theoretically unbiased, it suffers from high variance and tends to over-weight early samples.
  2. $\tilde{R}_{LURE}$ (Levelled Unbiased Risk Estimator): Our primary contribution, $\tilde{R}_{LURE}$ mathematically re-weights the terms in PURE so that the expected weight of any sample is exactly 1. This significantly reduces variance and stabilizes the estimator for finite samples.

To implement these, the acquisition function must be stochastic (e.g., using a softmax temperature), ensuring every point has a non-zero probability of being selected.

Key Insights: The Dueling Bias Phenomenon

A central discovery of this work is the interaction between Statistical Bias (from AL sampling) and Overfitting Bias (from model memorization). These two biases typically have opposite signs:

  • Overfitting causes models to underestimate real-world risk.
  • Active Learning over-samples difficult points, causing models to overestimate real-world risk.
Figure 5: Qualitative comparison of linear regression fits on a 1D dataset. The unweighted estimator over-indexes on acquired points, while LURE closely tracks the ideal fit.

In underparameterized models like linear regression, where overfitting is minimal, the statistical bias from AL is destructive. As shown in the 1D toy dataset experiments, using $\tilde{R}_{LURE}$ is essential to recover the true underlying distribution and achieve near-optimal test loss.

Results in Deep Learning

When applying these estimators to Bayesian Neural Networks (BNNs) on MNIST and FashionMNIST, the results were surprising. While $\tilde{R}_{LURE}$ successfully removed the statistical bias, models trained with the biased (unweighted) estimator often performed better on downstream tasks.

Figure 4: Bias removal across different models and datasets. The orange line (LURE) consistently maintains zero bias compared to the naive unweighted estimator (blue).

In deep learning, the statistical bias of AL acts as an ad-hoc regularizer. Because deep nets are prone to overfitting, the "flaw" of over-sampling hard points actually helps the model generalize by counteracting the tendency to underestimate risk. Removing this bias can, counterintuitively, hurt model performance.

Conclusion and Future Directions

While $\tilde{R}_{LURE}$ might not always be the best choice for training deep neural networks due to the cancellation of biases, it remains a statistically superior estimator with lower variance than naive methods.

A particularly promising application is test-time evaluation. When evaluating a model on an unlabeled pool, overfitting bias is no longer present. $\tilde{R}_{LURE}$ allows for accurate estimation of a model's true population risk by labeling only a small, actively selected fraction of the test set, offering a path toward more efficient model validation.

Summary updated

BibTeX
@inproceedings{farquhar2021statistical,
  author = {Sebastian Farquhar and Yarin Gal and Tom Rainforth},
  title = {{On Statistical Bias In Active Learning: How and When To Fix It}},
  booktitle = {International Conference on Learning Representations},
  year = {2021},
  url = {https://openreview.net/forum?id=JiYq3eqTKY},
}
Figure