SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2505.20027 · ICLR · 2025

Multi-modal brain encoding models for multi-modal stimuli

Manish Gupta, Subba Reddy Oota, Khushbu Pahwa, Mounika Marreddy, Maneesh Singh, Bapi Raju

arXiv · PDF · Open in the Atlas

Code that ran

3 of 3 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; 0 failures of our instrument; 0 no recorded run), measured 2026-11-24; 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/2505.20027.json · badge: /api/ran/2505.20027.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
subbareddy248/multi-modal-brain-stimuli canonical (classifier label)
classifier basis: classifier_2025
3 ran · 0 no recorded run
FunctionStatusWhere it lives
load_data Ran
ran, honoured the contract we drafted
subbareddy248/multi-modal-brain-stimuli/Brain_predictions/brain_predictions.py
code served (permissive licence) · get_code("39ef986b2e371a22")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) and returned ndarray, ndim 2, dtype family float, shape (1000, 64) 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 numpy as np
import os
import tempfile

# Create temporary directory and mock .npy files
temp_dir = tempfile.mkdtemp()
os.makedirs(os.path.join(temp_dir, 'features_representations'), exist_ok=True)

# Mock the features_representations directory structure
mock_features_dir = os.path.join(temp_dir, 'features_representations')

# Create mock .npy files for 'bourn' story (10 files)
for i in range(10):
    if i + 1 < 10:
        filename = f'bourn_audio_0{i + 1}.npy'
    else:
        filename = f'bourn_audio_{i + 1}.npy'
    # Create mock data: shape (100, 1, 64) - time steps, 1, feature dim
    mock_data = np.random.randn(100, 1, 64).astype(np.float32)
    np.save(os.path.join(mock_features_dir, filename), mock_data)

# Create mock .npy files for 'wolf' story (17 files)
for i in range(17):
    if i + 1 < 10:
        filename = f'wolf_audio_0{i + 1}.npy'
    else:
        filename = f'wolf_audio_{i + 1}.npy'
    # Create mock data: shape (100, 1, 64)
    mock_data = np.random.randn(100, 1, 64).astype(np.float32)
    np.save(os.path.join(mock_features_dir, filename), mock_data)

# Change to temp directory so relative paths work
original_cwd = os.getcwd()
os.chdir(temp_dir)

ARGS = {
    'modality': 'audio',
    'story': 'bourn'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 2, dtype family float, shape (1000, 64) — shape (1000, 64) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
load_meta Ran
ran, honoured the contract we drafted
subbareddy248/multi-modal-brain-stimuli/Brain_predictions/brain_predictions.py
code served (permissive licence) · get_code("1cfad349481cbc14")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) and returned ndarray, ndim 2, dtype family float, shape (1279, 512) 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 numpy as np
import pickle
import tempfile
import os

# Create temporary directory and mock pickle files
temp_dir = tempfile.mkdtemp()

# Create mock audio embedding data
def create_mock_embedding(shape):
    """Create a mock embedding array"""
    return np.random.randn(*shape).astype(np.float32)

# Create mock pickle files for 'bourn' story
for i in range(10):
    filename = os.path.join(temp_dir, f'audio_embeddings_bourne{i+1:02d}.pkl')
    if i + 1 < 10:
        data = create_mock_embedding((100, 512))
    else:
        data = create_mock_embedding((379, 512))
    with open(filename, 'wb') as f:
        pickle.dump(data, f)

# Create mock pickle files for 'wolf' story
for i in range(17):
    filename = os.path.join(temp_dir, f'audio_embeddings_wolf{i+1:02d}.pkl')
    data = create_mock_embedding((100, 512))
    with open(filename, 'wb') as f:
        pickle.dump(data, f)

# Monkey-patch the file paths in the function by modifying the module
import sys
from unittest.mock import patch, mock_open

# Create a wrapper that intercepts file opens
original_open = open
def mock_file_open(path, *args, **kwargs):
    if 'meta_features_movie10' in path:
        # Extract the filename from the path
        filename = os.path.basename(path)
        mock_path = os.path.join(temp_dir, filename)
        return original_open(mock_path, *args, **kwargs)
    return original_open(path, *args, **kwargs)

# Patch the builtins.open
import builtins
builtins.open = mock_file_open

ARGS = {
    'story': 'bourn'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 2, dtype family float, shape (1279, 512) — shape (1279, 512) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
load_tvlt Ran
ran, honoured the contract we drafted
subbareddy248/multi-modal-brain-stimuli/Brain_predictions/brain_predictions.py
code served (permissive licence) · get_code("5768da7a3b275ee2")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) and returned ndarray, ndim 2, dtype family float, shape (1000, 64) 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 numpy as np
import pickle
import tempfile
import os

# Create a temporary directory structure with mock pickle files
temp_dir = tempfile.mkdtemp()
features_dir = os.path.join(temp_dir, 'features_representations')
os.makedirs(features_dir, exist_ok=True)

# Create mock pickle files for 'bourn' story
for i in range(10):
    if i + 1 < 10:
        filename = os.path.join(features_dir, f'audio_embeddings_bourne0{i + 1}.pkl')
        key = f'bourne0{i + 1}'
    else:
        filename = os.path.join(features_dir, f'audio_embeddings_bourne{i + 1}.pkl')
        key = f'bourne{i + 1}'
    
    # Create mock audio embeddings (time_steps x feature_dim)
    data = {key: np.random.randn(100, 64).astype(np.float32)}
    with open(filename, 'wb') as f:
        pickle.dump(data, f)

# Create mock pickle files for 'wolf' story
for i in range(17):
    if i + 1 < 10:
        filename = os.path.join(features_dir, f'audio_embeddings_wolf0{i + 1}.pkl')
        key = f'wolf0{i + 1}'
    else:
        filename = os.path.join(features_dir, f'audio_embeddings_wolf{i + 1}.pkl')
        key = f'wolf{i + 1}'
    
    # Create mock audio embeddings
    data = {key: np.random.randn(500, 64).astype(np.float32)}
    with open(filename, 'wb') as f:
        pickle.dump(data, f)

# Change to temp directory so relative paths work
original_dir = os.getcwd()
os.chdir(temp_dir)

ARGS = {
    'story': 'bourn'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 2, dtype family float, shape (1000, 64) — shape (1000, 64) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block

Also present in other papers' code

Of 3 samples lifted from this paper's linked repositories, 3 carry a function identity and 0 do not. Of the 3 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 3 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

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-24.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Despite participants engaging in unimodal stimuli, such as watching images or silent videos, recent work has demonstrated that multi-modal Transformer models can predict visual brain activity impressively well, even with incongruent modality representations. This raises the question of how accurately these multi-modal models can predict brain activity when participants are engaged in multi-modal stimuli. As these models grow increasingly popular, their use in studying neural activity provides insights into how our brains respond to such multi-modal naturalistic stimuli, i.e., where it separates and integrates information across modalities through a hierarchy of early sensory regions to higher cognition (language regions). We investigate this question by using multiple unimodal and two types of multi-modal models-cross-modal and jointly pretrained-to determine which type of model is more relevant to fMRI brain activity when participants are engaged in watching movies (videos with audio). We observe that both types of multi-modal models show improved alignment in several language and visual regions. This study also helps in identifying which brain regions process unimodal versus multi-modal information. We further investigate the contribution of each modality to multi-modal alignment by carefully removing unimodal features one by one from multi-modal representations, and find that there is additional information beyond the unimodal embeddings that is processed in the visual and language regions. Based on this investigation, we find that while for cross-modal models, their brain alignment is partially attributed to the video modality; for jointly pretrained models, it is partially attributed to both the video and audio modalities. This serves as a strong motivation for the neuroscience community to investigate the interpretability of these models for deepening our understanding of multi-modal information processing in brain. We make the code publicly available 1 .

For agents

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

get_harvested_code_for_paper("2505.20027")
get_code_for_paper("2505.20027")
have("2505.20027")

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

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

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

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

Connect an agent — have() is free.