SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2403.02076 · 2024

VTG-GPT: Tuning-Free Zero-Shot Video Temporal Grounding with GPT

arXiv · PDF · Open in the Atlas

Code that ran

9 of 10 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; 1 honoured the contract we drafted, 1 violated it and 0 have no contract verdict; 7 failures of our instrument; 1 no recorded run), measured 2026-11-22; 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/2403.02076.json · badge: /api/ran/2403.02076.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
YoucanBaby/VTG-GPT canonical (classifier label)
classifier basis: census
9 ran · 1 no recorded run
FunctionStatusWhere it lives
computeIoU Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
YoucanBaby/VTG-GPT/minigpt/demo_v2.py
code served (permissive licence) · get_code("f8e4c1c5aac977d6")
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 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

torch.manual_seed(0)

# The function computeIoU takes two bounding boxes
# Each bbox is a tuple/list of 4 elements: (x1, y1, x2, y2)
# representing coordinates of opposite corners

bbox1 = (10, 20, 50, 80)
bbox2 = (30, 40, 70, 100)

ARGS = {
    "bbox1": bbox1,
    "bbox2": bbox2,
}
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 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
compute_temporal_iou_batch_cross Ran
ran, violated the contract we drafted
YoucanBaby/VTG-GPT/standalone_eval/utils.py
code served (permissive licence) · get_code("66a6e11c5d2b4b00")
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 3, dtype family float; 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 numpy as np

# Create sample spans for testing
# spans1: (N, 2) array with N=2 spans
spans1 = np.array([
    [0.0, 0.2],
    [0.5, 1.0]
], dtype=np.float32)

# spans2: (M, 2) array with M=3 spans
spans2 = np.array([
    [0.0, 0.3],
    [0.0, 1.0],
    [0.4, 0.7]
], dtype=np.float32)

ARGS = {
    "spans1": spans1,
    "spans2": spans2
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 3, dtype family float — 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
compute_temporal_iou_batch_paired Ran
ran, honoured the contract we drafted
YoucanBaby/VTG-GPT/standalone_eval/utils.py
code served (permissive licence) · get_code("7069f9c03e6dffb9")
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 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 numpy as np

# Create small sample data for temporal windows
# Each window is represented as [start_time, end_time]
# Create N=2 paired windows for testing

# Predicted windows
pred_windows = np.array([
    [1.0, 5.0],
    [2.0, 7.0]
], dtype=np.float32)

# Ground truth windows
gt_windows = np.array([
    [2.0, 6.0],
    [1.5, 8.0]
], dtype=np.float32)

ARGS = {
    "pred_windows": pred_windows,
    "gt_windows": gt_windows
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, 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
extract_substrings Ran
ran; our contract draft was wrong, not the code
YoucanBaby/VTG-GPT/minigpt/demo_v2.py
code served (permissive licence) · get_code("5c3e6655c3b3e958")
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 list, ndim 1, dtype family float; 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 re

def extract_substrings(string):
    index = string.rfind('}')
    if index != -1:
        string = string[:index + 1]
    pattern = '<p>(.*?)\\}(?!<)'
    matches = re.findall(pattern, string)
    substrings = [match for match in matches]
    return substrings

# Setup code to construct valid arguments
test_string = '<p>hello}</p><p>world}more</p>end}'

ARGS = {
    'string': test_string
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
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 list, ndim 1, dtype family float — a list 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
is_overlapping Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
YoucanBaby/VTG-GPT/minigpt/demo_v2.py
code served (permissive licence) · get_code("37438be3369e6493")
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 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 torch

torch.manual_seed(0)

# Analyze the function: is_overlapping takes two rectangles
# Each rectangle is a tuple/list of 4 values: (x1, y1, x2, y2)
# representing left, top, right, bottom coordinates

# Create two rectangles that overlap
rect1 = (0, 0, 5, 5)  # Rectangle from (0,0) to (5,5)
rect2 = (3, 3, 8, 8)  # Rectangle from (3,3) to (8,8) - overlaps with rect1

ARGS = {
    "rect1": rect1,
    "rect2": rect2,
}
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 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
load_json Ran
ran; our contract draft was wrong, not the code
YoucanBaby/VTG-GPT/standalone_eval/file_utils.py
code served (permissive licence) · get_code("2d946250dd2f5a4f")
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 dict. 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 json
import tempfile
import os

# Create a temporary JSON file to load
temp_dir = tempfile.mkdtemp()
temp_file = os.path.join(temp_dir, "test.json")

# Write a valid JSON file
test_data = {
    "key1": "value1",
    "key2": [1, 2, 3],
    "key3": {"nested": "object"}
}

with open(temp_file, 'w') as f:
    json.dump(test_data, f)

ARGS = {
    "filename": temp_file
}
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 dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict 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
load_jsonl Ran
ran; our contract draft was wrong, not the code
YoucanBaby/VTG-GPT/standalone_eval/file_utils.py
code served (permissive licence) · get_code("f1d1cccccf038785")
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 list, ndim 1, dtype family float; 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 json
import tempfile
import os

# Create a temporary JSONL file with valid data
temp_dir = tempfile.mkdtemp()
temp_file = os.path.join(temp_dir, "test.jsonl")

# Write sample JSONL data
with open(temp_file, 'w') as f:
    f.write(json.dumps({"key": "value1", "number": 1}) + "\n")
    f.write(json.dumps({"key": "value2", "number": 2}) + "\n")
    f.write(json.dumps({"key": "value3", "number": 3}) + "\n")

ARGS = {
    "filename": temp_file
}
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 list, ndim 1, dtype family float — a list 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
load_pickle Ran
ran; our contract draft was wrong, not the code
YoucanBaby/VTG-GPT/standalone_eval/file_utils.py
code served (permissive licence) · get_code("570ad34bd1af44a8")
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 dict. 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 pickle
import tempfile
import os

# Create a temporary file with pickled data
temp_dir = tempfile.mkdtemp()
temp_file = os.path.join(temp_dir, "test.pkl")

# Create some sample data to pickle
sample_data = {
    "key1": "value1",
    "key2": [1, 2, 3],
    "key3": {"nested": "dict"}
}

# Write the pickled data to the temporary file
with open(temp_file, 'wb') as f:
    pickle.dump(sample_data, f)

ARGS = {
    "filename": temp_file
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
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 dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict 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
print_running_time Ran
ran; our contract draft was wrong, not the code
YoucanBaby/VTG-GPT/Baichuan2/rephrase_query.py
code served (permissive licence) · get_code("1cad4da14d13ad59")
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 function. 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 time
from functools import wraps

def print_running_time(name):

    def decorator(func):

        @wraps(func)
        def wrapper(*args, **kwargs):
            start_time = time.time()
            result = func(*args, **kwargs)
            elapsed_time = time.time() - start_time
            print(f'{name}: {elapsed_time:.1f}s')
            return result
        return wrapper
    return decorator


# Create a simple function to decorate for testing
@print_running_time("test_operation")
def sample_function(x, y):
    """Simple function that takes some time"""
    time.sleep(0.01)
    return x + y


ARGS = {
    "name": "test_operation"
}
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 function — a function output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a function 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
chat Not yet run
unverified (harvested, no recorded run)
YoucanBaby/VTG-GPT/Baichuan2/rephrase_query.py
code served (permissive licence) · get_code("2de73df87fce327d")
How it ran

no invocation recorded.

Also present in other papers' code

Of 10 samples lifted from this paper's linked repositories, 10 carry a function identity and 0 do not. Of the 10 distinct functions with an identity, 7 are also present in other papers whose code we hold (6 with at least one paper dated earlier, 0 the same month, 7 later) and 3 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
load_pickle 10 other papers
9 dated earlier, 1 later
2001.09099 (2020-01)
TVR: A Large-Scale Dataset for Video-Subtitle Moment Retrieval
2107.06383 (2021-07)
How Much Can CLIP Benefit Vision-and-Language Tasks?
2023.findings-emnlp.644 (2023 (year only))
VIP5: Towards Multimodal Foundation Models for Recommendation
and 7 more not named here
load_jsonl 8 other papers
6 dated earlier, 2 later
2001.09099 (2020-01)
TVR: A Large-Scale Dataset for Video-Subtitle Moment Retrieval
2107.06383 (2021-07)
How Much Can CLIP Benefit Vision-and-Language Tasks?
2022.findings-emnlp.24 (2022 (year only))
AssistSR: Task-oriented Video Segment Retrieval for Personal AI Assistant
and 5 more not named here
computeIoU 6 other papers
3 dated earlier, 2 later, 1 same year, order not determinable
2310.09478 (2023-10)
MiniGPT-v2: large language model as a unified interface for vision-language multi-task learning
2312.16862 (2023-12)
TinyGPT-V: Efficient Multimodal Large Language Model via Small Backbones
2024.findings-emnlp.803 (2024 (year only))
Cross-modality Information Check for Detecting Jailbreaking in Multimodal Large Language Models
and 3 more not named here
load_json 6 other papers
5 dated earlier, 1 later
2001.09099 (2020-01)
TVR: A Large-Scale Dataset for Video-Subtitle Moment Retrieval
2010.00515 (2020-10)
Linguistic Structure Guided Context Modeling for Referring Image Segmentation
2107.06383 (2021-07)
How Much Can CLIP Benefit Vision-and-Language Tasks?
and 3 more not named here
extract_substrings 5 other papers
4 dated earlier, 1 later
2310.09478 (2023-10)
MiniGPT-v2: large language model as a unified interface for vision-language multi-task learning
2311.15826 (2023-11)
GeoChat: Grounded Large Vision-Language Model for Remote Sensing
2312.16862 (2023-12)
TinyGPT-V: Efficient Multimodal Large Language Model via Small Backbones
and 2 more not named here
is_overlapping 5 other papers
3 dated earlier, 2 later
2310.09478 (2023-10)
MiniGPT-v2: large language model as a unified interface for vision-language multi-task learning
2312.16862 (2023-12)
TinyGPT-V: Efficient Multimodal Large Language Model via Small Backbones
2402.06659 (2024-02)
Shadowcast: Stealthy Data Poisoning Attacks against Vision-Language Models
and 2 more not named here
compute_temporal_iou_batch_paired 1 other paper
1 later
2406.19392 (2024-06)
ReXTime: A Benchmark Suite for Reasoning-Across-Time in Videos

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-22.

Repositories linked to this paper

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

Abstract

Video temporal grounding (VTG) aims to locate specific temporal segments from an untrimmed video based on a linguistic query. Most existing VTG models are trained on extensive annotated video-text pairs, a process that not only introduces human biases from the queries but also incurs significant computational costs. To tackle these challenges, we propose VTG-GPT, a GPT-based method for zero-shot VTG without training or fine-tuning. To reduce prejudice in the original query, we employ Baichuan2 to generate debiased queries. To lessen redundant information in videos, we apply MiniGPT-v2 to transform visual content into more precise captions. Finally, we devise the proposal generator and post-processing to produce accurate segments from debiased queries and image captions. Extensive experiments demonstrate that VTG-GPT significantly outperforms SOTA methods in zero-shot settings and surpasses unsupervised approaches. More notably, it achieves competitive performance comparable to supervised methods. The code is available on https://github.com/YoucanBaby/VTG-GPT

For agents

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

get_harvested_code_for_paper("2403.02076")
get_code_for_paper("2403.02076")
have("2403.02076")

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

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

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

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

Connect an agent — have() is free.