Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nayeemrizve/ups
"In Defense of Pseudo-Labeling: An Uncertainty-Aware Pseudo-label Selection Framework for Semi-Supervised Learning" by Mamshad Nayeem Rizve, Kevin Duarte, Yogesh S Rawat, Mubarak Shah (ICLR 2021)
https://github.com/nayeemrizve/ups
calibration pseudo-labeling pytorch semi-supervised-learning uncertainty
Last synced: 8 days ago
JSON representation
"In Defense of Pseudo-Labeling: An Uncertainty-Aware Pseudo-label Selection Framework for Semi-Supervised Learning" by Mamshad Nayeem Rizve, Kevin Duarte, Yogesh S Rawat, Mubarak Shah (ICLR 2021)
- Host: GitHub
- URL: https://github.com/nayeemrizve/ups
- Owner: nayeemrizve
- License: mit
- Created: 2021-03-11T03:48:10.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-05-17T08:04:37.000Z (over 1 year ago)
- Last Synced: 2024-08-02T15:34:25.465Z (3 months ago)
- Topics: calibration, pseudo-labeling, pytorch, semi-supervised-learning, uncertainty
- Language: Python
- Homepage:
- Size: 30.3 KB
- Stars: 226
- Watchers: 2
- Forks: 39
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# In Defense of Pseudo-Labeling: An Uncertainty-Aware Pseudo-label Selection Framework for Semi-Supervised Learning
[![PWC](https://img.shields.io/endpoint.svg?url=https://paperswithcode.com/badge/in-defense-of-pseudo-labeling-an-uncertainty-1/semi-supervised-image-classification-on-cifar-20)](https://paperswithcode.com/sota/semi-supervised-image-classification-on-cifar-20?p=in-defense-of-pseudo-labeling-an-uncertainty-1)
[![PWC](https://img.shields.io/endpoint.svg?url=https://paperswithcode.com/badge/in-defense-of-pseudo-labeling-an-uncertainty-1/semi-supervised-image-classification-on-cifar-11)](https://paperswithcode.com/sota/semi-supervised-image-classification-on-cifar-11?p=in-defense-of-pseudo-labeling-an-uncertainty-1)
[![PWC](https://img.shields.io/endpoint.svg?url=https://paperswithcode.com/badge/in-defense-of-pseudo-labeling-an-uncertainty-1/semi-supervised-medical-image-classification-1)](https://paperswithcode.com/sota/semi-supervised-medical-image-classification-1?p=in-defense-of-pseudo-labeling-an-uncertainty-1)
[![PWC](https://img.shields.io/endpoint.svg?url=https://paperswithcode.com/badge/in-defense-of-pseudo-labeling-an-uncertainty-1/semi-supervised-image-classification-on-cifar)](https://paperswithcode.com/sota/semi-supervised-image-classification-on-cifar?p=in-defense-of-pseudo-labeling-an-uncertainty-1)
[![PWC](https://img.shields.io/endpoint.svg?url=https://paperswithcode.com/badge/in-defense-of-pseudo-labeling-an-uncertainty-1/semi-supervised-image-classification-on-cifar-2)](https://paperswithcode.com/sota/semi-supervised-image-classification-on-cifar-2?p=in-defense-of-pseudo-labeling-an-uncertainty-1)Implementation of [In Defense of Pseudo-Labeling: An Uncertainty-Aware Pseudo-label Selection Framework for Semi-Supervised Learning](https://arxiv.org/abs/2101.06329). The paper presents an uncertainty-aware pseudo-label selection framework for semi-supervised learning which greatly reduces the noise introduced by the pseudo-labeling process.
The recent research in semi-supervised learning (SSL) is mostly dominated by consistency regularization based methods which achieve strong performance. However, they heavily rely on domain-specific data augmentations, which are not easy to generate for all data modalities. Pseudo-labeling (PL) is a general SSL approach that does not have this constraint but performs relatively poorly in its original formulation. We argue that PL underperforms due to the erroneous high confidence predictions from poorly calibrated models; these predictions generate many incorrect pseudo-labels, leading to noisy training. We propose an uncertainty-aware pseudo-label selection (UPS) framework which improves pseudo labeling accuracy by drastically reducing the amount of noise encountered in the training process. Furthermore, UPS generalizes the pseudo-labeling process, allowing for the creation of negative pseudo-labels; these negative pseudo-labels can be used for multi-label classification as well as negative learning to improve the single-label classification. We achieve strong performance when compared to recent SSL methods on the CIFAR-10 and CIFAR-100 datasets. Also, we demonstrate the versatility of our method on the video dataset UCF-101 and the multi-label dataset Pascal VOC.
This repository is implemented using PyTorch and it includes code for running the SSL experiments on CIFAR-10 and CIFAR-100 datasets.
## Presentation
[![Presentation: UPS](https://yt-embed.herokuapp.com/embed?v=NfE1CXqzE8s)](https://www.youtube.com/watch?v=NfE1CXqzE8s&start=20 "Presentation: UPS")## Dependencies
This code requires the following:* Python >= 3.6
* numpy==1.16.2
* Pillow==5.4.1
* scikit-learn==0.21.1
* scipy==1.2.1
* torch==1.3.1
* torchvision==0.4.2
* tqdm==4.36.1
* tensorboardx==1.7
* tensorboard==1.13.1run `pip3 install -r requirements.txt` to install all the dependencies.
## Training
```shell
# For CIFAR10 4000 Labels
python3 train-cifar.py --dataset "cifar10" --n-lbl 4000 --class-blnc 7 --split-txt "run1" --arch "cnn13"# For CIFAR10 1000 Labels
python3 train-cifar.py --dataset "cifar10" --n-lbl 1000 --class-blnc 7 --split-txt "run1" --arch "cnn13"# For CIFAR100 10000 Labels
python3 train-cifar.py --dataset "cifar100" --n-lbl 10000 --class-blnc 1 --split-txt "run1" --arch "cnn13"# For CIFAR100 4000 Labels
python3 train-cifar.py --dataset "cifar100" --n-lbl 4000 --class-blnc 1 --split-txt "run1" --arch "cnn13"
```## Citation
```
@inproceedings{rizve2021in,
title={In Defense of Pseudo-Labeling: An Uncertainty-Aware Pseudo-label Selection Framework for Semi-Supervised Learning},
author={Mamshad Nayeem Rizve and Kevin Duarte and Yogesh S Rawat and Mubarak Shah},
booktitle={International Conference on Learning Representations},
year={2021},
url={https://openreview.net/forum?id=-ODN6SbiUU}
}
```