SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2004.13931 · ACL · 2020

Span-based Localizing Network for Natural Language Video Localization

Joey Zhou, Hao Zhang, Wei Jing, Aixin Sun, Feature Encoder

arXiv · PDF · Open in the Atlas

Code that ran

5 of 8 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, 0 violated it and 4 have no contract verdict; 0 failures of our instrument; 3 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/2004.13931.json · badge: /api/ran/2004.13931.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
IsaacChanghau/VSLNet canonical (classifier label)
classifier basis: census
5 ran · 3 no recorded run
FunctionStatusWhere it lives
crosscheck_videos Ran
ran on a synthesized input
IsaacChanghau/VSLNet/prepare/download_activitynet_video.py
code served (permissive licence) · get_code("643e5c0498d8393e")
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 os
import glob
import tempfile
import shutil

# Create a temporary directory with some mock video files
temp_dir = tempfile.mkdtemp()

# Create some mock .mp4 files with different naming formats
# Format 1: 13 character basename (2 char prefix + 11 char ID)
with open(os.path.join(temp_dir, 'xx12345678901.mp4'), 'w') as f:
    f.write('')

# Format 2: 11 character basename (direct ID)
with open(os.path.join(temp_dir, '12345678902.mp4'), 'w') as f:
    f.write('')

with open(os.path.join(temp_dir, '12345678903.mp4'), 'w') as f:
    f.write('')

# Create a list of all video IDs we're checking for
all_video_ids = [
    '12345678901',  # Exists (from 13-char format: xx12345678901.mp4)
    '12345678902',  # Exists (from 11-char format)
    '12345678904',  # Does not exist
    '12345678905',  # Does not exist
]

ARGS = {
    'video_path': temp_dir,
    'all_video_ids': all_video_ids,
}
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
get_shape_list Ran
ran on a synthesized input
IsaacChanghau/VSLNet/model/ops.py
code served (permissive licence) · get_code("9eb82fd2ed0c768d")
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 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 tensorflow as tf

# Create a TensorFlow tensor with a known shape
# Using a tensor with some static and potentially dynamic dimensions
tensor = tf.constant([[1.0, 2.0, 3.0, 4.0],
                       [5.0, 6.0, 7.0, 8.0]])

ARGS = {
    "tensor": tensor
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
tensorflow — 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 int — 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_images Ran
ran on a synthesized input
IsaacChanghau/VSLNet/prepare/extract_activitynet.py
code served (permissive licence) · get_code("2b9cf698c6fbf32b")
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. 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 os
import cv2
import numpy as np
import tempfile

# Create a temporary directory with test image files
temp_dir = tempfile.mkdtemp()

# Create dummy image files for testing
vid = "test_video"
for frame_idx in range(5):
    # Create a simple dummy image (numpy array)
    dummy_image = np.random.randint(0, 255, (480, 640, 3), dtype=np.uint8)
    filename = os.path.join(temp_dir, '{}-{}.jpg'.format(vid, str(frame_idx).zfill(6)))
    cv2.imwrite(filename, dummy_image)

ARGS = {
    'img_dir': temp_dir,
    'vid': 'test_video',
    'start_frame': 0,
    'lengths': 3
}
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 tuple — a tuple output has no array shape of its own; none is 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
mask_logits Ran
ran, honoured the contract we drafted
IsaacChanghau/VSLNet/model/layers_t7.py
pointer only (licence: MIT); the stored copy get_code serves, from mingyao1120/TR-DETR, is pointer only (licence: NOASSERTION) · get_code("60df4d5a1eee1b92")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from mingyao1120/TR-DETR, and GitHub could not classify the licence of that repository (NOASSERTION). 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.

mask_logits Ran
ran on a synthesized input
IsaacChanghau/VSLNet/model/ops.py
code served (permissive licence) · get_code("e168b7ed17766ce5")
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 EagerTensor, ndim 2, dtype family float, shape (2, 4) 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 tensorflow as tf
import numpy as np

# Create small test tensors
inputs = tf.constant([
    [1.0, 2.0, 3.0, 4.0],
    [5.0, 6.0, 7.0, 8.0]
], dtype=tf.float32)

mask = tf.constant([
    [1.0, 0.0, 1.0, 0.0],
    [0.0, 1.0, 0.0, 1.0]
], dtype=tf.float32)

mask_value = -1e30

ARGS = {
    "inputs": inputs,
    "mask": mask,
    "mask_value": mask_value
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type EagerTensor, ndim 2, dtype family float, shape (2, 4) — shape (2, 4) 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
count_params Not yet run
unverified (harvested, no recorded run)
IsaacChanghau/VSLNet/model/ops.py
code served (permissive licence) · get_code("4e202cca8e3ea3af")
How it ran

no invocation recorded.

extract_features Not yet run
unverified (harvested, no recorded run)
IsaacChanghau/VSLNet/prepare/extract_activitynet.py
code served (permissive licence) · get_code("165f82154890ed43")
How it ran

no invocation recorded.

word_embedding_lookup Not yet run
unverified (harvested, no recorded run)
IsaacChanghau/VSLNet/model/layers.py
code served (permissive licence) · get_code("6c360dafe2114a71")
How it ran

no invocation recorded.

Also present in other papers' code

Of 8 samples lifted from this paper's linked repositories, 8 carry a function identity and 0 do not. Of the 8 distinct functions with an identity, 1 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 1 later) and 7 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
mask_logits 5 other papers
5 later · 1 only as an assembly brick
2207.00383 (2022-07)
ReLER@ZJU-Alibaba Submission to the Ego4D Natural Language Queries Challenge 2022
2301.00746 (2023-01)
NaQ: Leveraging Narrations as Queries to Supervise Episodic Memory
2307.16715 (2023-07)
UniVTG: Towards Unified Video-Language Temporal Grounding
and 2 more not named here

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

Given an untrimmed video and a text query, natural language video localization (NLVL) is to locate a matching span from the video that semantically corresponds to the query. Existing solutions formulate NLVL either as a ranking task and apply multimodal matching architecture, or as a regression task to directly regress the target video span. In this work, we address NLVL task with a span-based QA approach by treating the input video as text passage. We propose a video span localizing network (VSLNet), on top of the standard span-based QA framework, to address NLVL. The proposed VSLNet tackles the differences between NLVL and span-based QA through a simple and yet effective query-guided highlighting (QGH) strategy. The QGH guides VSLNet to search for matching video span within a highlighted region. Through extensive experiments on three benchmark datasets, we show that the proposed VSLNet outperforms the state-of-the-art methods; and adopting span-based QA framework is a promising direction to solve NLVL. 1

For agents

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

get_harvested_code_for_paper("2004.13931")
get_code_for_paper("2004.13931")
have("2004.13931")

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

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

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

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

Connect an agent — have() is free.