NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Active Learning with Unbalanced Classes and Example-Generation Queries

Christopher H. Lin, Mausam, Daniel S. WeldHcomp 2018

TL;DR

Machine learning in real-world scenarios often deals with highly imbalanced datasets, where minority class examples are rare and hard to find. This paper introduces MB-CB, a novel bandit-based algorithm that intelligently switches between different strategies for acquiring labeled data (like labeling existing examples or generating new ones) to maximize classifier performance under budget constraints. MB-CB significantly outperforms existing methods, demonstrating the power of adaptive query selection in challenging, imbalanced domains.

What Problem Does This Paper Address?

Training machine learning models typically requires a substantial amount of labeled data. However, in many real-world applications, such as medical diagnosis or fraud detection, the data is highly imbalanced – one class (the majority class) is abundant, while the other (the minority class) is extremely rare. Traditional active learning methods, which intelligently select data points for labeling, struggle in these scenarios because they are unlikely to pick out the scarce minority class examples. This leads to inefficient use of labeling budgets and poor model performance.

To address this, researchers have explored "guided learning," where crowd workers are tasked with generating or finding minority class examples, rather than just labeling existing ones. While effective, these generation strategies can be more expensive and might produce data from a slightly different distribution than the true underlying data. The core problem this paper tackles is: how can we optimally and dynamically switch between various data acquisition strategies (labeling, generating, etc.) to train a classifier most effectively within a given budget, especially in highly imbalanced settings?

Methods

The paper proposes a novel algorithm called MB-CB (Make Balanced - Cost Bound), which frames the problem as a meta-active learning task. MB-CB uses a multi-armed bandit approach to dynamically select the best "Example Acquisition Primitive" (EAP) at each step.

Here's a breakdown of the key components:

  • Example Acquisition Primitives (EAPs): The authors categorize EAPs into three types:
  • Labeling Primitives: Standard active learning (e.g., uncertainty sampling) and a novel primitive, LABEL-PREDPOS, which asks workers to label examples the current classifier predicts as positive.
  • Generation Primitives: Tasks that ask workers to generate or find examples, such as GENERATE-POSITIVE (guided learning) and GENERATE-NEGATE (creating "near-miss" negative examples by minimally modifying positive ones).
  • Machine Primitives: Automated methods that don't require human input, like ADD-RANDOM-NEG (inserting random unlabeled examples as negatives).
  • MB-CB Algorithm:
    • Cost-Bound Exploration: MB-CB maintains an estimate of the cost of obtaining a single positive example for each EAP. It uses a UCB (Upper Confidence Bound) strategy to balance exploiting the cheapest-known EAP with exploring less-known EAPs to refine cost estimates. This is crucial because EAP costs can be non-stationary (e.g., as the classifier improves, labeling becomes more efficient).
  • Make-Balanced Heuristic: To ensure the training set maintains a desired class ratio (controlled by parameter r), MB-CB either discards excess negative examples or inserts additional randomly labeled negative examples, depending on the EAP used.

The novelty lies in the bandit-based adaptive selection of EAPs, moving beyond fixed sequential strategies or single-query-type approaches.

Datasets

The paper uses several datasets for evaluation:

  • LD (Liu et al., 2016): A relation extraction dataset with gold labels inferred from crowdsourced workers. It contains examples for five relations (e.g., "Born in," "Died in").
  • Modified LD: An extension of LD created by crowdsourcing workers to minimally modify positive examples into negative ones, specifically for the "GENERATE-NEGATE" primitive.
  • NADS (News Aggregator Data Set): A large dataset of news headlines labeled with one of four topics ("Entertainment," "Business," "Science," "Health"). Used for experiments involving more complex algorithms and higher skews.
  • NADS-Generate: A version of NADS where crowdsourced workers were asked to find real news headlines for specific topics, creating a "real generation set" to test algorithms against distributional differences.

Key Insights and Ideas

  • GENERATE-NEGATE is often not cost-effective: Despite the intuitive appeal of "near-miss" negatives, experiments showed that this EAP rarely outperformed simpler strategies like random labeling or adding random negatives, especially at higher skews.
  • LABEL-PREDPOS is surprisingly less effective than LABEL-ACTIVE: The authors hypothesized that asking workers to label examples predicted as positive would be highly efficient in imbalanced settings. However, experiments showed that standard uncertainty sampling (LABEL-ACTIVE) often performed better, suggesting that classifiers are not yet competent enough early in training to reliably predict positives, making this EAP less useful than initially thought.
  • Adaptive switching is key: The core insight is that no single EAP is universally best. The optimal strategy depends heavily on the current class skew, the classifier's progress, and the budget. MB-CB's ability to dynamically adapt its EAP selection is its main strength.
  • Cost-sensitive learning is crucial: The bandit approach, which explicitly models and learns the cost of acquiring positive examples, is fundamental to MB-CB's success.

Key Results

  • MB-CB (specifically, the version using GENERATE-POSITIVE and LABEL-ACTIVE) achieved up to a 14.3 point gain in F1 AUC over the state-of-the-art baseline (GL-Hybrid) across various domains and class-frequency settings.
  • At low skews, simple LABEL-RANDOM often dominated, highlighting that expensive generation strategies are unnecessary when minority examples are relatively common.
  • At high skews, strategies combining generation and random negative insertion (Gen+Rand-) showed promise, outperforming others in some scenarios.
  • MB-CB demonstrated robustness across different domains and skew levels, consistently outperforming other adaptive and static strategies.

Limitations and Future Work

  • Cost of EAPs: While the paper uses fixed costs for EAPs, in reality, these costs can fluctuate. MB-CB's bandit approach helps learn these costs, but the initial estimates and the learning rate are critical.
  • "Make-Balanced" is a heuristic: The current "Make-Balanced" part of MB-CB is a post-hoc adjustment to maintain skew. The authors suggest that a future modification could make adding negatives an explicit part of the algorithm's selection policy, allowing for more intelligent negative example acquisition.
  • Limited EAP repertoire: The paper explored a set of EAPs but acknowledges that many others exist (e.g., distant supervision, feature labeling). Integrating these could further enhance MB-CB's performance.
  • Non-stationary costs: While MB-CB handles non-stationary costs, more advanced non-stationary bandit algorithms could potentially offer further improvements, though the paper found simpler approaches to be competitive.

Summary updated

BibTeX
@inproceedings{lin2018active,
  author = {Christopher H. Lin and Mausam and Daniel S. Weld},
  title = {{Active Learning with Unbalanced Classes and Example-Generation Queries}},
  booktitle = {Hcomp},
  year = {2018},
  doi = {10.1609/hcomp.v6i1.13334},
}
Figure