Skip to content
Back to skills

Roar Eval

ASecurity

This benchmark evaluates the quality of feature importance estimators in deep neural networks by measuring how model performance degrades when ranked important features are removed and the model is retrained. It probes whether an interpretability method correctly identifies pixels that the model actually relies on for prediction. Use when the user wants to benchmark on ImageNet, Birdsnap, Food 101, or asks about evaluating this task. Reports test accuracy.

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

Security analysis

A100/100

Scanned September 11, 2026

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

Installs into .claude/skills of the current project.

Are you the author of Roar Eval?

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

Security grade badge for Roar Eval
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/qhjqhj00-roar-eval/badge)](https://www.skillsdirectory.com/skills/qhjqhj00-roar-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: roar-eval
description: This benchmark evaluates the quality of feature importance estimators in deep neural networks by measuring how model performance degrades when ranked important features are removed and the model is retrained. It probes whether an interpretability method correctly identifies pixels that the model actually relies on for prediction. Use when the user wants to benchmark on ImageNet, Birdsnap, Food 101, or asks about evaluating this task. Reports test accuracy.
metadata:
  skill_kind: dataset_eval
  source_arxiv: 1806.10758
  bibtex_key: hooker2018roar
  confidence: high
---

# roar-eval

> A Benchmark for Interpretability Methods in Deep Neural Networks — Hooker et al. (2018) (arXiv:1806.10758, 2018)

## What this evaluates

This benchmark evaluates the quality of feature importance estimators in deep neural networks by measuring how model performance degrades when ranked important features are removed and the model is retrained. It probes whether an interpretability method correctly identifies pixels that the model actually relies on for prediction.

## Datasets

- **ImageNet** — total ?; splits: train (-1), test (-1)
- **Birdsnap** — total ?; splits: train (-1), test (-1)
- **Food 101** — total ?; splits: train (-1), test (-1)

## Metrics

- `test accuracy` **(primary)** — range: percent
  - Mean classification accuracy on the modified test set, averaged over 5 independent training runs from random initialization.

## Input / output format

**Input**: Original input images paired with a feature importance ranking/map generated by an interpretability estimator. The evaluation pipeline modifies these images by masking the top-ranked pixels according to a removal fraction t.

**Output**: A scalar test accuracy score (percentage) representing the retrained model's performance on the modified test set.

## Scoring recipe

```python
def compute_roar_metric(estimator, train_imgs, test_imgs, t):
    # 1. Generate importance scores for all images
    scores = estimator.rank_features(train_imgs + test_imgs)
    # 2. Create modified datasets by removing top t% pixels per image
    mod_train = mask_top_pixels(train_imgs, scores, t)
    mod_test = mask_top_pixels(test_imgs, scores, t)
    # 3. Retrain ResNet-50 on modified training data (5 runs)
    models = [train_resnet50(mod_train) for _ in range(5)]
    # 4. Evaluate each model on modified test data and average
    accs = [m.evaluate(mod_test) for m in models]
    return sum(accs) / len(accs)
```

## Common pitfalls

- Evaluating feature importance without retraining the model conflates ranking quality with data degradation, as accuracy drops drastically regardless of the estimator used.
- Relying on base estimators (e.g., GRAD, IG, GB) without ensembling often yields rankings that perform worse than random assignment or simple edge filters.
- Failing to use appropriate control baselines (random assignment and Sobel edge filter) makes it impossible to establish a lower bound for method performance.

## Evidence (verbatim from paper)

> We independently train 5 ResNet-50 models from random initialization on each of these modified dataset and report test accuracy as the average of these 5 runs.

## Citation

```bibtex
@misc{hooker2018roar,
  title={A Benchmark for Interpretability Methods in Deep Neural Networks},
  author={Hooker et al. (2018)},
  year={2018},
  note={arXiv:1806.10758}
}
```

- arXiv: 1806.10758

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.