Abstract
Semi-supervised learning (SSL) often fails on class-imbalanced datasets due to a "bias trap" where models over-predict majority classes, reinforcing errors through pseudo-labeling. We present BASIL (Balanced Active Semi-supervIsed Learning), a framework that utilizes Submodular Mutual Information (SMI) functions within an active learning loop to select a balanced set of labeled examples. This balanced "seed" set significantly improves the performance of downstream SSL algorithms. Experiments on medical imaging benchmarks Path-MNIST and Organ-MNIST demonstrate that BASIL reduces class imbalance by up to 20x and consistently outperforms state-of-the-art active learning baselines.
Introduction: The Bias Trap in Semi-Supervised Learning
Most semi-supervised learning (SSL) algorithms—which leverage a small amount of labeled data alongside a large unlabeled pool—assume that data is relatively balanced across classes. In real-world domains like medical imaging, this assumption is frequently violated; healthy scans often vastly outnumber those showing rare pathologies.
This imbalance leads to a "bias trap." An initially imbalanced labeled set biases the model toward majority classes. When this model generates "pseudo-labels" for unlabeled data, it incorrectly assigns majority-class labels to minority-class samples, creating a self-reinforcing cycle of poor performance on rare but critical cases. Standard Active Learning (AL) methods, which typically prioritize uncertainty or diversity, often exacerbate this problem by selecting more samples from the more frequent (and thus more "uncertain") majority classes.
The BASIL Framework
BASIL addresses this by unifying Active Learning and SSL into a single framework focused on class balance. The core innovation is the use of Submodular Mutual Information (SMI) functions to perform per-class selection.
Per-Class Selection via SMI
Instead of global selection, BASIL selects a specific budget of samples for each class. It treats existing labeled samples as a "query" set and uses SMI functions to find unlabeled samples that are most representative of that specific class. To capture how the model perceives information, BASIL utilizes the gradients of the model's loss function to measure similarity.
The framework employs three primary SMI functions:
- GCMI (Graph Cut MI): Focuses on query relevance.
- FLVMI (Facility Location VMI): Balances diversity and query relevance.
- FLQMI (Facility Location QMI): Focuses on bidirectional representation between the query and the selected set.
Experimental Evaluation
BASIL was evaluated on two challenging medical imaging benchmarks: Path-MNIST (histopathology images) and Organ-MNIST (abdominal CT scans), both simulated with significant class imbalance.
Key Results: Reducing Imbalance
BASIL achieved an Imbalance Ratio (IR) roughly 4x to 5x lower than competitive AL baselines like Badge or Entropy-based selection, and up to 20x lower than random sampling. By establishing a balanced "seed" set, BASIL enables SSL algorithms to generate accurate pseudo-labels even when the underlying unlabeled pool remains imbalanced.
Accuracy Gains
Across eight different SSL techniques, BASIL consistently yielded superior accuracy. On Path-MNIST using Virtual Adversarial Training (VAT), BASIL achieved 85.46% accuracy, outperforming random sampling (81.48%) and entropy-based selection (82.6%). On Organ-MNIST, BASIL (FLQMI) reached 67.68% with Pseudo-Labeling, a significant improvement over the 62.83% baseline.
Conclusion and Future Work
BASIL demonstrates that the success of semi-supervised learning on imbalanced data is highly dependent on the quality and balance of the initial labeled set. While the computational complexity of SMI functions (scaling at $O(n^2)$) and the requirement for a small initial labeled "query" set are current limitations, the framework provides a robust path forward for training models in domains where rare events are critical. Future research will explore the application of these techniques to other high-stakes fields such as autonomous driving and natural language processing.
Summary updated