SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2603.05969 · 2026

Imagine How To Change: Explicit Procedure Modeling for Change Captioning

Min Cao, Zixin Guo, Jiayang Sun, Jorma Laaksonen, Guibo Zhu

arXiv · PDF · Open in the Atlas

Code that ran

15 of 20 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (9 of them constructed an object rather than computing a result; 1 honoured the contract we drafted, 0 violated it and 11 have no contract verdict; 3 failures of our instrument; 5 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/2603.05969.json · badge: /api/ran/2603.05969.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
BlueberryOreo/ProCap community
Papers with Code archive
15 ran · 5 no recorded run
FunctionStatusWhere it lives
BertEmbeddingsWithVideo Ran
ran on a synthesized input · constructed an object; no result was computed
BlueberryOreo/ProCap/src/rtransformer/model.py
code served (permissive licence) · get_code("abd4f889c6b0d149")
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 an instance of its own class, BertEmbeddingsWithVideo: the run constructed the object and did not call it, so no result was computed. 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
import math

torch.manual_seed(0)

class Config:
    def __init__(self):
        self.vocab_size = 100
        self.word_vec_size = 4
        self.hidden_size = 8
        self.video_feature_size = 6
        self.layer_norm_eps = 1e-12
        self.hidden_dropout_prob = 0.1
        self.max_position_embeddings = 50
        self.type_vocab_size = 3

config = Config()

# Create small tensors for forward pass
batch_size = 2
sequence_length = 5

input_ids = torch.randint(0, config.vocab_size, (batch_size, sequence_length))
video_features = torch.randn(batch_size, sequence_length, config.video_feature_size)
token_type_ids = torch.randint(0, config.type_vocab_size, (batch_size, sequence_length))

ARGS = {
    'config': config,
    'add_postion_embeddings': True
}
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 BertEmbeddingsWithVideo — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a BertEmbeddingsWithVideo 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
BertIntermediate Ran
ran on a synthesized input · constructed an object; no result was computed
BlueberryOreo/ProCap/src/rtransformer/model.py
code served (permissive licence) · get_code("c2992f5c466c17d4")
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 an instance of its own class, BertIntermediate: the run constructed the object and did not call it, so no result was computed. 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
import math

torch.manual_seed(0)

# Create a minimal config class with the required attributes
class Config:
    def __init__(self, hidden_size, intermediate_size):
        self.hidden_size = hidden_size
        self.intermediate_size = intermediate_size

# Define the gelu function (copied from the function definition)
def gelu(x):
    """Implementation of the gelu activation function."""
    return x * 0.5 * (1.0 + torch.erf(x / math.sqrt(2.0)))

# Create a config with distinct sizes for different dimensions
config = Config(hidden_size=4, intermediate_size=3)

# Create a sample hidden_states tensor (batch_size=2, hidden_size=4)
hidden_states = torch.randn(2, 4)

# Build ARGS dictionary with all parameters needed for BertIntermediate
ARGS = {
    "config": config
}
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 BertIntermediate — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a BertIntermediate 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
BertLMPredictionHead Ran
ran on a synthesized input · constructed an object; no result was computed
BlueberryOreo/ProCap/src/rtransformer/model.py
code served (permissive licence) · get_code("c080e6051838cc3f")
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 an instance of its own class, BertLMPredictionHead: the run constructed the object and did not call it, so no result was computed. 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
import math

torch.manual_seed(0)

def gelu(x):
    """Implementation of the gelu activation function."""
    return x * 0.5 * (1.0 + torch.erf(x / math.sqrt(2.0)))

class BertLayerNorm(nn.Module):
    def __init__(self, hidden_size, eps=1e-12):
        """Construct a layernorm module in the TF style (epsilon inside the square root)."""
        super(BertLayerNorm, self).__init__()
        self.weight = nn.Parameter(torch.ones(hidden_size))
        self.bias = nn.Parameter(torch.zeros(hidden_size))
        self.variance_epsilon = eps

    def forward(self, x):
        u = x.mean(-1, keepdim=True)
        s = (x - u).pow(2).mean(-1, keepdim=True)
        x = (x - u) / torch.sqrt(s + self.variance_epsilon)
        return self.weight * x + self.bias

class BertPredictionHeadTransform(nn.Module):
    def __init__(self, config):
        super(BertPredictionHeadTransform, self).__init__()
        self.dense = nn.Linear(config.hidden_size, config.hidden_size)
        self.transform_act_fn = gelu
        self.LayerNorm = BertLayerNorm(config.hidden_size, eps=config.layer_norm_eps)

    def forward(self, hidden_states):
        """(N, L, D)"""
        hidden_states = self.dense(hidden_states)
        hidden_states = self.transform_act_fn(hidden_states)
        hidden_states = self.LayerNorm(hidden_states)
        return hidden_states

class BertLMPredictionHead(nn.Module):
    def __init__(self, config, bert_model_embedding_weights=None):
        super(BertLMPredictionHead, self).__init__()
        self.transform = BertPredictionHeadTransform(config)
        if config.share_wd_cls_weight:
            assert bert_model_embedding_weights is not None, 'bert_model_embedding_weights should not be None when setting --share_wd_cls_weight flag to be true'
            assert config.hidden_size == bert_model_embedding_weights.size(1), 'hidden size has be the same as word embedding size when sharing word embedding weight and classifier weight'
            self.decoder = nn.Linear(bert_model_embedding_weights.size(1), bert_model_embedding_weights.size(0), bias=False)
            self.decoder.weight = bert_model_embedding_weights
        else:
            self.decoder = nn.Linear(config.hidden_size, config.vocab_size, bias=False)
        self.bias = nn.Parameter(torch.zeros(config.vocab_size))

    def forward(self, hidden_states):
        """(N, L, D)"""
        hidden_states = self.transform(hidden_states)
        hidden_states = self.decoder(hidden_states) + self.bias
        return hidden_states

class Config:
    def __init__(self):
        self.hidden_size = 4
        self.vocab_size = 5
        self.layer_norm_eps = 1e-12
        self.share_wd_cls_weight = False

config = Config()

ARGS = {
    "config": config,
    "bert_model_embedding_weights": None,
}
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 BertLMPredictionHead — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a BertLMPredictionHead 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
BertLayerNorm Ran
ran on a synthesized input · constructed an object; no result was computed
BlueberryOreo/ProCap/src/rtransformer/model.py
code served (permissive licence) · get_code("72b3695069bfff7f")
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 an instance of its own class, BertLayerNorm: the run constructed the object and did not call it, so no result was computed. 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 BertLayerNorm class has two parameters in __init__:
# 1. hidden_size: int - the size of the hidden dimension
# 2. eps: float - epsilon for numerical stability (has default 1e-12)

# For forward pass, it expects:
# - x: a tensor where the last dimension matches hidden_size

# Create a small tensor with batch size 2 and hidden size 4
hidden_size = 4
batch_size = 2

# Create input tensor: (batch_size, hidden_size)
x = torch.randn(batch_size, hidden_size)

ARGS = {
    "hidden_size": hidden_size,
    "eps": 1e-12
}
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 BertLayerNorm — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a BertLayerNorm 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
BertOutput Ran
ran on a synthesized input
BlueberryOreo/ProCap/src/rtransformer/model.py
code served (permissive licence) · get_code("5d7bf02e4a7c75a1")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, class construct-then-call prompt, model not recorded) and returned Tensor, ndim 3, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

class BertLayerNorm(nn.Module):

    def __init__(self, hidden_size, eps=1e-12):
        """Construct a layernorm module in the TF style (epsilon inside the square root).
        """
        super(BertLayerNorm, self).__init__()
        self.weight = nn.Parameter(torch.ones(hidden_size))
        self.bias = nn.Parameter(torch.zeros(hidden_size))
        self.variance_epsilon = eps

    def forward(self, x):
        u = x.mean(-1, keepdim=True)
        s = (x - u).pow(2).mean(-1, keepdim=True)
        x = (x - u) / torch.sqrt(s + self.variance_epsilon)
        return self.weight * x + self.bias

class BertOutput(nn.Module):

    def __init__(self, config):
        super(BertOutput, self).__init__()
        self.dense = nn.Linear(config.intermediate_size, config.hidden_size)
        self.LayerNorm = BertLayerNorm(config.hidden_size, eps=config.layer_norm_eps)
        self.dropout = nn.Dropout(config.hidden_dropout_prob)

    def forward(self, hidden_states, input_tensor):
        hidden_states = self.dense(hidden_states)
        hidden_states = self.dropout(hidden_states)
        hidden_states = self.LayerNorm(hidden_states + input_tensor)
        return hidden_states


class Config:
    def __init__(self):
        self.intermediate_size = 12
        self.hidden_size = 6
        self.layer_norm_eps = 1e-12
        self.hidden_dropout_prob = 0.1


config = Config()

INIT_ARGS = {
    'config': config
}

ARGS = {
    'hidden_states': torch.randn(2, 6, 12),
    'input_tensor': torch.randn(2, 6, 6)
}
Setup block drafted by
a language model, class construct-then-call prompt, model not recorded
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 — no output shape is stated: observe_signature.py observed this class with its constructor sizes canonicalised where it could, which the node does not record, so its shape is not stated as this setup block's
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: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
BertPredictionHeadTransform Ran
ran on a synthesized input · constructed an object; no result was computed
BlueberryOreo/ProCap/src/rtransformer/model.py
code served (permissive licence) · get_code("eb5a0cd7b5624311")
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 an instance of its own class, BertPredictionHeadTransform: the run constructed the object and did not call it, so no result was computed. 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
import math

torch.manual_seed(0)

class Config:
    def __init__(self):
        self.hidden_size = 4
        self.layer_norm_eps = 1e-12

config = Config()

ARGS = {
    "config": config
}
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 BertPredictionHeadTransform — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a BertPredictionHeadTransform 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
BertSelfAttention Ran
ran on a synthesized input · constructed an object; no result was computed
BlueberryOreo/ProCap/src/rtransformer/model.py
code served (permissive licence) · get_code("202febc467fcdff1")
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 an instance of its own class, BertSelfAttention: the run constructed the object and did not call it, so no result was computed. 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 math
import torch
import torch.nn as nn

torch.manual_seed(0)

class BertConfig:
    def __init__(self, hidden_size, num_attention_heads, attention_probs_dropout_prob):
        self.hidden_size = hidden_size
        self.num_attention_heads = num_attention_heads
        self.attention_probs_dropout_prob = attention_probs_dropout_prob

class BertSelfAttention(nn.Module):

    def __init__(self, config):
        super(BertSelfAttention, self).__init__()
        if config.hidden_size % config.num_attention_heads != 0:
            raise ValueError('The hidden size (%d) is not a multiple of the number of attention heads (%d)' % (config.hidden_size, config.num_attention_heads))
        self.num_attention_heads = config.num_attention_heads
        self.attention_head_size = int(config.hidden_size / config.num_attention_heads)
        self.all_head_size = self.num_attention_heads * self.attention_head_size
        self.query = nn.Linear(config.hidden_size, self.all_head_size)
        self.key = nn.Linear(config.hidden_size, self.all_head_size)
        self.value = nn.Linear(config.hidden_size, self.all_head_size)
        self.dropout = nn.Dropout(config.attention_probs_dropout_prob)

    def transpose_for_scores(self, x):
        new_x_shape = x.size()[:-1] + (self.num_attention_heads, self.attention_head_size)
        x = x.view(*new_x_shape)
        return x.permute(0, 2, 1, 3)

    def forward(self, query_states, key_states, value_states, attention_mask):
        """
        Args:
            query_states: (N, Lq, D)
            key_states: (N, L, D)
            value_states: (N, L, D)
            attention_mask: (N, Lq, L)

        Returns:

        """
        attention_mask = (1 - attention_mask.unsqueeze(1)) * -10000.0
        mixed_query_layer = self.query(query_states)
        mixed_key_layer = self.key(key_states)
        mixed_value_layer = self.value(value_states)
        query_layer = self.transpose_for_scores(mixed_query_layer)
        key_layer = self.transpose_for_scores(mixed_key_layer)
        value_layer = self.transpose_for_scores(mixed_value_layer)
        attention_scores = torch.matmul(query_layer, key_layer.transpose(-1, -2))
        attention_scores = attention_scores / math.sqrt(self.attention_head_size)
        attention_scores = attention_scores + attention_mask
        attention_probs = nn.Softmax(dim=-1)(attention_scores)
        attention_probs = self.dropout(attention_probs)
        context_layer = torch.matmul(attention_probs, value_layer)
        context_layer = context_layer.permute(0, 2, 1, 3).contiguous()
        new_context_layer_shape = context_layer.size()[:-2] + (self.all_head_size,)
        context_layer = context_layer.view(*new_context_layer_shape)
        return context_layer

config = BertConfig(hidden_size=8, num_attention_heads=2, attention_probs_dropout_prob=0.1)
bert_self_attention = BertSelfAttention(config)

batch_size = 2
seq_length_q = 3
seq_length_k = 5
hidden_size = 8

query_states = torch.randn(batch_size, seq_length_q, hidden_size)
key_states = torch.randn(batch_size, seq_length_k, hidden_size)
value_states = torch.randn(batch_size, seq_length_k, hidden_size)
attention_mask = torch.zeros(batch_size, seq_length_q, seq_length_k)

ARGS = {
    "config": config,
}
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 BertSelfAttention — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a BertSelfAttention 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
BertSelfOutput Ran
ran on a synthesized input
BlueberryOreo/ProCap/src/rtransformer/model.py
code served (permissive licence) · get_code("bdf10bafd164be1e")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, class construct-then-call prompt, model not recorded) and returned Tensor, ndim 3, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

class SimpleConfig:
    def __init__(self):
        self.hidden_size = 6
        self.layer_norm_eps = 1e-12
        self.hidden_dropout_prob = 0.1

config = SimpleConfig()

INIT_ARGS = {
    'config': config
}

batch_size = 2
seq_length = 5
hidden_size = config.hidden_size

hidden_states = torch.randn(batch_size, seq_length, hidden_size)
input_tensor = torch.randn(batch_size, seq_length, hidden_size)

ARGS = {
    'hidden_states': hidden_states,
    'input_tensor': input_tensor
}
Setup block drafted by
a language model, class construct-then-call prompt, model not recorded
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 — no output shape is stated: observe_signature.py observed this class with its constructor sizes canonicalised where it could, which the node does not record, so its shape is not stated as this setup block's
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: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
LabelSmoothingLoss Ran
ran on a synthesized input · constructed an object; no result was computed
BlueberryOreo/ProCap/src/rtransformer/model.py
code served (permissive licence) · get_code("fa8f4c716c5e5c8d")
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 an instance of its own class, LabelSmoothingLoss: the run constructed the object and did not call it, so no result was computed. 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)

# Parameters for LabelSmoothingLoss.__init__
label_smoothing = 0.1
tgt_vocab_size = 5
ignore_index = -100

ARGS = {
    'label_smoothing': label_smoothing,
    'tgt_vocab_size': tgt_vocab_size,
    'ignore_index': ignore_index,
}

# Create an instance to verify it works
loss_fn = nn.Module()
loss_fn.__class__ = type('LabelSmoothingLoss', (nn.Module,), {
    '__init__': lambda self, label_smoothing, tgt_vocab_size, ignore_index=-100: (
        setattr(self, 'ignore_index', ignore_index),
        setattr(self, 'log_softmax', nn.LogSoftmax(dim=-1)),
        setattr(self, 'one_hot', torch.full((tgt_vocab_size,), label_smoothing / (tgt_vocab_size - 1)).unsqueeze(0)),
        setattr(self, 'confidence', 1.0 - label_smoothing),
        nn.Module.__init__(self)
    )[-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 LabelSmoothingLoss — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a LabelSmoothingLoss 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
MemoryInitializer Ran
ran on a synthesized input · constructed an object; no result was computed
BlueberryOreo/ProCap/src/rtransformer/model.py
code served (permissive licence) · get_code("b51032654d0febc7")
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 an instance of its own class, MemoryInitializer: the run constructed the object and did not call it, so no result was computed. 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 Config:
    def __init__(self):
        self.n_memory_cells = 3
        self.hidden_size = 4
        self.memory_dropout_prob = 0.1

config = Config()

ARGS = {
    "config": config
}
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 MemoryInitializer — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a MemoryInitializer 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
PositionEncoding Ran
ran on a synthesized input · constructed an object; no result was computed
BlueberryOreo/ProCap/src/rtransformer/model.py
code served (permissive licence) · get_code("f92321e2b4118573")
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 an instance of its own class, PositionEncoding: the run constructed the object and did not call it, so no result was computed. 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
import math

torch.manual_seed(0)

ARGS = {
    "n_filters": 128,
    "max_len": 500,
}
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 PositionEncoding — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a PositionEncoding 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
gelu Ran
ran, honoured the contract we drafted
BlueberryOreo/ProCap/src/rtransformer/model.py
code served (permissive licence) · get_code("69e3a274f98c15af")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) and returned Tensor, ndim 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 math
import torch

torch.manual_seed(0)

# The gelu function takes a single parameter 'x' which should be a tensor
# The function applies element-wise operations: multiplication, addition, division, erf
# So x should be a torch tensor of any shape

x = torch.randn(2, 4)

ARGS = {
    "x": x
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 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
make_pad_shifted_mask Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
BlueberryOreo/ProCap/src/rtransformer/model.py
code served (permissive licence) · get_code("3befd1ee0de1a35c")
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, 5, 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)

# Construct input_mask: (N, L) where N=batch_size, L=seq_len
# seq_len = max_v_len + max_t_len + memory_len
max_v_len = 2
max_t_len = 3
memory_len = 0
seq_len = max_v_len + max_t_len + memory_len

batch_size = 2
input_mask = torch.ones(batch_size, seq_len)

ARGS = {
    "input_mask": input_mask,
    "max_v_len": max_v_len,
    "max_t_len": max_t_len,
    "memory_len": memory_len,
}
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, 5, 5) — shape (2, 5, 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
make_shifted_mask Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
BlueberryOreo/ProCap/src/rtransformer/model.py
code served (permissive licence) · get_code("07c16e3ceab7e69f")
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, 5, 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)

# Based on the function signature and docstring example:
# - input_mask: (N, L) tensor with 1s for valid, 0s for pad
# - max_v_len: int, length of video portion (including memory)
# - max_t_len: int, length of text portion
# - memory_len: int, length of memory (default 0)
# - L = max_v_len + max_t_len + memory_len (but max_v_len already includes memory_len)
# Actually from the assertion: max_v_len + max_t_len + memory_len == seq_len
# But the code shows max_v_len already includes memory, so the effective split is:
# [memory | video] + [text]

# From docstring example: max_v_len=2, max_t_len=3, so seq_len should be 5
# But the assertion says max_v_len + max_t_len + memory_len == seq_len
# With memory_len=0 (default), that gives 2 + 3 + 0 = 5. That matches!

# Create a simple case matching the docstring
batch_size = 2
max_v_len = 2
max_t_len = 3
memory_len = 0

seq_len = max_v_len + max_t_len + memory_len  # 5

# input_mask: (batch_size, seq_len) with 1s for valid, 0s for pad
# Let's create one with all 1s (all valid)
input_mask = torch.ones(batch_size, seq_len)

ARGS = {
    "input_mask": input_mask,
    "max_v_len": max_v_len,
    "max_t_len": max_t_len,
    "memory_len": memory_len,
}
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, 5, 5) — shape (2, 5, 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
make_video_only_mask Ran
ran; our contract draft was wrong, not the code
BlueberryOreo/ProCap/src/rtransformer/model.py
code served (permissive licence) · get_code("7acb8a8c22a85dac")
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, 6) 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 copy

torch.manual_seed(0)

# Create a small input mask tensor
# Shape: (batch_size=2, sequence_length=6)
# This represents a mask for a sequence with both video and text tokens
input_mask = torch.tensor([
    [1, 1, 1, 1, 0, 0],
    [1, 1, 1, 1, 1, 0]
], dtype=torch.float32)

# max_v_len represents the maximum video token length
# Setting it to 4 means tokens from index 4 onwards are non-video (text) tokens
max_v_len = 4

ARGS = {
    "input_mask": input_mask,
    "max_v_len": max_v_len
}
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, 6) — shape (2, 6) 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
BertAttention Not yet run
unverified (harvested, no recorded run)
BlueberryOreo/ProCap/src/rtransformer/model.py
code served (permissive licence) · get_code("3617108a2e6ec403")
How it ran

no invocation recorded.

BertEncoderWithMemory Not yet run
unverified (harvested, no recorded run)
BlueberryOreo/ProCap/src/rtransformer/model.py
code served (permissive licence) · get_code("0a49cab991d7f6a6")
How it ran

no invocation recorded.

BertLayerWithMemory Not yet run
unverified (harvested, no recorded run)
BlueberryOreo/ProCap/src/rtransformer/model.py
code served (permissive licence) · get_code("efc5dccde661017b")
How it ran

no invocation recorded.

MemoryUpdater Not yet run
unverified (harvested, no recorded run)
BlueberryOreo/ProCap/src/rtransformer/model.py
code served (permissive licence) · get_code("d7d40410314464bf")
How it ran

no invocation recorded.

RecursiveTransformer Not yet run
unverified (harvested, no recorded run)
BlueberryOreo/ProCap/src/rtransformer/model.py
code served (permissive licence) · get_code("cdbd32a11c67f907")
How it ran

no invocation recorded.

Also present in other papers' code

Of 20 samples lifted from this paper's linked repositories, 20 carry a function identity and 0 do not. Of the 20 distinct functions with an identity, 19 are also present in other papers whose code we hold (19 with at least one paper dated earlier, 0 the same month, 1 later) and 1 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
gelu
brick of this paper's assembly: helper
198 other papers
191 dated earlier, 7 later · 32 only as an assembly brick
1408.5882 (2014-08)
Convolutional Neural Networks for Sentence Classification
1810.04805 (2018-10)
BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding
1901.10125 (2019-01)
Glyce: Glyph-vectors for Chinese Character Representations
and 195 more not named here
BertOutput
brick of this paper's assembly: helper
12 other papers
12 dated earlier · 8 only as an assembly brick
1810.04805 (2018-10)
BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding
2005.05402 (2020-05)
MART: Memory-Augmented Recurrent Transformer for Coherent Video Paragraph Captioning
2110.13309 (2021-10)
History Aware Multimodal Transformer for Vision-and-Language Navigation
and 9 more not named here
BertSelfOutput
brick of this paper's assembly: helper
12 other papers
12 dated earlier · 8 only as an assembly brick
1810.04805 (2018-10)
BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding
2005.05402 (2020-05)
MART: Memory-Augmented Recurrent Transformer for Coherent Video Paragraph Captioning
2110.13309 (2021-10)
History Aware Multimodal Transformer for Vision-and-Language Navigation
and 9 more not named here
BertLayerNorm
brick of this paper's assembly: helper
7 other papers
7 dated earlier · 6 only as an assembly brick
1806.09055 (2018-06)
DARTS: Differentiable Architecture Search
1810.04805 (2018-10)
BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding
2005.05402 (2020-05)
MART: Memory-Augmented Recurrent Transformer for Coherent Video Paragraph Captioning
and 4 more not named here
BertAttention
brick of this paper's assembly: helper
3 other papers
3 dated earlier · 1 only as an assembly brick
2005.05402 (2020-05)
MART: Memory-Augmented Recurrent Transformer for Coherent Video Paragraph Captioning
2108.00061 (2021-08)
MTVR: Multilingual Moment Retrieval in Videos
2210.08465 (2022-10)
Character-Centric Story Visualization via Visual Planning and Token Alignment
BertIntermediate
brick of this paper's assembly: helper
3 other papers
3 dated earlier · 2 only as an assembly brick
2005.05402 (2020-05)
MART: Memory-Augmented Recurrent Transformer for Coherent Video Paragraph Captioning
2203.14040 (2022-03)
Visual Abductive Reasoning
2210.08465 (2022-10)
Character-Centric Story Visualization via Visual Planning and Token Alignment
PositionEncoding
brick of this paper's assembly: helper
3 other papers
3 dated earlier · 1 only as an assembly brick
2005.05402 (2020-05)
MART: Memory-Augmented Recurrent Transformer for Coherent Video Paragraph Captioning
2005.06409 (2020-05)
Dense-Caption Matching and Frame-Selection Gating for Temporal Localization in VideoQA
2210.08465 (2022-10)
Character-Centric Story Visualization via Visual Planning and Token Alignment
BertEncoderWithMemory
brick of this paper's assembly: model
2 other papers
2 dated earlier · 1 only as an assembly brick
2005.05402 (2020-05)
MART: Memory-Augmented Recurrent Transformer for Coherent Video Paragraph Captioning
2210.08465 (2022-10)
Character-Centric Story Visualization via Visual Planning and Token Alignment
BertLMPredictionHead
brick of this paper's assembly: helper
2 other papers
2 dated earlier · 1 only as an assembly brick
2005.05402 (2020-05)
MART: Memory-Augmented Recurrent Transformer for Coherent Video Paragraph Captioning
2203.14040 (2022-03)
Visual Abductive Reasoning
BertPredictionHeadTransform
brick of this paper's assembly: helper
2 other papers
2 dated earlier · 1 only as an assembly brick
2005.05402 (2020-05)
MART: Memory-Augmented Recurrent Transformer for Coherent Video Paragraph Captioning
2203.14040 (2022-03)
Visual Abductive Reasoning
BertSelfAttention
brick of this paper's assembly: helper
2 other papers
2 dated earlier · 1 only as an assembly brick
2005.05402 (2020-05)
MART: Memory-Augmented Recurrent Transformer for Coherent Video Paragraph Captioning
2108.00061 (2021-08)
MTVR: Multilingual Moment Retrieval in Videos
LabelSmoothingLoss
brick of this paper's assembly: helper
2 other papers
2 dated earlier · 2 only as an assembly brick
2005.05402 (2020-05)
MART: Memory-Augmented Recurrent Transformer for Coherent Video Paragraph Captioning
2203.14040 (2022-03)
Visual Abductive Reasoning
MemoryInitializer
brick of this paper's assembly: model
2 other papers
2 dated earlier · 2 only as an assembly brick
2005.05402 (2020-05)
MART: Memory-Augmented Recurrent Transformer for Coherent Video Paragraph Captioning
2210.08465 (2022-10)
Character-Centric Story Visualization via Visual Planning and Token Alignment
BertLayerWithMemory
brick of this paper's assembly: model
1 other paper
1 dated earlier · 1 only as an assembly brick
2005.05402 (2020-05)
MART: Memory-Augmented Recurrent Transformer for Coherent Video Paragraph Captioning
MemoryUpdater
brick of this paper's assembly: model
1 other paper
1 dated earlier · 1 only as an assembly brick
2005.05402 (2020-05)
MART: Memory-Augmented Recurrent Transformer for Coherent Video Paragraph Captioning
RecursiveTransformer
brick of this paper's assembly: entry
1 other paper
1 dated earlier
2005.05402 (2020-05)
MART: Memory-Augmented Recurrent Transformer for Coherent Video Paragraph Captioning
make_pad_shifted_mask
brick of this paper's assembly: helper
1 other paper
1 dated earlier · 1 only as an assembly brick
2005.05402 (2020-05)
MART: Memory-Augmented Recurrent Transformer for Coherent Video Paragraph Captioning
make_shifted_mask
brick of this paper's assembly: helper
1 other paper
1 dated earlier · 1 only as an assembly brick
2005.05402 (2020-05)
MART: Memory-Augmented Recurrent Transformer for Coherent Video Paragraph Captioning
make_video_only_mask
brick of this paper's assembly: helper
1 other paper
1 dated earlier · 1 only as an assembly brick
2005.05402 (2020-05)
MART: Memory-Augmented Recurrent Transformer for Coherent Video Paragraph Captioning

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

Change captioning generates descriptions that explicitly describe the differences between two visually similar images. Existing methods operate on static image pairs, thus ignoring the rich temporal dynamics of the change procedure, which is the key to understand not only what has changed but also how it occurs. We introduce ProCap, a novel framework that reformulates change modeling from static image comparison to dynamic procedure modeling. ProCap features a two-stage design: The first stage trains a procedure encoder to learn the change procedure from a sparse set of keyframes. These keyframes are obtained by automatically generating intermediate frames to make the implicit procedural dynamics explicit and then sampling them to mitigate redundancy. Then the encoder learns to capture the latent dynamics of these keyframes via a caption-conditioned, masked reconstruction task. The second stage integrates this trained encoder within an encoder-decoder model for captioning. Instead of relying on explicit frames from the previous stage-a process incurring computational overhead and sensitivity to visual noise-we introduce learnable procedure queries to prompt the encoder for inferring the latent procedure representation, which the decoder then translates into text. The entire model is then trained end-to-end with a captioning loss, ensuring the encoder's output is both temporally coherent and captioning-aligned. Experiments on three datasets demonstrate the effectiveness of ProCap. Code and pre-trained models are available at https://github.com/BlueberryOreo/ProCap.

For agents

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

get_harvested_code_for_paper("2603.05969")
get_code_for_paper("2603.05969")
have("2603.05969")

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

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

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

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

Connect an agent — have() is free.