Benchmarking Neural Network Robustness to Common Corruptions and Perturbations

TL;DR

ImageNet-C/P show that higher clean accuracy does not guarantee robustness to common corruptions or perturbation-induced prediction flips.

cs.LG 🟡 Intermediate 2019-03-29 16 views
Dan Hendrycks Thomas Dietterich
ImageNet-C ImageNet-P corruption robustness perturbation stability computer vision

Key Findings

Methodology

The paper separates robustness into clean accuracy, average performance under common corruptions, and prediction stability under small non-adversarial changes. ImageNet-C applies 15 corruption types from noise, blur, weather, and digital categories at five severities, producing 75 conditions. ImageNet-P supplies 10 perturbation types as sequences of more than 30 frames. Corruption Error, Relative Corruption Error, Flip Rate, and Top-5 Distance quantify degradation and instability.

Key Results

  • ResNet-50 reaches 23.9% clean top-1 error and 76.7% mCE, versus AlexNet's 43.5% error and normalized mCE of 100. However, ResNet-50 has Relative mCE of 105.0%, showing that much of the absolute gain reflects better clean accuracy rather than smaller relative degradation.
  • Architectural improvements provide additional robustness: MSDNet and Multigrid obtain mCE values of 73.6% and 73.3%; DenseNet-121 reaches 73.4%, while ResNeXt-50 reaches 68.2%, compared with 76.7% for ResNet-50.
  • ImageNet-P exposes substantial instability: ResNet-18 flips its top-1 prediction with 15.6% probability between adjacent Scale frames, and its unstandardized Top-5 Distance is 3.6. CLAHE fine-tuning reduces ResNet-50 mCE from 76.7% to 74.5%.

Significance

The work turns robustness from an ambiguous umbrella term into reproducible, comparable measurements. It shows that safety-critical vision systems must be evaluated under fog, snow, blur, compression, sensor noise, and small viewpoint changes—not only on clean ImageNet or worst-case adversarial examples. For research, ImageNet-C/P reduce cherry-picking and moving evaluation targets. For industry, they offer a deployment-oriented stress-testing template for cameras, autonomous systems, medical imaging, robotics, and surveillance.

Technical Contribution

The principal contribution is a pair of standardized benchmarks and normalized metrics. For corruption c, CE_f,c=(Σ_s E^f_s,c)/(Σ_s E^AlexNet_s,c), averaged over 15 corruptions to obtain mCE; Relative CE subtracts clean error to measure degradation. For perturbations, Flip Probability counts changes between adjacent predictions, and Flip Rate normalizes it by AlexNet. Top-5 Distance measures instability of ranked predictions. These metrics separate absolute error from sensitivity to input change.

Novelty

Unlike Carlini–Wagner, Madry-style adversarial analysis, which searches for small, classifier-tailored worst-case perturbations, this paper evaluates frequent, classifier-agnostic changes. ImageNet-C establishes a unified 15-by-5 corruption benchmark, while ImageNet-P makes temporal prediction consistency measurable. The fundamental innovation is methodological: robustness is treated as both average performance under distribution shift and local stability along realistic input trajectories.

Limitations

  • The corruptions are algorithmically generated and cannot reproduce the full statistics of real cameras, sensors, weather, or compound failures; JPEG storage may also add incidental compression artifacts.
  • AlexNet normalization improves comparability but complicates interpretation across model generations, while ImageNet labels may not indicate whether an object remains visually identifiable under severe fog or occlusion.
  • The evidence concerns ImageNet classification only and does not directly establish robustness for detection, segmentation, open-world recognition, or multimodal decision systems.

Future Work

Future work should combine real-world captures with synthetic corruptions, include compound and temporally structured failures, and establish human and cross-task baselines. Training methods should jointly reduce mCE, Relative mCE, mFR, and mT5D rather than optimize a single score. CLAHE, multiscale architectures, feature aggregation, and Adversarial Logit Pairing are promising directions, but must be validated on held-out corruption families to prevent benchmark overfitting.

AI Executive Summary

Deep vision systems have improved dramatically on clean ImageNet, yet may fail when images contain fog, snow, blur, sensor noise, compression, or slight viewpoint changes. Hendrycks and Dietterich argue that ordinary accuracy answers only whether a clear image is classified correctly; it does not reveal whether a deployed system remains reliable when the input distribution shifts. This distinction is crucial for safety-critical applications.

The authors introduce ImageNet-C and ImageNet-P. ImageNet-C applies 15 common corruption types at five severity levels, yielding 75 test conditions, and reports Corruption Error, mCE, and Relative mCE. ImageNet-P contains sequences of small perturbations and measures prediction instability through Flip Rate and Top-5 Distance. ResNet-50 achieves 23.9% clean error and 76.7% mCE, but its Relative mCE is 105.0%, indicating that cleaner accuracy does not automatically mean smaller corruption-induced degradation. ResNeXt-50 lowers mCE to 68.2%.

The results also reveal temporal fragility: ResNet-18 changes its top-1 prediction with 15.6% probability between adjacent Scale frames. Robustness can nevertheless improve through design and preprocessing: CLAHE reduces ResNet-50 mCE to 74.5%, while MSDNet, Multigrid, DenseNet-121, and ResNeXt-50 outperform the baseline. ImageNet-C/P therefore function as deployment stress tests, encouraging models to rely on object-relevant structure rather than brittle texture, brightness, or background cues.

Deep Analysis

Background

Robustness research has often centered on adversarial examples, including Carlini–Wagner attacks and Madry-style adversarial training, which study attacker-optimized worst cases. Complementary work by Dodge and Karam and by Geirhos et al. showed that networks are substantially more fragile than humans under noise, blur, and deformation. This paper addresses the practical gap by standardizing evaluation under common, non-adversarial changes that occur routinely in deployed visual systems.

Core Problem

Clean ImageNet accuracy does not predict reliability under low light, defocus, weather, compression, or small geometric changes. Existing studies frequently test one corruption at a time, making comparisons vulnerable to cherry-picking and metric inconsistency. A second bottleneck is prediction instability: a model may change its answer repeatedly along a visually smooth sequence even when every frame remains recognizable to a person.

Innovation

First, ImageNet-C standardizes 15 corruption families, five severities, and 75 conditions. Second, ImageNet-P evaluates sequences rather than isolated images, exposing prediction flicker. Third, CE and Relative CE distinguish absolute error from degradation; Flip Rate and Top-5 Distance measure class changes and ranking instability. Finally, the paper tests practical improvements including CLAHE, multiscale networks, DenseNet, ResNeXt, and other architectures.

Methodology

  • �� Input: classifiers trained on clean ImageNet, explicitly not on ImageNet-C/P.
  • �� Corruption generation: apply Gaussian, Shot, and Impulse Noise; Defocus, Glass, Motion, and Zoom Blur; Snow, Frost, and Fog; Brightness, Contrast, Elastic, Pixelate, and JPEG at five severities.
  • �� Corruption scoring: compute E^f_s,c, normalize by AlexNet to obtain CE and mCE, then compute Relative CE against clean error.
  • �� Perturbation scoring: run models over 10 ImageNet-P sequence types; count prediction changes as Flip Probability and normalize to Flip Rate.
  • �� Ranking stability: compare successive top-5 permutations with Top-5 Distance and average to mT5D.
  • �� Enhancement studies: evaluate CLAHE fine-tuning, multiscale designs, DenseNet-121, and ResNeXt-50.

Experiments

The main test set is ImageNet validation, with additional CIFAR-10-C, Tiny ImageNet-C, ImageNet 64×64-C, and Inception-sized editions supplied for future work. Baselines include AlexNet, SqueezeNet 1.1, VGG-11, VGG-19, VGG-19+BN, ResNet-18, and ResNet-50. Enhancement comparisons include MSDNet, Multigrid, DenseNet-121, and ResNeXt-50. Models are evaluated using clean top-1 error, per-corruption CE, mCE, Relative mCE, Flip Rate, and Top-5 Distance across severities and perturbation sequences.

Results

Absolute corruption robustness improves with model accuracy, but Relative mCE shows little intrinsic progress from AlexNet to ResNet. ResNet-50 records 76.7% mCE; DenseNet-121 reaches 73.4%; ResNeXt-50 reaches 68.2%, with Relative mCE falling from 105.0% to 88.6%. MSDNet and Multigrid obtain 73.6% and 73.3%. CLAHE fine-tuning reduces clean error from 23.87% to 23.55% and mCE from 76.7% to 74.5%.

Applications

Autonomous driving, robotics, medical imaging, surveillance, and mobile recognition can use ImageNet-C/P-style tests before deployment. Engineering teams can build risk matrices for noise, blur, weather, illumination, and compression, while reporting clean accuracy together with mCE and Flip Rate. Independent held-out corruptions are essential, because training directly on the benchmark would measure memorization rather than generalization.

Limitations & Outlook

Synthetic corruptions are controlled but incomplete proxies for real sensor and environmental distributions, especially when multiple failures interact. AlexNet normalization aids comparison but can obscure absolute interpretation, and ImageNet labels do not encode perceptual identifiability under severe degradation. The evaluation is classification-specific and incurs substantial inference cost for long sequences. Progress requires real video, compound corruption suites, human baselines, and objectives that jointly preserve clean accuracy and stability.

Plain Language Accessible to non-experts

Imagine a factory inspector who identifies objects from photographs. On a clean desk under bright light, the inspector performs brilliantly. But real deliveries arrive during rain, through fogged windows, with shaky cameras, low light, or heavily compressed images. ImageNet-C is a large stress test for this inspector: the same pictures are altered by 15 kinds of trouble, each at five intensities. The score asks not only how often the inspector is wrong, but how much performance falls compared with a standard inspector, AlexNet.

ImageNet-P is more like a short film. One frame shifts slightly, the next becomes a little brighter, and the next has a tiny amount of blur. A sensible inspector should keep saying “cat” throughout. If the answer jumps from cat to fox to dog, the inspector is unstable. Flip Rate counts these answer changes, while Top-5 Distance checks whether the shortlist of likely answers is being scrambled.

The findings are sobering. ResNet-18 changed its first answer in 15.6% of neighboring Scale frames. ResNet-50 made 23.9% errors on clean images and had an mCE of 76.7% under common damage. ResNeXt-50 reduced mCE to 68.2%, and contrast preprocessing called CLAHE reduced ResNet-50 mCE to 74.5%. A high classroom score, in other words, is not proof of dependable real-world judgment.

ELI14 Explained like you're 14

Think of an AI that plays a picture-guessing game. During training, every image is sharp and perfectly lit, so it gets excellent scores. Then you use the camera outside: rain hits the lens, the picture is blurry, the phone shakes, or the file is squashed by social media. Suddenly the AI may call a cat a fox. The paper asks a simple question: does the AI understand the object, or has it memorized what perfect pictures look like?

The researchers made two challenge packs. ImageNet-C is like weather and bad-camera levels in a video game: noise, blur, snow, fog, brightness changes, pixelation, and JPEG damage. There are 15 types and five difficulty levels each. ImageNet-P is a tiny movie where the picture changes one small step at a time. Should the answer change? Usually not! Yet models can flicker between answers anyway.

Here is the surprising part: ResNet-18 changed its top answer 15.6% of the time between neighboring frames when the image was gradually scaled. ResNet-50 had 23.9% error on normal ImageNet pictures, but its corruption score was 76.7%. A stronger design, ResNeXt-50, lowered that score to 68.2%. CLAHE, which adjusts local contrast, lowered ResNet-50 to 74.5%.

So testing AI only on clean homework is like judging a student who has never faced noise, rain, or a surprise question. Reliable AI needs messy-picture exams too. And the goal is not merely to score higher—it is to keep the same sensible answer when the world changes slightly. That matters a lot in cars, robots, hospitals, and security cameras!

Glossary

Common corruption

A frequent, non-adversarial image degradation such as noise, blur, snow, or compression. Technically, it is modeled as a corruption function applied to samples from the test distribution.

ImageNet-C evaluates 15 such corruption types at five severities.

ImageNet-C

A benchmark created by applying 75 corruption conditions to ImageNet validation images. It measures classification degradation under broad, common distribution shifts.

It is used to compute CE, mCE, and Relative mCE.

ImageNet-P

A benchmark of small perturbation sequences generated from ImageNet validation images. Its central target is prediction consistency rather than only final accuracy.

It supports Flip Rate and Top-5 Distance evaluation.

Mean Corruption Error (mCE)

The average of corruption errors across 15 corruption types. Each CE is the model's five-severity error sum normalized by AlexNet's corresponding sum; lower is better.

It is the main ImageNet-C summary metric.

Flip Rate

The probability that a model changes its predicted class across perturbation frames, divided by the AlexNet reference probability. Lower values indicate greater stability.

It summarizes top-1 consistency on ImageNet-P.

CLAHE

Contrast Limited Adaptive Histogram Equalization, a local contrast-normalization method that limits excessive amplification. It can reduce sensitivity to illumination and contrast changes.

Fine-tuning with CLAHE reduced ResNet-50 mCE from 76.7% to 74.5%.

Open Questions Unanswered questions from this research

  • 1 How closely do synthetic corruptions match real camera and sensor failures? Large-scale real videos, weather records, and compound-distortion datasets are needed to validate external validity.
  • 2 How can one training objective improve clean accuracy, Relative mCE, mFR, and mT5D simultaneously? Current augmentations may help one corruption family while harming another.
  • 3 Does ImageNet-P stability predict failures in detection, segmentation, or downstream control? Cross-task and human-baseline studies remain necessary.

Applications

Immediate Applications

Pre-deployment vision stress testing

Teams building autonomous vehicles, robots, or surveillance systems can test candidate models under noise, fog, snow, blur, and compression, then rank failure modes using mCE and Flip Rate. Held-out real data should verify the synthetic results.

Model-regression monitoring

After changing architecture, Batch Normalization, preprocessing, or training, teams can compare clean error, mCE, Relative mCE, and Flip Rate. This catches releases whose clean accuracy improves while real-world stability deteriorates.

Long-term Vision

Safety-oriented robustness certification

The ImageNet-C/P framework could expand to real video, detection, segmentation, and multimodal systems, creating certification protocols that cover sensors, weather, viewpoint, illumination, compression, and compound failures.

Abstract

In this paper we establish rigorous benchmarks for image classifier robustness. Our first benchmark, ImageNet-C, standardizes and expands the corruption robustness topic, while showing which classifiers are preferable in safety-critical applications. Then we propose a new dataset called ImageNet-P which enables researchers to benchmark a classifier's robustness to common perturbations. Unlike recent robustness research, this benchmark evaluates performance on common corruptions and perturbations not worst-case adversarial perturbations. We find that there are negligible changes in relative corruption robustness from AlexNet classifiers to ResNet classifiers. Afterward we discover ways to enhance corruption and perturbation robustness. We even find that a bypassed adversarial defense provides substantial common perturbation robustness. Together our benchmarks may aid future work toward networks that robustly generalize.

cs.LG cs.CV stat.ML