Class-Balanced Active Learning for Image Classification

Javad Zolfaghari Bengar, Joost van de Weijer, Laura Lopez-Fuentes, Bogdan Raducanu

TL;DR

This paper tackles the challenge of class imbalance in active learning for image classification, a common issue in real-world datasets that can lead to suboptimal model performance. They propose a novel optimization framework that explicitly incorporates class balancing into the sample selection process, improving the performance of existing active learning methods on imbalanced datasets.

What Problem Does This Paper Address?

Training deep neural networks for computer vision tasks often requires massive labeled datasets, which are expensive and time-consuming to create. Active learning aims to mitigate this by intelligently selecting which data points to label, thereby minimizing labeling effort while maximizing model performance. However, most active learning research assumes balanced datasets, where each class has an equal number of samples. In reality, datasets often exhibit a "long-tail distribution," meaning a few classes are very common, while many others are rare. This class imbalance poses a significant problem for active learning: standard methods tend to oversample from majority classes, leading to biased models that perform poorly on minority classes. This paper addresses this gap by proposing a method to ensure class balance during the active learning process, even when the unlabeled data pool is imbalanced.

Methods

The core contribution of this paper is a general optimization framework for class-balanced active learning (CBAL). This framework aims to select informative samples while simultaneously encouraging a balanced distribution of classes in the selected batch.

The authors propose to achieve this by formulating a binary programming problem. Given the model's predicted probabilities for unlabeled samples, they estimate the desired class distribution for the next batch. This desired distribution is then used to guide the sample selection process. The optimization objective combines two terms:

  1. Informativeness: This term aims to select samples that the model is most uncertain about, typically measured by entropy. Maximizing entropy is equivalent to minimizing negative entropy.
  2. Class Balancing: This term uses an L1 norm to measure the difference between the current estimated class distribution of selected samples and the desired balanced distribution.

The combined objective function is then minimized, subject to the constraint that exactly b samples are selected per cycle. The authors note that this problem is non-convex due to the binary constraint but can be solved using techniques like LP relaxation and branch and bound. This framework is designed to be general and can be integrated with various existing active learning strategies, such as informativeness-based (e.g., entropy) and representativeness-based (e.g., KCenterGreedy) methods. They introduce a parameter $\lambda$ to control the trade-off between the informativeness and balancing objectives.

Datasets

The paper evaluates their method on the following datasets:

  • CIFAR10: A standard image classification dataset with 10 classes.
  • CIFAR100: A standard image classification dataset with 100 classes.
  • Tiny ImageNet: A larger-scale dataset with 200 object categories, used to evaluate scalability.

For imbalanced scenarios, they create long-tailed versions of these datasets by randomly removing training examples, using imbalance factors (IF) of 0.1, 0.3, and 1 (balanced).

Key Insights and Ideas

  • Class imbalance is a critical issue for active learning: The paper strongly argues that the assumption of balanced datasets in traditional active learning is unrealistic and leads to poor performance on real-world, long-tailed data.
  • Balancing is as important as informativeness: The proposed framework demonstrates that explicitly incorporating class balancing into the acquisition function is crucial for improving active learning performance on imbalanced datasets, often leading to significant gains.
  • Generality of the approach: The CBAL framework is designed to be modular and can be combined with various existing active learning strategies, making it a versatile tool.
  • Counteracting sampling bias: Even on balanced datasets, the proposed method can offer performance improvements, primarily by mitigating the sampling bias that can be introduced by standard active learning algorithms over multiple cycles.

Key Results

  • Improved performance on imbalanced datasets: Across CIFAR10 and CIFAR100 with varying imbalance factors (IF=0.1, 0.3), the class-balanced variants of Entropy, KCenterGreedy, and VAAL consistently outperformed their non-balanced counterparts. For instance, on CIFAR10 with IF=0.3, Entropy-CB achieved 86% accuracy, while Random sampling required 5K more images to reach the same performance.
  • Significant gains with VAAL-CB: The VAAL-CB method showed particularly notable improvements, achieving up to 3% gain over the standard VAAL on CIFAR100 (IF=0.3).
  • Benefits on balanced datasets: Even on balanced datasets (IF=1), the class-balanced methods provided marginal but consistent improvements, suggesting their ability to counteract sampling bias.
  • Scalability: The method demonstrated good performance on the larger Tiny ImageNet dataset, indicating its scalability.
  • Trade-off analysis: The paper shows a trade-off between entropy (informativeness) and class balance, controlled by the $\lambda$ parameter. Higher $\lambda$ leads to better balance but potentially lower entropy.

Limitations and Future Work

  • Non-convex optimization: The optimization problem is non-convex, which, while solvable, can be computationally more demanding than simpler convex problems.
  • Parameter tuning: The regularization parameter $\lambda$ needs to be tuned, and the paper suggests a method for selecting it based on the trade-off between entropy and L1 loss.
  • Future work: The authors suggest that class balancing should be a fundamental consideration in active learning, alongside informativeness and representativeness. Further exploration into more sophisticated balancing strategies and their integration with other advanced active learning techniques could be beneficial.

Summary updated

BibTeX
@inproceedings{bengar2022class,
  author = {Javad Zolfaghari Bengar and Joost van de Weijer and Laura Lopez-Fuentes and Bogdan Raducanu},
  title = {{Class-Balanced Active Learning for Image Classification}},
  booktitle = {IEEE/CVF Winter Conference on Applications of Computer Vision},
  year = {2022},
  url = {https://openreview.net/forum?id=7NdvW4Qov3},
}
Figure