{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/arxiv-2508-10298","title":"SynBrain: Enhancing Visual-to-fMRI Synthesis via Probabilistic Representation Learning","arxiv_id":"2508.10298","date":"2025-08-14","proceeding":"NeurIPS","authors":["Weijian Mai","Jiamin Wu","Yu Zhu","Zhouheng Yao","Dongzhan Zhou","Andrew F. Luo","Qihao Zheng","Wanli Ouyang","Chunfeng Song"],"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. 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.","url_abs":"https://arxiv.org/abs/2508.10298","url_pdf":"https://arxiv.org/pdf/2508.10298","source":{"archive":null,"snapshot":"2025-07-28","note":"not in the Papers with Code archive (frozen at the snapshot)","row_kind":"graph","title_abstract_authors_date":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)"},"code_links":[],"tasks":[],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":"https://syntology.ai/paper/2508.10298","atlas_url":"https://app.syntology.ai/?focus=2508.10298","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2508.10298"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-25T09:33:49+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"mentioned_in_github":null,"is_official":null,"provenance":"deterministic:regex_extraction","mentioned_in_paper":null,"url":"https://github.com/MichaelMaiii/SynBrain","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"ran_draft_wrong":3,"ran_honours":1,"ran":2,"unverified":15},"by_repo_kind":{"found_in_text":{"samples":21,"ran":6,"repositories":1}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"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"},"n_pointer_only_for_licence":0,"samples":[{"code_sha256_prefix":"b05a447cc3b9e991","entry":"build_mlp","repo":"MichaelMaiii/SynBrain","repo_kind":"found_in_text","path":"src/s2n/sit.py","file_url":"https://github.com/MichaelMaiii/SynBrain/blob/HEAD/src/s2n/sit.py","link_basis":"plan_row","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"b05a447cc3b9e991"}},{"code_sha256_prefix":"c92c27c924b517e8","entry":"get_2d_sincos_pos_embed","repo":"MichaelMaiii/SynBrain","repo_kind":"found_in_text","path":"src/s2n/sit.py","file_url":"https://github.com/MichaelMaiii/SynBrain/blob/HEAD/src/s2n/sit.py","link_basis":"harvester_set","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":"well_formed","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"c92c27c924b517e8"}},{"code_sha256_prefix":"b1368330cf0f5642","entry":"isimage","repo":"MichaelMaiii/SynBrain","repo_kind":"found_in_text","path":"src/ldm/util.py","file_url":"https://github.com/MichaelMaiii/SynBrain/blob/HEAD/src/ldm/util.py","link_basis":"plan_row","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"b1368330cf0f5642"}},{"code_sha256_prefix":"d72762b700feee6f","entry":"ismap","repo":"MichaelMaiii/SynBrain","repo_kind":"found_in_text","path":"src/ldm/util.py","file_url":"https://github.com/MichaelMaiii/SynBrain/blob/HEAD/src/ldm/util.py","link_basis":"plan_row","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"d72762b700feee6f"}},{"code_sha256_prefix":"dd96bc6c07c85dae","entry":"mean_flat","repo":"MichaelMaiii/SynBrain","repo_kind":"found_in_text","path":"src/s2n/loss.py","file_url":"https://github.com/MichaelMaiii/SynBrain/blob/HEAD/src/s2n/loss.py","link_basis":"plan_row","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"dd96bc6c07c85dae"}},{"code_sha256_prefix":"03310bba324ae4fb","entry":"modulate","repo":"MichaelMaiii/SynBrain","repo_kind":"found_in_text","path":"src/s2n/sit.py","file_url":"https://github.com/MichaelMaiii/SynBrain/blob/HEAD/src/s2n/sit.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"03310bba324ae4fb"}},{"code_sha256_prefix":"10c69d73c8ea8690","entry":"Image_to_torch","repo":"MichaelMaiii/SynBrain","repo_kind":"found_in_text","path":"src/mind_utils.py","file_url":"https://github.com/MichaelMaiii/SynBrain/blob/HEAD/src/mind_utils.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"10c69d73c8ea8690"}},{"code_sha256_prefix":"d4deb2c235a073d1","entry":"MLP","repo":"MichaelMaiii/SynBrain","repo_kind":"found_in_text","path":"src/vae/brainvae.py","file_url":"https://github.com/MichaelMaiii/SynBrain/blob/HEAD/src/vae/brainvae.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"d4deb2c235a073d1"}},{"code_sha256_prefix":"99103b48344f7e94","entry":"array2grid","repo":"MichaelMaiii/SynBrain","repo_kind":"found_in_text","path":"src/s2n/train_b2i_os.py","file_url":"https://github.com/MichaelMaiii/SynBrain/blob/HEAD/src/s2n/train_b2i_os.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"99103b48344f7e94"}},{"code_sha256_prefix":"eb68f53692373449","entry":"evaluate_fmri_reconstruction","repo":"MichaelMaiii/SynBrain","repo_kind":"found_in_text","path":"src/utils.py","file_url":"https://github.com/MichaelMaiii/SynBrain/blob/HEAD/src/utils.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"eb68f53692373449"}},{"code_sha256_prefix":"475027665e672cab","entry":"load_brain_autoencoder","repo":"MichaelMaiii/SynBrain","repo_kind":"found_in_text","path":"src/utils.py","file_url":"https://github.com/MichaelMaiii/SynBrain/blob/HEAD/src/utils.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"475027665e672cab"}},{"code_sha256_prefix":"2e5254bd2aec2643","entry":"load_brain_autoencoder_mlp","repo":"MichaelMaiii/SynBrain","repo_kind":"found_in_text","path":"src/utils.py","file_url":"https://github.com/MichaelMaiii/SynBrain/blob/HEAD/src/utils.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"2e5254bd2aec2643"}},{"code_sha256_prefix":"0687349a74ce2dd8","entry":"load_brain_vae","repo":"MichaelMaiii/SynBrain","repo_kind":"found_in_text","path":"src/generate.py","file_url":"https://github.com/MichaelMaiii/SynBrain/blob/HEAD/src/generate.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"0687349a74ce2dd8"}},{"code_sha256_prefix":"f9bd2e83191afad1","entry":"log_txt_as_img","repo":"MichaelMaiii/SynBrain","repo_kind":"found_in_text","path":"src/ldm/util.py","file_url":"https://github.com/MichaelMaiii/SynBrain/blob/HEAD/src/ldm/util.py","link_basis":"plan_row","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"f9bd2e83191afad1"}},{"code_sha256_prefix":"44eee9d408ccbd4f","entry":"mindeye_normalize","repo":"MichaelMaiii/SynBrain","repo_kind":"found_in_text","path":"src/generate.py","file_url":"https://github.com/MichaelMaiii/SynBrain/blob/HEAD/src/generate.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"44eee9d408ccbd4f"}},{"code_sha256_prefix":"665606023ced2af5","entry":"multisub_clip_dataset","repo":"MichaelMaiii/SynBrain","repo_kind":"found_in_text","path":"src/dataset.py","file_url":"https://github.com/MichaelMaiii/SynBrain/blob/HEAD/src/dataset.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"665606023ced2af5"}},{"code_sha256_prefix":"d619c9e26f8e937e","entry":"multisub_clip_test_dataset","repo":"MichaelMaiii/SynBrain","repo_kind":"found_in_text","path":"src/dataset.py","file_url":"https://github.com/MichaelMaiii/SynBrain/blob/HEAD/src/dataset.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"d619c9e26f8e937e"}},{"code_sha256_prefix":"d36f277eefb3c8c9","entry":"np_to_Image","repo":"MichaelMaiii/SynBrain","repo_kind":"found_in_text","path":"src/mind_utils.py","file_url":"https://github.com/MichaelMaiii/SynBrain/blob/HEAD/src/mind_utils.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"d36f277eefb3c8c9"}},{"code_sha256_prefix":"ddfd4d6ea4d97ea7","entry":"sampler_bwd","repo":"MichaelMaiii/SynBrain","repo_kind":"found_in_text","path":"src/s2n/samplers.py","file_url":"https://github.com/MichaelMaiii/SynBrain/blob/HEAD/src/s2n/samplers.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"ddfd4d6ea4d97ea7"}},{"code_sha256_prefix":"a0cd9c6012260135","entry":"sum_flat","repo":"MichaelMaiii/SynBrain","repo_kind":"found_in_text","path":"src/s2n/loss.py","file_url":"https://github.com/MichaelMaiii/SynBrain/blob/HEAD/src/s2n/loss.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"a0cd9c6012260135"}},{"code_sha256_prefix":"d36059a0fce5fa4e","entry":"torch_to_Image","repo":"MichaelMaiii/SynBrain","repo_kind":"found_in_text","path":"src/mind_utils.py","file_url":"https://github.com/MichaelMaiii/SynBrain/blob/HEAD/src/mind_utils.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"d36059a0fce5fa4e"}}]},"arxiv_metadata":{"licence":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)","fields":["title","abstract","authors","date"],"primary_category":"cs.LG","source":"arxiv_api"},"syntology_extracted_results":{"kind":"leaderboard_placements","source":"Syntology's leaderboard-shaped extractor over the paper's own arXiv-HTML tables: a model pointed at a cell, the number was read from that cell and checked against the board's metric, dataset, split and scale, and an independent check accepted the entry; not reviewed by the paper's authors or the archive's editors","extractor_model":"global.anthropic.claude-sonnet-4-5-20250929-v1:0","verifier_model":null,"prompt_sha":"fa63d4bb9d755694","coverage":{"sentence":"Syntology has checked 6,885 of the 9,623 papers on this site that are newer than the archive; results from the others appear after they are checked.","papers_newer_than_archive":9623,"papers_checked":6885},"entries":[],"not_placed":{"boards":0,"rejected_by_independent_check":0,"refused_by_a_rule":0,"check_did_not_answer":0,"proposed_without_a_cell":0,"declined_by_site":0}}}