SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2508.10298 · NeurIPS · 2025

SynBrain: Enhancing Visual-to-fMRI Synthesis via Probabilistic Representation Learning

Wanli Ouyang, Andrew Luo, Yu Zhu, Dongzhan Zhou, Mlp Mlp, Jiamin Wu, Chunfeng Song, Qihao Zheng, Weijian Mai, Zhouheng Yao, S2n Mapper, Brain Encoder, and 2 more

arXiv · PDF · Open in the Atlas

Code that ran

14 of 21 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, 2 violated it and 0 have no contract verdict; 9 failures of our instrument; 7 no recorded run), measured 2026-11-24; 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/2508.10298.json · badge: /api/ran/2508.10298.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
MichaelMaiii/SynBrain canonical (classifier label)
classifier basis: census
14 ran · 7 no recorded run
FunctionStatusWhere it lives
Image_to_torch Ran
ran, honoured the contract we drafted
MichaelMaiii/SynBrain/src/mind_utils.py
code served (permissive licence) · get_code("10c69d73c8ea8690")
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 (1, 3, 32, 32) 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
from PIL import Image

# Create a small PIL Image to pass to Image_to_torch
# The function expects either a PIL Image or a list containing a PIL Image
img_array = np.random.randint(0, 256, (32, 32, 3), dtype=np.uint8)
pil_image = Image.fromarray(img_array)

ARGS = {
    "x": pil_image
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
PIL, numpy, torch, torchvision — 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 (1, 3, 32, 32) — shape (1, 3, 32, 32) 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
MLP Ran
ran; our contract draft was wrong, not the code
MichaelMaiii/SynBrain/src/vae/brainvae.py
code served (permissive licence) · get_code("d4deb2c235a073d1")
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)

ARGS = {
    "hidden_dim": 8,
    "linear_dim": 16,
    "embed_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 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
array2grid Ran
ran; our contract draft was wrong, not the code
MichaelMaiii/SynBrain/src/s2n/train_b2i_os.py
code served (permissive licence) · get_code("99103b48344f7e94")
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 ndarray, ndim 3, dtype family int, shape (14, 8, 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
import torch.nn as nn
from torchvision.utils import make_grid
import math

torch.manual_seed(0)

# Create a small tensor batch: (batch_size=2, channels=3, height=4, width=4)
# This represents 2 images with 3 channels (RGB) and 4x4 spatial dimensions
x = torch.rand(2, 3, 4, 4)

ARGS = {
    'x': x
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch, torchvision — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 3, dtype family int, shape (14, 8, 3) — shape (14, 8, 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
build_mlp Ran
ran; our contract draft was wrong, not the code
MichaelMaiii/SynBrain/src/s2n/sit.py
pointer only (licence: MIT); the stored copy get_code serves, from csslc/Self-Transcendence, is pointer only (licence: NONE) · get_code("b05a447cc3b9e991")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from csslc/Self-Transcendence, and GitHub detected no licence in that repository when it was checked. 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.

evaluate_fmri_reconstruction Ran
ran, honoured the contract we drafted
MichaelMaiii/SynBrain/src/utils.py
code served (permissive licence) · get_code("eb68f53692373449")
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 PngImageFile. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np

torch.manual_seed(0)
np.random.seed(0)

# Create small fMRI data: (num_samples, num_voxels)
# num_samples=2, num_voxels=4
all_x_fmri = torch.randn(2, 4)
all_recon_fmri = torch.randn(2, 4)

# Add some correlation to make the metrics meaningful
all_recon_fmri = all_x_fmri + 0.1 * torch.randn(2, 4)

ARGS = {
    "all_x_fmri": all_x_fmri,
    "all_recon_fmri": all_recon_fmri,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
PIL, matplotlib, numpy, scipy, seaborn, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type PngImageFile — a PngImageFile output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a PngImageFile output the recorded ndim 3 and dtype family int describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_2d_sincos_pos_embed Ran
ran, honoured the contract we drafted
MichaelMaiii/SynBrain/src/s2n/sit.py
code served (permissive licence) · get_code("c92c27c924b517e8")
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 (18, 8) 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

# Define ARGS dict with all parameters for get_2d_sincos_pos_embed
ARGS = {
    "embed_dim": 8,
    "grid_size": 4,
    "cls_token": True,
    "extra_tokens": 2,
}
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 (18, 8) — shape (18, 8) 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
isimage Ran
ran, violated the contract we drafted
MichaelMaiii/SynBrain/src/ldm/util.py
code served (permissive licence) · get_code("b1368330cf0f5642")
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 bool, 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

torch.manual_seed(0)

# The function isimage checks if x is a torch.Tensor with 4 dimensions
# and the second dimension (channel dim) is either 3 or 1
# Test case: valid image tensor with shape (batch, channels, height, width)
x = torch.randn(2, 3, 4, 5)

ARGS = {
    "x": x
}
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 bool, 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
ismap Ran
ran, violated the contract we drafted
MichaelMaiii/SynBrain/src/ldm/util.py
code served (permissive licence) · get_code("d72762b700feee6f")
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 bool, 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

torch.manual_seed(0)

# The function checks if x is a torch.Tensor with 4 dimensions where the second dimension (x.shape[1]) is > 3
# We need to construct a tensor that satisfies this condition

# Create a tensor with shape (batch=2, channels=5, height=4, width=3)
# This has 4 dimensions and x.shape[1] = 5 > 3, so it should return True
x = torch.randn(2, 5, 4, 3)

ARGS = {
    'x': x
}
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 bool, 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
mean_flat Ran
ran; our contract draft was wrong, not the code
MichaelMaiii/SynBrain/src/s2n/loss.py
code served (permissive licence) · get_code("dd96bc6c07c85dae")
How it ran

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

import torch

torch.manual_seed(0)

# The function takes a tensor x and computes the mean over all non-batch dimensions
# It expects x to be a multi-dimensional tensor where dim 0 is the batch dimension
# Let's create a small tensor with batch size 2 and some additional dimensions

x = torch.randn(2, 4, 3, 5)  # batch_size=2, then 3 other dimensions

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

torch.manual_seed(0)

# Create small tensors for the modulate function
# x: input tensor with shape (batch_size, feature_dim)
x = torch.randn(2, 4)

# shift: tensor that will be unsqueezed to (batch_size, 1)
# so it should have shape (batch_size,)
shift = torch.randn(2)

# scale: tensor that will be unsqueezed to (batch_size, 1)
# so it should have shape (batch_size,)
scale = torch.randn(2)

ARGS = {
    "x": x,
    "shift": shift,
    "scale": scale,
}
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
multisub_clip_test_dataset Ran
ran; our contract draft was wrong, not the code
MichaelMaiii/SynBrain/src/dataset.py
code served (permissive licence) · get_code("d619c9e26f8e937e")
How it ran

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

import numpy as np
import os
from unittest.mock import MagicMock

# Create a minimal args class/dict
class Args:
    def __init__(self):
        self.valid_sub = 1
        self.data_path = '/tmp/fake_data'
        self.test_batch_size = 2

# We need to mock the file I/O since we can't actually load files
# Patch numpy.load to return fake data
original_load = np.load

def mock_load(path, *args, **kwargs):
    if 'nsd_test_fmri_all_scale_sub' in path:
        # Return shape (30, 3, 5) - 30 samples, 3 repeats, 5 voxels
        return np.random.randn(30, 3, 5).astype(np.float32)
    elif 'nsd_sdxl_clip_test_sub' in path:
        # Return shape (30, 4) - 30 samples, 4-dim CLIP features
        return np.random.randn(30, 4).astype(np.float32)
    return original_load(path, *args, **kwargs)

np.load = mock_load

# Create args instance
args = Args()

ARGS = {
    'args': args
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type DataLoader — a DataLoader output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a DataLoader output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
np_to_Image Ran
ran; our contract draft was wrong, not the code
MichaelMaiii/SynBrain/src/mind_utils.py
code served (permissive licence) · get_code("d36f277eefb3c8c9")
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 Image. 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 numpy as np
import PIL

torch_manual_seed = None

# Analyze the function:
# - Takes parameter 'x' which should be a numpy array
# - Checks if x.ndim == 4, if so takes x[0]
# - Calls x.transpose(1, 2, 0) - so after potential indexing, needs 3 dimensions
# - Performs arithmetic: * 127.5 + 128
# - Calls .clip(0, 255)
# - Calls .astype('uint8')
# - Passes to PIL.Image.fromarray()

# So x should be either:
# - 3D array of shape (C, H, W) where C is channels
# - 4D array of shape (B, C, H, W) where B is batch

# Create a 4D numpy array (batch, channels, height, width)
# Using values in range [-1, 1] since the function scales by 127.5 and adds 128
x = np.random.randn(2, 3, 4, 5).astype('float32') * 0.5  # 2 batches, 3 channels, 4x5 spatial

ARGS = {
    'x': x
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
PIL, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Image — a Image output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Image output the recorded ndim 3 and dtype family int 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
sum_flat Ran
ran; our contract draft was wrong, not the code
MichaelMaiii/SynBrain/src/s2n/loss.py
code served (permissive licence) · get_code("a0cd9c6012260135")
How it ran

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

import torch

torch.manual_seed(0)

# The function takes a tensor x and sums over all non-batch dimensions
# It uses: x.size() to get dimensions, torch.sum with dim parameter
# The tensor needs to have at least 2 dimensions (batch + at least 1 other)

x = torch.randn(2, 4, 3)  # batch_size=2, dim1=4, dim2=3

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

import torch
from torchvision import transforms

torch.manual_seed(0)

# Create a small 4D tensor (batch_size=2, channels=3, height=4, width=5)
# This matches the function's expectation: if x.ndim == 4, it takes x[0]
x = torch.randint(0, 256, (2, 3, 4, 5), dtype=torch.uint8)

ARGS = {
    "x": x
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch, torchvision — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Image — a Image output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Image output the recorded ndim 3 and dtype family int 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
load_brain_autoencoder Not yet run
unverified (harvested, no recorded run)
MichaelMaiii/SynBrain/src/utils.py
code served (permissive licence) · get_code("475027665e672cab")
How it ran

no invocation recorded.

load_brain_autoencoder_mlp Not yet run
unverified (harvested, no recorded run)
MichaelMaiii/SynBrain/src/utils.py
code served (permissive licence) · get_code("2e5254bd2aec2643")
How it ran

no invocation recorded.

load_brain_vae Not yet run
unverified (harvested, no recorded run)
MichaelMaiii/SynBrain/src/generate.py
code served (permissive licence) · get_code("0687349a74ce2dd8")
How it ran

no invocation recorded.

log_txt_as_img Not yet run
unverified (harvested, no recorded run)
MichaelMaiii/SynBrain/src/ldm/util.py
code served (permissive licence) · get_code("f9bd2e83191afad1")
How it ran

no invocation recorded.

mindeye_normalize Not yet run
unverified (harvested, no recorded run)
MichaelMaiii/SynBrain/src/generate.py
code served (permissive licence) · get_code("44eee9d408ccbd4f")
How it ran

no invocation recorded.

multisub_clip_dataset Not yet run
unverified (harvested, no recorded run)
MichaelMaiii/SynBrain/src/dataset.py
code served (permissive licence) · get_code("665606023ced2af5")
How it ran

no invocation recorded.

sampler_bwd Not yet run
unverified (harvested, no recorded run)
MichaelMaiii/SynBrain/src/s2n/samplers.py
code served (permissive licence) · get_code("ddfd4d6ea4d97ea7")
How it ran

no invocation recorded.

Also present in other papers' code

Of 21 samples lifted from this paper's linked repositories, 21 carry a function identity and 0 do not. Of the 21 distinct functions with an identity, 11 are also present in other papers whose code we hold (10 with at least one paper dated earlier, 2 the same month, 7 later) and 10 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
modulate 101 other papers
81 dated earlier, 1 the same month, 17 later, 1 same year, order not determinable, 1 undated · 29 only as an assembly brick
2202.04200 (2022-02)
MaskGIT: Masked Generative Image Transformer
2203.10897 (2022-03)
Unified Multivariate Gaussian Mixture for Efficient Neural Image Compression
2212.09748 (2022-12)
Scalable Diffusion Models with Transformers
and 98 more not named here
get_2d_sincos_pos_embed 69 other papers
55 dated earlier, 1 the same month, 13 later · 12 only as an assembly brick
2203.10897 (2022-03)
Unified Multivariate Gaussian Mixture for Efficient Neural Image Compression
2212.09748 (2022-12)
Scalable Diffusion Models with Transformers
2303.14389 (2023-03)
Masked Diffusion Transformer is a Strong Image Synthesizer
and 66 more not named here
ismap 69 other papers
67 dated earlier, 1 later, 1 same year, order not determinable
2204.06125 (2022-04)
Hierarchical Text-Conditional Image Generation with CLIP Latents
2206.02779 (2022-06)
Blended Latent Diffusion
2208.13753 (2022-08)
Frido: Feature Pyramid Diffusion for Complex Scene Image Synthesis
and 66 more not named here
isimage 61 other papers
59 dated earlier, 1 later, 1 same year, order not determinable
2206.02779 (2022-06)
Blended Latent Diffusion
2208.13753 (2022-08)
Frido: Feature Pyramid Diffusion for Complex Scene Image Synthesis
2210.12965 (2022-10)
High-Resolution Image Editing via Multi-Stage Blended Diffusion
and 58 more not named here
log_txt_as_img 55 other papers
53 dated earlier, 1 later, 1 same year, order not determinable
2204.06125 (2022-04)
Hierarchical Text-Conditional Image Generation with CLIP Latents
2206.02779 (2022-06)
Blended Latent Diffusion
2210.12965 (2022-10)
High-Resolution Image Editing via Multi-Stage Blended Diffusion
and 52 more not named here
mean_flat 6 other papers
4 dated earlier, 1 later, 1 undated
2410.06940 (2024-10)
Representation Alignment for Generation: Training Diffusion Transformers Is Easier Than You Think
2505.02831 (2025-05)
No Other Representation Component Is Needed: Diffusion Transformers Can Provide Representation Guidance by Themselves
2505.07447 (2025-05)
Unified Continuous Generative Models
and 3 more not named here
build_mlp 4 other papers
2 dated earlier, 2 later · 1 only as an assembly brick
2412.08781 (2024-12)
GMem: A Modular Approach for Ultra-Efficient Generative Models
2503.08685 (2025-03)
"Principal Components" Enable A New Language of Images
2601.07773 (2026-01)
Self-transcendence: Is External Feature Guidance Indispensable for Accelerating Diffusion Transformer Training?
and 1 more not named here
Image_to_torch 3 other papers
3 dated earlier
2305.18274 (2023-05)
Reconstructing the Mind's Eye: fMRI-to-Image with Contrastive Learning and Diffusion Priors
2403.11207 (2024-03)
MindEye2: Shared-Subject Models Enable fMRI-To-Image With 1 Hour of Data
2410.19452 (2024-10)
NeuroClips: Towards High-fidelity and Smooth fMRI-to-Video Reconstruction
np_to_Image 3 other papers
3 dated earlier
2305.18274 (2023-05)
Reconstructing the Mind's Eye: fMRI-to-Image with Contrastive Learning and Diffusion Priors
2403.11207 (2024-03)
MindEye2: Shared-Subject Models Enable fMRI-To-Image With 1 Hour of Data
2410.19452 (2024-10)
NeuroClips: Towards High-fidelity and Smooth fMRI-to-Video Reconstruction
torch_to_Image 3 other papers
3 dated earlier
2305.18274 (2023-05)
Reconstructing the Mind's Eye: fMRI-to-Image with Contrastive Learning and Diffusion Priors
2403.11207 (2024-03)
MindEye2: Shared-Subject Models Enable fMRI-To-Image With 1 Hour of Data
2410.19452 (2024-10)
NeuroClips: Towards High-fidelity and Smooth fMRI-to-Video Reconstruction
sum_flat 1 other paper
1 undated
no dated paper among those named
openreview_utRSxIkoSJ
Concept-Guided Tokenization: Closing the Gap Between Reconstruction and Generation

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

Deciphering how visual stimuli are transformed into cortical responses is a fundamental challenge in computational neuroscience. This visual-to-neural mapping is inherently a one-to-many relationship, as identical visual inputs reliably evoke variable hemodynamic responses across trials, contexts, and subjects. However, existing deterministic methods struggle to simultaneously model this biological variability while capturing the underlying functional consistency that encodes stimulus information. To address these limitations, we propose SynBrain, a generative framework that simulates the transformation from visual semantics to neural responses in a probabilistic and biologically interpretable manner. Syn-Brain introduces two key components: (i) BrainVAE models neural representations as continuous probability distributions via probabilistic learning while maintaining functional consistency through visual semantic constraints; (ii) A Semantic-to-Neural Mapper acts as a semantic transmission pathway, projecting visual semantics into the neural response manifold to facilitate high-fidelity fMRI synthesis. Experimental results demonstrate that SynBrain surpasses stateof-the-art methods in subject-specific visual-to-fMRI encoding performance. Furthermore, SynBrain adapts efficiently to new subjects with few-shot data and synthesizes high-quality fMRI signals that are effective in improving data-limited fMRI-to-image decoding performance. Beyond that, SynBrain reveals functional consistency across trials and subjects, with synthesized signals capturing interpretable patterns shaped by biological neural variability. Our code is available at https://github.com/MichaelMaiii/SynBrain.

For agents

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

get_harvested_code_for_paper("2508.10298")
get_code_for_paper("2508.10298")
have("2508.10298")

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

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

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

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

Connect an agent — have() is free.