Skip to content
Back to skills

Eraser Benchmark Eval

ASecurity

Evaluates NLP models' ability to generate faithful, task-appropriate rationales for predictions, measuring both alignment with human annotations and causal faithfulness via token perturbation. Use when the user wants to benchmark on Movies, FEVER, CoS-E, eSNLI, or asks about evaluating this task. Reports AUPRC.

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

Security analysis

A100/100

Scanned September 11, 2026

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

Installs into .claude/skills of the current project.

Are you the author of Eraser Benchmark Eval?

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

Security grade badge for Eraser Benchmark Eval
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/qhjqhj00-eraser-benchmark-eval/badge)](https://www.skillsdirectory.com/skills/qhjqhj00-eraser-benchmark-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: eraser-benchmark-eval
description: Evaluates NLP models' ability to generate faithful, task-appropriate rationales for predictions, measuring both alignment with human annotations and causal faithfulness via token perturbation. Use when the user wants to benchmark on Movies, FEVER, CoS-E, eSNLI, or asks about evaluating this task. Reports AUPRC.
metadata:
  skill_kind: dataset_eval
  source_arxiv: 1911.03429
  bibtex_key: [REDACTED]
  confidence: high
---

# eraser-benchmark-eval

> ERASER: A Benchmark to Evaluate Rationalized NLP Models — DeYoung et al. (2019) (arXiv:1911.03429, 2019)

## What this evaluates

Evaluates NLP models' ability to generate faithful, task-appropriate rationales for predictions, measuring both alignment with human annotations and causal faithfulness via token perturbation.

## Datasets

- **Movies** — total ?; splits: test (-1)
- **FEVER** — total ?; splits: test (-1)
- **CoS-E** — total ?; splits: test (-1)
- **eSNLI** — total ?; splits: test (-1)

## Metrics

- `AUPRC` **(primary)** — range: [0, 1]
  - Area Under the Precision-Recall Curve computed by ranking tokens by importance score and comparing against human-annotated rationale spans.
- `Comprehensiveness` — range: percent
  - Measures the drop in downstream task performance when the top-k% most important tokens are removed, averaged over bins of k.
- `Sufficiency` — range: percent
  - Measures the drop in downstream task performance when the bottom-k% least important tokens are removed, averaged over bins of k.
- `Macro F1 / Accuracy` — range: [0, 1]
  - Standard downstream task performance metric used as a baseline to ensure faithfulness metrics do not degrade task capability.

## Input / output format

**Input**: Natural language input (e.g., document, question, or premise-hypothesis pair) with optional human-annotated rationale spans for supervision.

**Output**: Discrete rationale spans (hard methods) or continuous token-level importance scores (soft methods), plus a final task prediction.

## Scoring recipe

```python
scores = model.get_token_importance_scores(input_text)
sorted_indices = argsort(scores, descending=True)
auprc = compute_auc(pr_curve(sorted_indices, human_rationale_mask))
comp_scores, suff_scores = [], []
for k in importance_bins:
    top_k = sorted_indices[:k]
    bottom_k = sorted_indices[-k:]
    perf_drop_comp = downstream_score(input) - downstream_score(remove_tokens(input, top_k))
    perf_drop_suff = downstream_score(input) - downstream_score(remove_tokens(input, bottom_k))
    comp_scores.append(perf_drop_comp)
    suff_scores.append(perf_drop_suff)
comp_avg = mean(comp_scores)
suff_avg = mean(suff_scores)
```

## Common pitfalls

- Confusing rationale agreement metrics (used for hard/discrete selection) with faithfulness metrics (comprehensiveness/sufficiency used for soft/continuous scores).
- Assuming attention weights are faithful explanations; the benchmark shows they often agree with humans but fail perturbation-based faithfulness tests.
- Ignoring variable rationale granularity; sentence-level models cannot be fairly compared to token-level models on datasets requiring short spans.

## Evidence (verbatim from paper)

> To assess the quality of token scores with respect to human annotations, we report the Area Under the Precision Recall Curve (AUPRC). These scoring functions assign only soft scores to inputs (and may still use all inputs to come to a particular prediction), so we report the metrics intended to measure faithfulness defined above: comprehensiveness and sufficiency, averaged over 'bins' of tokens ordered by importance scores.

## Citation

```bibtex
@misc{deyoung2019eraser,
  title={ERASER: A Benchmark to Evaluate Rationalized NLP Models},
  author={DeYoung et al. (2019)},
  year={2019},
  note={arXiv:1911.03429}
}
```

- arXiv: 1911.03429

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.