Papers › Neuroformer: Multimodal and Multitask Generative Pretraining for Brain Data

Neuroformer: Multimodal and Multitask Generative Pretraining for Brain Data

31 Oct 2023arXiv:2311.00136archive 2025-07-28

Antonis Antoniades, Yiyi Yu, Joseph Canzano, William Wang, Spencer LaVere Smith

State-of-the-art systems neuroscience experiments yield large-scale multimodal data, and these data sets require new tools for analysis. Inspired by the success of large pretrained models in vision and language domains, we reframe the analysis of large-scale, cellular-resolution neuronal spiking data into an autoregressive spatiotemporal generation problem. Neuroformer is a multimodal, multitask generative pretrained transformer (GPT) model that is specifically designed to handle the intricacies of data in systems neuroscience. It scales linearly with feature size, can process an arbitrary number of modalities, and is adaptable to downstream tasks, such as predicting behavior. We first trained Neuroformer on simulated datasets, and found that it both accurately predicted simulated neuronal circuit activity, and also intrinsically inferred the underlying neural circuit connectivity, including direction. When pretrained to decode neural responses, the model predicted the behavior of a mouse with only few-shot fine-tuning, suggesting that the model begins learning how to do so directly from the neural representations themselves, without any explicit supervision. We used an ablation study to show that joint training on neuronal responses and behavior boosted performance, highlighting the model's ability to associate behavioral and neural representations in an unsupervised manner. These findings show that Neuroformer can analyze neural datasets and their emergent properties, informing the development of models and hypotheses associated with the brain.

PaperPDFCodeCode 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="2311.00136")

Code

Syntology Ran 16 of 19 code samples harvested from 1 repository linked to this paper; 3 have no recorded run. Of those that ran: 1 ran · honoured contract; 15 ran with no contract checked.

By repository: official repository: 19 samples from 1 repository, 16 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

a-antoniades/neuroformer officialmentioned in papermentioned on GitHubpytorchMIT report
woanderer/Neuroformer officialmentioned on GitHubpytorchMIT report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. 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

19 samples harvested; 16 ran; 1 honoured the contract we drafted; 3 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
15ran
3unverified

Licence: 0 of the 19 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 a-antoniades/neuroformer. “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.

calc_corr_psth a-antoniades/neuroformer/neuroformer/analysis.py official repository ran MIT (permissive) · d1186178a7836808 · report
combo3_V1AL_callback a-antoniades/neuroformer/neuroformer/datasets.py official repository ran MIT (permissive) · 4c1a31f765ef032e · report
contrastive_loss a-antoniades/neuroformer/neuroformer/modules.py official repository ran MIT (permissive) · d496ef53516a57ca · report
convolve_atts_3D a-antoniades/neuroformer/neuroformer/attention_vis.py official repository ran fingerprinted MIT (permissive) · ff4f6fdd29b64764 · report
get_attr a-antoniades/neuroformer/neuroformer/model_neuroformer.py official repository ran MIT (permissive) · c3503f3549cd9acf · report
get_emb a-antoniades/neuroformer/neuroformer/model_neuroformer.py official repository ran · honoured contract fingerprinted MIT (permissive) · 33805df68cb6892e · report
get_rates a-antoniades/neuroformer/neuroformer/analysis.py official repository ran MIT (permissive) · f2941cf251031ecc · report
get_rates a-antoniades/neuroformer/neuroformer/analysis.py official repository ran MIT (permissive) · 2398af86975c9957 · report
model_ensemble a-antoniades/neuroformer/neuroformer/simulation.py official repository ran MIT (permissive) · 30d823e13e046f0b · report
rollout_attentions a-antoniades/neuroformer/neuroformer/attention_vis.py official repository ran fingerprinted MIT (permissive) · 861a7367a2ed59cd · report
separate_eos_tokens a-antoniades/neuroformer/neuroformer/modules.py official repository ran MIT (permissive) · 2e9f1a5673215030 · report
split_data_by_interval a-antoniades/neuroformer/neuroformer/datasets.py official repository ran MIT (permissive) · 015233a9d8a82fc1 · report
trial_df a-antoniades/neuroformer/neuroformer/data_utils.py official repository ran MIT (permissive) · a9af76e30c2a8e46 · report
trial_df_combo3 a-antoniades/neuroformer/neuroformer/data_utils.py official repository ran MIT (permissive) · 2afb4903a5098278 · report
trial_df_real a-antoniades/neuroformer/neuroformer/data_utils.py official repository ran MIT (permissive) · 8ad3185a7b0c4d25 · report
visnav_callback a-antoniades/neuroformer/neuroformer/datasets.py official repository ran MIT (permissive) · dc18b01aaf085b2c · report
nearest a-antoniades/neuroformer/neuroformer/gather_atts.py official repository unverified MIT (permissive) · 62b7dc6a0fcb3055 · report
reshape_features a-antoniades/neuroformer/neuroformer/attention_vis.py official repository unverified MIT (permissive) · 99fdd80b9ca7f208 · report
top_k_top_p_filtering a-antoniades/neuroformer/neuroformer/simulation.py official repository unverified MIT (permissive) · 120a5300accb00db · report

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

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