RoPAWS: Robust Semi-supervised Representation Learning from Uncurated Data

Sangwoo Mo, Jong-Chyi Su, Chih-Yao Ma, Mido Assran, Ishan Misra, Licheng Yu, Sean Bell

TL;DR

RoPAWS is a robust extension of the state-of-the-art semi-supervised learning method PAWS, designed to handle "uncurated" unlabeled data—data that contains noisy, out-of-class samples. By reinterpreting PAWS through the lens of generative modeling and kernel density estimation, the authors derive a principled way to calibrate predictions and ignore out-of-distribution noise, leading to massive accuracy gains on realistic datasets like Semi-iNat (+5.3%).

What Problem Does This Paper Address?

Semi-supervised learning (SSL) trains models using a small amount of labeled data alongside a vast pool of unlabeled data. Most popular SSL algorithms (like FixMatch or the original PAWS) make a dangerous assumption: that the unlabeled data comes from the exact same distribution as the labeled data.

In the real world, this is rarely true. If you are training a dog classifier and download a million random images from the web, many will be cats, cars, or trees. Standard SSL methods often become "overconfident" on these out-of-class (OOD) samples, forcing them into known categories and damaging the model's internal representations.

Comparison of PAWS and RoPAWS on out-of-distribution data.

While some methods try to filter out OOD data entirely, they often throw away useful information that could have helped the model learn better general features.

Methods

The authors introduce RoPAWS (Robust PAWS). Their approach follows four key steps:

  1. Probabilistic Reinterpretation: They show that PAWS is actually a generative classifier in disguise. Specifically, it uses Kernel Density Estimation (KDE) to model the density of classes in the representation space.
  2. Calibrated Prediction via Bayes' Rule: By viewing the problem probabilistically, they can use Bayes' rule to determine the "pseudo-label" of an unlabeled point. Instead of just looking at the nearest labeled neighbors (as PAWS does), RoPAWS considers the densities of both labeled and unlabeled data. This leads to a closed-form solution that acts as a sophisticated version of label propagation.
  3. In-Domain Prior: To handle OOD data, they introduce a data-dependent "in-domain prior." If an unlabeled image is far from all labeled examples, the model assigns it a low prior of being "in-class." This naturally pushes the model toward a uniform (uncertain) prediction for weird data, preventing it from overcommitting to a wrong label.
  4. Reweighted Loss: Finally, they use these calibrated predictions to reweight the training loss, effectively telling the model to "pay less attention" to samples it is uncertain about.

Datasets

The authors evaluated RoPAWS on a mix of curated and messy datasets:

  • Semi-iNat: A realistic, large-scale benchmark for uncurated SSL. It contains a small curated set and a much larger uncurated set with thousands of extra classes.
  • ImageNet: The standard gold-standard curated dataset (used with 1% and 10% labels).
  • CIFAR-10 with Noise: They created "hard" and "easy" OOD scenarios by adding unlabeled data from CIFAR-100 and Tiny-ImageNet to a CIFAR-10 training run.

Key Insights and Ideas

  • The Generative "Aha!": The most elegant part of the paper is realizing that a similarity-based classifier is mathematically equivalent to a KDE-based generative model. This shift from heuristics to probability allows for much more rigorous calibration.
  • Don't Filter, Calibrate: Unlike OOD-filtering methods that delete "bad" data, RoPAWS keeps all data for representation learning but uses the probabilistic framework to ensure the labels don't get corrupted.
  • Implicit Iteration: The closed-form solution for their label propagation is the "fixed point" of an iterative process. This means the model effectively considers the global structure of the unlabeled data in a single, efficient step.

Key Results

RoPAWS consistently outperforms PAWS and other robust SSL baselines across various settings:

Accuracy improvements of RoPAWS over PAWS across multiple datasets.
  • Semi-iNat (Uncurated): RoPAWS achieved 43.0% accuracy, a +5.3% jump over PAWS and a +1.7% improvement over the previous state-of-the-art (CCSSL).
  • CIFAR-10 + Tiny-ImageNet: In this "easy OOD" scenario, RoPAWS reached 83.1% accuracy, while the original PAWS struggled at 60.4%.
  • Curated Data: Even when the data is "clean" (ImageNet), RoPAWS provides a slight boost (+0.4% to +0.6%), showing that its calibration helps even without extreme noise.
  • Efficiency: Despite the extra math, the training time only increases by less than 5% per mini-batch.

Limitations and Future Work

  • Class Imbalance: The current derivation assumes a uniform prior over known classes. In many real-world cases, some classes are much more common than others. The authors suggest extending the prior to handle this in the future.
  • Open-World Learning: While RoPAWS is robust to OOD data, it doesn't explicitly try to cluster or discover those new categories; it just ignores them. Extending this to "Open-World" SSL (where the model learns the new classes too) is a suggested next step.
  • Hyperparameters: The method introduces a few new hyperparameters (like the temperature for the in-domain prior), which might require tuning for specific new domains.

Summary updated

BibTeX
@inproceedings{mo2023ropaws,
  author = {Sangwoo Mo and Jong-Chyi Su and Chih-Yao Ma and Mido Assran and Ishan Misra and Licheng Yu and Sean Bell},
  title = {{RoPAWS: Robust Semi-supervised Representation Learning from Uncurated Data}},
  booktitle = {International Conference on Learning Representations},
  year = {2023},
  url = {https://openreview.net/forum?id=G1H4NSATlr},
}
Figure