Mitigating Sampling Bias and Improving Robustness in Active Learning

Ranganath Krishnan, Alok Sinha, Nilesh Ahuja, Mahesh Subedar, Omesh Tickoo, Ravi IyerarXiv 2021

Abstract

This paper presents simple and efficient methods to mitigate sampling bias in active learning while achieving state-of-the-art accuracy and model robustness. We introduce supervised contrastive active learning by leveraging the contrastive loss for active learning under a supervised setting. We propose an unbiased query strategy that selects informative data samples of diverse feature representations with our methods: supervised contrastive active learning (SCAL) and deep feature modeling (DFM). We empirically demonstrate our proposed methods reduce sampling bias, achieve state-of-the-art accuracy and model calibration in an active learning setup with the query computation 26x faster than Bayesian active learning by disagreement and 11x faster than CoreSet. The proposed SCAL method outperforms by a big margin in robustness to dataset shift and out-of-distribution.

Introduction

Deep learning models are notoriously data-hungry, yet the cost of high-quality data labeling remains a significant bottleneck. Active Learning (AL) offers a promising solution by iteratively selecting the most "informative" samples for human annotation. However, traditional AL strategies often suffer from sampling bias. Because models select data based on their own incomplete understanding, the resulting training sets can become unrepresentative of the true data distribution. This leads to models that are poorly calibrated and fragile when faced with real-world dataset shifts or out-of-distribution (OOD) samples.

This paper introduces two novel methods—Supervised Contrastive Active Learning (SCAL) and Deep Feature Modeling (DFM)—designed to select diverse, informative, and unbiased samples while maintaining high computational efficiency.

Proposed Methods

The authors propose leveraging the structure of the feature embedding space to guide data selection.

1. Supervised Contrastive Active Learning (SCAL)

SCAL utilizes a supervised contrastive loss during training, which encourages the model to cluster features of the same class tightly while pushing different classes apart. The query strategy then identifies "outliers" within these clusters by calculating the cosine similarity between unlabeled samples and existing training samples of the same predicted class. Samples with the lowest similarity are selected, ensuring the model explores the full diversity of each class.

2. Deep Feature Modeling (DFM)

DFM employs class-conditional Principal Component Analysis (PCA) on the network's deep features. It identifies informative samples by calculating a "feature reconstruction error." Samples that cannot be accurately reconstructed using the PCA components of their predicted class are deemed to be outside the model's current knowledge base and are prioritized for labeling.

Experimental Setup

The methods were evaluated against standard benchmarks:

  • CIFAR-10 & Fashion-MNIST: Standard balanced image classification tasks.
  • SVHN (Street View House Numbers): An imbalanced dataset used to test performance under more realistic, non-uniform class distributions.

Performance was compared against established methods like BALD (Bayesian Active Learning by Disagreement) and CoreSet.

Key Results

The proposed methods demonstrate significant improvements in both performance and efficiency.

Test accuracy across Fashion-MNIST, CIFAR-10, and SVHN datasets.

As shown in the accuracy plots above, SCAL and DFM consistently match or exceed the performance of traditional AL methods across all three datasets. Notably, on the imbalanced SVHN dataset, these methods prove particularly effective at maintaining high accuracy with fewer labeled samples.

A critical advantage of SCAL and DFM is their ability to mitigate sampling bias. While traditional uncertainty-based methods like Entropy or BALD tend to accumulate bias as more samples are selected, the proposed methods maintain a bias level comparable to random sampling.

Sampling bias comparison on the CIFAR-10 dataset.

Beyond accuracy and bias mitigation, the researchers reported several key advantages:

  • Massive Speedups: SCAL and DFM are up to 26x faster than BALD and 11x faster than CoreSet in terms of query computation time.
  • Superior Robustness: SCAL outperformed competitors in OOD detection (measured by AUROC) by a margin of more than 10%.
  • Better Calibration: Under dataset shifts (e.g., Gaussian noise), SCAL maintained lower Expected Calibration Error (ECE), meaning the model's confidence scores remained more trustworthy.

Conclusion and Future Work

By explicitly focusing on feature diversity and utilizing contrastive learning, SCAL and DFM provide a robust framework for active learning that avoids the common pitfalls of sampling bias. While currently validated on image classification with ResNet-18, future research could extend these strategies to Vision Transformers (ViTs) and more complex tasks like object detection or semantic segmentation. Additionally, exploring the sensitivity of DFM to its PCA hyperparameters could further refine its applicability across diverse datasets.

Summary updated

BibTeX
@misc{krishnan2021mitigating,
  author = {Ranganath Krishnan and Alok Sinha and Nilesh Ahuja and Mahesh Subedar and Omesh Tickoo and Ravi Iyer},
  title = {{Mitigating Sampling Bias and Improving Robustness in Active Learning}},
  year = {2021},
  eprint = {2109.06321},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2109.06321},
}
Figure