SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2205.10747 · 2022

Language Models with Image Descriptors are Strong Few-Shot Video-Language Learners

arXiv · PDF · Open in the Atlas

Code that ran

7 of 7 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 6 have no contract verdict; 1 failure of our instrument; 0 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/2205.10747.json · badge: /api/ran/2205.10747.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
mikewangwzhl/vidil canonical (classifier label)
classifier basis not recorded on the link
7 ran · 0 no recorded run
FunctionStatusWhere it lives
clean_text Ran
ran on a synthesized input
mikewangwzhl/vidil/eval_video_captioning_results.py
code served (permissive licence) · get_code("1ff44f0d81c9de63")
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.

from collections import defaultdict

ARGS = {
    "text": "Hello world. This is a test sentence.\n\nObjects: some objects here",
    "filter_short_response": False,
    "take_first_sentence": True
}
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 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
itm_eval Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
mikewangwzhl/vidil/eval_retrieval_video.py
code served (permissive licence) · get_code("e19e22cd7641eb82")
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 numpy as np
import torch

torch.manual_seed(0)

# scores_v2t: shape (num_videos, num_texts) - video to text similarity scores
# scores_t2v: shape (num_texts, num_videos) - text to video similarity scores
# txt2vmg: mapping from text index to video index
# vid2txt: mapping from video index to text index

num_videos = 2
num_texts = 3

# Create score matrices
scores_v2t = np.random.rand(num_videos, num_texts).astype(np.float32)
scores_t2v = np.random.rand(num_texts, num_videos).astype(np.float32)

# Create mappings
# vid2txt[i] tells us which text index corresponds to video i
vid2txt = np.array([1, 2], dtype=np.int64)  # video 0 -> text 1, video 1 -> text 2

# txt2vmg[i] tells us which video index corresponds to text i
txt2vmg = np.array([0, 0, 1], dtype=np.int64)  # text 0 -> video 0, text 1 -> video 0, text 2 -> video 1

ARGS = {
    'scores_v2t': scores_v2t,
    'scores_t2v': scores_t2v,
    'txt2vmg': txt2vmg,
    'vid2txt': vid2txt,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — 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_json Ran
ran on a synthesized input
mikewangwzhl/vidil/eval_video_qa_result.py
code served (permissive licence) · get_code("0c5833eaff6e8453")
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
temp_dir = tempfile.gettempdir()
temp_file = os.path.join(temp_dir, "test_load_json.json")

# Write a sample JSON file
test_data = {"key": "value", "number": 42, "list": [1, 2, 3]}
with open(temp_file, 'w') as f:
    json.dump(test_data, f)

# Define arguments
ARGS = {
    "path": 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 on a synthesized input
mikewangwzhl/vidil/eval_video_captioning_results.py
code served (permissive licence) · get_code("8372db08bff4e9da")
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 json
import os

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

# Write sample JSONL data
with open(jsonl_path, 'w') as f:
    f.write(json.dumps({"id": 1, "text": "hello"}) + "\n")
    f.write(json.dumps({"id": 2, "text": "world"}) + "\n")
    f.write(json.dumps({"id": 3, "text": "test"}) + "\n")

ARGS = {
    "jsonl_path": jsonl_path
}
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_jsonl_gt Ran
ran on a synthesized input
mikewangwzhl/vidil/eval_video_qa_result.py
code served (permissive licence) · get_code("9a76f45dd082992d")
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 sample 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({"text": "What is AI?", "answer": "Artificial Intelligence"}) + "\n")
    f.write(json.dumps({"text": "What is ML?", "answer": "Machine Learning"}) + "\n")
    f.write(json.dumps({"text": "What is DL?", "answer": "Deep Learning"}) + "\n")

ARGS = {
    "path": 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_jsonl_results_alpro Ran
ran on a synthesized input
mikewangwzhl/vidil/eval_video_qa_result.py
code served (permissive licence) · get_code("4b6a3cc4d51e1b5a")
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 JSON file with prediction data
temp_dir = tempfile.mkdtemp()
temp_file = os.path.join(temp_dir, "predictions.json")

# Create sample prediction data
predictions = [
    {"question_id": 1, "answer": 0},
    {"question_id": 2, "answer": 1},
    {"question_id": 3, "answer": 2},
]

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

# Create the answer ID to answer text mapping
ansid_2_answer = {
    0: "yes",
    1: "no",
    2: "maybe"
}

ARGS = {
    "path": temp_file,
    "ansid_2_answer": ansid_2_answer
}
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
process_gpt3_response Ran
ran on a synthesized input
mikewangwzhl/vidil/eval_video_captioning_results.py
code served (permissive licence) · get_code("8bcec8d5e1109d19")
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 json
import tempfile
import os

# Create temporary files for the test
temp_dir = tempfile.mkdtemp()

# Create idx_2_videoid mapping
idx_2_videoid = {
    "0": "video_001",
    "1": "video_002",
    "2": "video_003"
}
idx_2_videoid_path = os.path.join(temp_dir, "idx_2_videoid.json")
with open(idx_2_videoid_path, 'w') as f:
    json.dump(idx_2_videoid, f)

# Create response JSONL file
response_jsonl_path = os.path.join(temp_dir, "responses.jsonl")
with open(response_jsonl_path, 'w') as f:
    # First response
    f.write(json.dumps({
        "choices": [
            {"text": "This is a great video showing a cat."},
            {"text": "The video demonstrates a cat jumping."}
        ]
    }) + "\n")
    # Second response
    f.write(json.dumps({
        "choices": [
            {"text": "A dog running in the park.\n\nObjects: dog, tree"},
            {"text": "The scene shows outdoor activity."}
        ]
    }) + "\n")
    # Third response
    f.write(json.dumps({
        "choices": [
            {"text": "Birds flying in the sky.\n\nFrame 1: birds"},
            {"text": "repeated repeated repeated repeated repeated repeated repeated repeated"}
        ]
    }) + "\n")

# Output path for results
output_path = os.path.join(temp_dir, "output.json")

# Define arguments for process_gpt3_response
ARGS = {
    "idx_2_videoid_path": idx_2_videoid_path,
    "response_jsonl_path": response_jsonl_path,
    "output_path": output_path
}
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 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

Also present in other papers' code

Of 7 samples lifted from this paper's linked repositories, 7 carry a function identity and 0 do not. Of the 7 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 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
itm_eval 4 other papers
4 later
2308.10402 (2023-08)
Simple Baselines for Interactive Video Retrieval with Questions and Answers
2309.03874 (2023-09)
Box-based Refinement for Weakly Supervised and Unsupervised Localization Tasks
2310.15061 (2023-10)
The BLA Benchmark: Investigating Basic Language Abilities of Pre-Trained Multimodal Models
and 1 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-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

The goal of this work is to build flexible video-language models that can generalize to various video-to-text tasks from few examples, such as domain-specific captioning, question answering, and future event prediction. Existing few-shot video-language learners focus exclusively on the encoder, resulting in the absence of a video-to-text decoder to handle generative tasks. Video captioners have been pretrained on large-scale video-language datasets, but they rely heavily on finetuning and lack the ability to generate text for unseen tasks in a few-shot setting. We propose VidIL, a few-shot Video-language Learner via Image and Language models, which demonstrates strong performance on few-shot video-to-text tasks without the necessity of pretraining or finetuning on any video datasets. We use the image-language models to translate the video content into frame captions, object, attribute, and event phrases, and compose them into a temporal structure template. We then instruct a language model, with a prompt containing a few in-context examples, to generate a target output from the composed content. The flexibility of prompting allows the model to capture any form of text input, such as automatic speech recognition (ASR) transcripts. Our experiments demonstrate the power of language models in understanding videos on a wide variety of video-language tasks, including video captioning, video question answering, video caption retrieval, and video future event prediction. Especially, on video future event prediction, our few-shot model significantly outperforms state-of-the-art supervised models trained on large-scale video datasets. Code and resources are publicly available for research purposes at https://github.com/MikeWangWZHL/VidIL .

For agents

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

get_harvested_code_for_paper("2205.10747")
get_code_for_paper("2205.10747")
have("2205.10747")

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

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

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

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

Connect an agent — have() is free.