Papers › Semantically Coherent Out-of-Distribution Detection

Semantically Coherent Out-of-Distribution Detection

26 Aug 2021ICCV 2021 10arXiv:2108.11941archive 2025-07-28

Jingkang Yang, Haoqi Wang, Litong Feng, Xiaopeng Yan, Huabin Zheng, Wayne Zhang, Ziwei Liu

Current out-of-distribution (OOD) detection benchmarks are commonly built by defining one dataset as in-distribution (ID) and all others as OOD. However, these benchmarks unfortunately introduce some unwanted and impractical goals, e.g., to perfectly distinguish CIFAR dogs from ImageNet dogs, even though they have the same semantics and negligible covariate shifts. These unrealistic goals will result in an extremely narrow range of model capabilities, greatly limiting their use in real applications. To overcome these drawbacks, we re-design the benchmarks and propose the semantically coherent out-of-distribution detection (SC-OOD). On the SC-OOD benchmarks, existing methods suffer from large performance degradation, suggesting that they are extremely sensitive to low-level discrepancy between data sources while ignoring their inherent semantics. To develop an effective SC-OOD detection approach, we leverage an external unlabeled set and design a concise framework featured by unsupervised dual grouping (UDG) for the joint modeling of ID and OOD data. The proposed UDG can not only enrich the semantic knowledge of the model by exploiting unlabeled data in an unsupervised manner, but also distinguish ID/OOD samples to enhance ID classification and OOD detection tasks simultaneously. Extensive experiments demonstrate that our approach achieves state-of-the-art performance on SC-OOD benchmarks. Code and benchmarks are provided on our project page: https://jingkang50.github.io/projects/scood.

PaperPDFConference PDFCodeCode Syntology ran

In Syntology 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="2108.11941")

Code

Syntology Ran 7 of 11 code samples harvested from 1 repository linked to this paper; 4 have no recorded run. Of those that ran: 4 ran · violated contract; 1 ran · our draft was wrong; 2 ran with no contract checked.

By repository: official repository: 10 samples from 1 repository, 6 ran; 1 identical to code first harvested elsewhere. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

Jingkang50/ICCV21_SCOOD officialmentioned on GitHubpytorch report
wolfecameron/GIST mentioned on GitHubpytorch 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

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

4ran · violated contract
1ran · our draft was wrong
2ran
4unverified

Licence: 1 of the 11 samples is 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 Jingkang50/ICCV21_SCOOD. Some samples are identical code Syntology first harvested from another repository; for those, this paper's copy is not located and its licence is not recorded. “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.

BaseTrainer Jingkang50/ICCV21_SCOOD/scood/trainers/udg_trainer.py official repository ran MIT (permissive) · ca74574f5cf44300 · report
KMeans Jingkang50/ICCV21_SCOOD/scood/trainers/udg_trainer.py official repository ran MIT (permissive) · 65ba1d56e5e30f5c · report
rew_ce Jingkang50/ICCV21_SCOOD/scood/trainers/udg_trainer.py official repository ran · violated contract MIT (permissive) · d8339d591bbd7f52 · report
rew_sce Jingkang50/ICCV21_SCOOD/scood/trainers/udg_trainer.py official repository ran · violated contract fingerprinted MIT (permissive) · 31075b0878f5cb7a · report
soft_cross_entropy Jingkang50/ICCV21_SCOOD/scood/trainers/udg_trainer.py official repository ran · our draft was wrong MIT (permissive) · 61492b343324d2ea · report
sort_array Jingkang50/ICCV21_SCOOD/scood/trainers/udg_trainer.py official repository ran · violated contract MIT (permissive) · c8756cf28e534c80 · report
SoftCrossEntropyFunction Jingkang50/ICCV21_SCOOD/scood/trainers/udg_trainer.py official repository unverified MIT (permissive) · 0fccde09ee48cbad · report
UDGTrainer Jingkang50/ICCV21_SCOOD/scood/trainers/udg_trainer.py official repository unverified MIT (permissive) · 71a3dff3d948d9f4 · report
preprocess_features Jingkang50/ICCV21_SCOOD/scood/trainers/udg_trainer.py official repository unverified MIT (permissive) · 294d6d9211fbcb70 · report
run_kmeans Jingkang50/ICCV21_SCOOD/scood/trainers/udg_trainer.py official repository unverified MIT (permissive) · b919ef68178b78aa · report
cosine_annealing identical code first harvested elsewhere ran · violated contract fingerprinted licence of this copy not recorded · 05eda95f9800a1e9 · report

Tasks

Out of Distribution (OOD) DetectionOut-of-Distribution Detection

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

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