Fix Where It Fails: Root-Cause-Guided Agentic Harness Optimization for Scene Graph Generation
Organizations: Korea University
Abstract
Scene graph generation (SGG) aims to detect objects in an image and predict the relationships between them. The standard PredCls, SGCls, and SGDet settings show how much performance drops without ground-truth boxes and labels, but not where or why a model fails. Knowing this would allow fixing a model where it fails, without retraining. We propose RoHa-SGG (Root-cause-guided Harness optimization for SGG), which extends agentic harness optimization to SGG. It optimizes the harness, the inference code around a frozen SGG model. RoHa-SGG has two main LLM agents. A root-cause analysis (RCA) agent finds the components where the model fails and diagnoses why, and a proposer agent searches for a harness that fixes these causes. We evaluate RoHa-SGG on Visual Genome and PSG with representative two-stage, one-stage, and multimodal-LLM SGG models. The analysis shows that the components where ground-truth triplets are lost differ across models and datasets. RoHa-SGG improves every metric on all five model-dataset combinations. Graph-constrained R@100 and mR@100 rise by up to 15.8 and 26.4 points for the multimodal LLM and by up to 3.6 and 10.1 points for the two-stage and one-stage models. With root-cause guidance, the harness search reaches the final score of an unguided search up to three times faster.
Figures & tables
| Component | Harness operations | Tools and cues |
|---|---|---|
| box | add, refine or merge boxes | Grounding DINO [ 29 ] , OWLv2 [ 31 ] , SAM 2.1 [ 40 ] |
| name | correct or add object names | RAM++ [ 17 ] , Florence-2 [ 50 ] , CLIP [ 39 ] , DINOv2 [ 35 ] |
| pair | rebuild candidate pairs | box geometry, detector outputs |
| predicate | rescore predicates with evidence | RTMPose [ 20 ] , Florence-2 captions, Depth Anything V2 [ 53 ] |
| rank | re-rank the triplet list | model scores, priors from training images |
| Data | Model | Harness | R@20 | R@50 | R@100 | mR@20 | mR@50 | mR@100 | F@100 | AP50 |
|---|---|---|---|---|---|---|---|---|---|---|
| VG150 | REACT++ | baseline | 23.39 | 30.12 | 34.01 | 12.25 | 15.96 | 18.15 | 23.67 | 37.25 |
| YOLOv8m | single-pass (ours) | 24.21 (+0.82) | 32.09 (+1.97) | 37.27 (+3.27) | 13.31 (+1.06) | 17.46 (+1.50) | 20.46 (+2.30) | 26.42 (+2.75) | 37.72 (+0.47) | |
| multi-pass (ours) | 24.48 (+1.09) | 31.82 (+1.69) | 36.34 (+2.33) | 13.54 (+1.29) | 17.34 (+1.38) | 19.87 (+1.72) | 25.69 (+2.02) | 37.67 (+0.42) | ||
| VG150 | EGTR | baseline | 24.38 | 31.04 | 35.17 | 5.46 | 7.97 | 10.11 | 15.70 | 26.75 |
| ResNet-50 | single-pass (ours) | 25.75 (+1.37) | 32.66 (+1.62) | 36.90 (+1.74) | 9.19 (+3.73) | 14.51 (+6.54) | 18.77 (+8.66) | 24.88 (+9.18) | 26.83 (+0.08) | |
| multi-pass (ours) | 25.64 (+1.27) | 33.29 (+2.25) | 38.80 (+3.63) | 10.45 (+4.98) | 16.09 (+8.11) | 20.16 (+10.05) | 26.53 (+10.83) | 27.09 (+0.35) |
| Inference time (s per image) | ||||
| Data | Model | Baseline | Single-pass | Multi-pass |
| VG150 | REACT++ | 0.017 | 0.92 | 1.27 |
| EGTR | 0.075 | 0.076 | 2.27 | |
| R1-SGG | 11.7 | 13.2 | 29.1 | |
| PSG | REACT++ | 0.015 | 0.75 | 1.01 |
| R1-SGG | 11.0 | 12.5 | 29.7 | |
| VG150 | PSG | ||||
|---|---|---|---|---|---|
| Search | REACT++ | EGTR | R1-SGG | REACT++ | R1-SGG |
| Single-pass | $270 | $325 | $347 | $263 | $320 |
| Multi-pass | $318 | $314 | $376 | $295 | $296 |
Scene Graph Generation
Scene graph generation turns images or videos into structured graphs of objects, their attributes, and their spatial or semantic relations.
See all 52 papers