In this paper, we introduce Neurovascular Codes as shared EEG representations for fMRI generation. We first train a separate EEG encoder to predict each fMRI signal, learning target-specific temporal and spectral features from the same EEG window. After training, we freeze the encoders and project their concatenated hidden features into a shared neurovascular code. Conditioned on this code, stochastic interpolant transforms Gaussian noise into a vector of fMRI signals, allowing different responses to be sampled for the same EEG window. We evaluate our approach on eight public simultaneous EEG-fMRI datasets, including four resting-state and four task-based datasets with 61,646 volume-level pairs. Under within-subject and held-out-subject evaluation, our model improves average Pearson correlation over the strongest encoder baselines by 19.1% and 19.8%, respectively. The corresponding improvements over the strongest generator baselines are 18.8% and 47.9%. Beyond reconstruction accuracy, we also evaluate the generated signals using subject-identification classifiers trained on real fMRI. Our method achieves the highest mean accuracy among the evaluated generators. We hope that our work opens up new opportunities for cross-modal brain modeling.
Figures & tables
Figure 3: NVCode pipeline. (a) Non-overlapping patches and spectrograms describe each EEG window. (b) Target-specific encoders learn spatiotemporal and multiscale spectral features under fMRI supervision. (c) A projector combines the features into a neurovascular code. (d) The code conditions joint generation from Gaussian noise through a learned interpolant. (e) Time series and anatomical projections display the regional and global outputs.
Type
Dataset
EEG
fMRI
Paired Acquisition
Paradigm
Rate (Hz)
Channels
TR (s)
Pairs
Duration (s)
Scans
Cohort Size
Rest
Sleep EEG–fMRI ( Gu et al., 2026 )
5000
32
2.1
5,714
600
20
33
Sleep stage
MULTI-CLARID ( Stadler et al., 2025 )
5000
64
2.0
10,200
600
34
24
Eyes open rest
gradCPT ( Cha et al., 2026 )
5000
64
2.0
5,040
360
28
28
Rest subset
NeuroBOLT ( Li et al., 2024b )
5000
26
2.1
16,571
1200
29
22
Multi session rest
Active
XP1 ( Lioi et al., 2021 )
5000
64
2.0
2,400
480
10
10
Motor imagery feedback
Table 1: Eight simultaneous EEG–fMRI datasets span resting-state and task-evoked settings. The source cohorts report 184 participants; after scan-level exclusions, 189 retained scans yield 61,646 paired volumes. Labels follow the source dataset titles, and citations include repository accessions where available.
Table 2: EEG encoder comparison. We fit the same generator architecture separately for each frozen encoder. Higher Avg. R (mean Pearson correlation) and lower marginal CRPS and predictive-mean FC-MAE are better. Best values are darker purple, bold ; second best values are light purple, underlined .
Table 4: Conditional generator comparison. All networks use the same cached EEG codes from seven frozen encoders and the frozen NVCode projector. Each evaluation weights all eight datasets equally.
Figure 4: Matched EEG–fMRI evidence for Cuneus. (a, b): Identical EEG inputs in both rows. (c): Real fMRI (black dashed), NVCode (top, red), and EDM (bottom, grey), with correlations. (d): Real, predicted, and absolute-error amplitudes projected onto Cuneus at 54.6 s (purple guides) with a shared color scale.
Method
Dataset accuracy / Δ
Mean
Sleep EEG–fMRI
MULTI- CLARID
gradCPT
NeuroBOLT
XP1
Affective Music
NatView
Experience Sampling
Real test
0.861
0.787
0.746
0.869
0.874
0.782
0.747
0.702
0.796
cGAN ( Mirza and Osindero, 2014 )
+0.022
+0.018
+0.013
+0.014
+0.008
+0.019
+0.027
+0.002
+0.015
Consistency ( Yang et al., 2024 )
+0.017
+0.024
+0.026
+0.019
+0.010
+0.011
+0.021
+0.014
+0.018
CVAE ( Sohn et al., 2015 )
+0.011
+0.016
+0.034
+0.037
+0.017
+0.005
+0.033
+0.012
+0.021
DDPM ( Ho et al., 2020 )
+0.026
+0.019
+0.020
+0.035
+0.024
+0.023
+0.032
+0.014
+0.024
Table 8: Synthetic fMRI transfers to a classifier trained only on real fMRI. The first row gives real input accuracy; synthetic rows report the change Δ using predictions from matched EEG epochs. Classifier parameters stay fixed, and Mean weights all eight datasets equally in both the real and synthetic test conditions.
Model components
Inter-subject evaluation
Variant
Regional Encoders
Joint Output
Stochastic Interpolant
Avg. R↑
CRPS ↓
FC-MAE ↓
Deterministic Joint Regression
✓
✓
×
0.317
0.368
0.250
Independent Interpolants
✓
×
✓
0.405
0.377
0.174
NVCode with a Shared Encoder
×
✓
✓
0.349
0.362
0.182
First-Stage Linear Heads
✓
×
×
0.241
0.430
0.213
Shared Independent Interpolants
×
×
✓
0.276
0.392
0.266
Table 9: Component ablation on held-out subjects. Eight variants test all combinations of regional encoders, joint output, and stochastic interpolation. ✓ and × indicate whether a component is included or excluded.
Appendix figures & tables13 assets
Supplementary material from the paper’s appendix.
Appendix
Method
Primary Sensory
High level Cognitive
Subcortical
Global Signal
Avg. R ↑
CRPS ↓
FC-MAE ↓
Cuneus
Heschl’s Gyrus
Middle Frontal
Precuneus
Putamen
Thalamus
Intra
NeuroBOLT
0.418
0.392
0.405
0.436
0.477
0.439
0.514
0.440
0.400
0.323
UnEBOLT
0.436
0.493
0.472
0.476
0.435
0.503
0.509
0.475
0.361
0.287
NVCode (Ours)
0.473
0.482
0.510
0.536
0.498
0.475
0.528
0.500
0.247
0.210
Inter
NeuroBOLT
0.316
0.324
0.260
0.247
0.281
0.317
0.369
0.302
0.473
0.385
UnEBOLT
0.304
0.382
0.419
0.475
0.436
0.420
0.383
0.403
0.384
0.262
Appendix
Table 11: End-to-end EEG-to-fMRI comparison. Models train on all eight datasets pooled. Avg. R weights all seven targets equally, CRPS scores the marginals, and FC-MAE compares predictive-mean connectivity.
Encoder
Primary Sensory
High level Cognitive
Subcortical
Global Signal
Avg. R ↑
CRPS ↓
FC-MAE ↓
Cuneus
Heschl’s Gyrus
Middle Frontal
Precuneus
Putamen
Thalamus
Intra subject
BEIRA ( Kovalev et al., 2022 )
0.302
0.372
0.257
0.372
0.384
0.344
0.392
0.346
0.393
0.327
BIOT ( Yang et al., 2023a )
0.275
0.218
0.299
0.239
0.280
0.245
0.278
0.262
0.363
0.328
BrainOmni ( Xiao et al., 2025 )
0.240
0.386
0.297
0.308
0.258
0.256
0.196
0.277
0.360
0.331
CNN-Trans. ( Peh et al., 2022 )
0.247
0.415
0.264
0.309
0.362
0.314
0.332
0.320
0.363
0.332
ContraWR ( Yang et al., 2023b )
0.311
0.370
0.351
0.314
0.334
0.264
0.356
0.329
0.390
0.348
Appendix
Table 12: EEG-to-fMRI synthesis by encoder and generator. Signal columns report Pearson R for each target. Avg. R , CRPS, and FC-MAE summarize performance across the eight datasets. Ranking applies within each split and comparison. Best values are darker purple, bold ; second-best values are light purple, underlined .
Figure 6: Cuneus examples. (a) EEG spectrogram; (b) alpha scalp power; (c) real fMRI (black dashed) and NVCode (red); (d) projected real, predicted and absolute-difference amplitudes.
Figure 7: Heschl’s gyrus examples. (a) EEG spectrogram; (b) alpha scalp power; (c) real fMRI (black dashed) and NVCode (red); (d) projected real, predicted and absolute-difference amplitudes.
Figure 8: Middle frontal gyrus examples. (a) EEG spectrogram; (b) alpha scalp power; (c) real fMRI (black dashed) and NVCode (green); (d) projected real, predicted and absolute-difference amplitudes.
Figure 9: Precuneus examples. (a) EEG spectrogram; (b) alpha scalp power; (c) real fMRI (black dashed) and NVCode (green); (d) projected real, predicted and absolute-difference amplitudes.
Figure 10: Putamen examples. (a) EEG spectrogram; (b) alpha scalp power; (c) real fMRI (black dashed) and NVCode (blue); (d) projected real, predicted and absolute-difference amplitudes.
Figure 11: Thalamus examples. (a) EEG spectrogram; (b) alpha scalp power; (c) real fMRI (black dashed) and NVCode (blue); (d) projected real, predicted and absolute-difference amplitudes.
Figure 12: Global signal examples. (a) EEG spectrogram; (b) alpha scalp power; (c) real fMRI (black dashed) and NVCode (purple); (d) whole-brain projections of real, predicted and absolute-difference amplitudes.
Encoder
Dataset accuracy / Δ
Mean
Sleep EEG–fMRI
MULTI-CLARID
gradCPT
NeuroBOLT
XP1
Affective Music
NatView
Experience Sampling
Real test
0.861
0.787
0.746
0.869
0.874
0.782
0.747
0.702
0.796
Cuneus only
+0.004
+0.016
+0.018
+0.000
-0.011
-0.001
+0.007
-0.001
+0.004
Heschl’s only
-0.013
-0.017
+0.021
-0.022
+0.002
-0.001
-0.081
-0.010
-0.015
Mid. Frontal only
+0.006
-0.015
-0.018
-0.002
-0.006
+0.001
-0.016
-0.004
-0.007
Precuneus only
+0.022
+0.008
+0.033
-0.003
+0.040
+0.021
+0.008
+0.014
+0.018
Appendix
Table 31: Full regional aggregation provides the strongest downstream transfer. The encoder set supplied to the projector varies. Generator capacity, sampler, training protocol, and the real-trained classifier are held constant. Best values are darker purple, bold ; second-best values are light purple, underlined .
Figure 13: EEG-conditioned transport on a held-out scan. Top: projected states from the Gaussian source at t=0 to the generated endpoint at t=1 . Bottom left: real and generated endpoints overlap in UMAP space. Bottom right: target correlation rises along the integrated trajectory.
Figure 14: Shared EEG condition. The dc=512 code positions form an 8×64 matrix. Entries are deterministic illustrations; red, white, and blue denote negative, near-zero, and positive values, respectively.
Hyperparameter
Value
Regional representation dimension d
200
Spatiotemporal patch length / patches
w=200 / P=16
Representation Transformer depth / heads / MLP ratio
12 / 10 / 4
Spectral branch FFT lengths
{100,200,400,800}
Spectral branch temporal projection size
32
Shared context dimension dc
512
Appendix
Table 32: NVCode hyperparameters. Network dimensions and fitting settings are listed for the regional encoders and joint interpolant, followed by the Euler steps and the sample counts for validation and testing.
Background and Objective: Predicting regional blood-oxygen-level-dependent (BOLD) activity from EEG provides a computational approach to studying electrophysiological-hemodynamic associations. However, changes in input representation, readout architecture, and ensembling can obscure the source of a prediction gain. We investigate the contribution of target-relative spectral estimation under matched readout conditions. Methods: MEL converts each preceding 16-second EEG history into calibrated lag-channel-frequency measurements. Four equal-dimensional representations are compared using matched Ridge and multilayer perceptron (MLP) readouts. The retrospective analysis includes 29 resting-state scans from 22 participants, participant-paired uncertainty estimates, aggregation and correspondence controls, leave-one-participant-out regression, and refitted models on an external Oddball cohort. Results: Morlet-Ridge achieved a mean scan-wise correlation of 0.508 across six regional targets and the global signal, compared with 0.432 for canonical Fourier features. The participant-paired mean difference was 0.069 (95% bootstrap confidence interval, 0.037-0.101), with improvements in 19 of 22 participants. The Morlet MLP prediction ensemble reached 0.491. Shared coordinate permutations preserved prediction after refitting, whereas sample-wise permutations degraded it. Canonical Fourier regression reached 0.377 under participant exclusion; external unseen-participant correlation was 0.026. Conclusions: Spectral estimation materially affected regional BOLD prediction without requiring additional nonlinear readout capacity. MEL provides an explicit measurement interface for controlled comparisons, but weak external results constrain its generalizability. Confirmation requires untouched participant-separated data and split-aware preprocessing.
Xiangyu Liu, Zeting Yan, Zhitong Yin +2
Beijing Normal-Hong Kong Baptist University · The University of Hong Kong · Peking University
High-fidelity EEG generation is critical for alleviating data scarcity and addressing privacy constraints in large-scale neural modeling. Despite recent progress, most existing approaches formulate EEG generation via discrete denoising objectives, which inadequately reflect the inherently continuous temporal dynamics and spectral structure of neural activity. As a result, these methods often struggle to preserve long-range temporal dependencies and exhibit mismatches in the spectral and temporal structure of the generated signals. In this work, we argue that effective EEG generation requires models that operate directly on the continuous evolution of neural signals. We introduce Just EEG Transformer (JET), a generative framework based on conditional flow matching that models EEG as raw sequences evolving along continuous trajectories. By learning a smooth vector field that transports noise to the EEG data distribution, JET captures temporal continuity and transient dynamics without relying on discretized denoising schemes or domain-specific representations. To ensure that the learned dynamics remain consistent with key properties of EEG signals, we introduce principled constraints that preserve spectral structure, temporal stationarity, and signal-level statistics. Across three large-scale benchmarks, JET consistently achieves state-of-the-art performance, reducing TS-FID by over 40% compared to strong baselines. Extensive analyses show that JET captures key structural properties of neural dynamics, providing a scalable and principled approach to EEG generation. Project page: https://y-research-sbu.github.io/JET/ .
Yifan Wang, Yijia Ma, Wen Li +1
Stony Brook University · University of Texas Health Center at Houston.
Neuroscientists have recently turned to intracranial brain recording methods, like electrocorticography (ECoG), for human experiments because of the fine spatial and temporal resolution that they afford. Models trained on this data, however, are fundamentally restricted by the patient populations that can receive the implants necessary for recording. We propose using non-invasive fMRI to bridge the gap in training data. Using spoken language representations fine-tuned on fMRI, we build encoding models of ECoG. These representations showed improved prediction performance in ECoG, even though the temporal resolution of fMRI is two orders of magnitude worse. Prediction improved in frequency bands well beyond what is directly measured in fMRI. Next, to test the procedure's generalization ability, we fine-tuned models on fMRI responses that were temporally downsampled by a factor of 2. Despite the loss in resolution, these models were able to predict fMRI and ECoG responses at levels comparable to the original fMRI-tuned models. Finally, we showed that ECoG performance steadily scales with the amount of fMRI-tuning data. Our results show that "slow" data like fMRI can be a valuable resource for building better models of "fast" brain data like ECoG. In the future, integrating across multiple recording methods may further improve performance in other applications, like decoding.
Aditya R. Vaidya, Richard J. Antonello, Alexander G. Huth
Department of Computer Science The University of Texas at Austin, USA · Zuckerman Mind Brain Behavior Institute Columbia University, USA · Departments of Neuroscience and Statistics University of California, Berkeley, USA