PT4AL: Using Self-supervised Pretext Tasks for Active Learning

John Seon Keun Yi, Minseok Seo, Jongchan Park, Dong-Geol ChoiECCV 2022

Abstract

Active Learning (AL) aims to minimize labeling costs by selecting the most informative samples for annotation. However, traditional AL methods often struggle with the "cold-start" problem and the difficulty of balancing representativeness with uncertainty. We present PT4AL (Pretext Tasks for Active Learning), a novel framework that leverages self-supervised learning to rank unlabeled data. By demonstrating a high correlation between pretext task loss and downstream task loss, PT4AL effectively identifies difficult samples without requiring initial labels, consistently outperforming state-of-the-art methods across various benchmarks.

Introduction

Deep learning's success is largely driven by massive datasets, but the cost and time required for high-quality labeling remain significant bottlenecks. Active Learning (AL) addresses this by iteratively selecting only the most "informative" samples from an unlabeled pool for human annotation. Despite its promise, AL faces two major hurdles: the "cold-start" problem, where an initial random seed set leads to high variance, and the challenge of balancing "representative" samples (covering the data distribution) with "uncertain" samples (near decision boundaries).

Methods

The core innovation of PT4AL is the use of self-supervised pretext tasks to rank unlabeled data before the main training begins. The process involves three main stages:

  1. Pretext Training: A model is trained on the entire unlabeled pool using a pretext task, such as predicting image rotation (0°, 90°, 180°, or 270°).
  2. Batch Splitting: Unlabeled data is sorted by pretext loss in descending order and split into $I$ batches. This sorting is based on the discovery that pretext loss is a strong proxy for sample difficulty.
  3. Sampling Strategy:
    • Iteration 1 (Cold-Start): The system samples uniformly from the first batch (the "hardest" samples according to the pretext task).
  4. Subsequent Iterations: It uses the current main task model to select the most uncertain samples from the next available batch.
The PT4AL framework: from unlabeled pool to main task learner via pretext task sorting and batch-split sampling.

This "batch-split" approach ensures the model sees a diverse range of data while the in-batch sampler focuses on the most difficult examples.

Key Insights: Pretext Loss as a Proxy for Difficulty

A pivotal discovery of this work is the strong correlation (Spearman's $\rho \approx 0.8$) between pretext task loss and main task loss. If a self-supervised model struggles to solve a simple task like rotation prediction on a specific image, the main classifier is also highly likely to struggle with that image. This allows the system to identify "hard" images without seeing a single label.

Correlation between pretext task rank (rotation) and supervised classification rank across CIFAR10, Caltech, and ImageNet datasets.

Interestingly, the authors found that simple tasks like rotation or colorization are more effective than complex contrastive learning methods (e.g., SimSiam), whose losses do not correlate as strongly with downstream performance, likely due to heavy reliance on data augmentation.

Results and Performance

PT4AL was evaluated on standard benchmarks including CIFAR10, Caltech-101, and ImageNet. Key results include:

  • Superior Accuracy: On CIFAR10, PT4AL achieved 95.13% accuracy with 10,000 labels, significantly outperforming "Learning Loss" (89.93%).
  • Cold-Start Efficiency: In the first iteration on CIFAR10, PT4AL reached 55.83% accuracy, while random sampling only reached 46.02%.
  • Robustness: The framework proved highly effective in class-imbalanced scenarios, as pretext loss ensures rare and difficult classes are sampled more effectively.

Conclusion

PT4AL provides a robust, efficient solution to the cold-start problem in Active Learning. By utilizing self-supervised pretext tasks as a proxy for sample difficulty, it bridges the gap between representativeness and uncertainty. Future research will focus on developing universal pretext tasks that provide high loss correlation across diverse domains and non-visual tasks.

Summary updated

BibTeX
@inproceedings{yi2022pt,
  author = {John Seon Keun Yi and Minseok Seo and Jongchan Park and Dong-Geol Choi},
  title = {{PT4AL: Using Self-supervised Pretext Tasks for Active Learning}},
  booktitle = {European Conference on Computer Vision},
  year = {2022},
  url = {https://openreview.net/forum?id=ITEjB-BsaQi},
}
Figure