Skip to content
Back to skills

Fig Qa Eval

ASecurity

Evaluates language models' ability to interpret nonliteral, creative metaphors by selecting the correct literal meaning from two opposing options, and generating sensible interpretations for novel metaphors. It probes commonsense grounding and contextual understanding beyond literal paraphrase tasks. Use when the user wants to benchmark on Fig-QA, or asks about evaluating this task. Reports accuracy.

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

Security analysis

A100/100

Scanned September 11, 2026

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

Installs into .claude/skills of the current project.

Are you the author of Fig Qa Eval?

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

Security grade badge for Fig Qa Eval
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/qhjqhj00-fig-qa-eval/badge)](https://www.skillsdirectory.com/skills/qhjqhj00-fig-qa-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: fig-qa-eval
description: Evaluates language models' ability to interpret nonliteral, creative metaphors by selecting the correct literal meaning from two opposing options, and generating sensible interpretations for novel metaphors. It probes commonsense grounding and contextual understanding beyond literal paraphrase tasks. Use when the user wants to benchmark on Fig-QA, or asks about evaluating this task. Reports accuracy.
metadata:
  skill_kind: dataset_eval
  source_arxiv: 2204.12632
  bibtex_key: liu2022figqa
  confidence: high
---

# fig-qa-eval

> Testing the Ability of Language Models to Interpret Figurative Language — Liu et al. (2022) (arXiv:2204.12632, 2022)

## What this evaluates

Evaluates language models' ability to interpret nonliteral, creative metaphors by selecting the correct literal meaning from two opposing options, and generating sensible interpretations for novel metaphors. It probes commonsense grounding and contextual understanding beyond literal paraphrase tasks.

## Datasets

- **Fig-QA** — total ?; splits: train (-1), test (-1); repo https://github.com/nightingal3/Fig-QA

## Metrics

- `accuracy` **(primary)** — range: [0, 1]
  - Percentage of correct predictions out of total test instances. Evaluated for both inference (selecting between two interpretations) and generation (manual labeling of completions as correct/incorrect/literal).

## Input / output format

**Input**: A figurative metaphor phrase paired with two opposing literal interpretations (inference), or a metaphor phrase alone (generation).

**Output**: Selection of one of the two interpretations (inference), or a generated text completion (generation).

## Scoring recipe

```python
# Inference
pred = model.predict(metaphor, [interp1, interp2])
correct = 1 if pred == gold_label else 0
accuracy = sum(correct) / len(test_set)

# Generation
completions = model.generate(metaphor, max_tokens=100)
labels = [annotator.label(c) for c in completions]
correct = sum(1 for l in labels if l == 'correct')
accuracy = correct / len(non_ambiguous_instances)
```

## Common pitfalls

- Backward direction (matching a literal phrase to a metaphor) is significantly harder than the forward direction.
- Paired/group scoring scheme drastically penalizes autoregressive models compared to standard accuracy.
- Generation evaluation requires manual annotation and is highly sensitive to temperature settings and truncation rules.

## Evidence (verbatim from paper)

> The first question is whether strong LMs can interpret metaphors at all when presented with two opposing meanings, in zero-shot or supervised settings. ... GPT-3 Davinci's accuracy, counting literalized metaphors as incorrect, was 50.8%. Not counting literalized metaphors, the accuracy was 63.9%.

## Citation

```bibtex
@misc{liu2022figqa,
  title={Testing the Ability of Language Models to Interpret Figurative Language},
  author={Liu et al. (2022)},
  year={2022},
  note={arXiv:2204.12632}
}
```

- arXiv: 2204.12632

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.