Skip to content
Back to skills

Easyrobust Eval

ASecurity

Evaluates the adversarial robustness and out-of-distribution (OOD) generalization of vision models on large-scale image classification benchmarks. It measures clean accuracy, robust accuracy against AutoAttack, and corruption error rates across multiple synthetic and real-world distribution shifts. Use when the user wants to benchmark on ImageNet, ImageNet-C, ImageNet-R, ImageNet-A, ImageNet-Sketch, Stylized-ImageNet, ObjectNet, ImageNet-V2, or asks about evaluating this task. Reports Top-1 a...

  • 3 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 11, 2026
researchpythongoperformance

Security analysis

A100/100

Scanned September 11, 2026

npx -y skills add qhjqhj00/research-skills-pool --skill easyrobust-eval --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Easyrobust Eval?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Easyrobust Eval
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/qhjqhj00-easyrobust-eval/badge)](https://www.skillsdirectory.com/skills/qhjqhj00-easyrobust-eval)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: easyrobust-eval
description: Evaluates the adversarial robustness and out-of-distribution (OOD) generalization of vision models on large-scale image classification benchmarks. It measures clean accuracy, robust accuracy against AutoAttack, and corruption error rates across multiple synthetic and real-world distribution shifts. Use when the user wants to benchmark on ImageNet, ImageNet-C, ImageNet-R, ImageNet-A, ImageNet-Sketch, Stylized-ImageNet, ObjectNet, ImageNet-V2, or asks about evaluating this task. Reports Top-1 accuracy.
metadata:
  skill_kind: dataset_eval
  source_arxiv: 2503.16975
  bibtex_key: [REDACTED]
  confidence: high
---

# easyrobust-eval

> EasyRobust: A Comprehensive and Easy-to-use Toolkit for Robust and Generalized Vision — Mao et al. (2025) (arXiv:2503.16975, 2025)

## What this evaluates

Evaluates the adversarial robustness and out-of-distribution (OOD) generalization of vision models on large-scale image classification benchmarks. It measures clean accuracy, robust accuracy against AutoAttack, and corruption error rates across multiple synthetic and real-world distribution shifts.

## Datasets

- **ImageNet** — total 50000; splits: val (50000)
- **ImageNet-C** — total ?; splits: test (-1)
- **ImageNet-R** — total ?; splits: test (-1)
- **ImageNet-A** — total ?; splits: test (-1)
- **ImageNet-Sketch** — total ?; splits: test (-1)
- **Stylized-ImageNet** — total ?; splits: test (-1)
- **ObjectNet** — total ?; splits: test (-1)
- **ImageNet-V2** — total ?; splits: test (-1)

## Metrics

- `Top-1 accuracy` **(primary)** — range: percent
  - Fraction of correctly predicted class labels out of total samples. Reported as a percentage.
- `mCE` — range: percent
  - Mean Corruption Error: average error rate across all corruption types and severities on ImageNet-C. Lower values indicate better robustness.
- `AutoAttack accuracy` — range: percent
  - Top-1 accuracy on 5000 adversarial examples generated by AutoAttack, sampled from the ImageNet validation set via RobustBench.

## Input / output format

**Input**: RGB images resized to 256×256 and center cropped to 224×224.

**Output**: Class label predictions (top-1).

## Scoring recipe

```python
def compute_metrics(predictions, gold_labels, corruption_data=None):
    acc = (predictions == gold_labels).mean() * 100
    if corruption_data is not None:
        errors = 1.0 - (corruption_data['preds'] == corruption_data['labels']).mean(axis=0)
        mce = errors.mean() * 100
    else:
        mce = None
    return acc, mce
```

## Common pitfalls

- mCE is a lower-is-better metric, whereas accuracy is higher-is-better; confusing the direction can invert conclusions.
- AutoAttack evaluation uses a fixed set of 5000 sampled images from RobustBench, not the full 50k validation set.
- Different methods use different training configurations (epochs, LR schedules, augmentations), so results are not directly comparable without matching training protocols.

## Evidence (verbatim from paper)

> Except for ImageNet-C which is measured by mCE, we report the top-1 accuracy on all used attacks and datasets. ... clean performance is the top@1 accuracy (%) on 50000 ImageNet validation images and robustness performance is the robust top@1 accuracy (%) on 5000 AutoAttack adversarial examples based on sampled images provided by RobustBench.

## Citation

```bibtex
@misc{mao2025easyrobust,
  title={EasyRobust: A Comprehensive and Easy-to-use Toolkit for Robust and Generalized Vision},
  author={Mao et al. (2025)},
  year={2025},
  note={arXiv:2503.16975}
}
```

- arXiv: 2503.16975

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.