Papers › A framework for benchmarking class-out-of-distribution detection and its application...

A framework for benchmarking class-out-of-distribution detection and its application to ImageNet

23 Feb 2023ICLR 2023 2arXiv:2302.11893archive 2025-07-28

Ido Galil, Mohammed Dabbah, Ran El-Yaniv

When deployed for risk-sensitive tasks, deep neural networks must be able to detect instances with labels from outside the distribution for which they were trained. In this paper we present a novel framework to benchmark the ability of image classifiers to detect class-out-of-distribution instances (i.e., instances whose true labels do not appear in the training distribution) at various levels of detection difficulty. We apply this technique to ImageNet, and benchmark 525 pretrained, publicly available, ImageNet-1k classifiers. The code for generating a benchmark for any ImageNet-1k classifier, along with the benchmarks prepared for the above-mentioned 525 models is available at https://github.com/mdabbah/COOD_benchmarking. The usefulness of the proposed framework and its advantage over alternative existing benchmarks is demonstrated by analyzing the results obtained for these models, which reveals numerous novel observations including: (1) knowledge distillation consistently improves class-out-of-distribution (C-OOD) detection performance; (2) a subset of ViTs performs better C-OOD detection than any other model; (3) the language--vision CLIP model achieves good zero-shot detection performance, with its best instance outperforming 96% of all other models evaluated; (4) accuracy and in-distribution ranking are positively correlated to C-OOD detection; and (5) we compare various confidence functions for C-OOD detection. Our companion paper, also published in ICLR 2023 (What Can We Learn From The Selective Prediction And Uncertainty Estimation Performance Of 523 Imagenet Classifiers), examines the uncertainty estimation performance (ranking, calibration, and selective prediction performance) of these classifiers in an in-distribution setting.

PaperPDFConference PDFCodeCode Syntology ran

In Syntology View this paper on Syntology: its repositories, every harvested function with whether it ran, its licence and the call to fetch it.

Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2302.11893")

Code

Syntology Ran 13 of 15 code samples harvested from 1 repository linked to this paper; 2 have no recorded run. Of those that ran: 13 ran with no contract checked.

By repository: official repository: 15 samples from 1 repository, 13 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

mdabbah/COOD_benchmarking officialmentioned in paperpytorchMIT report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

15 samples harvested; 13 ran; 0 honoured the contract we drafted; 2 have no recorded run. Read from Syntology's graph 2026-09-25; that is when this build read the record, not when the samples ran.

13ran
2unverified

Licence: 0 of the 15 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from mdabbah/COOD_benchmarking. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

args_dict_to_str mdabbah/COOD_benchmarking/utils/misc.py official repository ran MIT (permissive) · f704dc1ab9ae6439 · report
calc_l2_dist_fast_torch mdabbah/COOD_benchmarking/utils/confidence_functions.py official repository ran fingerprinted MIT (permissive) · 548f24b0b6d01680 · report
diversity_severity_alg mdabbah/COOD_benchmarking/utils/confidence_functions.py official repository ran MIT (permissive) · 6870ae7d795e4812 · report
get_base_transforms mdabbah/COOD_benchmarking/utils/custom_dataset.py official repository ran MIT (permissive) · 5fc7e2c633bc3477 · report
get_dataset_name mdabbah/COOD_benchmarking/utils/input_handling_utilities.py official repository ran MIT (permissive) · 07e0dbb1262e2c0f · report
get_human_readable_time mdabbah/COOD_benchmarking/utils/log_utils.py official repository ran MIT (permissive) · 33d9d7ad6f7b9670 · report
get_kappa_name mdabbah/COOD_benchmarking/utils/input_handling_utilities.py official repository ran fingerprinted MIT (permissive) · 0b6e66d939f4327f · report
get_testing_transform mdabbah/COOD_benchmarking/utils/custom_dataset.py official repository ran MIT (permissive) · fb0c636e44c4ee60 · report
load_pickle mdabbah/COOD_benchmarking/utils/data_utils.py official repository ran fingerprinted MIT (permissive) · 5d7b6ddd15320485 · report
moving_average mdabbah/COOD_benchmarking/utils/confidence_functions.py official repository ran MIT (permissive) · b9c97a558f872a5e · report
normalize mdabbah/COOD_benchmarking/utils/misc.py official repository ran fingerprinted MIT (permissive) · de3a9137e4fe787a · report
open_img mdabbah/COOD_benchmarking/utils/custom_dataset.py official repository ran MIT (permissive) · 4d2d381bba47cbe0 · report
to_cpu mdabbah/COOD_benchmarking/utils/misc.py official repository ran MIT (permissive) · f0964d89a30e7b99 · report
download_file mdabbah/COOD_benchmarking/download_dummy_dataset.py official repository unverified MIT (permissive) · 42bc76618fad0419 · report
get_model_name mdabbah/COOD_benchmarking/utils/input_handling_utilities.py official repository unverified MIT (permissive) · e5b91eff514199b2 · report

Tasks

BenchmarkingKnowledge DistillationOut of Distribution (OOD) DetectionOut-of-Distribution Detection

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Classification ImageNet C-OOD (class-out-of-distribution) ViT-L/32-384 with Max-logit Detection AUROC (severity 0) 0.9958 #1 of 5 Archive leaderboard report
Classification ImageNet C-OOD (class-out-of-distribution) ViT-L/32-384 with Max-logit Detection AUROC (severity 10) 0.7748 #1 of 5 Archive leaderboard report
Classification ImageNet C-OOD (class-out-of-distribution) ViT-L/32-384 with Max-logit Detection AUROC (severity 5) 0.9632 #1 of 5 Archive leaderboard report
Classification ImageNet C-OOD (class-out-of-distribution) ViT-L/32-384 with ODIN Detection AUROC (severity 0) 0.9955 #2 of 5 Archive leaderboard report
Classification ImageNet C-OOD (class-out-of-distribution) ViT-L/32-384 with ODIN Detection AUROC (severity 10) 0.7635 #2 of 5 Archive leaderboard report
Classification ImageNet C-OOD (class-out-of-distribution) ViT-L/32-384 with ODIN Detection AUROC (severity 5) 0.9589 #2 of 5 Archive leaderboard report
Classification ImageNet C-OOD (class-out-of-distribution) ViT-L/32-384 with Entropy Detection AUROC (severity 0) 0.9948 #3 of 5 Archive leaderboard report
Classification ImageNet C-OOD (class-out-of-distribution) ViT-L/32-384 with Entropy Detection AUROC (severity 10) 0.7332 #3 of 5 Archive leaderboard report
Classification ImageNet C-OOD (class-out-of-distribution) ViT-L/32-384 with Entropy Detection AUROC (severity 5) 0.9514 #3 of 5 Archive leaderboard report
Classification ImageNet C-OOD (class-out-of-distribution) ViT-L/32-384 with MC Dropout Detection AUROC (severity 0) 0.9947 #4 of 5 Archive leaderboard report
Classification ImageNet C-OOD (class-out-of-distribution) ViT-L/32-384 with MC Dropout Detection AUROC (severity 10) 0.712 #4 of 5 Archive leaderboard report
Classification ImageNet C-OOD (class-out-of-distribution) ViT-L/32-384 with MC Dropout Detection AUROC (severity 5) 0.9478 #4 of 5 Archive leaderboard report
Classification ImageNet C-OOD (class-out-of-distribution) ViT-L/32-384 with Softmax Detection AUROC (severity 0) 0.9915 #5 of 5 Archive leaderboard report
Classification ImageNet C-OOD (class-out-of-distribution) ViT-L/32-384 with Softmax Detection AUROC (severity 10) 0.7 #5 of 5 Archive leaderboard report
Classification ImageNet C-OOD (class-out-of-distribution) ViT-L/32-384 with Softmax Detection AUROC (severity 5) 0.9293 #5 of 5 Archive leaderboard report

Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.

Methods

CLIPKnowledge Distillation

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections