Home

Awesome

SSR: An Efficient and Robust Framework for Learning with Unknown Label Noise

PWC PWC PWC PWC

[New Update] We have extended this conference paper into a journal article! You can find the expanded journal version here: NoiseBox: Towards More Efficient and Effective Learning with Noisy Labels.

<p align="center"> <img src="sources/method.png" alt="drawing" width="800"/> </p>

This is the official PyTorch implementation of BMVC2022 paper(SSR: An Efficient and Robust Framework for Learning with Noisy Labels).

Abstract

Despite the large progress in supervised learning with neural networks, there are significant challenges in obtaining high-quality, large-scale and accurately labeled datasets. In such a context, how to learn in the presence of noisy labels has received more and more attention. As a relatively comprehensive problem, in order to achieve good results, the current methods often integrate technologies from multiple fields, such as supervised learning, semi-supervised learning, transfer learning, and so on. At the same time, these methods often make strong or weak assumptions about the noise of the data. This also inevitably brings about the problem of model robustness. Striving for simplicity and robustness, we propose an efficient and robust framework named Sample Selection and Relabelling(SSR), that minimizes the number of modules and hyperparameters required, and that achieves good results in various conditions. In the heart of our method is a sample selection and relabelling mechanism based on a non-parametric KNN classifier $g_q$ and a parametric model classifier $g_p$ , respectively, to select the clean samples and gradually relabel the closed-set noise samples. Without bells and whistles, such as model co-training, self-supervised pertaining, and semi-supervised learning, and with robustness concerning settings of its few hyper-parameters, our method significantly surpasses previous methods on both CIFAR10/CIFAR100 with synthetic noise and real-world noisy datasets such as WebVision, Clothing1M and ANIMAL-10N.

@inproceedings{Feng_2022_BMVC,
author    = {Chen Feng and Georgios Tzimiropoulos and Ioannis Patras},
title     = {SSR: An Efficient and Robust Framework for Learning with Unknown Label Noise},
booktitle = {33rd British Machine Vision Conference 2022, {BMVC} 2022, London, UK, November 21-24, 2022},
publisher = {{BMVA} Press},
year      = {2022},
url       = {https://bmvc2022.mpi-inf.mpg.de/0372.pdf}
}

Please considering cite our paper and star the repo if you find this repo useful.

Preparation

Usage

Example runs on CIFAR100 dataset with symmetric noise:

python main_cifar.py --theta_r 0.8 --noise_mode sym --noise_ratio 0.9 --dataset cifar100 --dataset_path path_to_cifar100

python main_cifar.py --theta_r 0.8 --noise_mode sym --noise_ratio 0.8 --dataset cifar100 --dataset_path path_to_cifar100

python main_cifar.py --theta_r 0.8 --noise_mode sym --noise_ratio 0.5 --dataset cifar100 --dataset_path path_to_cifar100

python main_cifar.py --theta_r 0.9 --noise_mode sym --noise_ratio 0.2 --dataset cifar100 --dataset_path path_to_cifar100

Example runs on WebVision/Clothing1M dataset~(Approximately ~16GB memory for clothing1M and ~36GB for WebVision, considering reduce the batch size or parallel training with more GPUs if you don't have enough GPU memory.):

python main_webvision.py --dataset_path ./WebVision --gpuid 0,1 --parallel

python main_clothing1m.py --dataset_path ./Clothing1M --gpuid 0

For users who are not familiar with wandb, please try main_cifar_simple.py with same config.

Results

DatasetCIFAR10CIFAR10CIFAR10CIFAR10CIFAR10CIFAR100CIFAR100CIFAR100CIFAR100
Noise typeSymmetricSymmetricSymmetricSymmetricAssymetricSymmetricSymmetricSymmetricSymmetric
Noise ratio20%50%80%90%40%20%50%80%90%
Cross-Entropy86.879.462.942.785.062.046.719.910.1
Co-teaching+89.585.767.447.9-65.651.827.913.7
F-correction86.879.863.342.987.261.546.619.910.2
PENCIL92.489.177.558.988.569.457.531.115.3
LossModelling94.092.086.869.187.473.966.148.224.3
DivideMix*96.194.693.276.093.477.374.660.231.5
ELR+*95.894.893.378.793.077.673.660.833.4
RRL95.894.392.475.091.979.174.857.729.3
NGC95.994.591.680.590.679.375.962.729.8
AugDesc*96.395.493.891.994.679.577.266.441.2
C2D*96.495.394.493.693.578.776.467.858.7
SSR(ours)96.395.795.294.695.179.075.969.561.8
SSR+(ours)96.796.195.695.295.579.777.271.966.6

For the older version, please refer to: S3: Supervised Self-supervised Learning under Label Noise.

License

This project is licensed under the terms of the MIT license.