SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · aaai_28278 · AAAI · 2024

GroundVLP: Harnessing Zero-Shot Visual Grounding from Vision-Language Pre-training and Open-Vocabulary Object Detection

Jianwei Yin, Tiancheng Zhao, Haozhan Shen, Mingwei Zhu

Open in the Atlas

Code that ran

6 of 6 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 4 have no contract verdict; 2 failures of our instrument; 0 no recorded run), measured 2026-11-23; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/aaai_28278.json · badge: /api/ran/aaai_28278.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
om-ai-lab/GroundVLP canonical (classifier label)
classifier basis: census
6 ran · 0 no recorded run
FunctionStatusWhere it lives
bbox_iou Ran
ran on a synthesized input
om-ai-lab/GroundVLP/Detic/cal_score_detic.py
code served (permissive licence) · get_code("0a7089f0c4fa226a")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 1, dtype family float, shape (2,) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# Create two sets of bounding boxes in format [x1, y1, x2, y2]
# box1: 2 bounding boxes
box1 = torch.tensor([
    [10.0, 20.0, 50.0, 60.0],
    [15.0, 25.0, 55.0, 65.0]
], dtype=torch.float32)

# box2: 2 bounding boxes
box2 = torch.tensor([
    [30.0, 40.0, 70.0, 80.0],
    [20.0, 30.0, 60.0, 70.0]
], dtype=torch.float32)

ARGS = {
    'box1': box1,
    'box2': box2
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 1, dtype family float, shape (2,) — shape (2,) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
cal_iou Ran
ran on a synthesized input
om-ai-lab/GroundVLP/Detic/cal_score_detic.py
code served (permissive licence) · get_code("7a5d55ce1affcabb")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned float, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np

torch.manual_seed(0)

# Analyze the function:
# - cal_iou takes two parameters: box1 and box2
# - Each box is indexed with [0], [1], [2], [3] (4 elements)
# - Elements are compared with max/min and used in arithmetic
# - box1[0], box1[1], box1[2], box1[3] represent x1, y1, x2, y2 coordinates
# - box2 has the same structure
# - The function returns a float (IoU value)

# Create valid bounding boxes as lists or tuples
# Format: [x1, y1, x2, y2] where x2 > x1 and y2 > y1
box1 = [10, 20, 50, 60]  # x1=10, y1=20, x2=50, y2=60
box2 = [30, 40, 70, 80]  # x1=30, y1=40, x2=70, y2=80

ARGS = {
    "box1": box1,
    "box2": box2,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
draw_boxes_cv2 Ran
ran on a synthesized input
om-ai-lab/GroundVLP/Detic/draw_box.py
code served (permissive licence) · get_code("8b6a30e344af9c3f")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned ndarray, ndim 3, dtype family int, shape (100, 100, 3) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import cv2
import numpy as np
import tempfile
import os

# Create a temporary test image
temp_dir = tempfile.gettempdir()
image_path = os.path.join(temp_dir, "test_image.png")

# Create a simple test image (100x100 RGB image)
test_image = np.zeros((100, 100, 3), dtype=np.uint8)
test_image[10:90, 10:90] = [200, 150, 100]  # Fill with some color
cv2.imwrite(image_path, test_image)

# Define box_list with bounding boxes in format [x1, y1, x2, y2]
# Using distinct coordinate values for clarity
box_list = [
    [10, 15, 50, 60],
    [55, 20, 85, 75],
    [30, 30, 70, 70]
]

ARGS = {
    "image_path": image_path,
    "box_list": box_list
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
cv2, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 3, dtype family int, shape (100, 100, 3) — shape (100, 100, 3) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_annotations Ran
ran; our contract draft was wrong, not the code
om-ai-lab/GroundVLP/Detic/flickr30k_entities_utils.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from bryanplummer/flickr30k_entities, is pointer only (licence: NONE) · get_code("66a196e3cfa1ebe6")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from bryanplummer/flickr30k_entities, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_sentence_data Ran
ran; our contract draft was wrong, not the code
om-ai-lab/GroundVLP/Detic/flickr30k_entities_utils.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from bryanplummer/flickr30k_entities, is pointer only (licence: NONE) · get_code("c1b24fe52cde4f1c")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from bryanplummer/flickr30k_entities, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

random_bgr Ran
ran on a synthesized input
om-ai-lab/GroundVLP/Detic/draw_box.py
code served (permissive licence) · get_code("a57cc765ad72036e")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple, ndim 1, dtype family int; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import random

mp_color = {}

def random_bgr(cls):
    if cls in mp_color.keys():
        return mp_color[cls]
    else:
        b = random.randint(0, 255)
        random.seed(random.randint(1, 100))
        g = random.randint(0, 255)
        random.seed(random.randint(101, 200))
        r = random.randint(0, 255)
        mp_color[cls] = (b, g, r)
        return (b, g, r)

ARGS = {
    "cls": "person"
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 1, dtype family int — a tuple output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block

Also present in other papers' code

Of 6 samples lifted from this paper's linked repositories, 6 carry a function identity and 0 do not. Of the 6 distinct functions with an identity, 2 are also present in other papers whose code we hold (2 with at least one paper dated earlier, 0 the same month, 0 later) and 4 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
get_sentence_data 3 other papers
3 dated earlier
1505.04870 (2015-05)
Flickr30k Entities: Collecting Region-to-Phrase Correspondences for Richer Image-to-Sentence Models
1912.02315 (2019-12)
12-in-1: Multi-Task Vision and Language Representation Learning
2109.04448 (2021-09)
Vision-and-Language or Vision-for-Language? On Cross-Modal Influence in Multimodal Transformers
get_annotations 2 other papers
2 dated earlier
1505.04870 (2015-05)
Flickr30k Entities: Collecting Region-to-Phrase Correspondences for Richer Image-to-Sentence Models
1912.02315 (2019-12)
12-in-1: Multi-Task Vision and Language Representation Learning

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Visual grounding, a crucial vision-language task involving the understanding of the visual context based on the query expression, necessitates the model to capture the interactions between objects, as well as various spatial and attribute information. However, the annotation data of visual grounding task is limited due to its time-consuming and labor-intensive annotation process, resulting in the trained models being constrained from generalizing its capability to a broader domain. To address this challenge, we propose GroundVLP, a simple yet effective zero-shot method that harnesses visual grounding ability from the existing models trained from imagetext pairs and pure object detection data, both of which are more conveniently obtainable and offer a broader domain compared to visual grounding annotation data. GroundVLP proposes a fusion mechanism that combines the heatmap from GradCAM and the object proposals of open-vocabulary detectors. We demonstrate that the proposed method significantly outperforms other zero-shot methods on RefCO-CO/+/g datasets, surpassing prior zero-shot state-of-the-art by approximately 28% on the test split of RefCOCO and Re-fCOCO+. Furthermore, GroundVLP performs comparably to or even better than some non-VLP-based supervised models on the Flickr30k entities dataset. Our code is available at https://github.com/om-ai-lab/GroundVLP.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("aaai_28278")
get_code_for_paper("aaai_28278")
have("aaai_28278")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/aaai_28278.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/aaai_28278.svg)](https://syntology.ai/paper/aaai_28278)

Connect an agent — have() is free.