This repository contains the official implementation of the paper Are Uncertainty Quantification Capabilities of Evidential Deep Learning a Mirage? (NeurIPS 2024)
Warning: this code only works with PyTorch <=1.13.1.
conda create -n edl python=3.10 -y
conda activate edl
pip install --index-url https://download.pytorch.org/whl/cu117 \
torch==1.13.1+cu117 torchvision==0.14.1+cu117 torchaudio==0.13.1
conda install -y intel-openmp
pip install "numpy==1.24.4" "scipy<1.11" "pillow<10" "scikit-learn<1.4"
pip install matplotlib rich tqdm pandas
pip install "pyro-ppl<=1.8.6"
# Install the package
pip install -e .- "Classical" contains the scripts to run classical EDL methods.
- "Distill" contains the scripts to run Distillation based EDL methods, including new proposed Bootstrap-Distill method.
- "Analysis" includes the scripts to reproduce the empirical findings we discussed in section 5.
Mainly contains the source code for different base model architectures.
Code files with "distill" are used for distillation based EDL methods, while code files with "unified" are used for classical EDL methods. Code files with "eval" are used for downstream task evaluation.
We provide the scripts to help reproduce the empirical results of this paper. We provide some examples as follows,
. scripts/distill/bootstrap_cifar10.sh
. scripts/distill/bootstrap_distill_cifar10.sh
. scripts/distill/eval_bootstrap_distill_cifar10.sh
Note: Before executing bootstrap_distill_cifar10.sh, make sure to run bootstrap_cifar10.sh first. This step generates a collection of bootstrap models that will be used for distillation.
. scripts/classical/PostNet_cifar10.sh
. scripts/classical/eval_PostNet_cifar10.sh
. scripts/analysis/epistemic_num_data.sh
. scripts/analysis/ood_lambda.sh
. scripts/analysis/ablation_objective.sh
. scripts/analysis/ablation_RPriorNet.sh
. scripts/analysis/ablation_PostNet.sh
For questions, please:
- Raise an issue in our GitHub repository;
- and contact us:
- Maohao Shen (maohao@mit.edu)
- Jongha (Jon) Ryu (jongha.ryu@gmail.com)
This codebase is built upon the following repositories:
If you find this repository useful in your research, please cite:
@inproceedings{shen2024uncertainty,
title={Are uncertainty quantification capabilities of evidential deep learning a mirage?},
author={Shen, Maohao and Ryu, Jongha Jon and Ghosh, Soumya and Bu, Yuheng and Sattigeri, Prasanna and Das, Subhro and Wornell, Gregory},
booktitle={Advances in Neural Information Processing Systems},
volume={37},
pages={107830--107864},
year={2024}
}