Papers › A Novel Data Augmentation Technique for Out-of-Distribution Sample Detection using...

A Novel Data Augmentation Technique for Out-of-Distribution Sample Detection using Compounded Corruptions

28 Jul 2022arXiv:2207.13916archive 2025-07-28

Ramya S. Hebbalaguppe, Soumya Suvra Goshal, Jatin Prakash, Harshad Khadilkar, Chetan Arora

Modern deep neural network models are known to erroneously classify out-of-distribution (OOD) test data into one of the in-distribution (ID) training classes with high confidence. This can have disastrous consequences for safety-critical applications. A popular mitigation strategy is to train a separate classifier that can detect such OOD samples at the test time. In most practical settings OOD examples are not known at the train time, and hence a key question is: how to augment the ID data with synthetic OOD samples for training such an OOD detector? In this paper, we propose a novel Compounded Corruption technique for the OOD data augmentation termed CnC. One of the major advantages of CnC is that it does not require any hold-out data apart from the training set. Further, unlike current state-of-the-art (SOTA) techniques, CnC does not require backpropagation or ensembling at the test time, making our method much faster at inference. Our extensive comparison with 20 methods from the major conferences in last 4 years show that a model trained using CnC based data augmentation, significantly outperforms SOTA, both in terms of OOD detection accuracy as well as inference time. We include a detailed post-hoc analysis to investigate the reasons for the success of our method and identify higher relative entropy and diversity of CnC samples as probable causes. We also provide theoretical insights via a piece-wise decomposition analysis on a two-dimensional dataset to reveal (visually and quantitatively) that our approach leads to a tighter boundary around ID classes, leading to better detection of OOD samples. Source code link: https://github.com/cnc-ood

PaperPDFCodeCode 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="2207.13916")

Code

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

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

cnc-ood/cnc_ood officialpytorchMIT 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

14 samples harvested; 2 ran; 0 honoured the contract we drafted; 12 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.

1ran · our draft was wrong
1ran
12unverified

Licence: 0 of the 14 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 cnc-ood/cnc_ood. “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.

clipped_zoom cnc-ood/cnc_ood/augmentations/corruptions.py official repository ran · our draft was wrong fingerprinted MIT (permissive) · 466ca3cdf4524d82 · report
disk cnc-ood/cnc_ood/augmentations/corruptions.py official repository ran MIT (permissive) · bc8b7f1d3348c560 · report
DenseNet100 cnc-ood/cnc_ood/models/densenet.py official repository unverified MIT (permissive) · e24439db1f89a5eb · report
ResNet34 cnc-ood/cnc_ood/models/resnet.py official repository unverified MIT (permissive) · 135e97055dfaf8bd · report
ResNet50 cnc-ood/cnc_ood/models/resnet.py official repository unverified MIT (permissive) · 48e78dc688691eef · report
WideResNet40_2 cnc-ood/cnc_ood/models/wide_resnet.py official repository unverified MIT (permissive) · fba2431c495541ec · report
conv3x3 cnc-ood/cnc_ood/models/resnet_tinyimagenet.py official repository unverified MIT (permissive) · 2ace1c98fa5f2cd5 · report
get_datasets cnc-ood/cnc_ood/datasets/cifar10.py official repository unverified MIT (permissive) · fd7eb4a19cf6344a · report
get_datasets cnc-ood/cnc_ood/datasets/cifar100.py official repository unverified MIT (permissive) · b018c7f90d510364 · report
get_datasets cnc-ood/cnc_ood/datasets/svhn.py official repository unverified MIT (permissive) · edd840936d027c2e · report
get_train_valid_test_loader cnc-ood/cnc_ood/datasets/svhn.py official repository unverified MIT (permissive) · 6b801f8b2ef516d6 · report
plasma_fractal cnc-ood/cnc_ood/augmentations/corruptions.py official repository unverified MIT (permissive) · 3f32f32f9972eaf6 · report
resnet18 cnc-ood/cnc_ood/models/resnet_tinyimagenet.py official repository unverified MIT (permissive) · 4ae4dd2fed7d16da · report
resnet34 cnc-ood/cnc_ood/models/resnet_tinyimagenet.py official repository unverified MIT (permissive) · d5479a626082361a · report

Tasks

Data AugmentationOut of Distribution (OOD) Detection

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Test

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