Skip to content
Back to skills

R2pe Eval

ASecurity

Evaluates the ability to detect incorrect answers in chain-of-thought reasoning by analyzing inconsistencies across multiple reasoning paths. It measures how well intermediate steps can predict the correctness of a final answer without relying solely on the answer itself. Use when the user wants to benchmark on R2PE, or asks about evaluating this task. Reports Discernibility Score (DS).

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

Security analysis

A100/100

Scanned September 11, 2026

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

Installs into .claude/skills of the current project.

Are you the author of R2pe Eval?

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

Security grade badge for R2pe Eval
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/qhjqhj00-r2pe-eval/badge)](https://www.skillsdirectory.com/skills/qhjqhj00-r2pe-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: r2pe-eval
description: Evaluates the ability to detect incorrect answers in chain-of-thought reasoning by analyzing inconsistencies across multiple reasoning paths. It measures how well intermediate steps can predict the correctness of a final answer without relying solely on the answer itself. Use when the user wants to benchmark on R2PE, or asks about evaluating this task. Reports Discernibility Score (DS).
metadata:
  skill_kind: dataset_eval
  source_arxiv: 2402.10528
  bibtex_key: xu2024r2pe
  confidence: high
---

# r2pe-eval

> Can We Verify Step by Step for Incorrect Answer Detection? — Xu et al. (2024) (arXiv:2402.10528, 2024)

## What this evaluates

Evaluates the ability to detect incorrect answers in chain-of-thought reasoning by analyzing inconsistencies across multiple reasoning paths. It measures how well intermediate steps can predict the correctness of a final answer without relying solely on the answer itself.

## Datasets

- **R2PE** — total 38300; splits: full (38300); repo https://github.com/XinXU-USTC/R2PE

## Metrics

- `Discernibility Score (DS)` **(primary)** — range: [0, 1]
  - A numerical criterion that encapsulates the quality of rationales and answers across multiple reasoning paths. Predictions are made by comparing the DS against a threshold H (if DS < H, predict FALSE; else TRUE). Detection performance is subsequently evaluated using F1 score.

## Input / output format

**Input**: Question or claim Q, dataset name, queried LLM name, five CoT responses each containing a rationale r_i and extracted answer a_i, the final aggregated answer a, the ground-truth answer, and the ground-truth label L (TRUE/FALSE).

**Output**: Predicted label ̂L ∈ {TRUE, FALSE} based on whether the Discernibility Score (DS) falls below a threshold H.

## Scoring recipe

```python
predictions = []
for instance in dataset:
    ds = compute_discernibility_score(instance.responses)
    pred = 'FALSE' if ds < threshold_H else 'TRUE'
    predictions.append(pred)
tp = sum(1 for p, g in zip(predictions, dataset.labels) if p == 'TRUE' and g == 'TRUE')
fp = sum(1 for p, g in zip(predictions, dataset.labels) if p == 'TRUE' and g == 'FALSE')
fn = sum(1 for p, g in zip(predictions, dataset.labels) if p == 'FALSE' and g == 'TRUE')
precision = tp / (tp + fp) if (tp + fp) > 0 else 0
recall = tp / (tp + fn) if (tp + fn) > 0 else 0
f1 = 2 * precision * recall / (precision + recall) if (precision + recall) > 0 else 0
```

## Common pitfalls

- The exact mathematical formula for the Discernibility Score (DS) is not provided in the benchmark construction section and must be retrieved from the paper's methodology.
- The benchmark aggregates answers via majority vote across 5 CoT generations per question before labeling, which can mask individual reasoning path errors.
- Evaluation is stratified into 45 subsets based on the combination of source dataset and generating LLM, so reporting aggregate scores without subset breakdown may hide significant performance variations.

## Evidence (verbatim from paper)

> We introduce a numerical criterion, the discernibility score (DS), to encapsulate the quality of the rationales and their corresponding answers. A low DS might suggest a potential mismatch between the final output a and the ground-truth answer. Hence, we will classify the example as false: ̂L=F, if its DS falls below a certain threshold H.

## Citation

```bibtex
@misc{xu2024r2pe,
  title={Can We Verify Step by Step for Incorrect Answer Detection?},
  author={Xu et al. (2024)},
  year={2024},
  note={arXiv:2402.10528}
}
```

- arXiv: 2402.10528

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.