Skip to content
Back to skills

Opentom Eval

ASecurity

This benchmark probes Theory-of-Mind (ToM) reasoning in LLMs by testing their ability to infer psychological mental states (e.g., beliefs, attitudes, intentions) and track physical object locations across naturally generated narratives. It specifically evaluates first- and second-order ToM capabilities under varying narrative lengths and question types. Use when the user wants to benchmark on OpenToM, or asks about evaluating this task. Reports macro-averaged F1 score.

  • 3 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 11, 2026
researchpythongotestingperformance

Security analysis

A100/100

Scanned September 11, 2026

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

Installs into .claude/skills of the current project.

Are you the author of Opentom Eval?

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

Security grade badge for Opentom Eval
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/qhjqhj00-opentom-eval/badge)](https://www.skillsdirectory.com/skills/qhjqhj00-opentom-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: opentom-eval
description: This benchmark probes Theory-of-Mind (ToM) reasoning in LLMs by testing their ability to infer psychological mental states (e.g., beliefs, attitudes, intentions) and track physical object locations across naturally generated narratives. It specifically evaluates first- and second-order ToM capabilities under varying narrative lengths and question types. Use when the user wants to benchmark on OpenToM, or asks about evaluating this task. Reports macro-averaged F1 score.
metadata:
  skill_kind: dataset_eval
  source_arxiv: 2402.06044
  bibtex_key: xu2024opentom
  confidence: high
---

# opentom-eval

> OpenToM: A Comprehensive Benchmark for Evaluating Theory-of-Mind Reasoning Capabilities of Large Language Models — Hainiu Xu et al. (2024) (arXiv:2402.06044, 2024)

## What this evaluates

This benchmark probes Theory-of-Mind (ToM) reasoning in LLMs by testing their ability to infer psychological mental states (e.g., beliefs, attitudes, intentions) and track physical object locations across naturally generated narratives. It specifically evaluates first- and second-order ToM capabilities under varying narrative lengths and question types.

## Datasets

- **OpenToM** — total ?; splits: test (-1)

## Metrics

- `macro-averaged F1 score` **(primary)** — range: [0, 1]
  - Macro-averaged F1 score computed across binary and ternary classification tasks. It calculates the F1 score for each class independently and then takes the unweighted mean, which is necessary because the ground-truth labels are not uniformly distributed.

## Input / output format

**Input**: A narrative featuring personified characters with explicit intentions and motivated actions, followed by a binary or ternary classification question about physical locations or psychological mental states.

**Output**: A single classification label (binary or ternary) corresponding to the correct answer for the posed question.

## Scoring recipe

```python
def compute_macro_f1(predictions, gold_labels, num_classes):
    f1_scores = []
    for c in range(num_classes):
        tp = sum(1 for p, g in zip(predictions, gold_labels) if p == c and g == c)
        fp = sum(1 for p, g in zip(predictions, gold_labels) if p == c and g != c)
        fn = sum(1 for p, g in zip(predictions, gold_labels) if p != c and g == c)
        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
        f1_scores.append(f1)
    return sum(f1_scores) / len(f1_scores)
```

## Common pitfalls

- Using accuracy instead of macro-F1 is misleading because the dataset's labels are not uniformly distributed.
- High F1 scores do not guarantee genuine ToM reasoning; the paper notes a high 'unfaithful rate' where models may guess correctly without following the narrative's mental states.
- Applying Chain-of-Thought or SimToM prompting universally can degrade performance on certain question types (e.g., Loc_fine or Att) while helping others.

## Evidence (verbatim from paper)

> As all the OpenToM questions are formulated as binary or ternary classification tasks and considering that the labels are not uniformly distributed (Figure A3), we evaluate model performance using the macro-averaged F1 scores (referred to as F1 scores henceforth).

## Citation

```bibtex
@misc{xu2024opentom,
  title={OpenToM: A Comprehensive Benchmark for Evaluating Theory-of-Mind Reasoning Capabilities of Large Language Models},
  author={Hainiu Xu et al. (2024)},
  year={2024},
  note={arXiv:2402.06044}
}
```

- arXiv: 2402.06044

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.