Skip to content

The code for ICLR2023: Confidence Estimation Using Unlabeled Data

License

Notifications You must be signed in to change notification settings

superlc1995/consistency-ranking-loss

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

consistency-ranking-loss

The code for ICLR2023 paper: Confidence Estimation Using Unlabeled Data

Overconfidence is a common issue for deep neural networks, limiting their deployment in real-world applications. To better estimate confidence, existing methods mostly focus on fully-supervised scenarios and rely on training labels. In this paper, we propose the first confidence estimation method for a semi-supervised setting, when most training labels are unavailable. We stipulate that even with limited training labels, we can still reasonably approximate the confidence of model on unlabeled samples by inspecting the prediction consistency through the training process. We use training consistency as a surrogate function and propose a consistency ranking loss for confidence estimation. On both image classification and segmentation tasks, our method achieves state-of-the-art performances in confidence estimation. Furthermore, we show the benefit of the proposed method through a downstream active learning task.

drawing

1. Environment setup

Using conda:

conda env create -f consistency.yml

2. Training data for CIFAR10

Both labeled and unlabeled data are available on Google Drive

2. Train and evaluate on CIFAR10

Change the data location at lines in train_and_eval.py: 103, 108, 112

Run command:

python train_and_eval.py --save_folder [Results saving folder] --gpus [GPU ID] --label_size [labeled samples size (2500, 5000, 10000)]

Citation

@inproceedings{li2022confidence,
author      =  {Li, Chen and Hu, Xiaoling and Chen, Chao},
title       =  {Confidence Estimation Using Unlabeled Data},
booktitle   =  {The Eleventh International Conference on Learning Representations (ICLR)},
year        =  {2023}}

About

The code for ICLR2023: Confidence Estimation Using Unlabeled Data

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%