TL;DR
SGREC introduces a training-free, zero-shot framework for Referring Expression Comprehension (REC) by using query-driven scene graphs as a structured intermediary between vision and language. Instead of relying on direct feature-similarity matching, it translates an image into a clean, query-relevant JSON scene graph containing spatial coordinates, detailed object captions, and semantic interactions. This allows Large Language Models (LLMs) to handle complex spatial and relational reasoning out-of-the-box while providing fully interpretable step-by-step explanations.
What Problem Does This Paper Address?
Referring Expression Comprehension (REC) is the task of locating a specific target object in an image based on a natural language description (e.g., "the lamb grazing next to other lambs"). Doing this in a zero-shot setting—without task-specific fine-tuning data—is incredibly challenging.
Existing Vision-Language Models (VLMs) like CLIP typically approach zero-shot REC by calculating the feature similarity between the text query and cropped image regions. However, CLIP behaves like a "bag-of-words" model; it struggles to comprehend fine-grained visual details, spatial arrangements, and complex multi-object interactions. On the flip side, Large Language Models (LLMs) possess world-class reasoning capabilities but cannot natively map raw visual features or pixel coordinates directly to text semantics. SGREC bridges this gap by turning visual scenes into structured text that LLMs can reason over.
Methods
The authors propose SGREC (Scene Graph REC), a three-step pipeline that converts visual data into a symbolic text representation before passing it to an LLM:
- Object Grounding & Filtering: An off-the-shelf detector (VinVL) extracts all candidate objects in the image. To prevent the scene graph from becoming cluttered and noisy, SGREC filters these candidates. It uses SpaCy and a VLM (LLaVA) to extract nouns, categories, and subjects from the user's query, retaining only the objects that semantically match.
- Query-Driven Scene Graph Generation: For the filtered objects, SGREC constructs a scene graph consisting of:
- Spatial Information: Raw bounding box coordinates
[x1, y1, x2, y2]. - Object Captions: Detailed, region-specific descriptions generated by LLaVA to capture fine-grained attributes (e.g., shape, color, design).
- Visual Interactions: Semantic relationship triplets (e.g.,
[boy, behind, hat]) predicted by LLaVA for overlapping or adjacent object pairs. - LLM Inference: The scene graph is serialized into a structured JSON format and fed into an LLM (such as Qwen-72B) alongside a prompt. The LLM evaluates the options, outputs the ID of the matching target object, and provides a natural language explanation for its choice.
Datasets
The framework was evaluated on three widely used REC benchmarks derived from the MS-COCO dataset:
- RefCOCO: Emphasizes spatial-related descriptions (e.g., "left", "top").
- RefCOCO+: Focuses purely on appearance-related descriptions (forbidding spatial words).
- RefCOCOg: Features longer, more complex, and highly detailed expressions that require advanced contextual reasoning.
Key Insights and Ideas
- Text as a Universal Interface: Instead of trying to align continuous visual embeddings directly with language tokens for localization, converting the image into a structured text representation (JSON) allows researchers to exploit the full symbolic reasoning power of frozen LLMs.
- LLMs Can Do Geometry: Rather than building a dedicated spatial adjustment module to compute relative positions, simply providing raw bounding box coordinates allows the LLM to use its internal mathematical reasoning to deduce concepts like "tallest", "leftmost", or "second from the right".
- Disambiguating with Captions: Standard attribute detectors use closed vocabularies (e.g., "red", "standing"). By leveraging a VLM to generate free-form region captions, SGREC successfully captures abstract properties like "a weird shape" or "a twisted design," which are crucial for appearance-heavy datasets like RefCOCO+.
Key Results
SGREC achieves state-of-the-art zero-shot performance across almost all benchmark splits:
- RefCOCO: Achieves 66.78% accuracy on the validation set, outperforming previous zero-shot methods like ZeroshotREC(VRCLIP) by nearly 5%.
- RefCOCO+: Reaches 53.43% accuracy on the challenging appearance-focused testB split.
- RefCOCOg: Scores 73.28% on the validation set, outperforming the previous best zero-shot method (MCCE-REC) by over 10%.
- Reasoning Scale-up: Ablation studies showed that larger inference models dramatically improve performance (e.g., Qwen-72B scoring 65.08% overall vs. Qwen-7B at 54.89%), confirming that the primary bottleneck in zero-shot REC is reasoning rather than basic visual perception.
Limitations and Future Work
- Computational Overhead: The multi-stage pipeline is computationally expensive, requiring an initial object detection pass, multiple VLM calls to generate captions/relationships, and a final heavy LLM inference step.
- Upstream Bottlenecks: The system is entirely dependent on the initial object detector. If the detector fails to propose a bounding box for the target object in Step 1 (~10% of cases), SGREC has no way to recover it.
- Semantic Ambiguity: In highly crowded scenes with multiple identical objects, the text descriptions in the scene graph can sometimes fail to fully disambiguate fine-grained positional nuances (e.g., "bottom left second from bottom").
The authors suggest that future work should focus on developing unified, end-to-end VLM architectures that can perform object detection and scene graph generation simultaneously to improve inference speed and scalability.
Summary updated