SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2312.17235 · 2023

A Simple LLM Framework for Long-Range Video Question-Answering

arXiv · PDF · Open in the Atlas

Code that ran

6 of 6 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; 2 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 4 failures 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/2312.17235.json · badge: /api/ran/2312.17235.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
ceezh/llovi canonical (classifier label)
classifier basis: census
6 ran · 0 no recorded run
FunctionStatusWhere it lives
build_fewshot_examples Ran
ran; our contract draft was wrong, not the code
ceezh/llovi/util.py
code served (permissive licence) · get_code("a16cc02636239688")
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 JSON files for qa_path and data_path
temp_dir = tempfile.mkdtemp()

# Create qa.json with question-answer examples
qa_data = {
    "uid_001": {
        "question": "What is the capital of France?",
        "0": "London",
        "1": "Paris",
        "2": "Berlin",
        "3": "Madrid",
        "4": "Rome",
        "truth": 1
    },
    "uid_002": {
        "question": "What is the largest planet?",
        "0": "Earth",
        "1": "Mars",
        "2": "Jupiter",
        "3": "Saturn",
        "4": "Venus",
        "truth": 2
    }
}

qa_path = os.path.join(temp_dir, "qa.json")
with open(qa_path, 'w') as f:
    json.dump(qa_data, f)

# Create data.json with descriptions
data = {
    "uid_001": ["France is a country in Europe", "It is known for the Eiffel Tower"],
    "uid_002": "Jupiter is the largest planet in our solar system"
}

data_path = os.path.join(temp_dir, "data.json")
with open(data_path, 'w') as f:
    json.dump(data, f)

ARGS = {
    "qa_path": qa_path,
    "data_path": data_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
first_char_as_answer Ran
ran, honoured the contract we drafted
ceezh/llovi/prompts.py
code served (permissive licence) · get_code("4c7e348b2c9eac20")
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 torch

def first_char_as_answer(res):
    mapping = {'A': 0, 'B': 1, 'C': 2, 'D': 3, 'E': 4}
    if len(res) == 0:
        return -1
    if res[0] in mapping:
        return mapping[res[0]]
    return -1

ARGS = {
    'res': 'A'
}
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 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
first_char_as_answer_raw Ran
ran; our contract draft was wrong, not the code
ceezh/llovi/prompts.py
code served (permissive licence) · get_code("544bdde34ff89202")
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 random

def first_char_as_answer_raw(res):
    candidates = ['A', 'B', 'C', 'D']
    if len(res) == 0:
        return random.choice(candidates)
    if res[0] in candidates:
        return res[0]
    return random.choice(candidates)

# Setup code
ARGS = {
    'res': 'ABC'
}
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
identity Ran
ran, honoured the contract we drafted
ceezh/llovi/prompts.py
code served (permissive licence) · get_code("036725c05a3d96f8")
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 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 torch.nn as nn
import numpy as np

torch.manual_seed(0)

# The identity function simply returns its input
# So res can be any value - let's use a simple tensor
res = torch.randn(2, 4)

ARGS = {
    "res": res
}
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 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
load_json Ran
ran; our contract draft was wrong, not the code
ceezh/llovi/util.py
code served (permissive licence) · get_code("658682feda4928a2")
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 with test data
temp_dir = tempfile.mkdtemp()
test_file = os.path.join(temp_dir, 'test_data.json')

test_data = {
    "key1": "value1",
    "key2": [1, 2, 3],
    "key3": {"nested": "object"}
}

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

ARGS = {
    'fn': test_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_pkl Ran
ran; our contract draft was wrong, not the code
ceezh/llovi/util.py
code served (permissive licence) · get_code("8080055de6293a6b")
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 pickle file with some test data
test_data = {
    'key1': 'value1',
    'key2': [1, 2, 3],
    'key3': {'nested': 'dict'}
}

# Create a temporary file
temp_dir = tempfile.gettempdir()
temp_file = os.path.join(temp_dir, 'test_data.pkl')

# Write the pickle file
with open(temp_file, 'wb') as f:
    pickle.dump(test_data, f)

# Define arguments for load_pkl
ARGS = {
    'fn': 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

Also present in other papers' code

Of 6 samples lifted from this paper's linked repositories, 6 carry a function identity and 0 do not. Of the 6 distinct functions with an identity, 6 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 6 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
identity 5 other papers
5 later
2024.emnlp-main.1209 (2024 (year only))
A Simple LLM Framework for Long-Range Video Question-Answering
2403.14622 (2024-03)
Language Repository for Long Video Understanding
2405.19209 (2024-05)
VideoTree: Adaptive Tree-based Video Representation for LLM Reasoning on Long Videos
and 2 more not named here
load_json 5 other papers
5 later
2024.emnlp-main.1209 (2024 (year only))
A Simple LLM Framework for Long-Range Video Question-Answering
2403.14622 (2024-03)
Language Repository for Long Video Understanding
2405.19209 (2024-05)
VideoTree: Adaptive Tree-based Video Representation for LLM Reasoning on Long Videos
and 2 more not named here
load_pkl 5 other papers
5 later
2024.emnlp-main.1209 (2024 (year only))
A Simple LLM Framework for Long-Range Video Question-Answering
2403.14622 (2024-03)
Language Repository for Long Video Understanding
2405.19209 (2024-05)
VideoTree: Adaptive Tree-based Video Representation for LLM Reasoning on Long Videos
and 2 more not named here
build_fewshot_examples 2 other papers
2 later
2024.emnlp-main.1209 (2024 (year only))
A Simple LLM Framework for Long-Range Video Question-Answering
2405.19209 (2024-05)
VideoTree: Adaptive Tree-based Video Representation for LLM Reasoning on Long Videos
first_char_as_answer 1 other paper
1 later
2024.emnlp-main.1209 (2024 (year only))
A Simple LLM Framework for Long-Range Video Question-Answering
first_char_as_answer_raw 1 other paper
1 later
2024.emnlp-main.1209 (2024 (year only))
A Simple LLM Framework for Long-Range Video Question-Answering

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

We present LLoVi, a language-based framework for long-range video question-answering (LVQA). Unlike prior long-range video understanding methods, which are often costly and require specialized long-range video modeling design (e.g., memory queues, state-space layers, etc.), our approach uses a frame/clip-level visual captioner (e.g., BLIP2, LaViLa, LLaVA) coupled with a Large Language Model (GPT-3.5, GPT-4) leading to a simple yet surprisingly effective LVQA framework. Specifically, we decompose short and long-range modeling aspects of LVQA into two stages. First, we use a short-term visual captioner to generate textual descriptions of short video clips (0.5-8s in length) densely sampled from a long input video. Afterward, an LLM aggregates the densely extracted short-term captions to perform long-range temporal reasoning needed to understand the whole video and answer a question. To analyze what makes our simple framework so effective, we thoroughly evaluate various components of our system. Our empirical analysis reveals that the choice of the visual captioner and LLM is critical for good LVQA performance. Furthermore, we show that a specialized prompt that asks the LLM first to summarize the noisy short-term visual captions and then answer a given input question leads to a significant LVQA performance boost. On EgoSchema, which is best known as a very long-form video question-answering benchmark, our method achieves 50.3% accuracy, outperforming the previous best-performing approach by 18.1% (absolute gain). In addition, our approach outperforms the previous state-of-the-art by 4.1% and 3.1% on NeXT-QA and IntentQA. We also extend LLoVi to grounded LVQA and show that it outperforms all prior methods on the NeXT-GQA dataset. We will release our code at https://github.com/CeeZh/LLoVi.

For agents

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

get_harvested_code_for_paper("2312.17235")
get_code_for_paper("2312.17235")
have("2312.17235")

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

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

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

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

Connect an agent — have() is free.