SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2407.16171 · ECCV · 2024

Learning Trimodal Relation for Audio-Visual Question Answering with Missing Modality

Jung Kim, Kyu Park, Hong Lee

arXiv · PDF · Open in the Atlas

Code that ran

20 of 24 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (14 of them constructed an object rather than computing a result; 4 honoured the contract we drafted, 0 violated it and 14 have no contract verdict; 2 failures of our instrument; 4 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/2407.16171.json · badge: /api/ran/2407.16171.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
VisualAIKHU/Missing-AVQA community
Papers with Code archive
17 ran · 4 no recorded run
copy not recorded community
not in the paper's declared repositories
3 ran · 0 no recorded run
FunctionStatusWhere it lives
AVQA_Memory Ran
ran on a synthesized input · constructed an object; no result was computed
VisualAIKHU/Missing-AVQA/net_grd_avst/net_avst.py
code served (permissive licence) · get_code("b19aa687804ddbdd")
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, AVQA_Memory: 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)

ARGS = {
    "memory_size": 8,
    "faeture_dim": 4,
}
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 AVQA_Memory — 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 AVQA_Memory 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
Attend Ran
ran on a synthesized input · constructed an object; no result was computed
VisualAIKHU/Missing-AVQA/net_grd_avst/net_avst.py
code served (permissive licence) · get_code("a461fe5c0890e880")
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, Attend: the run constructed the object and did not call it, so no result was computed. The image it ran in was not recorded. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is 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)

ARGS = {
    'dropout': 0.1,
    'flash': False,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
packaging, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Attend — 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 Attend 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
Attention Ran
ran on a synthesized input · constructed an object; no result was computed
VisualAIKHU/Missing-AVQA/net_grd_avst/net_avst.py
code served (permissive licence) · get_code("100973e0dc95d746")
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, Attention: the run constructed the object and did not call it, so no result was computed. The image it ran in was not recorded. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is 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)

ARGS = {
    'dim': 64,
    'heads': 4,
    'dim_head': 16,
    'num_mem_kv': 4,
    'flash': False
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
einops, packaging, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Attention — 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 Attention 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
BasicBlock Ran
ran on a synthesized input · constructed an object; no result was computed
VisualAIKHU/Missing-AVQA/net_grd_avst/net_avst.py
code served (permissive licence) · get_code("f3b98aa33cb4d3fc")
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, BasicBlock: 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)

# Build a small downsample module that matches what BasicBlock expects
downsample_module = nn.Sequential(
    nn.Conv2d(4, 8, kernel_size=1, stride=2, bias=False),
    nn.BatchNorm2d(8)
)

# Define ARGS dict with all parameters for BasicBlock
ARGS = {
    'inplanes': 4,
    'planes': 8,
    'stride': 2,
    'downsample': downsample_module,
    'groups': 1,
    'base_width': 64,
    'dilation': 1,
    'norm_layer': nn.BatchNorm2d
}
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 BasicBlock — 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 BasicBlock 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
Block Ran
ran on a synthesized input · constructed an object; no result was computed
VisualAIKHU/Missing-AVQA/net_grd_avst/net_avst.py
code served (permissive licence) · get_code("1b1fcc6ab25fa4ef")
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, Block: 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)

# Block.__init__ parameters: dim, dim_out, groups
# Block.forward parameters: x, scale_shift

# Create input tensor: (batch=2, channels=dim=4, height=8, width=8)
x = torch.randn(2, 4, 8, 8)

# Create scale_shift: tuple of (scale, shift) tensors
# Both should have shape matching dim_out for broadcasting
scale = torch.randn(2, 3, 1, 1)
shift = torch.randn(2, 3, 1, 1)
scale_shift = (scale, shift)

ARGS = {
    "dim": 4,
    "dim_out": 3,
    "groups": 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 Block — 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 Block 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
Bottleneck Ran
ran on a synthesized input · constructed an object; no result was computed
VisualAIKHU/Missing-AVQA/net_grd_avst/net_avst.py
code served (permissive licence) · get_code("0df99f2ca89a9f10")
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, Bottleneck: 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)

# Bottleneck parameters
inplanes = 4
planes = 3
stride = 1

# Create a downsample module that takes input and returns output of correct shape
# The forward method is called in the Bottleneck forward pass
downsample = nn.Sequential(
    nn.Conv2d(inplanes, planes * 4, kernel_size=1, stride=stride, bias=False),
    nn.BatchNorm2d(planes * 4)
)

groups = 1
base_width = 64
dilation = 1
norm_layer = nn.BatchNorm2d

ARGS = {
    "inplanes": inplanes,
    "planes": planes,
    "stride": stride,
    "downsample": downsample,
    "groups": groups,
    "base_width": base_width,
    "dilation": dilation,
    "norm_layer": norm_layer
}
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 Bottleneck — 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 Bottleneck 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
Downsample Ran
ran; our contract draft was wrong, not the code
VisualAIKHU/Missing-AVQA/net_grd_avst/net_avst.py
code served (permissive licence) · get_code("b5bf8353f4199efb")
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 Sequential. 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 einops.layers.torch import Rearrange

torch.manual_seed(0)

def exists(x):
    return x is not None

def default(val, d):
    if exists(val):
        return val
    return d() if callable(d) else d

ARGS = {
    "dim": 4,
    "dim_out": 8
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
einops, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Sequential — a Sequential output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Sequential output the recorded ndim 1 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
GaussianDiffusion Ran
ran on a synthesized input · constructed an object; no result was computed
VisualAIKHU/Missing-AVQA/net_grd_avst/net_avst.py
code served (permissive licence) · get_code("1cbe92e0187480a4")
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, GaussianDiffusion: the run constructed the object and did not call it, so no result was computed. The image it ran in was not recorded. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is 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 model that satisfies the GaussianDiffusion requirements
class DummyUNet(nn.Module):
    def __init__(self, channels=3, out_dim=3):
        super().__init__()
        self.channels = channels
        self.out_dim = out_dim
        self.self_condition = False
        self.random_or_learned_sinusoidal_cond = False
        self.net = nn.Linear(16, 16)
    
    def forward(self, x, time, x_self_cond=None):
        # x shape: (batch, channels, height, width)
        # time shape: (batch,)
        batch_size = x.shape[0]
        return torch.randn(batch_size, self.out_dim, 4, 4)

# Instantiate the model
model = DummyUNet(channels=3, out_dim=3)

# Build ARGS dictionary with all parameters for GaussianDiffusion.__init__
ARGS = {
    'model': model,
    'image_size': 32,
    'timesteps': 100,
    'sampling_timesteps': None,
    'objective': 'pred_v',
    'beta_schedule': 'sigmoid',
    'schedule_fn_kwargs': {},
    'ddim_sampling_eta': 0.0,
    'auto_normalize': True,
    'offset_noise_strength': 0.0,
    'min_snr_loss_weight': False,
    'min_snr_gamma': 5,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
einops, torch, tqdm — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type GaussianDiffusion — 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 GaussianDiffusion 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
LinearAttention Ran
ran on a synthesized input · constructed an object; no result was computed
VisualAIKHU/Missing-AVQA/net_grd_avst/net_avst.py
code served (permissive licence) · get_code("49dea4e895a85ad5")
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, LinearAttention: 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 torch.nn.functional as F
from functools import partial
from einops import rearrange, reduce, repeat

torch.manual_seed(0)

class RMSNorm(nn.Module):

    def __init__(self, dim):
        super().__init__()
        self.g = nn.Parameter(torch.ones(1, dim, 1, 1))

    def forward(self, x):
        return F.normalize(x, dim=1) * self.g * x.shape[1] ** 0.5

class LinearAttention(nn.Module):

    def __init__(self, dim, heads=4, dim_head=32, num_mem_kv=4):
        super().__init__()
        self.scale = dim_head ** (-0.5)
        self.heads = heads
        hidden_dim = dim_head * heads
        self.norm = RMSNorm(dim)
        self.mem_kv = nn.Parameter(torch.randn(2, heads, dim_head, num_mem_kv))
        self.to_qkv = nn.Conv2d(dim, hidden_dim * 3, 1, bias=False)
        self.to_out = nn.Sequential(nn.Conv2d(hidden_dim, dim, 1), RMSNorm(dim))

    def forward(self, x):
        b, c, h, w = x.shape
        x = self.norm(x)
        qkv = self.to_qkv(x).chunk(3, dim=1)
        q, k, v = map(lambda t: rearrange(t, 'b (h c) x y -> b h c (x y)', h=self.heads), qkv)
        mk, mv = map(lambda t: repeat(t, 'h c n -> b h c n', b=b), self.mem_kv)
        k, v = map(partial(torch.cat, dim=-1), ((mk, k), (mv, v)))
        q = q.softmax(dim=-2)
        k = k.softmax(dim=-1)
        q = q * self.scale
        context = torch.einsum('b h d n, b h e n -> b h d e', k, v)
        out = torch.einsum('b h d e, b h d n -> b h e n', context, q)
        out = rearrange(out, 'b h c (x y) -> b (h c) x y', h=self.heads, x=h, y=w)
        return self.to_out(out)

# Create input tensor: batch=2, channels=4, height=3, width=3
x = torch.randn(2, 4, 3, 3)

ARGS = {
    "dim": 4,
    "heads": 2,
    "dim_head": 2,
    "num_mem_kv": 4,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
einops, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type LinearAttention — 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 LinearAttention 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
QstEncoder Ran
ran on a synthesized input · constructed an object; no result was computed
VisualAIKHU/Missing-AVQA/net_grd_avst/net_avst.py
code served (permissive licence) · get_code("bb260ea644c95e3a")
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, QstEncoder: 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 QstEncoder(nn.Module):

    def __init__(self, qst_vocab_size, word_embed_size, embed_size, num_layers, hidden_size):
        super(QstEncoder, self).__init__()
        self.word2vec = nn.Embedding(qst_vocab_size, word_embed_size)
        self.tanh = nn.Tanh()
        self.lstm = nn.LSTM(word_embed_size, hidden_size, num_layers)
        self.fc = nn.Linear(2 * num_layers * hidden_size, embed_size)

    def forward(self, question):
        qst_vec = self.word2vec(question)
        qst_vec = self.tanh(qst_vec)
        qst_vec = qst_vec.transpose(0, 1)
        self.lstm.flatten_parameters()
        _, (hidden, cell) = self.lstm(qst_vec)
        qst_feature = torch.cat((hidden, cell), 2)
        qst_feature = qst_feature.transpose(0, 1)
        qst_feature = qst_feature.reshape(qst_feature.size()[0], -1)
        qst_feature = self.tanh(qst_feature)
        qst_feature = self.fc(qst_feature)
        return qst_feature

# Create model instance and test input
qst_vocab_size = 100
word_embed_size = 8
embed_size = 16
num_layers = 2
hidden_size = 4

model = QstEncoder(
    qst_vocab_size=qst_vocab_size,
    word_embed_size=word_embed_size,
    embed_size=embed_size,
    num_layers=num_layers,
    hidden_size=hidden_size
)

# Create test question tensor: (seq_len, batch_size) with token indices
question = torch.randint(0, qst_vocab_size, (7, 2))

ARGS = {
    "qst_vocab_size": qst_vocab_size,
    "word_embed_size": word_embed_size,
    "embed_size": embed_size,
    "num_layers": num_layers,
    "hidden_size": hidden_size
}
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 QstEncoder — 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 QstEncoder 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
RMSNorm Ran
ran on a synthesized input · constructed an object; no result was computed
VisualAIKHU/Missing-AVQA/net_grd_avst/net_avst.py
code served (permissive licence) · get_code("30e7fae83920ab01")
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, RMSNorm: 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 torch.nn.functional as F

class RMSNorm(nn.Module):

    def __init__(self, dim):
        super().__init__()
        self.g = nn.Parameter(torch.ones(1, dim, 1, 1))

    def forward(self, x):
        return F.normalize(x, dim=1) * self.g * x.shape[1] ** 0.5

torch.manual_seed(0)

dim = 4

ARGS = {
    'dim': dim
}
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 RMSNorm — 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 RMSNorm 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
RandomOrLearnedSinusoidalPosEmb Ran
ran on a synthesized input · constructed an object; no result was computed
VisualAIKHU/Missing-AVQA/net_grd_avst/net_avst.py
code served (permissive licence) · get_code("b100b6c72c401001")
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, RandomOrLearnedSinusoidalPosEmb: 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
from einops import rearrange, reduce, repeat

torch.manual_seed(0)

def divisible_by(numer, denom):
    return numer % denom == 0

class RandomOrLearnedSinusoidalPosEmb(nn.Module):
    """ following @crowsonkb 's lead with random (learned optional) sinusoidal pos emb """
    ' https://github.com/crowsonkb/v-diffusion-jax/blob/master/diffusion/models/danbooru_128.py#L8 '

    def __init__(self, dim, is_random=False):
        super().__init__()
        assert divisible_by(dim, 2)
        half_dim = dim // 2
        self.weights = nn.Parameter(torch.randn(half_dim), requires_grad=not is_random)

    def forward(self, x):
        x = rearrange(x, 'b -> b 1')
        freqs = x * rearrange(self.weights, 'd -> 1 d') * 2 * math.pi
        fouriered = torch.cat((freqs.sin(), freqs.cos()), dim=-1)
        fouriered = torch.cat((x, fouriered), dim=-1)
        return fouriered


ARGS = {
    'dim': 4,
    'is_random': False
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
einops, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type RandomOrLearnedSinusoidalPosEmb — 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 RandomOrLearnedSinusoidalPosEmb 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
ResNet Ran
ran on a synthesized input · constructed an object; no result was computed
VisualAIKHU/Missing-AVQA/net_grd_avst/net_avst.py
code served (permissive licence) · get_code("6f0b7d14d56b9a7b")
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, ResNet: 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)

# Define helper functions needed by ResNet
def conv1x1(in_planes, out_planes, stride=1):
    """1x1 convolution"""
    return nn.Conv2d(in_planes, out_planes, kernel_size=1, stride=stride, bias=False)

def conv3x3(in_planes, out_planes, stride=1, groups=1, dilation=1):
    """3x3 convolution with padding"""
    return nn.Conv2d(in_planes, out_planes, kernel_size=3, stride=stride, padding=dilation, groups=groups, bias=False, dilation=dilation)

# Define BasicBlock and Bottleneck classes
class BasicBlock(nn.Module):
    expansion = 1

    def __init__(self, inplanes, planes, stride=1, downsample=None, groups=1, base_width=64, dilation=1, norm_layer=None):
        super(BasicBlock, self).__init__()
        if norm_layer is None:
            norm_layer = nn.BatchNorm2d
        if groups != 1 or base_width != 64:
            raise ValueError('BasicBlock only supports groups=1 and base_width=64')
        if dilation > 1:
            raise NotImplementedError('Dilation > 1 not supported in BasicBlock')
        self.conv1 = conv3x3(inplanes, planes, stride)
        self.bn1 = norm_layer(planes)
        self.relu = nn.ReLU(inplace=True)
        self.conv2 = conv3x3(planes, planes)
        self.bn2 = norm_layer(planes)
        self.downsample = downsample
        self.stride = stride

    def forward(self, x):
        identity = x
        out = self.conv1(x)
        out = self.bn1(out)
        out = self.relu(out)
        out = self.conv2(out)
        out = self.bn2(out)
        if self.downsample is not None:
            identity = self.downsample(x)
        out += identity
        out = self.relu(out)
        return out

class Bottleneck(nn.Module):
    expansion = 4

    def __init__(self, inplanes, planes, stride=1, downsample=None, groups=1, base_width=64, dilation=1, norm_layer=None):
        super(Bottleneck, self).__init__()
        if norm_layer is None:
            norm_layer = nn.BatchNorm2d
        width = int(planes * (base_width / 64.0)) * groups
        self.conv1 = conv1x1(inplanes, width)
        self.bn1 = norm_layer(width)
        self.conv2 = conv3x3(width, width, stride, groups, dilation)
        self.bn2 = norm_layer(width)
        self.conv3 = conv1x1(width, planes * self.expansion)
        self.bn3 = norm_layer(planes * self.expansion)
        self.relu = nn.ReLU(inplace=True)
        self.downsample = downsample
        self.stride = stride

    def forward(self, x):
        identity = x
        out = self.conv1(x)
        out = self.bn1(out)
        out = self.relu(out)
        out = self.conv2(out)
        out = self.bn2(out)
        out = self.relu(out)
        out = self.conv3(out)
        out = self.bn3(out)
        if self.downsample is not None:
            identity = self.downsample(x)
        out += identity
        out = self.relu(out)
        return out

ARGS = {
    'block': BasicBlock,
    'layers': [2, 2, 2, 2],
    'modal': 'rgb',
    'num_classes': 1000,
    'zero_init_residual': False,
    'groups': 1,
    'width_per_group': 64,
    'replace_stride_with_dilation': None,
    'norm_layer': 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 ResNet — 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 ResNet 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
ResnetBlock Ran
ran on a synthesized input · constructed an object; no result was computed
VisualAIKHU/Missing-AVQA/net_grd_avst/net_avst.py
code served (permissive licence) · get_code("b18e27ad640dde3d")
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, ResnetBlock: 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
from einops import rearrange, reduce, repeat

torch.manual_seed(0)

def exists(x):
    return x is not None

class Block(nn.Module):

    def __init__(self, dim, dim_out, groups=8):
        super().__init__()
        self.proj = nn.Conv2d(dim, dim_out, 3, padding=1)
        self.norm = nn.GroupNorm(groups, dim_out)
        self.act = nn.SiLU()

    def forward(self, x, scale_shift=None):
        x = self.proj(x)
        x = self.norm(x)
        if exists(scale_shift):
            scale, shift = scale_shift
            x = x * (scale + 1) + shift
        x = self.act(x)
        return x

class ResnetBlock(nn.Module):

    def __init__(self, dim, dim_out, *, time_emb_dim=None, groups=8):
        super().__init__()
        self.mlp = nn.Sequential(nn.SiLU(), nn.Linear(time_emb_dim, dim_out * 2)) if exists(time_emb_dim) else None
        self.block1 = Block(dim, dim_out, groups=groups)
        self.block2 = Block(dim_out, dim_out, groups=groups)
        self.res_conv = nn.Conv2d(dim, dim_out, 1) if dim != dim_out else nn.Identity()

    def forward(self, x, time_emb=None):
        scale_shift = None
        if exists(self.mlp) and exists(time_emb):
            time_emb = self.mlp(time_emb)
            time_emb = rearrange(time_emb, 'b c -> b c 1 1')
            scale_shift = time_emb.chunk(2, dim=1)
        h = self.block1(x, scale_shift=scale_shift)
        h = self.block2(h)
        return h + self.res_conv(x)

# Create test inputs
batch_size = 2
dim = 4
dim_out = 3
time_emb_dim = 8
height = 5
width = 5

x = torch.randn(batch_size, dim, height, width)
time_emb = torch.randn(batch_size, time_emb_dim)

ARGS = {
    'dim': dim,
    'dim_out': dim_out,
    'time_emb_dim': time_emb_dim,
    'groups': 1
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
einops, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ResnetBlock — 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 ResnetBlock 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
SinusoidalPosEmb Ran
ran on a synthesized input · constructed an object; no result was computed
VisualAIKHU/Missing-AVQA/net_grd_avst/net_avst.py
code served (permissive licence) · get_code("2b8015ff3c87273a")
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, SinusoidalPosEmb: 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)

# Analyze the function:
# - __init__ takes: dim (int), theta (int, default 10000)
# - forward takes: x (tensor of shape [batch_size])
# The forward method expects x to be 1D tensor (indexing with x[:, None])

# Create a small input tensor
# x should be 1D with batch dimension
x = torch.arange(2, dtype=torch.float32)  # shape: [2]

ARGS = {
    "dim": 4,
    "theta": 10000,
}
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 SinusoidalPosEmb — 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 SinusoidalPosEmb 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
Upsample Ran
ran; our contract draft was wrong, not the code
VisualAIKHU/Missing-AVQA/net_grd_avst/net_avst.py
code served (permissive licence) · get_code("410a7d2e8c88e682")
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 Sequential. 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)

def exists(x):
    return x is not None

def default(val, d):
    if exists(val):
        return val
    return d() if callable(d) else d

def Upsample(dim, dim_out=None):
    return nn.Sequential(nn.Upsample(scale_factor=2, mode='nearest'), nn.Conv2d(dim, default(dim_out, dim), 3, padding=1))

ARGS = {
    "dim": 4,
    "dim_out": 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 Sequential — a Sequential output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Sequential output the recorded ndim 1 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
cast_tuple Ran
ran, honoured the contract we drafted
this paper's copy was not recorded; identical code first harvested from lucidrains/denoising-diffusion-pytorch
pointer only · get_code("d229662b12e581b6")
How it ran

The body of this sample is withheld: this paper's copy of the code was not recorded (its link names no repository or source path), so no licence was read for it. 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.

cosine_beta_schedule Ran
ran, honoured the contract we drafted
VisualAIKHU/Missing-AVQA/net_grd_avst/net_avst.py
code served (permissive licence) · get_code("079814bd981435a5")
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 1, dtype family float, shape (10,) 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 math

torch.manual_seed(0)

ARGS = {
    "timesteps": 10,
    "s": 0.008
}
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 1, dtype family float, shape (10,) — shape (10,) 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
normalize_to_neg_one_to_one Ran
ran, honoured the contract we drafted
this paper's copy was not recorded; identical code first harvested from futurexiang/soda
pointer only; the stored copy get_code serves, from futurexiang/soda, is pointer only (licence: NONE) · get_code("a1229a9f4df127e2")
How it ran

The body of this sample is withheld: this paper's copy of the code was not recorded (its link names no repository or source path), so no licence was read for it. 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.

unnormalize_to_zero_to_one Ran
ran, honoured the contract we drafted
this paper's copy was not recorded; identical code first harvested from futurexiang/soda
pointer only; the stored copy get_code serves, from futurexiang/soda, is pointer only (licence: NONE) · get_code("97e1bbd232dfe092")
How it ran

The body of this sample is withheld: this paper's copy of the code was not recorded (its link names no repository or source path), so no licence was read for it. 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.

AVQA_Fusion_Net Not yet run
unverified (harvested, no recorded run)
VisualAIKHU/Missing-AVQA/net_grd_avst/net_avst.py
code served (permissive licence) · get_code("a787fa87e1afe3f0")
How it ran

no invocation recorded.

Unet Not yet run
unverified (harvested, no recorded run)
VisualAIKHU/Missing-AVQA/net_grd_avst/net_avst.py
code served (permissive licence) · get_code("44756209b5482bd6")
How it ran

no invocation recorded.

_resnet Not yet run
unverified (harvested, no recorded run)
VisualAIKHU/Missing-AVQA/net_grd_avst/net_avst.py
code served (permissive licence) · get_code("023ac56ffd33d3bc")
How it ran

no invocation recorded.

resnet18 Not yet run
unverified (harvested, no recorded run)
VisualAIKHU/Missing-AVQA/net_grd_avst/net_avst.py
code served (permissive licence) · get_code("b03e2f9d7a1ce561")
How it ran

no invocation recorded.

Also present in other papers' code

Of 24 samples lifted from this paper's linked repositories, 24 carry a function identity and 0 do not. Of the 24 distinct functions with an identity, 16 are also present in other papers whose code we hold (13 with at least one paper dated earlier, 11 the same month, 6 later) and 8 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
normalize_to_neg_one_to_one 18 other papers
10 dated earlier, 2 the same month, 6 later · 8 only as an assembly brick
1611.07004 (2016-11)
Image-to-Image Translation with Conditional Adversarial Networks
2006.11239 (2020-06)
Denoising Diffusion Probabilistic Models
2209.15571 (2022-09)
Building Normalizing Flows with Stochastic Interpolants
and 15 more not named here
unnormalize_to_zero_to_one 18 other papers
9 dated earlier, 2 the same month, 7 later · 9 only as an assembly brick
2006.11239 (2020-06)
Denoising Diffusion Probabilistic Models
2105.05233 (2021-05)
Diffusion Models Beat GANs on Image Synthesis
2209.15571 (2022-09)
Building Normalizing Flows with Stochastic Interpolants
and 15 more not named here
BasicBlock 16 other papers
12 dated earlier, 4 later · 13 only as an assembly brick
1512.03385 (2015-12)
Deep Residual Learning for Image Recognition
2003.11942 (2020-03)
Towards Backward-Compatible Representation Learning
2103.10211 (2021-03)
Space-Time Crop & Attend: Improving Cross-modal Video Representation Learning
and 13 more not named here
Bottleneck 15 other papers
11 dated earlier, 4 later · 12 only as an assembly brick
2003.10152 (2020-03)
SOLOv2: Dynamic and Fast Instance Segmentation
2003.11942 (2020-03)
Towards Backward-Compatible Representation Learning
2103.10211 (2021-03)
Space-Time Crop & Attend: Improving Cross-modal Video Representation Learning
and 12 more not named here
cosine_beta_schedule 6 other papers
3 dated earlier, 1 the same month, 2 later · 3 only as an assembly brick
2006.11239 (2020-06)
Denoising Diffusion Probabilistic Models
2010.02502 (2020-10)
Denoising Diffusion Implicit Models
2306.01776 (2023-06)
From Zero to Turbulence: Generative Modeling for 3D Flow Simulation
and 3 more not named here
cast_tuple 5 other papers
3 dated earlier, 1 the same month, 1 later · 1 only as an assembly brick
2208.09392 (2022-08)
Cold Diffusion: Inverting Arbitrary Image Transforms Without Noise
2211.12444 (2022-11)
Can denoising diffusion probabilistic models generate realistic astrophysical fields?
2403.08262 (2024-03)
BiTT: Bi-directional Texture Reconstruction of Interacting Two Hands from a Single Image
and 2 more not named here
Block 2 other papers
1 dated earlier, 1 the same month · 1 only as an assembly brick
2006.11239 (2020-06)
Denoising Diffusion Probabilistic Models
2407.16448 (2024-07)
MonoWAD: Weather-Adaptive Diffusion Model for Robust Monocular 3D Object Detection
Downsample 2 other papers
1 dated earlier, 1 the same month · 1 only as an assembly brick
2403.00939 (2024-03)
G3DR: Generative 3D Reconstruction in ImageNet
2407.16448 (2024-07)
MonoWAD: Weather-Adaptive Diffusion Model for Robust Monocular 3D Object Detection
ResnetBlock 2 other papers
1 dated earlier, 1 the same month · 1 only as an assembly brick
2309.03729 (2023-09)
Phasic Content Fusing Diffusion Model with Directional Distribution Consistency for Few-Shot Model Adaption
2407.16448 (2024-07)
MonoWAD: Weather-Adaptive Diffusion Model for Robust Monocular 3D Object Detection
Upsample 2 other papers
1 dated earlier, 1 the same month · 1 only as an assembly brick
2403.00939 (2024-03)
G3DR: Generative 3D Reconstruction in ImageNet
2407.16448 (2024-07)
MonoWAD: Weather-Adaptive Diffusion Model for Robust Monocular 3D Object Detection
resnet18 2 other papers
2 dated earlier
2104.02691 (2021-04)
Localizing Visual Sounds the Hard Way
2203.14072 (2022-03)
Learning to Answer Questions in Dynamic Audio-Visual Scenarios
Attend 1 other paper
1 the same month
2407.16448 (2024-07)
MonoWAD: Weather-Adaptive Diffusion Model for Robust Monocular 3D Object Detection
QstEncoder 1 other paper
1 dated earlier · 1 only as an assembly brick
2203.14072 (2022-03)
Learning to Answer Questions in Dynamic Audio-Visual Scenarios
RMSNorm 1 other paper
1 the same month
2407.16448 (2024-07)
MonoWAD: Weather-Adaptive Diffusion Model for Robust Monocular 3D Object Detection
RandomOrLearnedSinusoidalPosEmb 1 other paper
1 the same month
2407.16448 (2024-07)
MonoWAD: Weather-Adaptive Diffusion Model for Robust Monocular 3D Object Detection
ResNet 1 other paper
1 dated earlier
2203.14072 (2022-03)
Learning to Answer Questions in Dynamic Audio-Visual Scenarios

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

Recent Audio-Visual Question Answering (AVQA) methods rely on complete visual and audio input to answer questions accurately. However, in real-world scenarios, issues such as device malfunctions and data transmission errors frequently result in missing audio or visual modality. In such cases, existing AVQA methods suffer significant performance degradation. In this paper, we propose a framework that ensures robust AVQA performance even when a modality is missing. First, we propose a Relation-aware Missing Modal (RMM) generator with Relationaware Missing Modal Recalling (RMMR) loss to enhance the ability of the generator to recall missing modal information by understanding the relationships and context among the available modalities. Second, we design an Audio-Visual Relation-aware (AVR) diffusion model with Audio-Visual Enhancing (AVE) loss to further enhance audio-visual features by leveraging the relationships and shared cues between the audio-visual modalities. As a result, our method can provide accurate answers by effectively utilizing available information even when input modalities are missing. We believe our method holds potential applications not only in AVQA research but also in various multi-modal scenarios. The code is available at https://github.com/VisualAIKHU/Missing-AVQA.

For agents

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

get_harvested_code_for_paper("2407.16171")
get_code_for_paper("2407.16171")
have("2407.16171")

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

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

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

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

Connect an agent — have() is free.