SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2412.20206 · 2024

Toward Visual Grounding: A Survey

arXiv · PDF · Open in the Atlas

Code that ran

13 of 15 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; 9 failures of our instrument; 2 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; 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/2412.20206.json · badge: /api/ran/2412.20206.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
linhuixiao/clip-vg canonical (classifier label)
classifier basis not recorded on the link
10 ran · 2 no recorded run
copy not recorded community
not in the paper's declared repositories
3 ran · 0 no recorded run
FunctionStatusWhere it lives
add_period Ran
ran on a synthesized input
linhuixiao/clip-vg/pseudo_label_generation_module/pseudo_caption_label_generation/CLIP_prefix_caption/parse_conceptual.py
code served (permissive licence) · get_code("c68cb2401825d6a1")
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 str. The image it ran in was not recorded. If your copy returns the same type 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

def add_period(caption: str):
    caption = caption.strip()
    if caption[-1] != '.':
        caption = caption + '.'
    elif caption[-2] == ' ':
        caption = caption[:-2] + '.'
    return caption

ARGS = {
    'caption': 'hello world'
}
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 str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
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
basic_clean Ran
ran; our contract draft was wrong, not the code
linhuixiao/clip-vg/models/clip/simple_tokenizer.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from ltpwy/MSCI, is pointer only (licence: NONE) · get_code("98f385d847636a3e")
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 ltpwy/MSCI, 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.

generate2 Ran
ran; our contract draft was wrong, not the code
linhuixiao/clip-vg/pseudo_label_generation_module/pseudo_caption_label_generation/CLIP_prefix_caption/predict.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from chuangchuangtan/c2p-clip-deepfakedetection, is pointer only (licence: NONE) · get_code("e33b112514a9e4b0")
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 chuangchuangtan/c2p-clip-deepfakedetection, 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.

generate2 Ran
ran on a synthesized input
linhuixiao/clip-vg/pseudo_label_generation_module/pseudo_caption_label_generation/clip_prefix_captioning_for_dataset.py
code served (permissive licence) · get_code("37664f80d7c18871")
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 str. The image it ran in was not recorded. If your copy returns the same type 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 torch.nn as nn

torch.manual_seed(0)

# Mock tokenizer
class MockTokenizer:
    def __init__(self):
        self.vocab_size = 256
    
    def encode(self, text):
        # Return a list of token indices
        if text == '.':
            return [50]  # stop token
        # Simple encoding: sum of char codes mod vocab_size
        return [(sum(ord(c) for c in text) + i) % self.vocab_size for i in range(len(text))]
    
    def decode(self, tokens):
        # Simple decoding
        return "".join(chr(65 + (t % 26)) for t in tokens)

# Mock GPT-like model
class MockGPTTransformer(nn.Module):
    def __init__(self, vocab_size=256, embed_dim=4):
        super().__init__()
        self.wte = nn.Embedding(vocab_size, embed_dim)
    
    def forward(self, inputs_embeds):
        # inputs_embeds: (batch, seq_len, embed_dim)
        # Return logits of shape (batch, seq_len, vocab_size)
        batch_size, seq_len, embed_dim = inputs_embeds.shape
        logits = torch.randn(batch_size, seq_len, 256)
        return type('obj', (object,), {'logits': logits})()

class MockGPT(nn.Module):
    def __init__(self):
        super().__init__()
        self.transformer = MockGPTTransformer(vocab_size=256, embed_dim=4)
    
    def forward(self, inputs_embeds):
        return self.transformer(inputs_embeds)

class MockModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.gpt = MockGPT()
    
    def eval(self):
        super().eval()
        return self

tokenizer = MockTokenizer()
model = MockModel()
prompt = "hello world"

ARGS = {
    'model': model,
    'tokenizer': tokenizer,
    'tokens': None,
    'prompt': prompt,
    'embed': None,
    'entry_count': 1,
    'entry_length': 5,
    'top_p': 0.8,
    'temperature': 1.0,
    'stop_token': '.'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch, tqdm — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
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
generate_beam Ran
ran; our contract draft was wrong, not the code
linhuixiao/clip-vg/pseudo_label_generation_module/pseudo_caption_label_generation/clip_prefix_captioning_for_dataset.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from yvsriram/FACTS, is pointer only (licence: NONE) · get_code("883320eb62f15d12")
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 yvsriram/FACTS, 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_device Ran
ran; our contract draft was wrong, not the code
linhuixiao/clip-vg/pseudo_label_generation_module/pseudo_caption_label_generation/clip_prefix_captioning.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from yvsriram/FACTS, is pointer only (licence: NONE) · get_code("e1fe6b1f19460a65")
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 yvsriram/FACTS, 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_image Ran
ran on a synthesized input
linhuixiao/clip-vg/pseudo_label_generation_module/pseudo_caption_label_generation/CLIP_prefix_caption/parse_conceptual.py
code served (permissive licence) · get_code("0a286fb23ba005b9")
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 bool, 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 requests
import shutil
import tempfile
import os
from unittest.mock import Mock, patch

# Create a temporary directory for output
temp_dir = tempfile.mkdtemp()
out_path = os.path.join(temp_dir, "test_image.jpg")

# Mock the requests.get to avoid actual network calls
# We'll set up valid arguments that would work if the network call succeeded
url = "https://example.com/image.jpg"
timeout = 10

ARGS = {
    "url": url,
    "out_path": out_path,
    "timeout": timeout
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
requests — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type bool, 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
get_object_phrase Ran
ran; our contract draft was wrong, not the code
this paper's copy was not recorded; identical code first harvested from linhuixiao/OneRef
pointer only · get_code("4a9deb3a2060d602")
How it ran

The body of this sample is withheld: this paper's copy of the code was not recorded (its link names no repository or source path), so no licence was read for it. 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_pairs Ran
ran; our contract draft was wrong, not the code
linhuixiao/clip-vg/models/clip/simple_tokenizer.py
code served (permissive licence) · get_code("d919ae32e5e4e616")
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) and returned set. The image it ran in was not recorded. If your copy returns the same type 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)

# The function get_pairs takes a word parameter
# A word is represented as a tuple of symbols (variable-length strings)
# The function iterates through the word and creates pairs of consecutive symbols

word = ("hello", "world", "test")

ARGS = {
    "word": word
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type set — a set output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a set output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
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_predicate_phrase Ran
ran; our contract draft was wrong, not the code
this paper's copy was not recorded; identical code first harvested from linhuixiao/OneRef
pointer only · get_code("596ccf0324e358f5")
How it ran

The body of this sample is withheld: this paper's copy of the code was not recorded (its link names no repository or source path), so no licence was read for it. 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_subject_phrase Ran
ran; our contract draft was wrong, not the code
this paper's copy was not recorded; identical code first harvested from linhuixiao/OneRef
pointer only · get_code("c366b440880ba949")
How it ran

The body of this sample is withheld: this paper's copy of the code was not recorded (its link names no repository or source path), so no licence was read for it. 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.

thread Ran
ran on a synthesized input
linhuixiao/clip-vg/pseudo_label_generation_module/pseudo_caption_label_generation/CLIP_prefix_caption/parse_conceptual.py
code served (permissive licence) · get_code("50449115c68a0ddb")
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 int, ndim 0, dtype family int, 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 tempfile
import threading
from tqdm import tqdm
import os

# Create a temporary directory for output
temp_dir = tempfile.mkdtemp()

# Create the subdirectory for images
suffix = "images"
out_root = os.path.join(temp_dir, suffix)
os.makedirs(out_root, exist_ok=True)

# Construct the urls parameter: List[Tuple[List[str], int]]
# Each element is a tuple of (caption_url_pair, index)
# where caption_url_pair is [caption, url]
urls = [
    (["cat photo", "http://example.com/cat1.jpg"], 0),
    (["dog photo", "http://example.com/dog1.jpg"], 1),
    (["bird photo", "http://example.com/bird1.jpg"], 2),
]

# Thread ID
thread_id = 0

# Progress bar
progress = tqdm(total=len(urls), desc="Processing")

# Lock for thread safety
lock = threading.Lock()

# Suffix for output files
suffix = "images"

# Conceptual root directory
conceptual_root = temp_dir

ARGS = {
    "urls": urls,
    "thread_id": thread_id,
    "progress": progress,
    "lock": lock,
    "suffix": suffix,
    "conceptual_root": conceptual_root,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
requests, tqdm — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type int, ndim 0, dtype family int, 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
whitespace_clean Ran
ran; our contract draft was wrong, not the code
linhuixiao/clip-vg/models/clip/simple_tokenizer.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from ltpwy/MSCI, is pointer only (licence: NONE) · get_code("9542161e9640b858")
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 ltpwy/MSCI, 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.

build_model Not yet run
unverified (harvested, no recorded run)
linhuixiao/clip-vg/models/clip/model.py
code served (permissive licence) · get_code("c9a8ee28fc96c79b")
How it ran

no invocation recorded.

load Not yet run
unverified (harvested, no recorded run)
linhuixiao/clip-vg/models/clip/clip.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from liuting20/MaPPER, is pointer only (licence: NONE) · get_code("b91b981015bbf498")
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 liuting20/MaPPER, 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. No invocation recorded.

Also present in other papers' code

Of 15 samples lifted from this paper's linked repositories, 15 carry a function identity and 0 do not. Of the 15 distinct functions with an identity, 13 are also present in other papers whose code we hold (13 with at least one paper dated earlier, 3 the same month, 4 later) and 2 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_pairs 258 other papers
197 dated earlier, 3 the same month, 50 later, 7 same year, order not determinable, 1 undated · 4 only as an assembly brick
1802.06474 (2018-02)
A Closed-form Solution to Photorealistic Image Stylization
1803.01128 (2018-03)
Seq2Sick: Evaluating the Robustness of Sequence-to-Sequence Models with Adversarial Examples
1809.00125 (2018-09)
Simple Fusion: Return of the Language Model
and 255 more not named here
whitespace_clean 231 other papers
175 dated earlier, 3 the same month, 45 later, 7 same year, order not determinable, 1 undated · 4 only as an assembly brick
1901.07441 (2019-01)
PadChest: A large chest x-ray image dataset with multi-label annotated reports
2107.06383 (2021-07)
How Much Can CLIP Benefit Vision-and-Language Tasks?
2108.10904 (2021-08)
SimVLM: Simple Visual Language Model Pretraining with Weak Supervision
and 228 more not named here
basic_clean 218 other papers
175 dated earlier, 3 the same month, 32 later, 7 same year, order not determinable, 1 undated · 4 only as an assembly brick
1901.07441 (2019-01)
PadChest: A large chest x-ray image dataset with multi-label annotated reports
2107.06383 (2021-07)
How Much Can CLIP Benefit Vision-and-Language Tasks?
2108.10904 (2021-08)
SimVLM: Simple Visual Language Model Pretraining with Weak Supervision
and 215 more not named here
load 23 other papers
19 dated earlier, 2 later, 1 same year, order not determinable, 1 undated
2208.05318 (2022-08)
Generative Action Description Prompts for Skeleton-based Action Recognition
2210.01115 (2022-10)
LASP: Text-to-Text Optimization for Language-Aware Soft Prompting of Vision & Language Models
2212.04501 (2022-12)
Learning Video Representations from Large Language Models
and 20 more not named here
generate2 4 other papers
4 dated earlier
2111.09734 (2021-11)
ClipCap: CLIP Prefix for Image Captioning
2211.11694 (2022-11)
Exploring Discrete Diffusion Models for Image Captioning
2309.17430 (2023-09)
FACTS: First Amplify Correlations and Then Slice to Discover Bias
and 1 more not named here
generate_beam 3 other papers
3 dated earlier
2111.09734 (2021-11)
ClipCap: CLIP Prefix for Image Captioning
2211.11694 (2022-11)
Exploring Discrete Diffusion Models for Image Captioning
2309.17430 (2023-09)
FACTS: First Amplify Correlations and Then Slice to Discover Bias
get_device 3 other papers
3 dated earlier
2104.09125 (2021-04)
SAPE: Spatially-Adaptive Progressive Encoding for Neural Optimization
2201.13168 (2022-01)
SPAGHETTI: Editing Implicit Shapes Through Part Aware Generation
2309.17430 (2023-09)
FACTS: First Amplify Correlations and Then Slice to Discover Bias
add_period 2 other papers
2 dated earlier
2111.09734 (2021-11)
ClipCap: CLIP Prefix for Image Captioning
2211.11694 (2022-11)
Exploring Discrete Diffusion Models for Image Captioning
get_image 2 other papers
2 dated earlier
2111.09734 (2021-11)
ClipCap: CLIP Prefix for Image Captioning
2211.11694 (2022-11)
Exploring Discrete Diffusion Models for Image Captioning
thread 2 other papers
2 dated earlier
2111.09734 (2021-11)
ClipCap: CLIP Prefix for Image Captioning
2211.11694 (2022-11)
Exploring Discrete Diffusion Models for Image Captioning
get_object_phrase 1 other paper
1 dated earlier
2410.08021 (2024-10)
OneRef: Unified One-tower Expression Grounding and Segmentation with Mask Referring Modeling
get_predicate_phrase 1 other paper
1 dated earlier
2410.08021 (2024-10)
OneRef: Unified One-tower Expression Grounding and Segmentation with Mask Referring Modeling
get_subject_phrase 1 other paper
1 dated earlier
2410.08021 (2024-10)
OneRef: Unified One-tower Expression Grounding and Segmentation with Mask Referring Modeling

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, also known as Referring Expression Comprehension and Phrase Grounding, aims to ground the specific region(s) within the image(s) based on the given expression text. This task simulates the common referential relationships between visual and linguistic modalities, enabling machines to develop human-like multimodal comprehension capabilities. Consequently, it has extensive applications in various domains. However, since 2021, visual grounding has witnessed significant advancements, with emerging new concepts such as grounded pre-training, grounding multimodal LLMs, generalized visual grounding, and giga-pixel grounding, which have brought numerous new challenges. In this survey, we first examine the developmental history of visual grounding and provide an overview of essential background knowledge. We systematically track and summarize the advancements, and then meticulously define and organize the various settings to standardize future research and ensure a fair comparison. Additionally, we delve into numerous related datasets and applications, and highlight several advanced topics. Finally, we outline the challenges confronting visual grounding and propose valuable directions for future research, which may serve as inspiration for subsequent researchers. By extracting common technical details, this survey encompasses the representative work in each subtopic over the past decade. To the best of our knowledge, this paper represents the most comprehensive overview currently available in the field of visual grounding. This survey is designed to be suitable for both beginners and experienced researchers, serving as an invaluable resource for understanding key concepts and tracking the latest research developments. We keep tracing related work at https://github.com/linhuixiao/Awesome-Visual-Grounding.

For agents

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

get_harvested_code_for_paper("2412.20206")
get_code_for_paper("2412.20206")
have("2412.20206")

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

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

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

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

Connect an agent — have() is free.