SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2207.00383 · 2022

ReLER@ZJU-Alibaba Submission to the Ego4D Natural Language Queries Challenge 2022

arXiv · PDF · Open in the Atlas

Code that ran

17 of 19 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; 4 honoured the contract we drafted, 0 violated it and 10 have no contract verdict; 3 failures of our instrument; 2 no recorded run); 1 of them was also run on the host, not in the jail, by the peer-agreement lane that set its level, 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/2207.00383.json · badge: /api/ran/2207.00383.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
nnnnai/ego4d_nlq_2022_1st_place_solution canonical (classifier label)
classifier basis not recorded on the link
17 ran · 2 no recorded run
FunctionStatusWhere it lives
swish Ran
ran; our contract draft was wrong, not the code
nnnnai/ego4d_nlq_2022_1st_place_solution/ms_cm/bert_layers.py
code served (permissive licence) · get_code("0f786c407fb1ee4c")
How it ran

Ran in Syntology's jail on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) and returned Tensor, ndim 2, dtype family float, shape (2, 4) as a later run recorded it. The image it ran in was not recorded. The comparison behind this sample's level is a different run: the peer-agreement lane ran it again on the host, not in the jail (report dated 2026-09-04T22:33:52Z). 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 swish takes a single parameter 'x' which is used with:
# - torch.sigmoid(x) - requires a tensor
# - x * ... - requires a tensor that supports multiplication
# So x should be a tensor

x = torch.randn(2, 4)

ARGS = {
    "x": x
}
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 Tensor, 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
compute_IoU Ran
ran on a synthesized input
nnnnai/ego4d_nlq_2022_1st_place_solution/ms_cm/vslnet_utils/evaluate_ego4d_nlq.py
code served (permissive licence) · get_code("b504027a68e6008e")
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 float64, ndim 0, 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

# Construct valid arguments for compute_IoU
# The function expects pred and gt to be lists of windows (intervals)
# Each window is represented as [start, end]

# Single prediction window and single ground truth window
pred_single = [0.5, 2.5]
gt_single = [1.0, 3.0]

# Multiple prediction windows and multiple ground truth windows
pred_multiple = [[0.5, 2.5], [3.0, 5.0]]
gt_multiple = [[1.0, 3.0], [3.5, 6.0]]

ARGS = {
    "pred": pred_single,
    "gt": gt_single,
}
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 float64, ndim 0, dtype family float — no output shape is stated: observe_signature.py recorded float ndim 0, which disagrees with the fixture run
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_parameters Ran
ran, honoured the contract we drafted
nnnnai/ego4d_nlq_2022_1st_place_solution/utils/model_utils.py
pointer only (licence: MIT); the stored copy get_code serves, from Zhuo-Cao/QV-M2, is pointer only (licence: NONE) · get_code("edb929dece68582e")
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 Zhuo-Cao/QV-M2, 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.

extract_index Ran
ran on a synthesized input
nnnnai/ego4d_nlq_2022_1st_place_solution/ms_cm/train_ego4d_slowfast.py
code served (permissive licence) · get_code("27d5aa25eb321b6b")
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 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 torch
import torch.nn as nn

torch.manual_seed(0)

# The function expects:
# - start_logits: a tensor of shape (batch_size, sequence_length)
# - end_logits: a tensor of shape (batch_size, sequence_length)

batch_size = 2
sequence_length = 4

start_logits = torch.randn(batch_size, sequence_length)
end_logits = torch.randn(batch_size, sequence_length)

ARGS = {
    "start_logits": start_logits,
    "end_logits": end_logits,
}
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 tuple, ndim 3, 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
filter_glove_embedding Ran
ran on a synthesized input
nnnnai/ego4d_nlq_2022_1st_place_solution/ms_cm/vslnet_utils/data_gen_ego4d.py
code served (permissive licence) · get_code("094900ebac5a22d2")
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 2, dtype family float, shape (5, 300) 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 codecs
import numpy as np
import tempfile
import os

# Create a temporary GloVe-format file for testing
temp_dir = tempfile.mkdtemp()
glove_path = os.path.join(temp_dir, "glove.txt")

# Write a small test GloVe file with the correct format
# Format: word followed by 300 float values
with open(glove_path, 'w', encoding='utf-8') as f:
    # Write some valid entries (word + 300 values)
    f.write("the " + " ".join([str(0.1 * i) for i in range(300)]) + "\n")
    f.write("and " + " ".join([str(0.2 * i) for i in range(300)]) + "\n")
    f.write("of " + " ".join([str(0.3 * i) for i in range(300)]) + "\n")
    # Write an invalid entry (wrong number of values)
    f.write("invalid_word " + " ".join([str(0.1) for _ in range(50)]) + "\n")
    # Write another valid entry
    f.write("a " + " ".join([str(0.4 * i) for i in range(300)]) + "\n")

# Create a word_dict with indices for words that exist in the GloVe file
word_dict = {
    "the": 0,
    "and": 1,
    "of": 2,
    "a": 3,
    "unknown": 4
}

ARGS = {
    "word_dict": word_dict,
    "glove_path": glove_path
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, tqdm — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 2, dtype family float, shape (5, 300) — shape (5, 300) 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
gelu Ran
ran, honoured the contract we drafted
nnnnai/ego4d_nlq_2022_1st_place_solution/ms_cm/bert_layers.py
code served (permissive licence) · get_code("c2f0705ed8e6f7e6")
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 Tensor, 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 torch
import math

torch.manual_seed(0)

# The gelu function takes a single parameter 'x' which should be a tensor
# The function applies element-wise operations: multiplication, addition, torch.erf, and division
# So x should be a torch.Tensor

x = torch.randn(2, 4)

ARGS = {
    "x": x
}
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 Tensor, 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
get_nearest_frame Ran
ran on a synthesized input
nnnnai/ego4d_nlq_2022_1st_place_solution/ms_cm/vslnet_utils/prepare_ego4d_dataset.py
code served (permissive licence) · get_code("8981315bccaefd02")
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 math

ARGS = {
    "time": 5.5,
    "floor_or_ceil": math.floor,
}
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 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
index_to_time Ran
ran, honoured the contract we drafted
nnnnai/ego4d_nlq_2022_1st_place_solution/ms_cm/inference_ego4d_slowfast.py
pointer only (licence: MIT); the stored copy get_code serves, from qzhb/BSSARD, is pointer only (licence: NONE) · get_code("5afa136a77ba325a")
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 qzhb/BSSARD, 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.

load_glove Ran
ran on a synthesized input
nnnnai/ego4d_nlq_2022_1st_place_solution/ms_cm/vslnet_utils/data_gen_ego4d.py
code served (permissive licence) · get_code("623b22c7208a83a3")
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 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 tempfile
import os

# Create a temporary GloVe file for testing
temp_dir = tempfile.mkdtemp()
glove_path = os.path.join(temp_dir, "glove.txt")

# Write a small sample GloVe file with proper formatting
# GloVe format: word followed by 300 dimensions
with open(glove_path, 'w', encoding='utf-8') as f:
    # Valid entries (word + 300 floats = 301 tokens when split)
    f.write("the " + " ".join(["0.1"] * 300) + "\n")
    f.write("a " + " ".join(["0.2"] * 300) + "\n")
    f.write("and " + " ".join(["0.3"] * 300) + "\n")
    # Invalid entries (should be skipped due to len(line) == 2 or len(line) != 301)
    f.write("invalid_short\n")
    f.write("bad " + " ".join(["0.4"] * 299) + "\n")

ARGS = {
    "glove_path": glove_path
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
tqdm — 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
load_json Ran
ran; our contract draft was wrong, not the code
nnnnai/ego4d_nlq_2022_1st_place_solution/ms_cm/vslnet_utils.py
pointer only (licence: MIT); the stored copy get_code serves, from Alvin-Zeng/temporal-robustness-benchmark, is pointer only (licence: NONE) · get_code("a8ccf61e0ee23809")
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 Alvin-Zeng/temporal-robustness-benchmark, 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.

load_lines Ran
ran on a synthesized input
nnnnai/ego4d_nlq_2022_1st_place_solution/ms_cm/vslnet_utils.py
code served (permissive licence) · get_code("f319d88d5afe29f2")
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 tempfile
import os

# Create a temporary file with some test content
temp_file = tempfile.NamedTemporaryFile(mode='w', encoding='utf-8', delete=False, suffix='.txt')
temp_file.write("line one\n")
temp_file.write("line two\n")
temp_file.write("line three\n")
temp_file.close()

ARGS = {
    'filename': temp_file.name
}
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
nnnnai/ego4d_nlq_2022_1st_place_solution/ms_cm/vslnet_utils.py
code served (permissive licence) · get_code("259b0af842be3b00")
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 pickle
import tempfile
import os

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

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

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

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
mask_logits Ran
ran, honoured the contract we drafted
nnnnai/ego4d_nlq_2022_1st_place_solution/ms_cm/model.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.

prepare_batch_inputs Ran
ran on a synthesized input
nnnnai/ego4d_nlq_2022_1st_place_solution/ms_cm/sw_vs_ego4d_dataset.py
code served (permissive licence) · get_code("fede2bee168d55fb")
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 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 torch
import math

torch.manual_seed(0)

# Create batched model inputs with required structure
batch_size = 2
video_feat_len = 8
video_feat_dim = 4
query_feat_dim = 6
scale_mask_dim = 3

batched_model_inputs = {
    'video_feat': [
        torch.randn(batch_size, video_feat_len, video_feat_dim),  # video features
        torch.ones(batch_size, video_feat_len),  # video mask
        torch.randn(batch_size, scale_mask_dim)  # scale_mask
    ],
    'query_feat': [
        torch.randn(batch_size, 10, query_feat_dim),  # text features
        torch.ones(batch_size, 10)  # text mask
    ],
    'saliency_pos_labels': torch.randint(0, 2, (batch_size, video_feat_len)),
    'saliency_neg_labels': torch.randint(0, 2, (batch_size, video_feat_len)),
    'highlight_label': torch.randint(0, 2, (batch_size, video_feat_len)),
    'NPM_labels': torch.randint(0, 2, (batch_size, 5)),
    'start_label': torch.randint(0, 2, (batch_size, video_feat_len)),
    'end_label': torch.randint(0, 2, (batch_size, video_feat_len))
}

device = 'cpu'
non_blocking = False
cur_scale = 2

ARGS = {
    'batched_model_inputs': batched_model_inputs,
    'device': device,
    'non_blocking': non_blocking,
    'cur_scale': cur_scale
}
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 tuple, ndim 1, 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
process_question Ran
ran on a synthesized input
nnnnai/ego4d_nlq_2022_1st_place_solution/ms_cm/vslnet_utils/prepare_ego4d_dataset.py
code served (permissive licence) · get_code("eff6500b503388a1")
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 process_question(question):
    """Process the question to make it canonical."""
    return question.strip(' ').strip('?').lower() + '?'

ARGS = {
    "question": "  What is this?  "
}
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
reformat_data Ran
ran on a synthesized input
nnnnai/ego4d_nlq_2022_1st_place_solution/ms_cm/vslnet_utils/prepare_ego4d_dataset.py
code served (permissive licence) · get_code("2b49f220ea389d78")
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 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 math

CANONICAL_VIDEO_FPS = 30.0
FEATURE_WINDOW_SIZE = 16.0
FEATURES_PER_SEC = CANONICAL_VIDEO_FPS / FEATURE_WINDOW_SIZE

def get_nearest_frame(time, floor_or_ceil=None):
    """Obtain the nearest frame for a given time, video fps, and feature window."""
    return floor_or_ceil(int(time * CANONICAL_VIDEO_FPS / FEATURE_WINDOW_SIZE))

def process_question(question):
    """Process the question to make it canonical."""
    return question.strip(' ').strip('?').lower() + '?'

def reformat_data(split_data, test_split=False):
    """Convert the format from JSON files."""
    formatted_data = {}
    clip_video_map = {}
    for video_datum in split_data['videos']:
        for clip_datum in video_datum['clips']:
            clip_uid = clip_datum['clip_uid']
            clip_video_map[clip_uid] = (video_datum['video_uid'], clip_datum['video_start_sec'], clip_datum['video_end_sec'])
            clip_duration = clip_datum['video_end_sec'] - clip_datum['video_start_sec']
            num_frames = get_nearest_frame(clip_duration, math.ceil)
            new_dict = {'fps': FEATURES_PER_SEC, 'num_frames': num_frames, 'timestamps': [], 'exact_times': [], 'sentences': [], 'annotation_uids': [], 'query_idx': []}
            for ann_datum in clip_datum['annotations']:
                for index, datum in enumerate(ann_datum['language_queries']):
                    if not test_split:
                        start_time = float(datum['clip_start_sec'])
                        end_time = float(datum['clip_end_sec'])
                    else:
                        start_time = 0.0
                        end_time = 0.0
                    if 'query' not in datum or not datum['query']:
                        continue
                    new_dict['sentences'].append(process_question(datum['query']))
                    new_dict['annotation_uids'].append(ann_datum['annotation_uid'])
                    new_dict['query_idx'].append(index)
                    (new_dict['exact_times'].append([start_time, end_time]),)
                    new_dict['timestamps'].append([get_nearest_frame(start_time, math.floor), get_nearest_frame(end_time, math.ceil)])
            formatted_data[clip_uid] = new_dict
    return (formatted_data, clip_video_map)

split_data = {
    'videos': [
        {
            'video_uid': 'vid_001',
            'clips': [
                {
                    'clip_uid': 'clip_001',
                    'video_start_sec': 0.0,
                    'video_end_sec': 10.0,
                    'annotations': [
                        {
                            'annotation_uid': 'ann_001',
                            'language_queries': [
                                {
                                    'query': 'What is happening?',
                                    'clip_start_sec': '1.0',
                                    'clip_end_sec': '5.0'
                                },
                                {
                                    'query': 'Where is the object?',
                                    'clip_start_sec': '2.0',
                                    'clip_end_sec': '7.0'
                                }
                            ]
                        }
                    ]
                },
                {
                    'clip_uid': 'clip_002',
                    'video_start_sec': 10.0,
                    'video_end_sec': 20.0,
                    'annotations': [
                        {
                            'annotation_uid': 'ann_002',
                            'language_queries': [
                                {
                                    'query': 'Describe the motion',
                                    'clip_start_sec': '11.0',
                                    'clip_end_sec': '15.0'
                                }
                            ]
                        }
                    ]
                }
            ]
        }
    ]
}

ARGS = {
    'split_data': split_data,
    'test_split': False
}
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 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
visual_feature_sampling Ran
ran on a synthesized input
nnnnai/ego4d_nlq_2022_1st_place_solution/ms_cm/sw_vs_ego4d_dataset.py
code served (permissive licence) · get_code("be98c34a85ec275b")
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 2, dtype family float, shape (5, 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 numpy as np

# Create a visual feature array with shape (num_clips, feature_dim)
# Using more clips than max_num_clips to test the downsampling logic
visual_feature = np.random.randn(10, 4).astype(np.float32)

# Set max_num_clips to less than num_clips to trigger downsampling
max_num_clips = 5

ARGS = {
    "visual_feature": visual_feature,
    "max_num_clips": max_num_clips,
}
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 2, dtype family float, shape (5, 4) — shape (5, 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
pad_text_tenor_list Not yet run
unverified (harvested, no recorded run)
nnnnai/ego4d_nlq_2022_1st_place_solution/ms_cm/model.py
code served (permissive licence) · get_code("1407d4bc17dab94d")
How it ran

no invocation recorded.

vocab_emb_gen Not yet run
unverified (harvested, no recorded run)
nnnnai/ego4d_nlq_2022_1st_place_solution/ms_cm/vslnet_utils/data_gen_ego4d.py
code served (permissive licence) · get_code("76e886ecae69991a")
How it ran

no invocation recorded.

Also present in other papers' code

Of 19 samples lifted from this paper's linked repositories, 19 carry a function identity and 0 do not. Of the 19 distinct functions with an identity, 13 are also present in other papers whose code we hold (4 with at least one paper dated earlier, 1 the same month, 13 later) and 6 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
swish 206 other papers
113 dated earlier, 1 the same month, 88 later, 4 same year, order not determinable · 44 only as an assembly brick
1408.5882 (2014-08)
Convolutional Neural Networks for Sentence Classification
1805.12114 (2018-05)
Deep Reinforcement Learning in a Handful of Trials using Probabilistic Dynamics Models
1809.01357 (2018-09)
Zero Shot Learning for Code Education: Rubric Sampling with Deep Learning Inference
and 203 more not named here
gelu 198 other papers
116 dated earlier, 78 later, 4 same year, order not determinable · 32 only as an assembly brick
1408.5882 (2014-08)
Convolutional Neural Networks for Sentence Classification
1810.04805 (2018-10)
BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding
1901.10125 (2019-01)
Glyce: Glyph-vectors for Chinese Character Representations
and 195 more not named here
count_parameters 11 other papers
2 dated earlier, 9 later
2001.09099 (2020-01)
TVR: A Large-Scale Dataset for Video-Subtitle Moment Retrieval
2105.06247 (2021-05)
Video Corpus Moment Retrieval with Contrastive Learning
2301.00746 (2023-01)
NaQ: Leveraging Narrations as Queries to Supervise Episodic Memory
and 8 more not named here
mask_logits 5 other papers
1 dated earlier, 4 later · 1 only as an assembly brick
2004.13931 (2020-04)
Span-based Localizing Network for Natural Language Video Localization
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
index_to_time 2 other papers
2 later
2312.06505 (2023-12)
Grounded Question-Answering in Long Egocentric Videos
2401.07567 (2024-01)
Bias-Conflict Sample Synthesis and Adversarial Removal Debias Strategy for Temporal Sentence Grounding in Video
load_json 2 other papers
2 later
2301.00746 (2023-01)
NaQ: Leveraging Narrations as Queries to Supervise Episodic Memory
2403.20254 (2024-03)
Benchmarking the Robustness of Temporal Action Detection Models Against Temporal Corruptions
load_pickle 2 other papers
2 later
2301.00746 (2023-01)
NaQ: Leveraging Narrations as Queries to Supervise Episodic Memory
2406.00439 (2024-06)
Learning Manipulation by Predicting Interaction
compute_IoU 1 other paper
1 later
2306.15255 (2023-06)
GroundNLQ @ Ego4D Natural Language Queries Challenge 2023
filter_glove_embedding 1 other paper
1 later
2301.00746 (2023-01)
NaQ: Leveraging Narrations as Queries to Supervise Episodic Memory
load_glove 1 other paper
1 later
2301.00746 (2023-01)
NaQ: Leveraging Narrations as Queries to Supervise Episodic Memory
load_lines 1 other paper
1 later
2301.00746 (2023-01)
NaQ: Leveraging Narrations as Queries to Supervise Episodic Memory
pad_text_tenor_list 1 other paper
1 later
2301.00746 (2023-01)
NaQ: Leveraging Narrations as Queries to Supervise Episodic Memory
vocab_emb_gen 1 other paper
1 later
2301.00746 (2023-01)
NaQ: Leveraging Narrations as Queries to Supervise Episodic Memory

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

In this report, we present the ReLER@ZJU-Alibaba submission to the Ego4D Natural Language Queries (NLQ) Challenge in CVPR 2022. Given a video clip and a text query, the goal of this challenge is to locate a temporal moment of the video clip where the answer to the query can be obtained. To tackle this task, we propose a multi-scale cross-modal transformer and a video frame-level contrastive loss to fully uncover the correlation between language queries and video clips. Besides, we propose two data augmentation strategies to increase the diversity of training samples. The experimental results demonstrate the effectiveness of our method. The final submission ranked first on the leaderboard.

For agents

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

get_harvested_code_for_paper("2207.00383")
get_code_for_paper("2207.00383")
have("2207.00383")

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

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

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

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

Connect an agent — have() is free.