SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · Cheng_VindLU_A_Recipe_for_Effective_Video-and-Language_Pretraining_CVPR_2023_paper · CVPR · 2023

VINDLU : A Recipe for Effective Video-and-Language Pretraining

Gedas Bertasius, Mohit Bansal, Jie Lei, Feng Cheng, David Crandall, Xizi Wang

Open in the Atlas

Code that ran

4 of 4 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, 1 violated it and 2 have no contract verdict; 1 failure of our instrument; 0 no recorded run), measured 2026-11-24; 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/Cheng_VindLU_A_Recipe_for_Effective_Video-and-Language_Pretraining_CVPR_2023_paper.json · badge: /api/ran/Cheng_VindLU_A_Recipe_for_Effective_Video-and-Language_Pretraining_CVPR_2023_paper.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
klauscc/VindLU canonical (classifier label)
classifier basis: census
4 ran · 0 no recorded run
FunctionStatusWhere it lives
get_sim Ran
ran on a synthesized input
klauscc/VindLU/models/criterions.py
code served (permissive licence) · get_code("431de8c91d7b558f")
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 torch
import torch.nn.functional as F

torch.manual_seed(0)

# vision_proj: Shape [B, T, C] where B=batch, T=temporal, C=channels
# Let's use B=2, T=3, C=4
vision_proj = torch.randn(2, 3, 4)

# text_proj: Shape [B, C] where B=batch, C=channels
# Let's use B=2, C=4
text_proj = torch.randn(2, 4)

# temp: scalar temperature parameter
temp = 1.0

ARGS = {
    "vision_proj": vision_proj,
    "text_proj": text_proj,
    "temp": temp,
}
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 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
interpolate_pos_embed Ran
ran on a synthesized input
klauscc/VindLU/models/utils.py
code served (permissive licence) · get_code("dbd049b02a63c3a1")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 3, dtype family float, shape (1, 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 torch
import torch.nn.functional as F

torch.manual_seed(0)

# Test case 1: Different sizes (interpolation needed)
# Old embedding: 1 sequence, 9 patches (3x3 grid) + 1 extra token, embedding dim 4
embedding_size = 4
num_extra_tokens = 1
orig_size = 3
num_patches_old = orig_size * orig_size  # 9
L_old = num_extra_tokens + num_patches_old  # 10

pos_embed_old = torch.randn(1, L_old, embedding_size)

# New embedding: same structure but different patch grid (2x2 = 4 patches)
new_size = 2
num_patches_new = new_size * new_size  # 4
L_new = num_extra_tokens + num_patches_new  # 5

pos_embed_new = torch.randn(1, L_new, embedding_size)

ARGS = {
    "pos_embed_old": pos_embed_old,
    "pos_embed_new": pos_embed_new,
    "num_patches_new": num_patches_new,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 3, dtype family float, shape (1, 5, 4) — shape (1, 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
interpolate_temporal_pos_embed Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
klauscc/VindLU/models/utils.py
code served (permissive licence) · get_code("f64c56c357505158")
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 4, dtype family float, shape (1, 8, 1, 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 torch.nn.functional as F

torch.manual_seed(0)

# temp_embed_old should be shape (1, num_frames_old, 1, d)
# Let's use num_frames_old=5, d=4
num_frames_old = 5
d = 4
temp_embed_old = torch.randn(1, num_frames_old, 1, d)

# num_frames_new is the target number of frames
num_frames_new = 8

ARGS = {
    "temp_embed_old": temp_embed_old,
    "num_frames_new": num_frames_new,
}
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 4, dtype family float, shape (1, 8, 1, 4) — shape (1, 8, 1, 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
load_temp_embed_with_mismatch Ran
ran, violated the contract we drafted
klauscc/VindLU/models/utils.py
pointer only (licence: MIT); the stored copy get_code serves, from yellow-binary-tree/hawkeye, is pointer only (licence: NONE) · get_code("5349fd1148712a53")
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 yellow-binary-tree/hawkeye, 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.

Also present in other papers' code

Of 4 samples lifted from this paper's linked repositories, 4 carry a function identity and 0 do not. Of the 4 distinct functions with an identity, 4 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 2 later) and 0 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
interpolate_temporal_pos_embed 5 other papers
2 later, 3 same year, order not determinable
2301.02074 (2023-01)
Test of Time: Instilling Video-Language Models with a Sense of Time
2303.16058 (2023-03)
Unmasked Teacher: Towards Training-Efficient Video Foundation Models
2311.17005 (2023-11)
MVBench: A Comprehensive Multi-modal Video Understanding Benchmark
and 2 more not named here
load_temp_embed_with_mismatch 4 other papers
2 later, 2 same year, order not determinable
2303.16058 (2023-03)
Unmasked Teacher: Towards Training-Efficient Video Foundation Models
2311.17005 (2023-11)
MVBench: A Comprehensive Multi-modal Video Understanding Benchmark
2403.10228 (2024-03)
HawkEye: Training Video-Text LLMs for Grounding Text in Videos
and 1 more not named here
get_sim 1 other paper
1 same year, order not determinable
2303.16058 (2023-03)
Unmasked Teacher: Towards Training-Efficient Video Foundation Models
interpolate_pos_embed 1 other paper
1 same year, order not determinable
2303.16058 (2023-03)
Unmasked Teacher: Towards Training-Efficient Video Foundation Models

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

Repositories linked to this paper

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

Abstract

The last several years have witnessed remarkable progress in video-and-language (VidL) understanding. However, most modern VidL approaches use complex and specialized model architectures and sophisticated pretraining protocols, making the reproducibility, analysis and comparisons of these frameworks difficult. Hence, instead of proposing yet another new VidL model, this paper conducts a thorough empirical study demystifying the most important factors in the VidL model design. Among the factors that we investigate are (i) the spatiotemporal architecture design, (ii) the multimodal fusion schemes, (iii) the pretraining objectives, (iv) the choice of pretraining data, (v) pretraining and finetuning protocols, and (vi) dataset and model scaling. Our empirical study reveals that the most important design factors include: temporal modeling, video-to-text multimodal fusion, masked modeling objectives, and joint training on images and videos. Using these empirical insights, we then develop a step-by-step recipe, dubbed VINDLU, for effective VidL pretraining. Our final model trained using our recipe achieves comparable or better than state-ofthe-art results on several VidL tasks without relying on external CLIP pretraining. In particular, on the text-to-video retrieval task, our approach obtains 61.2% on DiDeMo, and 55.0% on ActivityNet, outperforming current SOTA by 7.8% and 6.1% respectively. Furthermore, our model also obtains state-of-the-art video question-answering results on ActivityNet-QA, MSRVTT-QA, MSRVTT-MC and TVQA. Our code and pretrained models are publicly available at: https://github.com/klauscc/VindLU .

For agents

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

get_harvested_code_for_paper("Cheng_VindLU_A_Recipe_for_Effective_Video-and-Language_Pretraining_CVPR_2023_paper")
get_code_for_paper("Cheng_VindLU_A_Recipe_for_Effective_Video-and-Language_Pretraining_CVPR_2023_paper")
have("Cheng_VindLU_A_Recipe_for_Effective_Video-and-Language_Pretraining_CVPR_2023_paper")

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

curl https://syntology.ai/api/ran/Cheng_VindLU_A_Recipe_for_Effective_Video-and-Language_Pretraining_CVPR_2023_paper.json

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

[![Syntology run record](https://syntology.ai/api/ran/Cheng_VindLU_A_Recipe_for_Effective_Video-and-Language_Pretraining_CVPR_2023_paper.svg)](https://syntology.ai/paper/Cheng_VindLU_A_Recipe_for_Effective_Video-and-Language_Pretraining_CVPR_2023_paper)

Connect an agent — have() is free.