SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · aaai_25418 · AAAI · 2023

Video Event Extraction via Tracking Visual States of Arguments

Xudong Lin, Shih-Fu Chang, Ji Heng, Manling Li, Jiajie Zhang, Guang Yang

Code that ran

19 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; 0 honoured the contract we drafted, 0 violated it and 15 have no contract verdict; 4 failures of our instrument; 0 no recorded run), measured 2026-11-23; 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/aaai_25418.json · badge: /api/ran/aaai_25418.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
Shinetism/VStates canonical (classifier label)
classifier basis: census
19 ran · 0 no recorded run
FunctionStatusWhere it lives
bbox_overlaps Ran
ran on a synthesized input
Shinetism/VStates/utils/box_utils.py
code served (permissive licence) · get_code("56974e694f5d09b0")
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 (2, 3, 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

torch.manual_seed(0)

# Create small tensors for testing
batch_size = 2
num_anchors = 3
num_gt_boxes = 4

# anchors: (b, N, 4) -> we'll make it (b, N, 5) as the function expects
# Each anchor box is [x1, y1, x2, y2, score]
anchors = torch.tensor([
    [[10.0, 10.0, 20.0, 20.0, 0.9],
     [30.0, 30.0, 40.0, 40.0, 0.8],
     [50.0, 50.0, 60.0, 60.0, 0.7]],
    [[15.0, 15.0, 25.0, 25.0, 0.85],
     [35.0, 35.0, 45.0, 45.0, 0.75],
     [55.0, 55.0, 65.0, 65.0, 0.65]]
], dtype=torch.float32)

# gt_boxes: (b, K, 5)
# Each gt box is [x1, y1, x2, y2, class_id]
gt_boxes = torch.tensor([
    [[12.0, 12.0, 18.0, 18.0, 1.0],
     [32.0, 32.0, 38.0, 38.0, 2.0],
     [52.0, 52.0, 58.0, 58.0, 3.0],
     [100.0, 100.0, 110.0, 110.0, 4.0]],
    [[14.0, 14.0, 24.0, 24.0, 1.0],
     [34.0, 34.0, 44.0, 44.0, 2.0],
     [54.0, 54.0, 64.0, 64.0, 3.0],
     [105.0, 105.0, 115.0, 115.0, 4.0]]
], dtype=torch.float32)

# frm_mask: (b, N, K) boolean mask for frame validity
frm_mask = torch.ones(batch_size, num_anchors, num_gt_boxes, dtype=torch.bool)
frm_mask[0, 1, 2] = False  # Mask out one element

rois = anchors
gt_box = gt_boxes

ARGS = {
    'rois': rois,
    'gt_box': gt_box,
    'frm_mask': frm_mask
}
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 (2, 3, 4) — shape (2, 3, 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
box_iou Ran
ran on a synthesized input
Shinetism/VStates/utils/box_utils.py
code served (permissive licence) · get_code("c5c900940df67d7f")
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, 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 torch

torch.manual_seed(0)

# box_iou takes two parameters: box1 and box2
# Both should be torch.tensors of shape [N, 4] or [M, 4] in x1y1x2y2 format
# The function handles both 1D (single box) and 2D (batch of boxes) inputs

# Create two batches of bounding boxes in x1y1x2y2 format
# box1: [N, 4] where N=2
box1 = torch.tensor([
    [1.0, 2.0, 5.0, 6.0],
    [2.0, 3.0, 7.0, 8.0]
], dtype=torch.float32)

# box2: [M, 4] where M=3
box2 = torch.tensor([
    [1.5, 2.5, 5.5, 6.5],
    [3.0, 4.0, 8.0, 9.0],
    [0.0, 0.0, 3.0, 3.0]
], dtype=torch.float32)

ARGS = {
    "box1": box1,
    "box2": box2
}
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 2, dtype family float, shape (2, 3) — shape (2, 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
collate_dct_lst_naive Ran
ran; our contract draft was wrong, not the code
Shinetism/VStates/utils/dat_utils.py
code served (permissive licence) · get_code("097610716c270923")
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
import numpy as np
from typing import Dict, List

torch.manual_seed(0)

# Create a small batch of dictionaries
# Each dictionary has keys that map to various data types
batch = [
    {
        "tensor_data": torch.randn(2, 4),
        "list_data": [1, 2, 3],
        "scalar": 42,
        "string": "sample"
    },
    {
        "tensor_data": torch.randn(2, 4),
        "list_data": [4, 5, 6],
        "scalar": 99,
        "string": "test"
    }
]

ARGS = {
    "batch": batch
}
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
combine_first_ax Ran
ran on a synthesized input
Shinetism/VStates/utils/misc_utils.py
code served (permissive licence) · get_code("9f0e6922b0190edd")
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 (6, 4, 5) 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

torch.manual_seed(0)

# Create a small multi-dimensional tensor
# Shape: (batch=2, sequence=3, features=4, extra=5)
# This allows us to test the function with keepdim=True and keepdim=False
inp_tensor = torch.randn(2, 3, 4, 5)

ARGS = {
    "inp_tensor": inp_tensor,
    "keepdim": False
}
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 (6, 4, 5) — shape (6, 4, 5) 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
enclose_ag Ran
ran on a synthesized input
Shinetism/VStates/vidsitu_code/dat_loader.py
code served (permissive licence) · get_code("0fd9228e4e9231e0")
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
import torch.nn as nn

def st_ag(ag):
    return f'<{ag}>'

def end_ag(ag):
    return f'</{ag}>'

def enclose_ag(agname, ag_str):
    return f'{st_ag(agname)} {ag_str} {end_ag(agname)}'

ARGS = {
    'agname': 'div',
    'ag_str': 'Hello World'
}
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
end_ag Ran
ran on a synthesized input
Shinetism/VStates/vidsitu_code/dat_loader.py
code served (permissive licence) · get_code("b32761c4fc18d6c4")
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 end_ag(ag):
    return f'</{ag}>'

ARGS = {
    'ag': 'div'
}
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
get_area Ran
ran on a synthesized input
Shinetism/VStates/utils/box_utils.py
code served (permissive licence) · get_code("b1fb0d9758eb4ad1")
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 1, dtype family float, shape (2,) 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

torch.manual_seed(0)

# Create a tensor of shape [N, 4] representing bounding boxes in x1y1x2y2 format
# N=2 boxes, each with 4 coordinates
box = torch.tensor([
    [10.0, 20.0, 30.0, 40.0],  # box 1: x1=10, y1=20, x2=30, y2=40
    [5.0, 15.0, 25.0, 35.0]     # box 2: x1=5, y1=15, x2=25, y2=35
])

ARGS = {
    "box": box
}
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 1, dtype family float, shape (2,) — shape (2,) 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_dataloader Ran
ran on a synthesized input
Shinetism/VStates/utils/dat_utils.py
code served (permissive licence) · get_code("17cc8ddfbbd6545b")
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 DataLoader. 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
from torch.utils.data import Dataset, DataLoader

torch.manual_seed(0)

# Create a minimal dataset
class DummyDataset(Dataset):
    def __init__(self, size=10):
        self.size = size
    
    def __len__(self):
        return self.size
    
    def __getitem__(self, idx):
        return torch.randn(4), torch.tensor(idx % 2)

# Create a minimal config object
class Config:
    def __init__(self):
        self.do_dist = False
        self.do_dp = False
        self.num_gpus = 1
        self.train = TrainConfig()
        self.ds = DSConfig()

class TrainConfig:
    def __init__(self):
        self.bs = 2
        self.bsv = 2
        self.nw = 0
        self.nwv = 0

class DSConfig:
    def __init__(self):
        self.trn_shuffle = True

# Create a minimal collate function
def dummy_collate_fn(batch):
    xs = torch.stack([item[0] for item in batch])
    ys = torch.stack([item[1] for item in batch])
    return xs, ys

# Set up arguments
cfg = Config()
dataset = DummyDataset(size=10)
is_train = True
collate_fn = dummy_collate_fn

ARGS = {
    "cfg": cfg,
    "dataset": dataset,
    "is_train": is_train,
    "collate_fn": collate_fn
}
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 DataLoader — a DataLoader output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a DataLoader 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_name_from_inst Ran
ran; our contract draft was wrong, not the code
Shinetism/VStates/main_dist.py
code served (permissive licence) · get_code("4d2f5f7e7d5fc1a1")
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
import torch.nn as nn

torch.manual_seed(0)

class SimpleModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear = nn.Linear(4, 3)
    
    def forward(self, x):
        return self.linear(x)

class CustomClass:
    pass

class AnotherClass:
    pass

# Create instances to test
model_inst = SimpleModel()
custom_inst = CustomClass()
another_inst = AnotherClass()
tensor_inst = torch.tensor([1, 2, 3, 4])

# The function only calls __class__.__name__ on the instance
# So we just need any object with a __class__ attribute (all Python objects have this)
ARGS = {
    "inst": model_inst
}
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
get_sequence Ran
ran on a synthesized input
Shinetism/VStates/utils/video_utils.py
code served (permissive licence) · get_code("efcc4d666179fa17")
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
import numpy as np

# Analyze the function:
# - center_idx (int): used in arithmetic operations (center_idx - half_len, center_idx + half_len)
# - half_len (int): used in arithmetic operations
# - sample_rate (int): used as step in range()
# - max_num_frames (int): used in comparisons and arithmetic

# The function creates a sequence of frame indices from a clip
# and clamps them to valid range [0, max_num_frames - 1]

# Example: if we have a clip with 100 total frames,
# center at frame 50, half_len of 10, sample_rate of 2,
# we'd sample frames: 40, 42, 44, 46, 48, 50, 52, 54, 56, 58, 60

ARGS = {
    "center_idx": 50,           # center frame index in the clip
    "half_len": 10,             # half length of the clip window
    "sample_rate": 2,           # sampling rate (every 2nd frame)
    "max_num_frames": 100,      # total number of frames available
}
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 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
make_data_sampler Ran
ran on a synthesized input
Shinetism/VStates/utils/dat_utils.py
code served (permissive licence) · get_code("dee3e2eded180779")
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 RandomSampler. 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
from torch.utils.data import Dataset

torch.manual_seed(0)

class SimpleDataset(Dataset):
    def __init__(self, size=10):
        self.size = size
        self.data = torch.randn(size, 4)
        self.labels = torch.randint(0, 2, (size,))
    
    def __len__(self):
        return self.size
    
    def __getitem__(self, idx):
        return self.data[idx], self.labels[idx]

dataset = SimpleDataset(size=10)

ARGS = {
    "dataset": dataset,
    "shuffle": True,
    "distributed": False,
}
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 RandomSampler — a RandomSampler output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a RandomSampler 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
matmul Ran
ran on a synthesized input
Shinetism/VStates/utils/transformer_code.py
code served (permissive licence) · get_code("ff3902b3e9c07fef")
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 (4, 5) 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

torch.manual_seed(0)

# Test case 1: x and y have same dimensions (both 2D)
x1 = torch.randn(4, 3)
y1 = torch.randn(3, 5)

# Test case 2: x has dim-1 fewer dimensions than y (x is 1D, y is 2D)
x2 = torch.randn(3)
y2 = torch.randn(4, 3, 5)

# Test case 3: y has dim-1 fewer dimensions than x (x is 2D, y is 1D)
x3 = torch.randn(4, 3)
y3 = torch.randn(3)

# Using the first test case for ARGS
ARGS = {
    "x": x1,
    "y": y1,
}
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 2, dtype family float, shape (4, 5) — shape (4, 5) 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
move_to Ran
ran; our contract draft was wrong, not the code
Shinetism/VStates/utils/trn_utils.py
code served (permissive licence) · get_code("e5edd11f7a6cabce")
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

torch.manual_seed(0)

# Test case 1: tensor object
tensor_obj = torch.randn(2, 4)

# Test case 2: dict containing tensors
dict_obj = {
    'a': torch.randn(2, 4),
    'b': torch.randn(3, 5),
    'nested': {
        'c': torch.randn(1, 2)
    }
}

# Test case 3: list containing tensors
list_obj = [torch.randn(2, 4), torch.randn(3, 5)]

# Test case 4: mixed nested structure
mixed_obj = {
    'tensor': torch.randn(2, 4),
    'list': [torch.randn(1, 3), torch.randn(2, 2)],
    'nested_dict': {
        'inner_tensor': torch.randn(4, 2)
    }
}

# Target device (CPU only)
device = 'cpu'

# Define ARGS - using tensor as the primary test case
ARGS = {
    'obj': tensor_obj,
    'device': device
}
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 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
pack_pathway_output Ran
ran on a synthesized input
Shinetism/VStates/utils/video_utils.py
code served (permissive licence) · get_code("fdf0a81cc54095ab")
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. 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)

class Config:
    def __init__(self):
        self.DATA = DataConfig()
        self.MODEL = ModelConfig()
        self.SLOWFAST = SlowFastConfig()

class DataConfig:
    def __init__(self):
        self.REVERSE_INPUT_CHANNEL = False

class ModelConfig:
    def __init__(self):
        self.ARCH = "slowfast"
        self.SINGLE_PATHWAY_ARCH = ["c2d", "i3d"]
        self.MULTI_PATHWAY_ARCH = ["slowfast", "x3d"]

class SlowFastConfig:
    def __init__(self):
        self.ALPHA = 4

cfg = Config()
frames = torch.randn(3, 8, 4, 5)

ARGS = {
    "cfg": cfg,
    "frames": frames
}
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 — a list 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
read_file_with_assertion Ran
ran on a synthesized input
Shinetism/VStates/prep_data/dwn_yt.py
code served (permissive licence) · get_code("b11ee0a6f802aabd")
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
from pathlib import Path

# Create a temporary JSON file with test data
temp_dir = tempfile.mkdtemp()
temp_file = Path(temp_dir) / "test_data.json"

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

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

ARGS = {
    "fpath": str(temp_file),
    "read_type": "r",
    "reader": "json"
}
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
reduce_dict Ran
ran on a synthesized input
Shinetism/VStates/utils/trn_utils.py
code served (permissive licence) · get_code("ef34b694a1a97e7e")
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
from torch import distributed as dist

torch.manual_seed(0)

# The function reduce_dict takes two parameters:
# 1. input_dict (dict): dictionary with values to reduce
# 2. average (bool): whether to average or sum

# Create a small input_dict with tensor values
# The function iterates over sorted keys and stacks values
input_dict = {
    "loss": torch.tensor(1.5),
    "accuracy": torch.tensor(0.95),
}

average = False

ARGS = {
    "input_dict": input_dict,
    "average": average,
}
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
reduce_dict_corr Ran
ran; our contract draft was wrong, not the code
Shinetism/VStates/utils/trn_utils.py
code served (permissive licence) · get_code("95e3193b4dd05753")
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)

# Create a sample input_dict with tensor values
input_dict = {
    "loss": torch.tensor(2.5),
    "accuracy": torch.tensor(0.95),
    "metric_a": torch.tensor(1.2),
}

# Create a nums tensor for the second parameter
nums = torch.tensor(4)

ARGS = {
    "input_dict": input_dict,
    "nums": nums,
}
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
st_ag Ran
ran on a synthesized input
Shinetism/VStates/vidsitu_code/dat_loader.py
code served (permissive licence) · get_code("7425b7ac40dc3b30")
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

torch.manual_seed(0)

def st_ag(ag):
    return f'<{ag}>'

ARGS = {
    'ag': 'test_argument'
}
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
uncombine_first_ax Ran
ran on a synthesized input
Shinetism/VStates/utils/misc_utils.py
code served (permissive licence) · get_code("a64b89f8320481c7")
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 4, dtype family float, shape (2, 4, 3, 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

torch.manual_seed(0)

# The function takes inp_tensor and s0 as parameters
# It reshapes inp_tensor from shape (size0, ...) to (s0, s1, ...)
# where s1 = size0 // s0
# We need size0 to be divisible by s0

# Create a small tensor with divisible first dimension
# Let's use first dimension of 8, which is divisible by 2, 4, etc.
inp_tensor = torch.randn(8, 3, 4)  # shape: (8, 3, 4)
s0 = 2  # intended batch size, must divide 8

ARGS = {
    "inp_tensor": inp_tensor,
    "s0": s0,
}
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 4, dtype family float, shape (2, 4, 3, 4) — shape (2, 4, 3, 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

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, 8 are also present in other papers whose code we hold (8 with at least one paper dated earlier, 0 the same month, 1 later) and 11 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
get_name_from_inst 2 other papers
2 dated earlier
2003.10606 (2020-03)
Video Object Grounding using Semantic Roles in Language Description
2104.00990 (2021-04)
Visual Semantic Role Labeling for Video Understanding
move_to 2 other papers
1 dated earlier, 1 later
2210.07228 (2022-10)
Language Model Decoding as Likelihood-Utility Alignment
2604.14602 (2026-04)
CausalDetox: Causal Head Selection and Intervention for Language Model Detoxification
collate_dct_lst_naive 1 other paper
1 dated earlier
2104.00990 (2021-04)
Visual Semantic Role Labeling for Video Understanding
enclose_ag 1 other paper
1 dated earlier
2104.00990 (2021-04)
Visual Semantic Role Labeling for Video Understanding
end_ag 1 other paper
1 dated earlier
2104.00990 (2021-04)
Visual Semantic Role Labeling for Video Understanding
read_file_with_assertion 1 other paper
1 dated earlier
2104.00990 (2021-04)
Visual Semantic Role Labeling for Video Understanding
reduce_dict_corr 1 other paper
1 dated earlier
1908.07129 (2019-08)
Zero-Shot Grounding of Objects from Natural Language Queries
st_ag 1 other paper
1 dated earlier
2104.00990 (2021-04)
Visual Semantic Role Labeling for Video Understanding

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

Video event extraction aims to detect salient events from a video and identify the arguments for each event as well as their semantic roles. Existing methods focus on capturing the overall visual scene of each frame, ignoring finegrained argument-level information. Inspired by the definition of events as changes of states, we propose a novel framework to detect video events by tracking the changes in the visual states of all involved arguments, which are expected to provide the most informative evidence for the extraction of video events. In order to capture the visual state changes of arguments, we decompose them into changes in pixels within objects, displacements of objects, and interactions among multiple arguments. We further propose Object State Embedding, Object Motion-aware Embedding and Argument Interaction Embedding to encode and track these changes respectively. Experiments on various video event extraction tasks demonstrate significant improvements compared to state-of-the-art models. In particular, on verb classification, we achieve 3.49% absolute gains (19.53% relative gains) in F1@5 on Video Situation Recognition. Our Code is publicly available at https://github.com/Shinetism/VStates for research purposes.

For agents

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

get_harvested_code_for_paper("aaai_25418")
get_code_for_paper("aaai_25418")
have("aaai_25418")

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

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

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

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

Connect an agent — have() is free.