Active Learning for Skewed Data Sets

Abbas Kazerouni, Qi Zhao, Jing Xie, Sandeep Tata, Marc NajorkarXiv 2020

TL;DR

Hybrid Active Learning (HAL) addresses the "cold start" problem in active learning for highly imbalanced datasets by balancing exploitation (margin sampling) with exploration. By intentionally sampling from unexplored regions of the feature space, HAL can be up to 7x more efficient than standard margin sampling, reaching target performance levels with significantly fewer human-labeled examples.

What Problem Does This Paper Address?

Active learning is a powerful tool for building classifiers when labeling data is expensive: an algorithm chooses which unlabeled points a human should label to improve the model most effectively. However, standard techniques like margin sampling—which picks points the model is most uncertain about—suffer from two major flaws in real-world web applications:

  1. Severe Class Imbalance (Skew): In tasks like detecting hate speech or pornography, the "positive" class is a tiny fraction of the total data.
  2. Limited Initial Data: When starting a new project, you often have very few (or zero) labeled examples.

In these scenarios, margin sampling becomes "myopic." It focuses all its effort on refining the decision boundary it has already found, potentially missing entire clusters of minority-class examples located elsewhere in the feature space.

Figure 1: (a) The input space with their true label and (b) the initial labeled data set L0. Blue and red points represent two different labels, say positive and negative, respectively, while gray points represent unlabeled examples.

Methods

The authors propose Hybrid Active Learning (HAL). The core idea is an explore-exploit trade-off governed by a parameter $p$:

  • Exploit (Probability $p$): Uses standard margin sampling. It selects points closest to the current decision boundary where the model is most uncertain.
  • Explore (Probability $1-p$): Selects points from "unexplored" areas, independent of the model's current predictions. The authors test two exploration schemes:
  • Random Exploration: Picking points uniformly at random.
  • Gaussian Exploration: A more sophisticated approach that assigns a score to unlabeled points based on their distance to already labeled points. It prefers "lonely" points far away from the current training set.

By mixing these two, the algorithm can refine its current boundary while simultaneously "scouting" the rest of the data for new clusters of interest.

Datasets

The researchers evaluated HAL using two primary setups:

  • Synthetic Dataset: A 10-dimensional space with 300 clusters. Only 10 clusters are labeled positive, and these are downsampled so that the positive class makes up only 0.5% of the total data.
  • Modified MNIST: The classic handwritten digit dataset was modified into a binary task (digits 0, 1, and 4 are positive; others are negative) and downsampled to a 1.5% skew to simulate a diverse, imbalanced real-world problem.

Key Insights and Ideas

  • The Myopia of Uncertainty: Figure 2 in the paper (represented below) illustrates how margin sampling gets "stuck." Because it only looks at the current boundary, it keeps querying points in the same area, never discovering the second cluster of positive examples on the right.
Figure 2: Margin sampling getting stuck in one area of uncertainty over three rounds.
  • Exploration as a Catalyst: By forcing the algorithm to look elsewhere, HAL discovers new clusters quickly. Once a single positive point in a new area is found, the decision boundary shifts, and the "exploit" component (margin sampling) can then rush in to refine that new area.
Figure 3: HAL using exploration to quickly discover the second positive cluster.
  • Skewness Amplifies the Benefit: The advantage of HAL over standard methods is most pronounced when the data is most imbalanced. When the classes are perfectly balanced, the advantage of exploration disappears.

Key Results

  • 7x Efficiency Gain: On the synthetic dataset, HAL-G (Gaussian exploration) achieved the same performance with under 2,000 labeled points that margin sampling required 14,000 points to reach.
  • Early Stage Dominance: The performance gap is largest in the "early stages" of learning. This is critical for industry applications where getting a model to a usable state quickly is paramount.
  • Superior Metrics: HAL consistently outperformed baselines in both Area Under the Precision-Recall Curve (AUC-PR) and Recall at high precision (e.g., Recall @ 0.9 precision), which is the standard metric for sensitive content detection.

Limitations and Future Work

  • The $p$ Hyperparameter: The trade-off parameter $p$ currently needs to be set manually. The authors acknowledge that in a real-world "cold start" scenario, you might not know the optimal $p$ beforehand. Developing methods to set this dynamically is a key area for future research.
  • Validation Set Scarcity: The paper assumes access to a validation set to measure performance. However, in highly skewed environments, building a representative validation set is itself a difficult and expensive active learning problem.
  • Exploration Complexity: While Gaussian exploration is effective, it is computationally more expensive than random sampling. The authors suggest investigating more principled, yet efficient, exploration schemes like those based on mutual information.

Summary updated

BibTeX
@misc{kazerouni2020active,
  author = {Abbas Kazerouni and Qi Zhao and Jing Xie and Sandeep Tata and Marc Najork},
  title = {{Active Learning for Skewed Data Sets}},
  year = {2020},
  eprint = {2005.11442},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2005.11442},
}
Figure