Algorithm Selection for Deep Active Learning with Imbalanced Datasets

Jifan Zhang, Shuai Shao, saurabh verma, Robert D Nowak

Introduction

Active Learning (AL) is a powerful tool for deep learning: it helps models learn more with less data by intelligently picking which unlabeled examples should be sent to a human for labeling. However, the field faces a persistent "No Free Lunch" problem. An algorithm that works wonders on a balanced image dataset might fail miserably on a medical dataset with rare diseases.

Currently, researchers and engineers often have to guess which AL algorithm to use for a new project. This is especially difficult with imbalanced datasets, where standard techniques frequently ignore rare classes in favor of "informative" but common ones. This paper tackles a fundamental question: Can we build an algorithm that automatically chooses the best active learning strategy for any given dataset?

To address this, the authors propose TAILOR (Thompson ActIve Learning algORithm selection), a meta-algorithm that automatically selects the best active learning strategy using a multi-armed bandit framework. By prioritizing class diversity through novel reward functions, it consistently matches or outperforms the best individual candidate algorithms.

The TAILOR Framework

The authors frame algorithm selection as a Multi-Armed Bandit (MAB) problem. In this setup, each candidate AL algorithm (such as BADGE, GALAXY, or simple Uncertainty Sampling) acts as an "arm" that the meta-algorithm can pull.

TAILOR Meta-Algorithm Framework

Key components of the TAILOR framework include:

  • Thompson Sampling: TAILOR maintains a "belief" (posterior distribution) about how well each candidate algorithm is performing. It samples from these beliefs to decide which algorithm to use for the next batch of data.
  • Novel Reward Functions: Traditional meta-AL approaches often use training accuracy as a reward. However, deep models typically reach 100% training accuracy quickly, making this signal useless. TAILOR instead utilizes Class Diversity rewards. It rewards algorithms that successfully find examples from classes currently under-represented in the labeled set.
  • Theoretical Efficiency: The authors provide a regret analysis demonstrating that TAILOR’s approach is more efficient than standard contextual bandit reductions, scaling better with the number of classes and algorithms.

Experimental Setup and Datasets

The researchers evaluated TAILOR across ten diverse datasets characterized by significant class imbalance. These included multi-label datasets like CelebA (facial attributes), MS-COCO, PASCAL VOC, and Stanford Cars, as well as multi-class datasets like ImageNet-1k, Kuzushiji-49, Caltech256, and imbalanced versions of CIFAR-10, CIFAR-100, and SVHN.

Key Insights and Results

A major insight from the paper is that accuracy is a poor compass for deep active learning. Because deep models are universal approximators, training accuracy is a noisy reward. By switching the reward signal to class-balancedness, TAILOR establishes a much more stable and effective proxy for model improvement.

Performance comparison showing TAILOR outperforming baselines

The results demonstrate the power of this approach:

  • Superior Overall Performance: TAILOR achieved accuracy comparable to or better than the best individual candidate algorithm on 9 out of 10 datasets.
  • The Power of Combinations: TAILOR doesn't just pick one "winner." On the CelebA dataset, it achieved peak performance by selecting a combination of different algorithms over time, creating a labeled set that was both highly informative and class-diverse. It actually outperformed the single best candidate algorithm by a significant margin.
  • Per-Class Specialization: For multi-label tasks, TAILOR can treat each class as its own sub-problem. This allows it to pick an uncertainty-based algorithm for a common class while simultaneously using a search-based algorithm to hunt for a rare class.
  • Computational Efficiency: Despite being a "meta" algorithm, TAILOR is computationally efficient. In experiments, it was often 20% faster than the slowest candidate algorithm because it adaptively learns to ignore computationally expensive strategies that aren't yielding high rewards.

Limitations and Future Work

While highly effective, the authors note a few limitations. First is the "Too Many Arms" problem: the regret bound scales with the number of candidate algorithms. If provided with too many low-quality algorithms, the meta-algorithm may take too long to prune them, wasting the labeling budget.

Additionally, while the paper introduces a discounting factor to handle the reality that the "best" algorithm might change as the model matures (non-stationarity), a more formal treatment of non-stationary rewards in deep AL remains an open area for research. Finally, while class diversity works exceptionally well as a reward, future work could explore alternative reward functions that capture other nuances of data quality.

Summary updated

BibTeX
@inproceedings{zhang2023algorithm,
  author = {Jifan Zhang and Shuai Shao and saurabh verma and Robert D Nowak},
  title = {{Algorithm Selection for Deep Active Learning with Imbalanced Datasets}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=zrUEHZ6s9C},
}
Figure