Papers › PRIME: A few primitives can boost robustness to common corruptions

PRIME: A few primitives can boost robustness to common corruptions

27 Dec 2021arXiv:2112.13547archive 2025-07-28

Apostolos Modas, Rahul Rade, Guillermo Ortiz-Jiménez, Seyed-Mohsen Moosavi-Dezfooli, Pascal Frossard

Despite their impressive performance on image classification tasks, deep networks have a hard time generalizing to unforeseen corruptions of their data. To fix this vulnerability, prior works have built complex data augmentation strategies, combining multiple methods to enrich the training data. However, introducing intricate design choices or heuristics makes it hard to understand which elements of these methods are indeed crucial for improving robustness. In this work, we take a step back and follow a principled approach to achieve robustness to common corruptions. We propose PRIME, a general data augmentation scheme that relies on simple yet rich families of max-entropy image transformations. PRIME outperforms the prior art in terms of corruption robustness, while its simplicity and plug-and-play nature enable combination with other methods to further boost their robustness. We analyze PRIME to shed light on the importance of the mixing strategy on synthesizing corrupted images, and to reveal the robustness-accuracy trade-offs arising in the context of common corruptions. Finally, we show that the computational efficiency of our method allows it to be easily used in both on-line and off-line data augmentation schemes.

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="2112.13547")

Code

Syntology Ran 5 of 8 code samples harvested from 1 repository linked to this paper; 3 have no recorded run. Of those that ran: 3 ran · honoured contract; 1 ran · violated contract; 1 ran · our draft was wrong.

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

amodas/PRIME-augmentations officialmentioned in papermentioned on GitHubpytorchApache-2.0 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

8 samples harvested; 5 ran; 3 honoured the contract we drafted; 3 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.

3ran · honoured contract
1ran · violated contract
1ran · our draft was wrong
3unverified

Licence: 0 of the 8 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 amodas/PRIME-augmentations. “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.

float_parameter amodas/PRIME-augmentations/utils/augmix.py official repository ran · honoured contract Apache-2.0 (permissive) · 340cb3797f4ed00a · report
int_parameter amodas/PRIME-augmentations/utils/augmix.py official repository ran · honoured contract fingerprinted Apache-2.0 (permissive) · 8b20dcbdf9e59b56 · report
sample_level amodas/PRIME-augmentations/utils/augmix.py official repository ran · violated contract fingerprinted Apache-2.0 (permissive) · 5cc8d4764ac07a35 · report
scalar_field amodas/PRIME-augmentations/utils/diffeomorphism.py official repository ran · honoured contract Apache-2.0 (permissive) · 21e1843fa11d415e · report
scalar_field_modes amodas/PRIME-augmentations/utils/diffeomorphism.py official repository ran · our draft was wrong Apache-2.0 (permissive) · e57e011fe9cb8615 · report
deform amodas/PRIME-augmentations/utils/diffeomorphism.py official repository unverified Apache-2.0 (permissive) · bf44bd1b11566a72 · report
get_model amodas/PRIME-augmentations/models/utils.py official repository unverified Apache-2.0 (permissive) · dd07d1fcc0435da2 · report
register_model amodas/PRIME-augmentations/models/utils.py official repository unverified Apache-2.0 (permissive) · 13248e8cb27ab862 · report

Tasks

Computational EfficiencyData AugmentationDomain GeneralizationImage Classificationimage-classification

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Domain Generalization ImageNet-C PRIME + DeepAugment (ResNet-50) Top 1 Accuracy 59.9 #29 of 47 Archive leaderboard report
Domain Generalization ImageNet-C PRIME + DeepAugment (ResNet-50) mean Corruption Error (mCE) 51.3 #29 of 47 Archive leaderboard report
Domain Generalization ImageNet-C PRIME with JSD (ResNet-50) Top 1 Accuracy 56.4 #32 of 47 Archive leaderboard report
Domain Generalization ImageNet-C PRIME with JSD (ResNet-50) mean Corruption Error (mCE) 55.5 #32 of 47 Archive leaderboard report
Domain Generalization ImageNet-C PRIME (ResNet-50) Top 1 Accuracy 55.0 #34 of 47 Archive leaderboard report
Domain Generalization ImageNet-C PRIME (ResNet-50) mean Corruption Error (mCE) 57.5 #34 of 47 Archive leaderboard report
Domain Generalization ImageNet-R PRIME with JSD (ResNet-50) Top-1 Error Rate 53.7 #30 of 39 Archive leaderboard report
Domain Generalization ImageNet-R PRIME (ResNet-50) Top-1 Error Rate 57.1 #32 of 39 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.

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