Minimum-Margin Active Learning

Heinrich Jiang, Maya R. GuptaarXiv 2019

Abstract

We present a new active sampling method we call min-margin which trains multiple learners on bootstrap samples and then chooses the examples to label based on the candidates' minimum margin amongst the bootstrapped models. This extends standard margin sampling in a way that increases its diversity in a supervised manner as it arises from the model uncertainty. We focus on the one-shot batch active learning setting, and show theoretically and through extensive experiments on a broad set of problems that min-margin outperforms other methods, particularly as batch size grows.

Introduction

In many machine learning applications, unlabeled data is abundant, but obtaining labels is a costly and time-consuming process. Active Learning (AL) addresses this by strategically selecting the most informative examples for labeling. The traditional "gold standard" for AL is margin sampling, which selects examples the model is most uncertain about—those closest to the decision boundary.

However, margin sampling faces a significant "diversity problem" in batch active learning settings, where hundreds or thousands of examples must be selected simultaneously. In these scenarios, standard margin sampling often selects a redundant cluster of similar points near the current decision boundary, leading to inefficient use of the labeling budget.

The Min-Margin Algorithm

To overcome the limitations of batch sampling, we propose Min-Margin Active Sampling. This method leverages model uncertainty to naturally encourage diversity in the selected batch. The algorithm follows a straightforward process:

  1. Bootstrap: Generate $K$ different versions of the training set by sampling with replacement.
  2. Train: Train a "committee" of $K$ separate models on these bootstrapped samples.
  3. Score: For each unlabeled candidate, calculate its margin (distance to the decision boundary) for every model in the committee.
  4. Minimize: Assign each candidate a score based on its minimum margin across all $K$ models.
  5. Select: Choose the $B$ candidates with the lowest minimum margin scores.

By selecting points that are near the boundary for at least one plausible version of the model, the algorithm identifies a diverse set of informative points across the feature space.

Experimental Evaluation

We evaluated min-margin against several baselines, including standard margin sampling, random sampling, and committee-based methods, across a variety of datasets including MNIST, Fashion MNIST, and several UCI benchmarks like nomao and cod-rna.

Accuracy comparison across different batch sizes. Min-margin consistently outperforms other methods as the batch size grows.

The results demonstrate that while min-margin performs comparably to standard margin sampling for small batches, it significantly pulls ahead as the batch size increases. On large-scale industrial tasks, such as query intent classification, it was the only method to consistently outperform random sampling across all batch sizes (from 1,000 to 50,000).

Key Insights: Supervised Diversity

A core advantage of min-margin is what we term "supervised diversity." Unlike unsupervised methods that use clustering (e.g., k-means) to force diversity, min-margin uses the model's own uncertainty to determine where diversity is most beneficial. It specifically targets regions where the model is confused, avoiding the computational overhead of quadratic scaling ($O(B^2)$) common in other diversity-focused algorithms. Min-margin scales linearly ($O(|Z|)$), making it ideal for industrial applications.

Visual comparison of sample selection. Min-margin (blue) selects a more diverse set of points along the potential decision boundaries compared to standard margin sampling (orange).

Furthermore, min-margin proved to be remarkably robust. A default setting of $K=25$ bootstrapped models provided strong performance across diverse tasks without the need for extensive hyperparameter tuning.

Conclusion and Future Work

Min-margin offers a simple, scalable, and effective solution for batch active learning. By incorporating model uncertainty into the sampling process, it ensures that selected batches are both informative and diverse.

While the current work focuses on one-shot batch learning and provides theoretical backing for 2D linear classifiers, future research could explore its performance in iterative retraining cycles and extend the theoretical framework to high-dimensional, non-linear models. Despite the overhead of training multiple models, the process is highly parallelizable, making it a practical choice for modern large-scale machine learning pipelines.

Summary updated

BibTeX
@misc{jiang2019minimum,
  author = {Heinrich Jiang and Maya R. Gupta},
  title = {{Minimum-Margin Active Learning}},
  year = {2019},
  eprint = {1906.00025},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1906.00025},
}
Figure