refcoco-grounding-eval
DiG: Differential Grounding for Enhancing Fine-Grained Perception in Multimodal Large Language Model — Tao et al. (2025) (arXiv:2512.12633, 2025)
What this evaluates
Evaluates fine-grained visual grounding and spatial reasoning by measuring how accurately a multimodal model can localize regions in images corresponding to given referring expressions under varying linguistic and spatial conditions.
Datasets
- RefCOCO — total ?; splits: val (-1), testA (-1), testB (-1)
- RefCOCO+ — total ?; splits: val (-1), testA (-1), testB (-1)
- RefCOCOg — total ?; splits: val (-1), test (-1)
Metrics
IoU@50 accuracy (primary) — range: [0, 1]
- Percentage of correctly localized regions where the Intersection over Union (IoU) between the predicted bounding box and the ground truth box is ≥ 0.5.
valavg / testAavg / testBavg — range: [0, 1]
- Average accuracy across IoU thresholds of 50, 75, and 95 for the validation, testA, or testB splits respectively.
Input / output format
Input: An image and a referring expression (text query describing a target object/region).
Output: Bounding box coordinates (typically [x_min, y_min, x_max, y_max] normalized to [0, 1] or in pixel space).
Scoring recipe
def compute_iou(box1, box2):
x1 = max(box1[0], box2[0])
y1 = max(box1[1], box2[1])
x2 = min(box1[2], box2[2])
y2 = min(box1[3], box2[3])
inter = max(0, x2 - x1) * max(0, y2 - y1)
area1 = (box1[2] - box1[0]) * (box1[3] - box1[1])
area2 = (box2[2] - box2[0]) * (box2[3] - box2[1])
return inter / (area1 + area2 - inter)
def score(predictions, golds, threshold=0.5):
correct = sum(1 for pred, gold in zip(predictions, golds) if compute_iou(pred, gold) >= threshold)
return correct / len(golds)
Common pitfalls
- RefCOCO has two distinct test sets (testA from Flickr30k, testB from COCO); results must be reported separately.
- IoU thresholds of 50, 75, and 95 are standard; reporting only one may misrepresent performance.
- Coordinate format (normalized vs. absolute pixels) must match the ground truth scale to avoid incorrect IoU calculations.
Evidence (verbatim from paper)
Results on referring expression comprehension datasets RefCOCO, RefCOCO+, and RefCOCOg. Incorporating DiG into Qwen3-VL models consistently improves localization accuracy across different IoU thresholds, demonstrating stronger fine-grained spatial grounding and generalization ability.
Citation
@misc{tao2025dig,
title={DiG: Differential Grounding for Enhancing Fine-Grained Perception in Multimodal Large Language Model},
author={Tao et al. (2025)},
year={2025},
note={arXiv:2512.12633}
}
1---2name: refcoco-grounding-eval3description: Evaluates fine-grained visual grounding and spatial reasoning by measuring how accurately a multimodal model can localize regions in images corresponding to given referring expressions under varying linguistic and spatial conditions. Use when the user wants to benchmark on RefCOCO, RefCOCO+, RefCOCOg, or asks about evaluating this task. Reports IoU@50 accuracy.4metadata:5 source: https://skillmd.com/skills/qhjqhj00/refcoco-grounding-eval6 skill_kind: dataset_eval7 source_arxiv: 2512.126338 bibtex_key: tao2025dig9 confidence: high10---1112# refcoco-grounding-eval1314> DiG: Differential Grounding for Enhancing Fine-Grained Perception in Multimodal Large Language Model — Tao et al. (2025) (arXiv:2512.12633, 2025)1516## What this evaluates1718Evaluates fine-grained visual grounding and spatial reasoning by measuring how accurately a multimodal model can localize regions in images corresponding to given referring expressions under varying linguistic and spatial conditions.1920## Datasets2122- **RefCOCO** — total ?; splits: val (-1), testA (-1), testB (-1)23- **RefCOCO+** — total ?; splits: val (-1), testA (-1), testB (-1)24- **RefCOCOg** — total ?; splits: val (-1), test (-1)2526## Metrics2728- `IoU@50 accuracy` **(primary)** — range: [0, 1]29 - Percentage of correctly localized regions where the Intersection over Union (IoU) between the predicted bounding box and the ground truth box is ≥ 0.5.30- `valavg / testAavg / testBavg` — range: [0, 1]31 - Average accuracy across IoU thresholds of 50, 75, and 95 for the validation, testA, or testB splits respectively.3233## Input / output format3435**Input**: An image and a referring expression (text query describing a target object/region).3637**Output**: Bounding box coordinates (typically [x_min, y_min, x_max, y_max] normalized to [0, 1] or in pixel space).3839## Scoring recipe4041```python42def compute_iou(box1, box2):43 x1 = max(box1[0], box2[0])44 y1 = max(box1[1], box2[1])45 x2 = min(box1[2], box2[2])46 y2 = min(box1[3], box2[3])47 inter = max(0, x2 - x1) * max(0, y2 - y1)48 area1 = (box1[2] - box1[0]) * (box1[3] - box1[1])49 area2 = (box2[2] - box2[0]) * (box2[3] - box2[1])50 return inter / (area1 + area2 - inter)5152def score(predictions, golds, threshold=0.5):53 correct = sum(1 for pred, gold in zip(predictions, golds) if compute_iou(pred, gold) >= threshold)54 return correct / len(golds)55```5657## Common pitfalls5859- RefCOCO has two distinct test sets (testA from Flickr30k, testB from COCO); results must be reported separately.60- IoU thresholds of 50, 75, and 95 are standard; reporting only one may misrepresent performance.61- Coordinate format (normalized vs. absolute pixels) must match the ground truth scale to avoid incorrect IoU calculations.6263## Evidence (verbatim from paper)6465> Results on referring expression comprehension datasets RefCOCO, RefCOCO+, and RefCOCOg. Incorporating DiG into Qwen3-VL models consistently improves localization accuracy across different IoU thresholds, demonstrating stronger fine-grained spatial grounding and generalization ability.6667## Citation6869```bibtex70@misc{tao2025dig,71 title={DiG: Differential Grounding for Enhancing Fine-Grained Perception in Multimodal Large Language Model},72 author={Tao et al. (2025)},73 year={2025},74 note={arXiv:2512.12633}75}76```7778- arXiv: 2512.12633