Source-linked AI summary

Deep Batch Active Learning by Diverse, Uncertain Gradient Lower Bounds

Jordan T. Ash, Chicheng Zhang, Akshay Krishnamurthy, John Langford, Alekh Agarwal

arXiv:1906.03671v2cs.LGstat.ML

TL;DR

Deep active learning needs label-efficient batch selection that remains effective across architectures, batch sizes, and datasets, while uncertainty-only or diversity-only strategies have practical weaknesses. BADGE combines both criteria through hallucinated final-layer gradient embeddings and k-MEANS++ selection, and is generally as good as or better than the best baseline across the evaluated conditions. Its practical appeal is strengthened by avoiding hand-tuned hyperparameters, though reported scope includes an MLP-only MNIST study because that dataset is extremely easy to classify.

  • Problem

    Deep neural networks often depend on large labeled datasets, while existing active learning strategies can behave inconsistently across architectures, batch sizes, and datasets.

  • Method

    BADGE represents uncertainty with hypothetical-label final-layer gradient magnitudes and selects diverse gradient directions using k-MEANS++ seeding.

  • Results

    BADGE generally performs as well as or better than the best baseline across experiments varying architecture, batch size, and dataset.

  • Takeaways & Limitations

    BADGE jointly optimizes diversity and uncertainty without requiring hyperparameters, avoiding batches of identical uncertain examples and supporting observed robustness.

  • Takeaways & Limitations

    For MNIST, the study uses MLPs rather than convolutional networks because MNIST is extremely easy to classify.

Abstract

from arXiv · show

We design a new algorithm for batch active learning with deep neural network models. Our algorithm, Batch Active learning by Diverse Gradient Embeddings (BADGE), samples groups of points that are disparate and high-magnitude when represented in a hallucinated gradient space, a strategy designed to incorporate both predictive uncertainty and sample diversity into every selected batch. Crucially, BADGE trades off between diversity and uncertainty without requiring any hand-tuned hyperparameters. We show that while other approaches sometimes succeed for particular batch sizes or architectures, BADGE consistently performs as well or better, making it a versatile option for practical active learning problems.

1 INTRODUCTION

Deep active learning aims to reduce labeling effort, but practical batch selection must balance uncertainty, diversity, architecture, batch size, and dataset differences. BADGE addresses this by selecting diverse, uncertain examples through gradient embeddings and performs robustly across these conditions.

  • Deep neural networks often require large labeled datasets, motivating active learning to identify informative samples with fewer label queries.
  • Version-space methods can degenerate with expressive neural networks, while retraining overhead makes some approaches impractical.
  • Uncertainty-only batches may contain nearly identical examples, whereas diversity-only selection may choose points that add little model information.
  • Active learning methods can vary substantially across architectures, batch sizes, and datasets, making the best algorithm difficult to identify in practice.
  • Hyperparameter sweeps can be label expensive because changing settings may cause the algorithm to query different examples.
  • BADGE selects batches that are diverse in hallucinated gradient directions while using gradient magnitude to represent uncertainty.
  • Across experiments varying architecture, batch size, and dataset, BADGE generally performs as well as or better than the best baseline.

2 NOTATION AND SETTING

The paper formalizes pool-based multiclass active learning with neural-network classifiers trained on queried labels. BADGE initializes a labeled set, computes hypothetical-label gradient embeddings, selects a batch, and retrains iteratively.

  • The pool-based setup provides an unlabeled dataset U and allows label requests for selected examples.
  • Classifiers hθ are neural networks with fixed architectures whose parameters θ are trained by minimizing cross-entropy on labeled examples.
  • BADGE begins with M uniformly sampled labeled examples, trains an initial model, and repeats batch selection and retraining for T iterations.
  • For each unlabeled example, BADGE predicts a hypothetical label and computes a final-layer gradient embedding using that label.
  • The algorithm applies k-MEANS++ seeding to gradient embeddings, queries the selected batch, adds it to the labeled set, and trains the next model.

3 ALGORITHM

BADGE represents unlabeled examples with hallucinated last-layer gradient embeddings whose magnitude captures uncertainty and whose directions capture diversity. It selects batches using k-MEANS++ to favor large, diverse embeddings without additional hyperparameters, and performs robustly across experimental conditions.

  • Gradient embedding: BADGE computes each pool example’s gradient embedding using the model’s preferred label and the loss gradient with respect to the network’s last layer.The preferred label is the model’s current argmax prediction; the embedding is a proxy because the true label is unavailable.
  • Gradient embedding: The embedding norm lower-bounds the true-label last-layer gradient norm and serves as an uncertainty signal, while embedding directions encode representation diversity.Under the stated neural-network structure, confident examples have small embedding norms and uncertain examples have larger norms.
  • Sampling: BADGE selects examples that induce large and diverse model changes, avoiding batches of similar points whose labels would provide redundant information.This combines sample magnitude with batch diversity in the acquisition objective.
  • Sampling: k-MEANS++ provides a computationally efficient alternative to k-DPP sampling: the two methods have nearly overlapping learning curves, while switching to k-MEANS++ greatly improves runtime.The comparison averages each curve over five independent experiments with standard errors shown as shaded regions.
  • Sampling: Gradient-embedding k-MEANS++ and k-DPP select diverse, high-magnitude batches, whereas FF-k-CENTER does not consistently achieve both properties.The log determinant of the selected embeddings’ Gram matrix measures diversity, and average embedding magnitude measures predictive uncertainty.
  • Empirical behavior: BADGE tracks whichever strategy is favorable over training: diversity sampling early and uncertainty sampling later, suggesting robustness to labeling budget.In the reported examples, BADGE performs as well as diversity sampling when it is strongest and as well as uncertainty sampling later.
  • Empirical behavior: Across experiments, BADGE generally matches or exceeds the best baseline across architectures, batch sizes, and datasets.The evaluation varies batch sizes from 100 to 10,000 and compares representative, uncertainty-based, hybrid, and supervised-learning baselines.

5 RELATED WORK

Active learning work spans representative, uncertainty-based, hybrid, and batch-mode strategies, with gradient-length criteria offering another uncertainty signal. These approaches target efficient selection but differ in objectives and trade-offs.

  • Representative sampling selects batches that stand in for the unlabeled dataset, so training on the labeled surrogate can approximate full-dataset optimization.
  • Uncertainty sampling chooses examples expected to reduce classifier uncertainty, including points near the current decision boundary in linear classification.
  • Hybrid methods combine representativeness and uncertainty, including meta-active learning and criteria balancing example representativeness with informativeness.
  • Batch-mode active learning selects multiple samples per round, often formulating batch selection as optimization over aggregate loss or likelihood objectives.
  • Expected gradient length provides a distinct query criterion whose selected samples differ substantially from entropy-based uncertainty samples.
  • Adaptive subsampling work generally targets computation reduction or improved optimization, rather than minimizing labeling effort in active learning.
  • Gradient embeddings combine penultimate-layer representations with probability scores, linking diversity information to uncertainty information.

6 DISCUSSION

BADGE is presented as effective across architectures and batch sizes, with robustness attributed to lower-bound uncertainty, diversity, hyperparameter-free selection, and randomized k-MEANS++ seeding. The seeding procedure promotes diverse centers through distance-weighted sequential sampling.

  • Discussion: BADGE performs similarly to or better than other active learning algorithms across different architectures and batch sizes.
  • Discussion: The uncertainty measure lower-bounds last-layer gradient magnitude, guaranteeing some parameter update from a selected example.
  • Discussion: BADGE jointly optimizes diversity and uncertainty without hyperparameters, avoiding batches filled with nearly identical uncertain examples.
  • Discussion: Randomized k-MEANS++ initialization is described as eventually converging to a good solution even for adversarially constructed datasets.
  • Discussion: The combination of these properties is proposed as an explanation for BADGE's empirically observed robustness.
  • k-MEANS++: k-MEANS++ sequentially samples centers with probability proportional to squared distance from the nearest existing center, promoting diversity.
  • k-MEANS++: The k-MEANS++ procedure initializes one center uniformly at random, then iteratively adds centers until reaching the target size.

B BADGE FOR BINARY LOGISTIC REGRESSION

BADGE is instantiated for binary logistic regression using hallucinated-label gradients, with analysis connecting gradient-based batch selection to lower-variance updates under a low-margin restriction.

  • BADGE defines binary logistic-regression predictions with sigmoid probabilities for labels in {−1, +1}.
  • The hallucinated label is the model’s most likely class, selected according to whether the predicted probability exceeds 1/2.
  • BADGE contrasts gradients computed with the hallucinated label against gradients computed with the true label.
  • When selection is restricted to the decision-boundary region S_w, hallucinated and true-label gradients differ only by a sign.
  • Under this restriction, the text connects DPP sampling over gradients with lower-variance updates than uncertainty sampling for the expected 0-1 loss direction.

C ALL LEARNING CURVES

The paper reports full learning curves and zoomed-in views of test accuracy as a function of the number of queried labeled examples.

  • Learning curves plot test accuracy against the number of labeled examples queried.
  • Figures 6–12 show full learning curves, while Figures 13–19 zoom into regions that discriminate algorithm performance.

D PAIRWISE COMPARISONS OF ALGORITHMS

Pairwise evaluations aggregate results across datasets, batch sizes, architectures, and label budgets, with additional views conditioning on batch size and model architecture. The reported pattern is that uncertainty- and representative-sampling methods are regime-dependent, whereas BADGE remains competitive across settings.

  • Pairwise comparisons: Penalty matrices aggregate algorithm comparisons conditioned on batch sizes 100, 1000, and 10000 or on MLP, ResNet, and VGG models.
  • Pairwise comparisons: Each matrix entry roughly counts how often one algorithm beats another, while lower column-wise averages indicate better aggregate performance.
  • Pairwise comparisons: Uncertainty-based methods perform well mainly for batch size 100 or MLP models, whereas CORESET performs well mainly for batch size 10000 or ResNet and VGG models.
  • Pairwise comparisons: BADGE’s performance is competitive across all reported batch sizes and neural network models.
  • CDF comparisons: CDF plots condition normalized-error comparisons on batch sizes 100, 1000, and 10000, and separately on MLP, ResNet, and VGG.

E CDFS OF NORMALIZED ERRORS OF DIFFERENT ALGORITHMS

The CDF analysis presents normalized-error comparisons separately by batch size and neural network model.

  • CDFs of normalized errors are shown conditioned on batch sizes 100, 1000, and 10000 and on MLP, ResNet, and VGG models.

F BATCH UNCERTAINTY AND DIVERSITY

BADGE selects batches using gradient embeddings to combine uncertainty and diversity. Compared with alternative samplers, it produces stronger diversity while retaining high uncertainty in the selected examples.

  • k-MEANS++ (BADGE) induces good batch diversity across both OpenML #6 with an MLP and SVHN with a ResNet.The comparison measures diversity with the determinant of the gradient-embedding Gram matrix.
  • CONF generally selects highly uncertain examples, but its batch diversity can become low, with log Gram determinant equal to −∞ in some OpenML #6 iterations.These low-diversity iterations appear as gaps in CONF’s learning curve.
  • The k-centers sampler finds points that are neither as diverse nor as high-magnitude as other samplers.
  • k-DPP and FF-k-CENTER select batches with lower diversity than k-MEANS++ (BADGE).

G COMPARISON OF k-MEANS++ AND k-DPP IN BATCH SELECTION

The comparison evaluates k-MEANS++ and k-DPP for gradient-embedding batch selection across multiple datasets, architectures, and batch sizes. Their induced active-learning algorithms achieve similar classification accuracies, while k-DPP generally requires more time for large batches and cannot run at batch size 10000 because of memory limits.

  • Batch-size-10000 comparisons are omitted because the k-DPP implementation runs out of memory.The implementation uses MCMC sampling with time complexity O(τ · (k2 + kd)) and space complexity O(k2 + kd).
  • k-DPP and k-MEANS++ produce similar classification accuracies despite using different sampling criteria.
  • For large batch sizes such as k = 1000, k-DPP sampling generally has much higher running times than k-MEANS++.
Loading 1906.03671v2…