arXiv:2609.06960cs.AISep 2026

Manuscript Offprint

arXiv:2609.06960

iBrain: A Unified Foundation Model Reading the Brain from Surface to Spikes

Ying Chen, Tiou Wang, Zhifeng Yue

Abstract

Invasive neural recordings provide high-fidelity measurements of brain activity, with signals such as intracranial EEG (iEEG) and intracortical spiking activity capturing neural dynamics at different spatial and temporal scales. Yet existing neural foundation models have largely been developed independently for different invasive recording paradigms, leaving joint pretraining across heterogeneous invasive signals underexplored. In this work, we introduce iBrain, a unified foundation model that jointly learns from iEEG and spiking activity. iBrain employs signal-specific encoders to accommodate their distinct signal characteristics and a shared spatiotemporal Transformer backbone to model dependencies across recording channels and time. We pre-train iBrain on over 7,000 hours of heterogeneous neural recordings using masked signal reconstruction and channel-view alignment, promoting contextual modeling of neural dynamics and robustness across different channels. iBrain consistently outperforms single-signal pretraining baselines and achieves state-of-the-art performance on multiple benchmarks. Further experiments demonstrate that iBrain exhibits transferability and data efficiency across diverse recording settings. These results highlight the potential of joint pretraining on heterogeneous invasive neural recordings to support scalable neural modeling and transferable representations across recording settings and downstream tasks.

Introduction

Neural recordings provide information-rich measurements of brain activity, allowing computational models to characterize behaviorally relevant neural dynamics and translate them into functional outputs (Buzsáki, Anastassiou, and Koch 2012). Such models have enabled advances in applications including speech neuroprostheses (Moses et al. 2021; Willett et al. 2023), movement decoding (Collinger et al. 2013), and seizure monitoring (Proix et al. 2021). Among existing recording paradigms, invasive approaches measure neural activity closer to its physiological sources, typically offering higher signal-to-noise ratios and more spatially localized access to task-relevant neural signals than non-invasive techniques (Engel et al. 2005; Pesaran et al. 2018). These

advantages have made invasive neural recordings an important foundation for high-performance brain-computer interfaces (Willett et al. 2021; Card et al. 2026; Wilson et al. 2025).

Large-scale pretraining has emerged as an effective paradigm for learning transferable representations from complex temporal signals (Zhang et al. 2024a; Ma et al. 2024). The rich neural dynamics captured by invasive recordings make them particularly well suited to such representation learning (Pesaran et al. 2018). Recent studies have achieved encouraging results with pretrained foundation models for invasive neural recordings (Wang et al. 2023; Ye et al. 2023; Azabou et al. 2025), capturing shared neural dynamics across channels and time. These models improve downstream neural

Figure

Figure 1: Comparison with previous methods. a, Previous methods often train dedicated models for individual invasive recording paradigms, resulting in limited transferability and scalability. b, iBrain jointly learns from iEEG and spikes within a unified model, producing general neural representations for diverse downstream tasks.

*Corresponding author.

decoding, data-efficient adaptation, and cross-context generalization.

Despite these advances, existing methods remain limited in their utilization of heterogeneous invasive neural data. Intracranial EEG (iEEG), such as surface ECoG and stereotactic EEG (sEEG), records extracellular field activity across diverse cortical and deep-brain locations (Buzsáki, Anastassiou, and Koch 2012; Wu et al. 2024). At a finer spatial scale, intracortical microelectrode recordings provide access to spiking activity from localized neuronal populations (Williams et al. 2025). These signals differ in form and observation scale, providing complementary measurements of underlying neural dynamics (Einevoll et al. 2013; Buzsáki, Anastassiou, and Koch 2012). This raises a key question: could joint learning across such heterogeneous invasive signals lead to better neural representations? As illustrated in Figure 1, we investigate this question by moving beyond separate models for individual recording types toward a unified framework for iEEG and spiking activity. A positive answer would suggest that scarce and fragmented invasive recordings may be transformed into a foundation for learning more comprehensive and generalizable brain representations across scales.

In this work, we introduce iBrain, the first foundation model that jointly learns from heterogeneous invasive neural recordings, from cortical-surface and deep-brain iEEG to intracortical spiking activity. iBrain integrates signal-specific encoders with a shared spatiotemporal attention backbone, projecting heterogeneous neural signals into a common representation space while preserving signal-specific information. We pretrain iBrain with two self-supervised objectives: masked reconstruction to learn contextual signal representations, and channel-view alignment to improve robustness to channel variation. For large-scale pretraining, we curate a heterogeneous corpus comprising 3,950 hours of iEEG and 3,209 hours of spiking activity. We evaluate the resulting model on eight downstream benchmarks spanning motor decoding and language-related tasks.

To sum up, the main contributions of our work are as follows:

  • Joint iEEG and spike learning. We propose to jointly learn from iEEG and spiking activity, integrating complementary neural dynamics within a shared representation space.

  • Heterogeneous-signal and channel-view pretraining. We introduce iBrain, the first foundation model to jointly learn from iEEG and spikes, using modality-specific reconstruction and channel-view alignment to learn robust representations across heterogeneous invasive neural recordings.

  • Large-scale heterogeneous corpus and diverse evaluation. We curate a large-scale heterogeneous invasive neural corpus of over 7,000 hours for pretraining and evaluate iBrain on diverse downstream benchmarks covering motor decoding and language-related tasks.

References (43)