# Moral Self Correction Eval

> Evaluates the convergence and stability of LLMs during iterative self-correction across six diverse tasks. It probes whether multi-round refinement reduces model uncertainty and yields consistent, aligned, or task-correct outputs without external supervision. Use when the user wants to benchmark on AdvBench, CommonGen-Hard, BBQ, MMVP, MS-COCO, Real Toxicity Prompts, or asks about evaluating this task. Reports semantic uncertainty.

- Skill: `qhjqhj00/moral-self-correction-eval` (Agent Skill)
- Install (CLI): `npx skillmds add qhjqhj00/moral-self-correction-eval`
- Raw SKILL.md: https://api.skillmd.com/api/skills/qhjqhj00/moral-self-correction-eval/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- Author: qhjqhj00 (https://skillmd.com/u/qhjqhj00)
- Updated: 2026-09-08
- Page: https://skillmd.com/skills/qhjqhj00/moral-self-correction-eval

---


# moral-self-correction-eval

> On the Convergence of Moral Self-Correction in Large Language Models — Liu et al. (2025) (arXiv:2510.07290, 2025)

## What this evaluates

Evaluates the convergence and stability of LLMs during iterative self-correction across six diverse tasks. It probes whether multi-round refinement reduces model uncertainty and yields consistent, aligned, or task-correct outputs without external supervision.

## Datasets

- **AdvBench** — total ?; splits: test (-1)
- **CommonGen-Hard** — total ?; splits: test (-1)
- **BBQ** — total ?; splits: test (-1)
- **MMVP** — total ?; splits: test (-1)
- **MS-COCO** — total 250; splits: test (250)
- **Real Toxicity Prompts** — total ?; splits: test (-1)

## Metrics

- `semantic uncertainty` **(primary)** — range: [0, 1]
  - Measures linguistic variability in model outputs across multiple self-correction rounds; lower values indicate higher convergence and reduced uncertainty.
- `toxicity score` — range: [0, 1]
  - Automated toxicity score assigned by Perspective API to LLM generations, quantifying harmful language intensity.
- `accuracy` — range: percent
  - Standard exact-match or option-selection accuracy depending on the task (e.g., correct answer choice for BBQ/MMVP, coherent sentence generation for CommonGen-Hard).

## Input / output format

**Input**: Task-specific prompts (e.g., jailbreak prompts, commonsense concept lists, ambiguous QA questions with social context, image-question-option pairs, image-text queries for grounding, toxic prompts) fed to the LLM/VLM, optionally with iterative self-correction/refinement instructions.

**Output**: Model-generated text responses (and bounding boxes for visual grounding). For iterative tasks, multiple rounds of refined outputs are collected.

## Scoring recipe

```python
def evaluate(predictions, gold, task_type, num_rounds):
    if task_type in ['BBQ', 'CommonGen', 'MMVP', 'Visual Grounding']:
        return mean(1.0 if pred == gold else 0.0 for pred, gold in zip(predictions, gold))
    elif task_type == 'Detoxification':
        return perspective_api.compute_toxicity(predictions)
    elif task_type == 'Jailbreak':
        return mean(1.0 if not is_harmful(pred) else 0.0 for pred in predictions)
    # Semantic uncertainty across rounds
    outputs = [model.generate(prompt, round=r) for r in range(num_rounds)]
    return compute_semantic_variance(outputs)
```

## Common pitfalls

- Using non-ambiguous contexts in BBQ, which inflates bias scores since the correct answer is explicitly known rather than 'unknown'.
- Ignoring multi-round convergence and only reporting single-pass accuracy, missing the core self-correction evaluation protocol.
- Using different toxicity classifiers than Perspective API, leading to incomparable detoxification scores across studies.

## Evidence (verbatim from paper)

> For the uncertainty estimation, the semantic uncertainty Kuhn et al. ([2022]) is utilized. Details can be found at <https://github.com/lorenzkuhn/semantic_uncertainty>. Perspective API888<https://github.com/conversationai/perspectiveapi>, an automated tool for toxicity detection, is adapted to assign toxicity scores to the LLM generation.

## Citation

```bibtex
@misc{liu2025moralselfcorrection,
  title={On the Convergence of Moral Self-Correction in Large Language Models},
  author={Liu et al. (2025)},
  year={2025},
  note={arXiv:2510.07290}
}
```

- arXiv: 2510.07290

