SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2405.17613 · NeurIPS · 2024

Jointly Modeling Inter-& Intra-Modality Dependencies for Multi-modal Learning

Kyunghyun Cho, Taro Makino, Divyam Madaan, Genentech, Sumit Chopra

arXiv · PDF · Open in the Atlas

Code that ran

7 of 11 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 3 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 4 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/2405.17613.json · badge: /api/ran/2405.17613.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
divyam3897/i2m2 canonical (classifier label)
classifier basis: census
7 ran · 4 no recorded run
FunctionStatusWhere it lives
AUPRC Ran
ran, honoured the contract we drafted
divyam3897/i2m2/avmnist_and_mimic/eval_scripts/performance.py
code served (permissive licence) · get_code("809e3aa9964cb3ea")
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 float, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import sklearn.metrics

torch_seed = 0

# AUPRC expects pts, which is a list of tuples
# Each tuple is (predicted_prob, true_label)
# predicted_prob is a float (probability score)
# true_label is an int (0 or 1)

pts = [
    (0.9, 1),
    (0.2, 0),
    (0.7, 1),
    (0.3, 0),
    (0.8, 1),
    (0.1, 0),
]

ARGS = {
    "pts": pts
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
sklearn — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
center_crop Ran
ran; our contract draft was wrong, not the code
divyam3897/i2m2/fastMRI/models/preactresnet_knee.py
code served (permissive licence) · get_code("0e748b3eca1dc04c")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 4, dtype family float, shape (2, 4, 4, 3) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# Create a small tensor with spatial dimensions to be center-cropped
# Shape: (batch=2, channels=4, height=8, width=6)
# The function accesses data[..., w_from:w_to, h_from:h_to]
# so we need at least 2D spatial dimensions at the end
data = torch.randn(2, 4, 8, 6)

# Target shape for center crop: (height=4, width=3)
shape = (4, 3)

ARGS = {
    "data": data,
    "shape": shape,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 4, dtype family float, shape (2, 4, 4, 3) — shape (2, 4, 4, 3) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
f1_score Ran
ran; our contract draft was wrong, not the code
divyam3897/i2m2/avmnist_and_mimic/eval_scripts/performance.py
code served (permissive licence) · get_code("191c253b532edecf")
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 float, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np

torch.manual_seed(0)

# Create small sample tensors for binary classification
# truth: ground truth labels
# pred: predicted labels
truth = torch.tensor([0, 1, 1, 0, 1, 1], dtype=torch.long)
pred = torch.tensor([0, 1, 0, 0, 1, 1], dtype=torch.long)

# average: the type of averaging for multi-class f1 score
average = 'weighted'

ARGS = {
    'truth': truth,
    'pred': pred,
    'average': average
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, sklearn, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_robustness_metric Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
divyam3897/i2m2/avmnist_and_mimic/eval_scripts/robustness.py
code served (permissive licence) · get_code("5df0e36414846c02")
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 float64, ndim 0, 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 numpy as np

# Set up the global robustness dictionary that the function uses
robustness = {
    'LF': {
        'task1': [0.9, 0.85, 0.80, 0.75, 0.70],
        'task2': [0.88, 0.83, 0.78, 0.73, 0.68],
    },
    'EF': {
        'task1': [0.92, 0.87, 0.82, 0.77, 0.72],
        'task2': [0.90, 0.85, 0.80, 0.75, 0.70],
    },
    'EF-Transformer': {
        'task1': [0.91, 0.86, 0.81, 0.76, 0.71],
        'task2': [0.89, 0.84, 0.79, 0.74, 0.69],
    },
    'LF-Transformer': {
        'task1': [0.88, 0.83, 0.78, 0.73, 0.68],
        'task2': [0.86, 0.81, 0.76, 0.71, 0.66],
    },
    'OtherMethod': {
        'task1': [0.85, 0.80, 0.75, 0.70, 0.65],
        'task2': [0.83, 0.78, 0.73, 0.68, 0.63],
    },
}

# Prepare the arguments for get_robustness_metric
robustness_result = np.array([0.95, 0.90, 0.85, 0.80, 0.75])
task = 'task1'
metric = 'relative'

ARGS = {
    'robustness_result': robustness_result,
    'task': task,
    'metric': metric,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float64, ndim 0, dtype family float — no output shape is stated: observe_signature.py recorded float ndim 0, which disagrees with the fixture run
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
getallparams Ran
ran, honoured the contract we drafted
divyam3897/i2m2/avmnist_and_mimic/eval_scripts/complexity.py
code served (permissive licence) · get_code("f86744b3991d473e")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned int, ndim 0, dtype family int, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

torch.manual_seed(0)

# Create small neural network modules
class TinyModel1(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear1 = nn.Linear(4, 3)
        self.linear2 = nn.Linear(3, 2)
    
    def forward(self, x):
        return self.linear2(self.linear1(x))

class TinyModel2(nn.Module):
    def __init__(self):
        super().__init__()
        self.conv = nn.Conv1d(2, 3, kernel_size=2)
        self.linear = nn.Linear(3, 1)
    
    def forward(self, x):
        return self.linear(self.conv(x))

class TinyModel3(nn.Module):
    def __init__(self):
        super().__init__()
        self.embedding = nn.Embedding(10, 5)
        self.linear = nn.Linear(5, 2)
    
    def forward(self, x):
        return self.linear(self.embedding(x))

# Create instances
model1 = TinyModel1()
model2 = TinyModel2()
model3 = TinyModel3()

# Build the list of modules
module_list = [model1, model2, model3]

# Define ARGS
ARGS = {
    "li": module_list
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type int, ndim 0, dtype family int, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
ptsort Ran
ran, honoured the contract we drafted
divyam3897/i2m2/avmnist_and_mimic/eval_scripts/performance.py
code served (permissive licence) · get_code("c93aad3618c35efa")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 2, dtype family float, shape (2, 4) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# The function ptsort(tu) returns tu[0]
# So tu must be indexable (tuple, list, etc.) with at least one element
# The simplest valid argument is a tuple or list where the first element exists

tu = (torch.randn(2, 4), torch.randn(2, 3))

ARGS = {
    "tu": tu
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family float, shape (2, 4) — shape (2, 4) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
relative_robustness Ran
ran; our contract draft was wrong, not the code
divyam3897/i2m2/avmnist_and_mimic/eval_scripts/robustness.py
code served (permissive licence) · get_code("9990c3a811795e37")
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 float64, ndim 0, 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 numpy as np

# Set up the global robustness dictionary that the function depends on
robustness = {
    'LF': {
        'task_a': [0.8, 0.75, 0.7, 0.65, 0.6, 0.55, 0.5, 0.45, 0.4, 0.35],
        'task_b': [0.9, 0.85, 0.8, 0.75, 0.7, 0.65, 0.6, 0.55, 0.5, 0.45]
    },
    'EF': {
        'task_a': [0.82, 0.77, 0.72, 0.67, 0.62, 0.57, 0.52, 0.47, 0.42, 0.37],
        'task_b': [0.92, 0.87, 0.82, 0.77, 0.72, 0.67, 0.62, 0.57, 0.52, 0.47]
    },
    'EF-Transformer': {
        'task_a': [0.83, 0.78, 0.73, 0.68, 0.63, 0.58, 0.53, 0.48, 0.43, 0.38],
        'task_b': [0.93, 0.88, 0.83, 0.78, 0.73, 0.68, 0.63, 0.58, 0.53, 0.48]
    },
    'LF-Transformer': {
        'task_a': [0.81, 0.76, 0.71, 0.66, 0.61, 0.56, 0.51, 0.46, 0.41, 0.36],
        'task_b': [0.91, 0.86, 0.81, 0.76, 0.71, 0.66, 0.61, 0.56, 0.51, 0.46]
    },
    'OtherMethod': {
        'task_a': [0.79, 0.74, 0.69, 0.64, 0.59, 0.54, 0.49, 0.44, 0.39, 0.34],
        'task_b': [0.88, 0.83, 0.78, 0.73, 0.68, 0.63, 0.58, 0.53, 0.48, 0.43]
    }
}

# Create valid arguments for relative_robustness function
robustness_result = [0.85, 0.8, 0.75, 0.7, 0.65, 0.6, 0.55, 0.5, 0.45, 0.4]
task = 'task_a'

ARGS = {
    'robustness_result': robustness_result,
    'task': task
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float64, ndim 0, dtype family float — no output shape is stated: observe_signature.py recorded float ndim 0, which disagrees with the fixture run
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
CreateOp Not yet run
unverified (harvested, no recorded run)
divyam3897/i2m2/avmnist_and_mimic/utils/aux_models.py
code served (permissive licence) · get_code("7ee0d14726bfe8b5")
How it ran

no invocation recorded.

PreActResNet18 Not yet run
unverified (harvested, no recorded run)
divyam3897/i2m2/fastMRI/models/preactresnet_knee.py
code served (permissive licence) · get_code("96037b0c5b8c3511")
How it ran

no invocation recorded.

effective_robustness Not yet run
unverified (harvested, no recorded run)
divyam3897/i2m2/avmnist_and_mimic/eval_scripts/robustness.py
code served (permissive licence) · get_code("6031bfde11ce378c")
How it ran

no invocation recorded.

train_model Not yet run
unverified (harvested, no recorded run)
divyam3897/i2m2/fastMRI/classifier.py
code served (permissive licence) · get_code("ea7f7fe6fcbf481d")
How it ran

no invocation recorded.

Also present in other papers' code

Of 11 samples lifted from this paper's linked repositories, 11 carry a function identity and 0 do not. Of the 11 distinct functions with an identity, 5 are also present in other papers whose code we hold (5 with at least one paper dated earlier, 0 the same month, 0 later) and 6 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
CreateOp 2 other papers
2 dated earlier
2107.07502 (2021-07)
MULTIBENCH: Multiscale Benchmarks for Multimodal Representation Learning
2309.06612 (2023-09)
Harmonic-NAS: Hardware-Aware Multimodal Neural Architecture Search on Resource-constrained Devices
getallparams 2 other papers
2 dated earlier
2107.07502 (2021-07)
MULTIBENCH: Multiscale Benchmarks for Multimodal Representation Learning
2212.01241 (2022-12)
MMBench: Benchmarking End-to-End Multi-modal DNNs and Understanding Their Hardware-Software Implications
AUPRC 1 other paper
1 dated earlier
2212.01241 (2022-12)
MMBench: Benchmarking End-to-End Multi-modal DNNs and Understanding Their Hardware-Software Implications
f1_score 1 other paper
1 dated earlier
2212.01241 (2022-12)
MMBench: Benchmarking End-to-End Multi-modal DNNs and Understanding Their Hardware-Software Implications
ptsort 1 other paper
1 dated earlier
2212.01241 (2022-12)
MMBench: Benchmarking End-to-End Multi-modal DNNs and Understanding Their Hardware-Software Implications

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

Supervised multi-modal learning involves mapping multiple modalities to a target label. Previous studies in this field have concentrated on capturing in isolation either the inter-modality dependencies (the relationships between different modalities and the label) or the intra-modality dependencies (the relationships within a single modality and the label). We argue that these conventional approaches that rely solely on either inter-or intra-modality dependencies may not be optimal in general. We view the multi-modal learning problem from the lens of generative models where we consider the target as a source of multiple modalities and the interaction between them. Towards that end, we propose inter-& intramodality modeling (I2M2) framework, which captures and integrates both the inter-and intra-modality dependencies, leading to more accurate predictions. We evaluate our approach using real-world healthcare and vision-and-language datasets with state-of-the-art models, demonstrating superior performance over traditional methods focusing only on one type of modality dependency. The code is available online. 1

For agents

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

get_harvested_code_for_paper("2405.17613")
get_code_for_paper("2405.17613")
have("2405.17613")

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

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

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

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

Connect an agent — have() is free.