SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2503.06800 · 2025

VideoPhy-2: A Challenging Action-Centric Physical Commonsense Evaluation in Video Generation

arXiv · PDF · Open in the Atlas

Code that ran

15 of 17 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, 1 violated it and 2 have no contract verdict; 11 failures of our instrument; 2 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/2503.06800.json · badge: /api/ran/2503.06800.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
Hritikbansal/videophy community (classifier label)
classifier basis not recorded on the link
15 ran · 2 no recorded run
FunctionStatusWhere it lives
autocontrast_func Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
Hritikbansal/videophy/VIDEOPHY2/data_utils/randaugment.py
code served (permissive licence) · get_code("78ca1debd9c4ed87")
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 ndarray, ndim 3, dtype family int, shape (4, 5, 3) 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 cv2
import numpy as np

# Create a small test image with 3 channels (BGR format for OpenCV)
# Using uint8 dtype as expected by cv2 functions
img = np.random.randint(0, 256, size=(4, 5, 3), dtype=np.uint8)

ARGS = {
    "img": img,
    "cutoff": 0
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
cv2, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 3, dtype family int, shape (4, 5, 3) — shape (4, 5, 3) 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
batchify Ran
ran on a synthesized input
Hritikbansal/videophy/VIDEOPHY2/utils.py
code served (permissive licence) · get_code("8c4acc117a97109b")
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 torch

torch.manual_seed(0)

# Construct a valid batch for the batchify function
batch = [
    {
        'video': torch.randn(2, 3, 4, 4),  # 2 frames, 3 channels, 4x4 spatial
        'videopath': '/path/to/video1.mp4',
        'caption': 'A person walking',
        'text': {
            'input_ids': [101, 2054, 2003, 102, 0],
            'non_padding_mask': [1, 1, 1, 1, 0],
            'non_media_mask': [1, 1, 1, 1, 0],
            'prompt_mask': [0, 0, 1, 1, 0],
        }
    },
    {
        'video': None,
        'videopath': '/path/to/video2.mp4',
        'caption': 'A cat sitting',
        'text': {
            'input_ids': [101, 2054, 2003, 102, 0],
            'non_padding_mask': [1, 1, 1, 1, 0],
            'non_media_mask': [1, 1, 1, 1, 0],
            'prompt_mask': [0, 0, 1, 1, 0],
        }
    }
]

ARGS = {
    'batch': batch
}
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 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
deprecated_api_warning Ran
ran on a synthesized input
Hritikbansal/videophy/VIDEOPHY2/data_utils/registry.py
code served (permissive licence) · get_code("a313547ee87ebfe2")
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 function. 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 warnings
import functools
from inspect import getfullargspec


def deprecated_api_warning(name_dict, cls_name=None):
    """A decorator to check if some arguments are deprecate and try to replace
    deprecate src_arg_name to dst_arg_name.
    Args:
        name_dict(dict):
            key (str): Deprecate argument names.
            val (str): Expected argument names.
    Returns:
        func: New function.
    """

    def api_warning_wrapper(old_func):

        @functools.wraps(old_func)
        def new_func(*args, **kwargs):
            args_info = getfullargspec(old_func)
            func_name = old_func.__name__
            if cls_name is not None:
                func_name = f'{cls_name}.{func_name}'
            if args:
                arg_names = args_info.args[:len(args)]
                for src_arg_name, dst_arg_name in name_dict.items():
                    if src_arg_name in arg_names:
                        warnings.warn(f'"{src_arg_name}" is deprecated in `{func_name}`, please use "{dst_arg_name}" instead', DeprecationWarning)
                        arg_names[arg_names.index(src_arg_name)] = dst_arg_name
            if kwargs:
                for src_arg_name, dst_arg_name in name_dict.items():
                    if src_arg_name in kwargs:
                        assert dst_arg_name not in kwargs, f'The expected behavior is to replace the deprecated key `{src_arg_name}` to new key `{dst_arg_name}`, but got them in the arguments at the same time, which is confusing. `{src_arg_name} will be deprecated in the future, please use `{dst_arg_name}` instead.'
                        warnings.warn(f'"{src_arg_name}" is deprecated in `{func_name}`, please use "{dst_arg_name}" instead', DeprecationWarning)
                        kwargs[dst_arg_name] = kwargs.pop(src_arg_name)
            output = old_func(*args, **kwargs)
            return output
        return new_func
    return api_warning_wrapper


# Test function to be decorated
def sample_function(new_param1, new_param2=None):
    return f"new_param1={new_param1}, new_param2={new_param2}"


ARGS = {
    "name_dict": {
        "old_param1": "new_param1",
        "old_param2": "new_param2"
    },
    "cls_name": "SampleClass"
}
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 function — a function output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a function 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
detokenize_generations Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
Hritikbansal/videophy/VIDEOPHY2/mplug_owl_video/processing_mplug_owl.py
code served (permissive licence) · get_code("45711ccd8932d38a")
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 torch
import numpy as np

torch.manual_seed(0)

class MockTokenizer:
    """Stand-in tokenizer with detokenize method."""
    def detokenize(self, tokens):
        return " ".join([f"token_{t}" for t in tokens])

class MockTokenizerWithDecoder:
    """Stand-in tokenizer with nested tokenizer and decoder."""
    def __init__(self):
        self.tokenizer = self
        self.decoder = {0: 'h', 1: 'e', 2: 'l', 3: 'o'}
        self.byte_decoder = {ord(c): ord(c) for c in 'helo'}
    
    def decode(self, tokens):
        return [self.decoder.get(t, '?') for t in tokens]
    
    def detokenize(self, tokens):
        return " ".join([str(t) for t in tokens])

# Create small GPU tensors (batch size 2, sequence length 4)
tokens_gpu_tensor = torch.tensor([[0, 1, 2, 3], [1, 2, 3, 0]], dtype=torch.long)
lengths_gpu_tensor = torch.tensor([3, 2], dtype=torch.long)

# Create tokenizer
tokenizer = MockTokenizer()

ARGS = {
    "tokens_gpu_tensor": tokens_gpu_tensor,
    "lengths_gpu_tensor": lengths_gpu_tensor,
    "return_segments": False,
    "tokenizer": tokenizer,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, tokenizers, torch — 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
equalize_func Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
Hritikbansal/videophy/VIDEOPHY2/data_utils/randaugment.py
code served (permissive licence) · get_code("4c53169f63a1fcef")
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 ndarray, ndim 3, dtype family int, shape (4, 3, 3) 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 cv2
import numpy as np

# Create a small test image with 3 channels (BGR format for cv2)
# Using uint8 dtype as required by cv2 functions
img = np.random.randint(0, 256, size=(4, 3, 3), dtype=np.uint8)

ARGS = {
    "img": img
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
cv2, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 3, dtype family int, shape (4, 3, 3) — shape (4, 3, 3) 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_cosine_schedule_with_warmup Ran
ran; our contract draft was wrong, not the code
Hritikbansal/videophy/VIDEOPHY2/utils.py
code served (permissive licence) · get_code("97b29adf427aa64e")
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 LambdaLR. 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
import torch.nn as nn
from torch.optim import SGD

torch.manual_seed(0)

# Create a simple model
model = nn.Linear(4, 3)

# Create an optimizer
optimizer = SGD(model.parameters(), lr=0.1)

# Define arguments for the function
ARGS = {
    "optimizer": optimizer,
    "lr": 0.1,
    "min_lr": 0.01,
    "num_warmup_steps": 100,
    "num_training_steps": 1000,
    "num_cycles": 0.5,
    "last_epoch": -1,
}
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 LambdaLR — a LambdaLR output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a LambdaLR 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
get_index Ran
ran, honoured the contract we drafted
Hritikbansal/videophy/VIDEOPHY2/mplug_owl_video/processing_mplug_owl.py
pointer only (licence: MIT); the stored copy get_code serves, from GVCLab/MLLM-4D, is pointer only (licence: NONE) · get_code("65d587525000912a")
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 GVCLab/MLLM-4D, 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.

get_ltor_masks_and_position_ids_from_embeddings Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
Hritikbansal/videophy/VIDEOPHY2/mplug_owl_video/modeling_mplug_owl.py
code served (permissive licence) · get_code("45567e61fe09093a")
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 torch
import torch.nn as nn

torch.manual_seed(0)

# The function expects:
# - data: a tensor with at least 2 dimensions where data.size()[:2] gives (micro_batch_size, seq_length)
#   The function also accesses data.device and data[..., 0]
# Create a small tensor: shape (2, 3, 4) where batch=2, seq_length=3, embedding_dim=4
data = torch.randn(2, 3, 4, device='cpu')

ARGS = {
    'data': data
}
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 — 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
get_media_indices Ran
ran; our contract draft was wrong, not the code
Hritikbansal/videophy/VIDEOPHY2/mplug_owl_video/modeling_mplug_owl.py
code served (permissive licence) · get_code("265f4d55ccd60d18")
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 torch

torch.manual_seed(0)

# The function takes a list (or tensor that can be converted to list)
# It iterates through the list and finds indices where:
# 1. i == 0 and my_list[i] < 0, OR
# 2. my_list[i] != my_list[i-1] and my_list[i] < 0
# So we need a list with some negative values and transitions

my_list = torch.tensor([-1, -1, 2, -3, -3, -5], dtype=torch.float32)

ARGS = {
    "my_list": my_list
}
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 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
get_media_types Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
Hritikbansal/videophy/VIDEOPHY2/mplug_owl_video/modeling_mplug_owl.py
code served (permissive licence) · get_code("752b84a6f01c43d8")
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 2, 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 as nn

torch.manual_seed(0)

# The function get_media_types takes:
# 1. tensors: either a torch.Tensor or something convertible to list
# 2. positions: indices to access elements from tensors

# Create a small tensor (batch=2, dim=4)
tensors = torch.randn(2, 4)

# Create positions list with valid indices
positions = [0, 1]

ARGS = {
    "tensors": tensors,
    "positions": positions,
}
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 list, ndim 2, 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_param_groups Ran
ran; our contract draft was wrong, not the code
Hritikbansal/videophy/VIDEOPHY2/utils.py
code served (permissive licence) · get_code("53b3ed9d6fed2b5f")
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 torch
import torch.nn as nn

torch.manual_seed(0)

# Create a simple model with various parameter types
class SimpleModel(nn.Module):
    def __init__(self):
        super().__init__()
        # Weight matrix (2D, will have weight decay)
        self.linear1 = nn.Linear(4, 3)
        # Bias (1D, no weight decay by default)
        self.linear2 = nn.Linear(3, 2)
        # Batch norm parameters (1D, no weight decay by default)
        self.bn = nn.BatchNorm1d(2)
    
    def forward(self, x):
        x = self.linear1(x)
        x = self.linear2(x)
        x = self.bn(x)
        return x

# Instantiate model
model = SimpleModel()

# Create modules list
modules = [model]

# Define no_weight_decay_cond: returns True if param should NOT have weight decay
# By default: bias params and 1D params should not have weight decay
def no_weight_decay_cond(name, param):
    return name.endswith('.bias') or len(param.shape) == 1

# Define scale_lr_cond: returns True if param should use scaled learning rate
# For example, scale lr for head/classifier layers
def scale_lr_cond(name, param):
    # Scale lr for linear2 (simulating a head layer)
    return 'linear2' in name

# Learning rate multiplier for scaled layers
lr_mult = 0.1

ARGS = {
    'modules': modules,
    'no_weight_decay_cond': no_weight_decay_cond,
    'scale_lr_cond': scale_lr_cond,
    'lr_mult': lr_mult,
}
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 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
identity_func Ran
ran, violated the contract we drafted
Hritikbansal/videophy/VIDEOPHY2/data_utils/randaugment.py
pointer only (licence: MIT); the stored copy get_code serves, from kesenzhao/uv-cot, is pointer only (licence: NONE) · get_code("1dd2ab205689d45b")
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 kesenzhao/uv-cot, 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.

is_seq_of Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
Hritikbansal/videophy/VIDEOPHY2/data_utils/registry.py
code served (permissive licence) · get_code("a8d94a0054408e15")
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 bool, ndim 0, dtype family float, 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
import numpy as np
from collections import abc

torch.manual_seed(0)

# Test case 1: valid sequence of integers
seq1 = [1, 2, 3, 4]
expected_type1 = int
seq_type1 = None

# Test case 2: valid sequence of strings with list type
seq2 = ["a", "b", "c"]
expected_type2 = str
seq_type2 = list

# Test case 3: valid sequence of floats with tuple type
seq3 = (1.0, 2.0, 3.0)
expected_type3 = float
seq_type3 = tuple

# For the primary ARGS, use case 1 as the main example
ARGS = {
    "seq": [1, 2, 3, 4],
    "expected_type": int,
    "seq_type": None
}
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 bool, ndim 0, dtype family float, 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
load_jsonl Ran
ran; our contract draft was wrong, not the code
Hritikbansal/videophy/VIDEOPHY2/data_utils/xgpt3_dataset.py
code served (permissive licence) · get_code("f3a23711c5501382")
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
sample_data = [
    {"id": 1, "text": "hello world"},
    {"id": 2, "text": "foo bar baz"},
    {"id": 3, "text": "test data"}
]

with open(temp_file, 'w', encoding='utf-8') as f:
    for item in sample_data:
        f.write(json.dumps(item) + '\n')

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 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
modify_keys Ran
ran; our contract draft was wrong, not the code
Hritikbansal/videophy/VIDEOPHY2/inference.py
code served (permissive licence) · get_code("6a0269eec408c1b9")
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 defaultdict. 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
import torch.nn as nn
from collections import defaultdict

torch.manual_seed(0)

# Create a state_dict with keys matching the pattern that will be modified
state_dict = {
    'model.language_model.layer.0.q_proj.weight': torch.randn(4, 3),
    'model.language_model.layer.0.v_proj.weight': torch.randn(4, 3),
    'model.language_model.layer.0.k_proj.weight': torch.randn(4, 3),
    'model.language_model.layer.0.o_proj.weight': torch.randn(4, 3),
    'model.language_model.layer.1.gate_proj.weight': torch.randn(4, 3),
    'model.language_model.layer.1.down_proj.weight': torch.randn(4, 3),
    'model.language_model.layer.1.up_proj.weight': torch.randn(4, 3),
    'model.other_layer.weight': torch.randn(4, 3),
    'model.language_model.embedding.weight': torch.randn(4, 3),
}

ARGS = {
    'state_dict': state_dict
}
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 defaultdict — a defaultdict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a defaultdict 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
build_from_cfg Not yet run
unverified (harvested, no recorded run)
Hritikbansal/videophy/VIDEOPHY2/data_utils/registry.py
code served (permissive licence) · get_code("df4a72cfc8859ecd")
How it ran

no invocation recorded.

inference Not yet run
unverified (harvested, no recorded run)
Hritikbansal/videophy/VIDEOPHY2/inference.py
code served (permissive licence) · get_code("dbf18e29c76d1835")
How it ran

no invocation recorded.

Also present in other papers' code

Of 17 samples lifted from this paper's linked repositories, 17 carry a function identity and 0 do not. Of the 17 distinct functions with an identity, 14 are also present in other papers whose code we hold (13 with at least one paper dated earlier, 1 the same month, 5 later) and 3 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
equalize_func 15 other papers
13 dated earlier, 2 later
2001.07685 (2020-01)
FixMatch: Simplifying Semi-Supervised Learning with Consistency and Confidence
2207.05333 (2022-07)
IDEA: Increasing Text Diversity via Online Multi-Label Recognition for Vision-Language Pre-training
and 12 more not named here
identity_func 15 other papers
13 dated earlier, 2 later · 1 only as an assembly brick
2001.07685 (2020-01)
FixMatch: Simplifying Semi-Supervised Learning with Consistency and Confidence
2207.05333 (2022-07)
IDEA: Increasing Text Diversity via Online Multi-Label Recognition for Vision-Language Pre-training
and 12 more not named here
autocontrast_func 12 other papers
11 dated earlier, 1 later
2001.07685 (2020-01)
FixMatch: Simplifying Semi-Supervised Learning with Consistency and Confidence
2207.05333 (2022-07)
IDEA: Increasing Text Diversity via Online Multi-Label Recognition for Vision-Language Pre-training
and 9 more not named here
get_ltor_masks_and_position_ids_from_embeddings 7 other papers
7 dated earlier
2023.findings-emnlp.187 (2023 (year only))
UReader: Universal OCR-free Visually-situated Language Understanding with Multimodal Large Language Model
2302.00402 (2023-02)
mPLUG-2: A Modularized Multi-modal Foundation Model Across Text, Image and Video
2308.06595 (2023-08)
VisIT-Bench: A Benchmark for Vision-Language Instruction Following Inspired by Real-World Use
and 4 more not named here
get_media_indices 6 other papers
6 dated earlier
2302.00402 (2023-02)
mPLUG-2: A Modularized Multi-modal Foundation Model Across Text, Image and Video
2308.06595 (2023-08)
VisIT-Bench: A Benchmark for Vision-Language Instruction Following Inspired by Real-World Use
2312.06742 (2023-12)
Honeybee: Locality-enhanced Projector for Multimodal LLM
and 3 more not named here
detokenize_generations 3 other papers
3 dated earlier
2023.findings-emnlp.187 (2023 (year only))
UReader: Universal OCR-free Visually-situated Language Understanding with Multimodal Large Language Model
2310.05126 (2023-10)
UReader: Universal OCR-free Visually-situated Language Understanding with Multimodal Large Language Model
2403.07350 (2024-03)
VLKEB: A Large Vision-Language Model Knowledge Editing Benchmark
get_cosine_schedule_with_warmup 3 other papers
3 dated earlier
2023.findings-emnlp.187 (2023 (year only))
UReader: Universal OCR-free Visually-situated Language Understanding with Multimodal Large Language Model
2310.05126 (2023-10)
UReader: Universal OCR-free Visually-situated Language Understanding with Multimodal Large Language Model
2403.07350 (2024-03)
VLKEB: A Large Vision-Language Model Knowledge Editing Benchmark
get_index 3 other papers
2 dated earlier, 1 later
2311.10111 (2023-11)
VideoCon: Robust Video-Language Alignment via Contrast Captions
2403.07350 (2024-03)
VLKEB: A Large Vision-Language Model Knowledge Editing Benchmark
2603.00515 (2026-03)
MLLM-4D: Towards Visual-based Spatial-Temporal Intelligence
get_param_groups 3 other papers
3 dated earlier
2023.findings-emnlp.187 (2023 (year only))
UReader: Universal OCR-free Visually-situated Language Understanding with Multimodal Large Language Model
2310.05126 (2023-10)
UReader: Universal OCR-free Visually-situated Language Understanding with Multimodal Large Language Model
2403.07350 (2024-03)
VLKEB: A Large Vision-Language Model Knowledge Editing Benchmark
is_seq_of 3 other papers
2 dated earlier, 1 the same month
2306.13856 (2023-06)
Learning-to-Rank Meets Language: Boosting Language-Driven Ordering Alignment for Ordinal Classification
2402.02500 (2024-02)
Point Cloud Matters: Rethinking the Impact of Different Observation Spaces on Robot Learning
2503.16429 (2025-03)
Sonata: Self-Supervised Learning of Reliable Point Representations
get_media_types 2 other papers
2 dated earlier
2402.09801 (2024-02)
EFUF: Efficient Fine-Grained Unlearning Framework for Mitigating Hallucinations in Multimodal Large Language Models
2403.07350 (2024-03)
VLKEB: A Large Vision-Language Model Knowledge Editing Benchmark
build_from_cfg 1 other paper
1 dated earlier
2410.00263 (2024-10)
Procedure-Aware Surgical Video-language Pretraining with Hierarchical Knowledge Augmentation
load_jsonl 1 other paper
1 dated earlier
2405.03194 (2024-05)
CityLLaVA: Efficient Fine-Tuning for VLMs in City Scenario
modify_keys 1 other paper
1 later
2505.23656 (2025-05)
VideoREPA: Learning Physics for Video Generation through Relational Alignment with 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-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

Large-scale video generative models, capable of creating realistic videos of diverse visual concepts, are strong candidates for general-purpose physical world simulators. However, their adherence to physical commonsense across real-world actions remains unclear (e.g., playing tennis, backflip). Existing benchmarks suffer from limitations such as limited size, lack of human evaluation, sim-to-real gaps, and absence of fine-grained physical rule analysis. To address this, we introduce VideoPhy-2, an action-centric dataset for evaluating physical commonsense in generated videos. We curate 200 diverse actions and detailed prompts for video synthesis from modern generative models. We perform human evaluation that assesses semantic adherence, physical commonsense, and grounding of physical rules in the generated videos. Our findings reveal major shortcomings, with even the best model achieving only 22% joint performance (i.e., high semantic and physical commonsense adherence) on the hard subset of VideoPhy-2. We find that the models particularly struggle with conservation laws like mass and momentum. Finally, we also train VideoPhy-AutoEval, an automatic evaluator for fast, reliable assessment on our dataset. Overall, VideoPhy-2 serves as a rigorous benchmark, exposing critical gaps in video generative models and guiding future research in physically-grounded video generation. The data and code is available at https://videophy2.github.io/.

For agents

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

get_harvested_code_for_paper("2503.06800")
get_code_for_paper("2503.06800")
have("2503.06800")

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

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

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

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

Connect an agent — have() is free.