BrainWorld: Modeling Whole-Brain Functional Dynamics through Predictive 4D fMRI Generation

Junfeng Xia, Wenhao Ye, Junxiang Zhang, Xuanye Pan, Mo Wang, Quanying LiuNeurIPS 2026

TL;DR

Think of a video generator like Sora, except instead of rendering cats in space, it forecasts how blood oxygen levels ripple across a living human brain. BrainWorld treats a static 3D structural brain scan like the physical "stadium" and uses a latent Diffusion Transformer to predictively generate 4D functional brain "videos" up to 400 frames into the future. In doing so, it not only synthesizes realistic data to augment scarce neuroimaging cohorts, but also learns rich internal representations that beat existing brain foundation models on clinical and demographic tasks.

What Problem Does This Paper Address?

Functional MRI (fMRI) captures brain activity over 3D space and time—essentially a noisy, high-dimensional 4D movie of thought and rest. Existing neuroimaging "foundation models" mostly focus on compressing these scans into static representations for downstream classification (like predicting age or disease), or simplify the brain into coarse, pre-defined regions (atlases) rather than modeling raw 3D pixels (voxels).

Generating future whole-brain voxel activity over long time horizons has remained largely out of reach due to sheer computational scale. Furthermore, when researchers combine 3D structural MRI (sMRI—your static brain anatomy) with 4D fMRI (dynamic activity), they usually treat them as parallel, equal inputs. Yet biologically, function unfolds inside anatomy. BrainWorld asks: what happens if we model whole-brain dynamics as conditional video generation, using a person's unique anatomy as the structural scaffold?

Figure 1: Overview. (a) Motivation. sMRI resembles a static image that provides an anatomical scaffold, whereas 4D fMRI resembles a dynamic video of brain activity. Like a racket influencing a ball’s trajectory, sMRI provides anatomical context for fMRI dynamics, motivating structural- condition-aware generation. (b) Dataset. BrainWorld uses 22 fMRI datasets, grouped into pretraining- only, internal evaluation, and external evaluation cohorts. (c) fMRI preprocessing. Raw 4D fMRI is standardized by registration to the Montreal Neurological Institute 152 (MNI152) template, repetition- time (TR) resampling, signal normalization, and spatial cropping, yielding 40-frame inputs. (d) Architecture. BrainWorld encodes voxel-level 4D fMRI into a pretrained VAE latent space and trains a DiT to denoise latent brain dynamics under past functional connectivity, structural MRI, and optional video/audio conditions encoded by frozen encoders. The model supports condition-aware 4D fMRI generation and downstream representation learning via intermediate DiT features.

Methods

Inspired by modern video generation, BrainWorld uses a two-stage latent diffusion architecture to keep compute tractable:

  1. Stage I: 4D Spatial Compression (Standard + Domain Tweaks): A 3D Variational Autoencoder (VAE) compresses 40-frame fMRI windows ($80 \times 96 \times 80$ voxels per frame) frame-by-frame into a compact $10 \times 12 \times 10$ latent space, preserving the time axis. It uses 3D Haar wavelet blocks to retain crisp spatial frequencies.
  2. Stage II: Conditional Diffusion Transformer (The Novelty): Instead of predicting the future in raw voxel space, a Diffusion Transformer (DiT) denoises the next 40-frame latent block given the current block. Crucially, the authors introduce structural-prior conditioning: embeddings from frozen encoders for the subject's 3D sMRI, recent functional connectivity (a correlation matrix of brain regions), and optional audio/video stimuli are injected throughout every DiT block via cross-attention and adaptive normalization.

For long-horizon forecasting, BrainWorld autoregressively rolls out predictions 40 frames at a time—decoding each generated block to recalculate functional connectivity for the next step while keeping the subject's anatomical sMRI fixed. For downstream tasks (like disease diagnosis), no generation is needed; the authors simply extract intermediate feature activations directly from the DiT layers.

Datasets

No new datasets are introduced, instead, the authors standardize an impressive 22 public neuroimaging datasets spanning resting-state, task-based, movie-watching, and clinical cohorts (including HCP, ABCD, ABIDE, ADNI, SALD, NKI, BHRC, and CineBrain). All fMRI scans are aligned to a standard brain template and resampled to a unified 0.72-second frame rate (TR). Datasets are strictly split into pretraining-only, internal evaluation, and external (unseen cohort) evaluation sets to test out-of-distribution generalization.

Key Insights and Ideas

  • Anatomy is a rulebook, not just another feature: Simply concatenating sMRI and fMRI embeddings right before a classifier (BrainWorld_F+S-concat) actually hurts or fails to improve performance over fMRI alone on several tasks. However, injecting sMRI inside the generative denoising loop (BrainWorld_F+S-prior) consistently wins. How you fuse modalities matters more than merely having them.
  • Generative models secretly learn better representations: As BrainWorld trains to predict future brain frames, its internal hidden states become progressively better at diagnosing mild cognitive impairment and predicting demographics—even with a frozen backbone. Learning how the brain evolves forces the network to learn what the brain's state means.
  • Synthetic brains actually help: In medical imaging, adding synthetic data often degrades downstream classifiers due to subtle artifacts. While competing baselines saw their downstream accuracy drop as synthetic fMRI was mixed into training, BrainWorld's generated 400-frame trajectories genuinely boosted classifier performance.

Key Results

  • Long-Horizon Forecasting: Across 400-frame (~4.8 minute) rollouts on internal (HCP, CineBrain) and external unseen datasets (SALD, HCP Movie), BrainWorld maintains sharp anatomical detail and achieves the lowest Mean Squared Error (MSE) and highest Pearson correlation against all baselines, whereas a MONAI latent diffusion baseline blurs out over time.
Long-horizon 4D fMRI generation up to 400 frames compared to ground truth and MONAI.
  • Synthetic Data Augmentation: Adding a 1:1 ratio of BrainWorld-generated examples to real training data improved HCP gender classification accuracy from 81.45% to 85.39% (+3.94 points). At a 0.75 ratio on SALD age regression, correlation jumped from 0.7613 to 0.8104, while baselines mostly degraded. Spatial activity levels in generated movie-watching scans correlated tightly with ground truth ($r = 0.912$).
  • Downstream Transfer: BrainWorld topped both full fine-tuning (5 datasets) and frozen linear probing (4 datasets). Notably, on ADNI Mild Cognitive Impairment diagnosis (linear probing), BrainWorld_F+S-prior reached 76.27% accuracy, beating multimodal competitor Brain Harmony (58.33%) and structural model BrainIAC (73.73%).

Limitations and Future Work

  • Autoregressive Bottlenecks: Generating 40-frame chunks sequentially via diffusion is slow and risks accumulating errors over ultra-long horizons. Future work could explore hierarchical temporal rollouts or diffusion distillation to speed up sampling.
  • Correlation, Not Counterfactuals: While the model predicts activity conditioned on stimuli and anatomy, the authors haven't yet tested counterfactual control (e.g., "what if this specific subject watched a different movie?"), and caution that computational gains from sMRI conditioning reflect useful statistical coupling rather than proven biological causality.

Summary updated

Abstract

Whole-brain four-dimensional functional magnetic resonance imaging (4D fMRI) generation is valuable for modeling functional brain dynamics, yet existing fMRI foundation models mainly target representation learning and downstream prediction rather than conditional predictive generation. We introduce BrainWorld, a structural-prior-conditioned generative model for whole-brain 4D fMRI dynamics. BrainWorld uses structural magnetic resonance imaging (sMRI) as subject-level anatomical context and past functional connectivity as recent dynamic context to guide future fMRI generation, integrating both structural and functional condi- tions into the denoising process. Using 22 datasets for model development and evaluation, BrainWorld supports autoregressive generation of up to 400 frames, improves downstream performance through generated-example augmentation, and learns transferable multimodal representations that outperform baselines. Together, these results establish BrainWorld as a condition-aware generative framework for long-horizon brain dynamics modeling and multimodal representation learning.
BibTeX
@inproceedings{xia2026brainworld,
  author = {Junfeng Xia and Wenhao Ye and Junxiang Zhang and Xuanye Pan and Mo Wang and Quanying Liu},
  title = {{BrainWorld: Modeling Whole-Brain Functional Dynamics through Predictive 4D fMRI Generation}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=5rS8m8pxgo},
}
Figure