Streaming Self-Training via Domain-Agnostic Unlabeled Images

Zhiqiu Lin, Deva Ramanan, Aayush BansalarXiv 2021

Introduction

Building specialized computer vision models—such as those used for identifying crop diseases or classifying rare medical lesions—typically requires either thousands of labeled images or massive, domain-specific unlabeled datasets. For many practitioners, neither is accessible. Traditional semi-supervised methods, like FixMatch, rely on the assumption that unlabeled data follows the same distribution as the labeled set. This creates a "democratization gap": if a user only has 10 photos of a rare orchid, finding 100,000 similar unlabeled photos is nearly impossible.

Streaming Self-Training (SST) addresses this gap by asking whether any unlabeled images, regardless of domain, can improve a specific task without requiring expert hyperparameter tuning.

The SST Framework

SST is inspired by developmental psychology, mimicking how children learn a concept, explore the world to see variations, and then refine their initial lesson. Unlike standard paradigms, SST is both domain-agnostic and streaming.

Comparison of SST with other learning paradigms, highlighting the use of domain-agnostic unlabeled data and increasing model capacity.

The pipeline operates in an iterative loop:

  1. Initialization: A small base model (e.g., ResNet-18) is trained on the limited labeled samples.
  2. Streaming & Pseudo-labeling: The model processes a "slice" of a massive, unrelated image stream (e.g., a random web crawl) to generate pseudo-labels.
  3. Learning from Scratch: A new, often higher-capacity model (e.g., ResNext-101) is trained from scratch using these noisy pseudo-labels. This prevents the model from merely reinforcing its initial biases.
  4. Fine-tuning: The new model is fine-tuned on the original high-quality labeled data.
  5. Iteration: The improved model is used to pseudo-label the next data slice, allowing the model's "capacity" to grow as it consumes more data.

Experimental Evaluation

The authors tested SST on "extreme" low-data tasks, including fine-grained classification (Flowers-102, CUB-200 Birds), specialized domains (satellite imagery, medical imaging), and pixel-level tasks (surface normal estimation, semantic segmentation). The "universal" unlabeled stream was proxied using ImageNet-21k (11 million images), with all original labels removed.

Key Results and Insights

The most striking finding is that irrelevant data is useful. Unlabeled images of everyday objects like cars or dogs can significantly improve a flower classifier by helping the model learn robust, generalizable visual features like edges and textures.

Top-1 accuracy improvement on the Flowers-102 dataset over three iterations of SST.

As shown in the Flowers-102 experiments, baseline accuracy started at 45.49% and climbed to 72.79% after three iterations, despite no new labeled data being added. Furthermore, SST allowed for "capacity scaling": while training a ResNext-101 directly on 10 images would typically lead to severe overfitting, SST provides the necessary data "scaffolding" to make deep models viable in low-data regimes.

From an efficiency standpoint, the streaming approach was 60% faster than batch training on the full 11M image set, significantly reducing computational costs. Crucially, the method works with "out-of-the-box" hyperparameters, making it accessible to non-experts.

Conclusion and Future Work

SST demonstrates that self-training on a large, domain-agnostic unlabeled stream can be more powerful than supervised training on smaller, fixed datasets. However, limitations remain. While ImageNet-21k is unlabeled, it is still a curated dataset; future work should explore SST's performance on truly "in-the-wild" web crawls. Additionally, while SST democratizes expertise, it still requires significant GPU resources. Future research into formal convergence proofs for noisy pseudo-labeling would further solidify the theoretical foundations of this iterative approach.

Summary updated

Abstract

We present streaming self-training (SST) that aims to democratize the process of learning visual recognition models such that a non-expert user can define a new task depending on their needs via a few labeled examples and minimal domain knowledge. Key to SST are two crucial observations: (1) domain-agnostic unlabeled images enable us to learn better models with a few labeled examples without any additional knowledge or supervision; and (2) learning is a continuous process and can be done by constructing a schedule of learning updates that iterates between pre-training on novel segments of the streams of unlabeled data, and fine-tuning on the small and fixed labeled dataset. This allows SST to overcome the need for a large number of domain-specific labeled and unlabeled examples, exorbitant computational resources, and domain/task-specific knowledge. In this setting, classical semi-supervised approaches require a large amount of domain-specific labeled and unlabeled examples, immense resources to process data, and expert knowledge of a particular task. Due to these reasons, semi-supervised learning has been restricted to a few places that can house required computational and human resources. In this work, we overcome these challenges and demonstrate our findings for a wide range of visual recognition tasks including fine-grained image classification, surface normal estimation, and semantic segmentation. We also demonstrate our findings for diverse domains including medical, satellite, and agricultural imagery, where there does not exist a large amount of labeled or unlabeled data.

Empirical ResultsBrowse all benchmarks →

BenchmarkMethodMetricScoreProtocol / Evidence
East-SATStreaming Self-Training (SST), U_1classification performance73.58Image Classification · few-shot · shots=20 · stream_iteration=1
Source quote
L160: East-SAT~\cite{helber2019eurosat} │ 68.93 │ 70.57 │ 73.58
Flowers-102Streaming Self-Training (StreamLearning), U3top-1 accuracy72.79Image Classification · stream_iteration=3
Source quote
L257: Flowers-102 │ 89.12 │ 45.49 │ 54.19 │ 65.25 │ 72.79 │ ...
BibTeX
@misc{lin2021streaming,
  author = {Zhiqiu Lin and Deva Ramanan and Aayush Bansal},
  title = {{Streaming Self-Training via Domain-Agnostic Unlabeled Images}},
  year = {2021},
  eprint = {2104.03309},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2104.03309},
}
Figure