Skip to content
Back to skills

Spatial Rel Eval

ASecurity

Evaluates the ability of text-to-image and large language models to accurately generate and understand spatial relationships between objects. It probes geometric scene modeling and prepositional semantics grounding by testing models on simple and complex spatial prompts using basic geometric primitives. Use when the user wants to benchmark on SpatialRelBench, or asks about evaluating this task. Reports accuracy.

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

Works with

  • cli

Security analysis

A100/100

Scanned September 11, 2026

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

Installs into .claude/skills of the current project.

Are you the author of Spatial Rel Eval?

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

Security grade badge for Spatial Rel Eval
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/qhjqhj00-spatial-rel-eval/badge)](https://www.skillsdirectory.com/skills/qhjqhj00-spatial-rel-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: spatial-rel-eval
description: Evaluates the ability of text-to-image and large language models to accurately generate and understand spatial relationships between objects. It probes geometric scene modeling and prepositional semantics grounding by testing models on simple and complex spatial prompts using basic geometric primitives. Use when the user wants to benchmark on SpatialRelBench, or asks about evaluating this task. Reports accuracy.
metadata:
  skill_kind: dataset_eval
  source_arxiv: 2411.07664
  bibtex_key: [REDACTED]
  confidence: high
---

# spatial-rel-eval

> Evaluating the Generation of Spatial Relations in Text and Image Generative Models — Sim Shang Hong et al. (2024) (arXiv:2411.07664, 2024)

## What this evaluates

Evaluates the ability of text-to-image and large language models to accurately generate and understand spatial relationships between objects. It probes geometric scene modeling and prepositional semantics grounding by testing models on simple and complex spatial prompts using basic geometric primitives.

## Datasets

- **SpatialRelBench** — total ?; splits: test (-1); repo https://github.com/trolommonm/SpatialRelBench

## Metrics

- `accuracy` **(primary)** — range: [0, 1]
  - Proportion of generated images rated 'A' by human annotators or GPT-4V, where 'A' indicates the spatial relationship is correct and the number/type of objects match the prompt.

## Input / output format

**Input**: Text prompts specifying spatial relations between three basic geometric objects (sphere, cube, cylinder). Simple format: "{object1} {preposition} {object2}". Complex format: "{object1} {preposition1} {object2}, with {object3} {preposition2} {object1}".

**Output**: For T2I models: a generated 2D image. For LLMs: a JSON defining a 3D scene, which is then rendered in Unity to produce an image. Evaluation output: a categorical rating (A, B, C, D) with optional explanation.

## Scoring recipe

```python
def score_spatial_relation(predictions, gold):
    # predictions: list of ratings (A, B, C, D) from raters
    # gold: implicit (all should be 'A' if correct)
    correct = sum(1 for p in predictions if p == 'A')
    return correct / len(predictions)
```

## Common pitfalls

- Ambiguity in spatial perspective (viewer-centric vs. object-centric) can cause false negatives if not standardized in the prompt.
- CLIP-based similarity metrics should be avoided as they operate as bag-of-words and conflate inverted spatial relations (e.g., 'A above B' vs 'B above A').
- LLM outputs must be rendered via Unity to match T2I evaluation conditions; direct text comparison misses spatial fidelity.

## Evidence (verbatim from paper)

> To ensure evaluation accuracy, control examples (with unambiguous ground-truth ratings) comprising 10% of the total examples were included. Only batches that had ≥ 87.5% (i.e. 7 out of 8) accurate ratings for the control examples were accepted.

## Citation

```bibtex
@misc{hong2024spatialrel,
  title={Evaluating the Generation of Spatial Relations in Text and Image Generative Models},
  author={Sim Shang Hong et al. (2024)},
  year={2024},
  note={arXiv:2411.07664}
}
```

- arXiv: 2411.07664

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.