TL;DR
LuMamba introduces an efficient, topology-invariant foundation model for EEG analysis by combining channel-unifying cross-attention with linear-complexity bidirectional Mamba blocks. By pioneering a mixed pre-training objective that pairs masked reconstruction with a biosignal-adapted version of LeJEPA, the model achieves state-of-the-art generalization on unseen electrode configurations while requiring up to 377× fewer FLOPs than standard Transformer baselines.
What Problem Does This Paper Address?
Electroencephalography (EEG) is vital for non-invasive brain monitoring, but building deep learning foundation models for it is notoriously difficult due to two main bottlenecks:
- Topological Heterogeneity: Different clinical and research settings use entirely different electrode counts and layouts (ranging from 16 to 256 channels). Models trained on one configuration typically suffer severe performance drops when transferred to another.
- Computational Scalability: Standard foundation models rely on Transformers, which scale quadratically ($O(N^2)$) with sequence length. This makes processing long, continuous EEG recordings computationally prohibitive and memory-intensive.
The authors introduce LuMamba (Latent Unified Mamba) to solve both issues simultaneously, creating a model that can ingest arbitrary electrode layouts while maintaining linear-time complexity.
Methods
LuMamba's architecture consists of four primary components:
- Encoder (LUNA framework): Tokenizes raw EEG signals into temporal patches, fusing 1D-convolutional features, Fast Fourier Transform (FFT) spectral features, and 3D electrode spatial coordinates.
- Channel Unification (LUNA framework): Uses a cross-attention mechanism where a fixed number of learnable queries ($Q$) attend to the variable channel dimension ($C$). This decouples the internal model dimensions from the physical electrode layout, making it topology-invariant.
- Temporal Modeling (FEMBA framework): Replaces heavy Transformer encoders with two bidirectional Mamba (bi-Mamba) blocks, leveraging State Space Models (SSMs) for efficient, linear-time temporal context processing.
- Decoder/Classifier: A cross-attention decoder maps latent states back to the channel space during pre-training, which is replaced by a lightweight Mamba-enhanced linear layer for downstream classification tasks.
A New Pre-training Strategy for Biosignals
The authors provide the first adaptation of the Latent-Euclidean Joint-Embedding Predictive Architecture (LeJEPA) to biosignal time series. Instead of relying solely on standard masked reconstruction, they extract random local and global temporal views from the EEG signal. They combine a JEPA predictive loss (aligning local and global contexts) with Sketched Isotropic Gaussian Regularization (SIGReg) to smooth out the latent space.
Datasets
- Pre-training: The Temple University Hospital EEG (TUEG) corpus (~21,600 hours of recordings from over 14,000 patients using 20–22 channels).
- Downstream Evaluation (In-Distribution Montages): Three subsets of the Temple University Hospital family: TUAB (abnormal classification), TUAR (artifact detection), and TUSL (slowing events/seizures).
- Downstream Evaluation (Unseen Montages): APAVA for Alzheimer’s disease detection (16 channels) and TDBrain for Parkinson’s disease detection (26 channels).
Key Insights and Ideas
- The SSL Objective Trade-off: Masked reconstruction alone forces the model to focus on highly localized topology modeling, creating sharp attention peaks but poor cross-montage transferability. Conversely, LeJEPA alone produces diffuse, uniform embeddings with weak cluster structures.
- The "Best of Both Worlds" Solution: Combining masked reconstruction and LeJEPA acts as a regularizer. As seen in the query attention maps, the mixed objective smooths out transitions between attention responses while preserving spatial contrast, allowing the model to better capture long-range interactions across brain regions under sparse spatial sampling.
Key Results
- Competitive Performance: On the TUAB benchmark, LuMamba-Tiny (4.6M parameters) achieves 80.99% balanced accuracy, matching or outperforming much larger Transformer-based foundation models like LUNA-Base (7M) and BIOT (3.2M).
- Superior Cross-Montage Generalization: On the unseen 16-channel APAVA dataset (Alzheimer's detection), the mixed LeJEPA-reconstruction objective improved the Area Under the Precision-Recall curve (AUPR) by over 20% compared to reconstruction alone, setting a new state-of-the-art at 0.97 AUPR.
- Massive Efficiency Gains: Thanks to the Mamba backbone, LuMamba requires 26× fewer FLOPs than LUNA and 377× fewer FLOPs than LaBraM at equivalent sequence lengths. It can scale to 12× longer sequences before hitting typical GPU Out-Of-Memory (OOM) limits.
Limitations and Future Work
While LuMamba excels at cross-montage generalization, it slightly underperforms task-specific state-of-the-art methods on highly class-imbalanced datasets like TUSL and TUAR. The authors note this is a consequence of their generalization-oriented pre-training strategy rather than an architectural flaw. Future work will focus on expanding downstream evaluations and scaling up the pre-training corpus to further test the limits of this framework.
Summary updated