NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Deep Active Learning with Contrastive Learning Under Realistic Data Pool Assumptions

Jihyo Kim, Jeonghyeon Kim, Sangheum HwangarXiv 2023 · DOI

Abstract

Standard active learning (AL) often fails in real-world scenarios because it assumes the unlabeled data pool is "clean," containing only task-relevant samples. In practice, data pools are often "messy," containing out-of-distribution (OoD) and ambiguous samples that can mislead traditional uncertainty-based acquisition strategies. This paper introduces a novel framework that leverages contrastive learning to build robust representations and a cluster-based acquisition strategy to prioritize informative, in-distribution data. Experiments on new "realistic" benchmarks, MixMNIST and MixCIFAR60, demonstrate that the proposed method significantly reduces annotation costs by avoiding the "uncertainty trap" of irrelevant data.

Introduction: The Uncertainty Trap

Active Learning (AL) aims to minimize labeling costs by selecting the most informative samples for human annotation. However, most AL research assumes an idealized setting where every sample in the unlabeled pool belongs to the target distribution (In-Distribution, or iD). In real-world applications, data pools are frequently contaminated with ambiguous samples (hard for humans to label) and Out-of-Distribution (OoD) samples (entirely irrelevant to the task).

Traditional methods, such as entropy sampling, often prioritize these "junk" samples because the model is naturally uncertain about them. This leads to an "uncertainty trap" where the annotation budget is wasted on data that does not improve task performance.

Methods: Contrastive Learning and Strategic Acquisition

To address this, the authors propose a two-pronged approach. First, they employ Contrastive Representation Learning. By combining self-supervised contrastive loss on unlabeled data with Supervised Contrastive (SupCon) loss on labeled data, the model learns to group similar items in the feature space. This facilitates the separation of iD, OoD, and ambiguous clusters. Crucially, all non-iD samples are treated as a single auxiliary "garbage" class to help the model define a clear boundary for useful data.

Overview of the proposed active learning framework incorporating contrastive learning and an auxiliary class for non-iD samples.

Second, a Cluster-based Acquisition Strategy is used to select samples:

  1. K-means clustering is performed on the learned feature space.
  2. Clusters dominated by non-iD samples are identified and excluded.
  3. Within "good" clusters, the algorithm selects samples that are far from the cluster center (ensuring informativeness) but still within a threshold that avoids picking "junk" data located at the fringes.

Realistic Benchmarks

The study introduces two new benchmarks to simulate real-world conditions:

  • MixMNIST: Combines MNIST (iD), NVAE-generated ambiguous digits, and notMNIST letters (OoD).
  • MixCIFAR60: Uses 60 classes from CIFAR100 as iD, 40 as ambiguous, and a mix of LSUN-FIX and SVHN as OoD.

Key Results

The proposed method, Distance(CL), demonstrates a massive improvement in annotation efficiency. On the MixMNIST benchmark, reaching high accuracy required a cumulative cost of only 406 samples, whereas traditional Entropy sampling required over 32,000 samples due to its attraction to irrelevant data.

Accuracy vs. Log Cumulative Annotation Costs on MixMNIST, demonstrating the efficiency of the Distance(CL) method compared to traditional uncertainty-based sampling.

On the more complex MixCIFAR60, Distance(CL) achieved the lowest annotation cost (27,891) compared to baselines like DDU (32,162) and Entropy (42,678). These results confirm that contrastive learning acts as an effective filter, allowing the model to prioritize "hard iD" samples that are challenging yet relevant.

Discussion and Future Work

While highly effective, the method's performance is tied to the quality of the learned features. In complex datasets like MixCIFAR60, the separation between iD and non-iD data is less distinct, leading to smaller gains. Future work will focus on more robust acquisition strategies for cases where non-iD samples overlap significantly with iD clusters in the feature space.

Summary updated

BibTeX
@misc{kim2023deep,
  author = {Jihyo Kim and Jeonghyeon Kim and Sangheum Hwang},
  title = {{Deep Active Learning with Contrastive Learning Under Realistic Data Pool Assumptions}},
  year = {2023},
  eprint = {2303.14433},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2303.14433},
}
Figure