Skip to content
Back to skills

R Precision Sgg Eval

ASecurity

Evaluates the semantic alignment and retrieval capability of scene graph generation models and image-scene graph similarity frameworks. It measures how well generated or ground-truth scene graphs can retrieve corresponding images compared to other images in a dataset. Use when the user wants to benchmark on Visual Genome, Open Images V6, or asks about evaluating this task. Reports R-Precision@K.

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

Security analysis

A100/100

Scanned September 11, 2026

npx -y skills add qhjqhj00/research-skills-pool --skill r-precision-sgg-eval --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of R Precision Sgg Eval?

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

Security grade badge for R Precision Sgg Eval
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/qhjqhj00-r-precision-sgg-eval/badge)](https://www.skillsdirectory.com/skills/qhjqhj00-r-precision-sgg-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: r-precision-sgg-eval
description: Evaluates the semantic alignment and retrieval capability of scene graph generation models and image-scene graph similarity frameworks. It measures how well generated or ground-truth scene graphs can retrieve corresponding images compared to other images in a dataset. Use when the user wants to benchmark on Visual Genome, Open Images V6, or asks about evaluating this task. Reports R-Precision@K.
metadata:
  skill_kind: dataset_eval
  source_arxiv: 2304.00590
  bibtex_key: cong2023span
  confidence: high
---

# r-precision-sgg-eval

> SPAN: Learning Similarity between Scene Graphs and Images with Transformers — Cong et al. (2023) (arXiv:2304.00590, 2023)

## What this evaluates

Evaluates the semantic alignment and retrieval capability of scene graph generation models and image-scene graph similarity frameworks. It measures how well generated or ground-truth scene graphs can retrieve corresponding images compared to other images in a dataset.

## Datasets

- **Visual Genome** — total 108000; splits: train (75600), test (32400)
- **Open Images V6** — total 131300; splits: train (126000), test (5300)

## Metrics

- `R-Precision@K` **(primary)** — range: [0, 1]
  - Precision at rank K for image retrieval using scene graph similarity scores. Calculated as the number of ground-truth matching images in the top K retrieved results divided by K.

## Input / output format

**Input**: A query scene graph (serialized with structural encodings) and a candidate set of images.

**Output**: Similarity scores between the query scene graph and each candidate image, used to produce a ranked retrieval list.

## Scoring recipe

```python
def compute_r_precision(sim_scores, gt_idx, k):
    top_k_indices = np.argsort(sim_scores)[::-1][:k]
    hit = 1 if gt_idx in top_k_indices else 0
    return hit / k
```

## Common pitfalls

- R-Precision measures retrieval performance based on semantic similarity, not triplet-level IoU or bounding box overlap.
- The metric is sensitive to the number of retrieved items (K=10/50/100); scores are not directly comparable to traditional Recall@K or mR@K metrics.
- Location-free vs location-bound scene graphs yield different scores; bounding box constraints significantly impact retrieval accuracy.

## Evidence (verbatim from paper)

> Considering that the triplet-oriented metrics cannot directly reflect the consistency between generated scene graphs and images, we re-evaluate the prior scene graph generation models with the graph-oriented metric R-Precision (K=10/50/100) based on the similarity computed by GICON.

## Citation

```bibtex
@misc{cong2023span,
  title={SPAN: Learning Similarity between Scene Graphs and Images with Transformers},
  author={Cong et al. (2023)},
  year={2023},
  note={arXiv:2304.00590}
}
```

- arXiv: 2304.00590

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.