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

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

14 Aug 2025NeurIPSarXiv:2508.10298added by Syntology

Weijian Mai, Jiamin Wu, Yu Zhu, Zhouheng Yao, Dongzhan Zhou, Andrew F. Luo, Qihao Zheng, Wanli Ouyang, Chunfeng Song

Title, abstract, authors and date from arXiv's metadata (CC0); this paper is not in the Papers with Code archive (frozen 2025-07-28).

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. SynBrain 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 state-of-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.

PaperPDFCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2508.10298")

Code

Syntology Ran 6 of 21 code samples harvested from 1 repository linked to this paper; 15 have no recorded run. Of those that ran: 1 ran · honoured contract; 3 ran · our draft was wrong; 2 ran with no contract checked.

By repository: found in paper text by Syntology: 21 samples from 1 repository, 6 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

MichaelMaiii/SynBrain found in paper text by SyntologyMIT report

Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

21 samples harvested; 6 ran; 1 honoured the contract we drafted; 15 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · honoured contract
3ran · our draft was wrong
2ran
15unverified

Licence: 0 of the 21 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from MichaelMaiii/SynBrain. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

build_mlp MichaelMaiii/SynBrain/src/s2n/sit.py found in paper text by Syntology ran · our draft was wrong MIT (permissive) · b05a447cc3b9e991 · report
get_2d_sincos_pos_embed MichaelMaiii/SynBrain/src/s2n/sit.py found in paper text by Syntology ran · honoured contract MIT (permissive) · c92c27c924b517e8 · report
isimage MichaelMaiii/SynBrain/src/ldm/util.py found in paper text by Syntology ran MIT (permissive) · b1368330cf0f5642 · report
ismap MichaelMaiii/SynBrain/src/ldm/util.py found in paper text by Syntology ran MIT (permissive) · d72762b700feee6f · report
mean_flat MichaelMaiii/SynBrain/src/s2n/loss.py found in paper text by Syntology ran · our draft was wrong fingerprinted MIT (permissive) · dd96bc6c07c85dae · report
modulate MichaelMaiii/SynBrain/src/s2n/sit.py found in paper text by Syntology ran · our draft was wrong fingerprinted MIT (permissive) · 03310bba324ae4fb · report
Image_to_torch MichaelMaiii/SynBrain/src/mind_utils.py found in paper text by Syntology unverified MIT (permissive) · 10c69d73c8ea8690 · report
MLP MichaelMaiii/SynBrain/src/vae/brainvae.py found in paper text by Syntology unverified MIT (permissive) · d4deb2c235a073d1 · report
array2grid MichaelMaiii/SynBrain/src/s2n/train_b2i_os.py found in paper text by Syntology unverified MIT (permissive) · 99103b48344f7e94 · report
evaluate_fmri_reconstruction MichaelMaiii/SynBrain/src/utils.py found in paper text by Syntology unverified MIT (permissive) · eb68f53692373449 · report
load_brain_autoencoder MichaelMaiii/SynBrain/src/utils.py found in paper text by Syntology unverified MIT (permissive) · 475027665e672cab · report
load_brain_autoencoder_mlp MichaelMaiii/SynBrain/src/utils.py found in paper text by Syntology unverified MIT (permissive) · 2e5254bd2aec2643 · report
load_brain_vae MichaelMaiii/SynBrain/src/generate.py found in paper text by Syntology unverified MIT (permissive) · 0687349a74ce2dd8 · report
log_txt_as_img MichaelMaiii/SynBrain/src/ldm/util.py found in paper text by Syntology unverified MIT (permissive) · f9bd2e83191afad1 · report
mindeye_normalize MichaelMaiii/SynBrain/src/generate.py found in paper text by Syntology unverified MIT (permissive) · 44eee9d408ccbd4f · report
multisub_clip_dataset MichaelMaiii/SynBrain/src/dataset.py found in paper text by Syntology unverified MIT (permissive) · 665606023ced2af5 · report
multisub_clip_test_dataset MichaelMaiii/SynBrain/src/dataset.py found in paper text by Syntology unverified MIT (permissive) · d619c9e26f8e937e · report
np_to_Image MichaelMaiii/SynBrain/src/mind_utils.py found in paper text by Syntology unverified MIT (permissive) · d36f277eefb3c8c9 · report
sampler_bwd MichaelMaiii/SynBrain/src/s2n/samplers.py found in paper text by Syntology unverified MIT (permissive) · ddfd4d6ea4d97ea7 · report
sum_flat MichaelMaiii/SynBrain/src/s2n/loss.py found in paper text by Syntology unverified MIT (permissive) · a0cd9c6012260135 · report
torch_to_Image MichaelMaiii/SynBrain/src/mind_utils.py found in paper text by Syntology unverified MIT (permissive) · d36059a0fce5fa4e · report

Results from the paper

The Papers with Code archive ends with its 2025-07-28 snapshot. This paper's arXiv identifier, 2508.10298, was issued in August 2025, after that date, so the archive has no leaderboard rows for it.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections