BrainVista: Modeling Naturalistic Brain Dynamics as Multimodal Next-Token Prediction

Xuanhua Yin, Runkai Zhao, Lina Yao, Weidong CaiNeurIPS 2026

TL;DR

When you watch a movie, your brain state at the next second isn’t a blank slate reacting to the screen—it’s a blend of incoming sights and sounds colliding with your ongoing internal thoughts. BrainVista frames functional MRI (fMRI) forecasting just like next-token prediction in language models, weaving together sensory streams and past brain states to predict up to 20 steps of future brain activity without peeking ahead. By respecting functional brain boundaries and enforcing strict directional attention, it substantially outperforms existing brain foundation models on long-horizon rollouts.

What Problem Does This Paper Address?

Functional MRI measures brain activity via blood-oxygen levels (the BOLD signal)—a sluggish, delayed echo of neural firing. Meanwhile, naturalistic stimuli like movies throw fast, high-resolution video, audio, and dialogue at the viewer.

Existing "brain foundation models" typically learn representations using masked reconstruction or bidirectional attention—essentially filling in blanks while looking at both the past and the future. That works great for static feature extraction, but fails when you want to forecast how the brain evolves step-by-step. If a model relies on future context during training, rolling it out autoregressively (feeding its own predictions back in as history) causes rapid error accumulation. Furthermore, squashing the whole brain into one homogeneous vector blurs the boundaries between distinct functional systems (like visual vs. default-mode networks) that operate on very different internal clocks.

Methods

BrainVista treats brain dynamics as observed-stimulus conditional autoregressive forecasting: given initial brain history and the ongoing movie stream, predict future fMRI states recursively.

Figure 1: Framework of BrainVista. Time-aligned multimodal features are aggregated into stimulus tokens, while parcel-wise fMRI is encoded by network-specific tokenizers into functionally structured brain tokens. Given interleaved stimulus and brain tokens from the valid context, BrainVista predicts the next brain token and decodes it back to fMRI space.

It pairs standard frozen multimodal encoders (V-JEPA 2 for video, Wav2Vec2-BERT for audio, Llama 3.2 for text) and a GPT-style temporal Transformer with three tailored architectural choices:

  • Network-wise Tokenizers: Instead of compressing the whole brain at once, fMRI parcels are grouped into known functional networks (e.g., Yeo-7 systems). Lightweight, independent MLP autoencoders compress each network separately, preserving specialized regional dynamics.
  • Stimulus-to-Brain (S2B) Masking: Stimulus and brain tokens are interleaved on the fMRI time grid. Standard causal masking lets future stimulus tokens attend to past brain predictions—meaning rollout errors in brain predictions can "infect" how the model reads the movie! S2B masking enforces a one-way street: stimulus tokens only attend to past stimuli, while brain tokens attend to both past brain states and aligned stimuli.
  • Spatial Mixer Head: After the temporal Transformer predicts the next whole-brain token, it is split back into network tokens and passed through a multi-head self-attention layer to refine cross-network interactions before decoding back to fMRI space.
Figure 2: BrainVista core. For next-step prediction, BrainVista takes an interleaved sequence of stimulus tokens and available brain tokens from the recent context. The target brain-token position is decoded as the prediction target. The Stimulus-to-Brain mask keeps stimulus tokens in a stimulus- only causal stream. The temporal Transformer predicts a whole-brain latent token, which is refined by the Spatial Mixer Head and decoded to fMRI space.

Datasets

No new benchmarks are introduced; the authors evaluate on three existing large-scale naturalistic movie-viewing fMRI datasets spanning diverse temporal resolutions and brain parcellations:

  • Algonauts 2025 (mapped to Schaefer-1000 parcels / Yeo-7 functional networks)
  • CineBrain (visual and auditory ROI groups with PCA reduction)
  • HAD (Human Action Dataset; Schaefer-1000 parcels / Yeo-7 networks)

Key Insights and Ideas

  • Neither stimulus nor inertia alone is enough: Ablating either input source degrades 20-step forecasts across all datasets (e.g., on Algonauts, pattern correlation drops from 0.2090 down to 0.1391 with stimulus-only and 0.1764 with past-fMRI-only). Naturalistic brain activity genuinely requires modeling exogenous sensory drive alongside endogenous neural history.
  • Protecting the stimulus stream unlocks spatial mixing: Intriguingly, adding the Spatial Mixer Head under vanilla causal masking actually hurts performance (-0.0153 pattern correlation), whereas under S2B masking it boosts it (+0.0278). Keeping noisy brain rollouts from contaminating stimulus representations appears crucial before letting brain networks mix information.
  • Emergent cortical timescales: Without explicit biological priors, occluding past tokens reveals that BrainVista's visual and somatomotor predictions rely heavily on immediate history, while higher-order association networks (like Default Mode) integrate over much longer windows—mirroring the biological hierarchy of the human cortex.

Key Results

Evaluated on long-horizon autoregressive rollouts ($H=20$ steps) against both adapted foundation models and matched-access autoregressive baselines (ARX):

Table 1: Main results for conditional autoregressive forecasting with horizon H=20 on Algo- nauts 2025, CineBrain, and HAD. Non-ARX references are reported as references, while ARX baselines receive matched past fMRI states and aligned stimulus features. Entries are means; seed- level and subject-level statistics are reported in Tables 18 and 31. Higher is better. Best and second-best means are shown in red and blue.
  • Consistent SOTA performance: BrainVista achieves the highest Pearson correlation ($r$), spatial pattern correlation ($p_{\text{corr}}$), and Top-10 identification accuracy across all three benchmarks.
  • Preserving spatial brain patterns: Relative to the strongest baseline (BrainHarmony-AR), BrainVista improves $p_{\text{corr}}$ by 10.8% on Algonauts (0.2090 vs. 0.1887), 9.4% on CineBrain (0.5643 vs. 0.5156), and 6.5% on HAD (0.2950 vs. 0.2769). It also beats a representation-matched Transformer-ARX using the exact same frozen encoders and tokenizers.
  • Graceful degradation & semantic retention: While all models lose accuracy as rollout horizons stretch from $H=1$ to $H=20$ (e.g., $p_{\text{corr}}$ from 0.6214 to 0.2950 on HAD), BrainVista maintains its lead throughout, and its forecasted features better preserve movie emotion-category clustering (ARI 0.214 vs. 0.138 for BrainHarmony-AR).

Limitations and Future Work

The authors are admirably candid about what BrainVista isn't: it is a conditional predictive assay, not a faithful biological simulation or proof of causal brain connectivity. Accuracy still decays noticeably over longer horizons due to compounding rollout errors, and cross-subject generalization lags behind within-subject performance. Because models are trained per dataset, zero-shot transfer across different MRI scanners or arbitrary unseen movies isn't established yet, and Algonauts' small sample size (four subjects) limits broad population-level statistical claims. Future directions point toward uncertainty calibration, scaling across larger multi-site datasets, and broader acquisition protocols.

Summary updated

Abstract

Naturalistic fMRI offers a time-resolved window into cortical dynamics during continuous multimodal experience, where future brain states are jointly governed by endogenous neural context and exogenous sensory drive. Forecasting such dynamics, however, remains challenging because fast-changing stimulus streams must be reconciled with the sluggish hemodynamic BOLD response, while cortical activity is organized across functionally heterogeneous brain networks. To address these challenges, we introduce BrainVista, a multimodal autoregressive framework for observed-stimulus conditional brain-state forecasting. BrainVista predicts future fMRI states from the history of brain activity and stimulus tokens temporally aligned to each prediction query, enabling autoregressive prediction without access to future ground-truth fMRI states. Recursive rollout provides a within-run predictive test of brain-state evolution under continuing sensory input. Specifically, we combine Network-wise Tokenizers for functionally structured brain representations, a Spatial Mixer Head for cross-network interaction refinement, and Stimulus-to-Brain (S2B) masking to preserve temporally causal stimulus–brain conditioning while preventing future brain-state leakage and stimulus look-ahead. We evaluate BrainVista on Algonauts 2025, CineBrain, and HAD, three large-scale naturalistic fMRI benchmarks, under long-horizon conditional autoregressive forecasting. BrainVista consistently outperforms baselines, improving pattern correlation by 10.8% and 9.4% relative to the strongest baseline on Algonauts 2025 and CineBrain, respectively. Code is available at https://github.com/xuanhuayin/BrainVista.
BibTeX
@inproceedings{yin2026brainvista,
  author = {Xuanhua Yin and Runkai Zhao and Lina Yao and Weidong Cai},
  title = {{BrainVista: Modeling Naturalistic Brain Dynamics as Multimodal Next-Token Prediction}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=NNRWeXb2aF},
}

Loading related content...

Figure