# SAMBA: Toward an EEG Foundation Model via Differential Mamba and Coordinate-Driven Spatial Embedding

DevFeed: [SAMBA: Toward an EEG Foundation Model via Differential Mamba and Coordinate-Driven Spatial Embedding](<https://devfeed.tech/articles/samba-toward-an-eeg-foundation-model-via-differential-mamba-and-coordinate-driven-spatial-embedding-116651.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2511.18571>)

Author: Jiazhen Hong, Geoffrey Mackellar, Soheila Ghane

Published: 2026-11-04T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Machine Learning](<https://devfeed.tech/sources/arxiv-machine-learning.md>)

Topics: [Mamba](<https://devfeed.tech/topics/mamba.md>), [AI Foundation Models](<https://devfeed.tech/topics/ai-foundation-models.md>), [Embeddings](<https://devfeed.tech/topics/embeddings.md>), [Neural Network](<https://devfeed.tech/topics/neural-network.md>), [Transformers](<https://devfeed.tech/topics/transformers.md>)

Tags: [cs-lg](<https://devfeed.tech/tags/cs-lg.md>), [eeg](<https://devfeed.tech/tags/eeg.md>), [embedding](<https://devfeed.tech/tags/embedding.md>), [foundation-model](<https://devfeed.tech/tags/foundation-model.md>), [framework](<https://devfeed.tech/tags/framework.md>), [interpretability](<https://devfeed.tech/tags/interpretability.md>), [long-context](<https://devfeed.tech/tags/long-context.md>), [mamba](<https://devfeed.tech/tags/mamba.md>), [maps](<https://devfeed.tech/tags/maps.md>), [model](<https://devfeed.tech/tags/model.md>), [robustness](<https://devfeed.tech/tags/robustness.md>), [samba](<https://devfeed.tech/tags/samba.md>), [scalability](<https://devfeed.tech/tags/scalability.md>), [self-supervised-learning](<https://devfeed.tech/tags/self-supervised-learning.md>), [semantic](<https://devfeed.tech/tags/semantic.md>), [sequence](<https://devfeed.tech/tags/sequence.md>), [spatial](<https://devfeed.tech/tags/spatial.md>), [tasks](<https://devfeed.tech/tags/tasks.md>), [temporal](<https://devfeed.tech/tags/temporal.md>), [transformer](<https://devfeed.tech/tags/transformer.md>), [weight](<https://devfeed.tech/tags/weight.md>)

## AI overview

SAMBA is a self-supervised EEG framework designed to handle long recordings and variation in electrode layouts. It uses a Mamba-based U-shaped encoder-decoder, with temporal semantic random masking for sequence reconstruction, a Multi-Head Differential Mamba module to reduce redundancy and highlight salient temporal structure, and coordinate-driven spatial embeddings in 3D space to support cross-device robustness. The abstract reports competitive or improved performance on 13 datasets spanning varied tasks, montages, and sequence lengths, alongside low memory use and efficient inference. Its learned spatial maps reportedly align with task-relevant neurophysiological regions; the abstract does not provide detailed metrics or comparisons.

## Source excerpt

arXiv:2511.18571v2 Announce Type: replace Abstract: Modeling long-context electroencephalography (EEG) signals is critical for learning generalizable EEG representations, as EEG recordings are acquired at high sampling rates and often span extended durations that capture evolving neural states beyond short task- specific windows. Transformer-based models have shown promise in modeling short sequences of a few seconds; however, their quadratic complexity limits scalability to longer contexts. Moreover, substantial variability in electrode montages across datasets and recording devices poses a major challenge for building EEG models that generalize across domains. We propose SAMBA, a self-supervised learning framework with a Mamba- based U-shaped encoder-decoder architecture, which effectively captures long-range temporal dependencies and montage variability in EEG data. Leveraging the inherent ability of Mamba in processing long context sizes, we introduce: (1) Temporal Semantic Random Masking for semantic-level sequence reconstruction, (2) a Multi-Head Differential Mamba module to suppress redundancy and emphasize salient temporal structures, and (3) a Coordinate-Driven Spatial Embedding that learns unified embeddings in a three- dimensional Euclidean space, enabling robustness across devices. Experiments on thirteen EEG datasets across diverse tasks, electrode configurations, and sequence durations demonstrate that SAMBA achieves competitive or improved performance compared to recent state-of-the-art methods, while maintaining low memory consumption and efficient inference. The learned spatial weight maps exhibit close alignment with task-relevant neurophysiological regions, highlighting the interpretability of SAMBA. The code is available at: https://github.com/Jiazhen-Hong/SAMBA