TL;DR
This paper introduces TriDim, a novel, shape-preserving neural network block for EEG decoding that explicitly maintains three structural axes: channels, within-patch local waveforms, and across-patch long-term context. By avoiding the common practice of flattening EEG data into 1D token sequences, TriDimEEG achieves state-of-the-art performance across eight diverse datasets while significantly reducing parameter counts when integrated into existing foundation models.
What Problem Does This Paper Address?
Electroencephalography (EEG) signals are complex, multi-channel time-series data characterized by three interdependent structures: spatial organization (across channels), short-term local waveform dynamics (within a small window), and long-term temporal context (across windows).
Most current deep learning architectures for EEG borrow heavily from Natural Language Processing (NLP) by flattening these dimensions into a single 1D sequence of tokens. This conventional flattened-token pipeline mixes spatial and temporal structures into a single sequence-processing pathway. This destroys their distinct roles and limits the model's ability to deeply coordinate interactions between them throughout the network backbone.
Methods
The authors propose the TriDim block, a reusable architectural component that explicitly preserves the 3D shape of the EEG representation across three axes: Channel ($C$), Short-term temporal ($S$), and Long-term temporal ($L$).
Instead of treating one axis as a fixed embedding dimension and the others as sequence dimensions, TriDim dynamically rotates these roles. A single TriDim block consists of two pre-normalized residual sublayers:
- Cross-axis attention: Generates three distinct views. In each view, one axis serves as the embedding dimension while self-attention models relations across the other two axes. These views are then combined using learnable softmax fusion weights.
- Axis-wise Feed-Forward Networks (FFN): Applies independent FFN transformations along each individual axis to refine features before fusing them again.
By stacking these blocks and adding a Multi-level Tri-axis Readout (which pools and aggregates features across all encoder depths), they create TriDimEEG, a powerful standalone decoder. Crucially, TriDim is modular and can directly replace standard Transformer blocks in existing pretrained EEG foundation models without redesigning the surrounding pipelines.
Datasets
The model was evaluated using a strict cross-subject protocol on eight public benchmarks spanning four clinical and practical scenarios:
- Neurological Diagnosis: AD65 (Alzheimer's disease classification)
- Sleep Staging: SleepEDF
- Motor Imagery: BCI-IV-2A, SHU-MI, PhysioNet-MI (PNet-MI)
- Emotion Recognition: FACED, SEED, SEED-V
Key Insights and Ideas
- Flattening is a Sub-optimal Shortcut: Treating continuous multi-channel EEG signals like discrete text tokens forces asymmetric computational roles onto inherently structured data. Keeping all three axes explicit allows the network to progressively refine spatial, local temporal, and global temporal features simultaneously.
- More with Less via Parameter Sharing: By sharing parameters across the cross-axis attention operations and focusing on axis-specific transformations, TriDim achieves superior representation capability with significantly fewer parameters than standard Transformers.
- Plug-and-Play Efficiency: TriDim isn't just for standalone models; it serves as a highly efficient drop-in replacement for standard Transformer backbones. When inserted into existing foundation models, it consistently boosts accuracy while slashing the parameter footprint.
Key Results
- State-of-the-Art Standalone Performance: TriDimEEG achieved the highest average accuracy (57.70%) and the best average rank (2.75) across all 15 evaluated models, providing a 4.3% relative improvement over the second-best model (EEGDeformer).
- Foundation Model Upgrade: Replacing standard Transformer blocks in three prominent EEG foundation models (REVE, CBraMod, and CSBrain) with TriDim blocks yielded an average relative improvement of 7.4% in downstream accuracy.
- Massive Parameter Savings: This accuracy boost came alongside substantial efficiency gains, reducing the foundation models' parameter counts by 17.0% to 47.3%.
Limitations and Future Work
- Hyperparameter Sensitivity: As shown in the supplementary material, the optimal patch length, stride, and axis dimensions ($C, S, L$) vary significantly depending on the dataset and task, requiring careful per-dataset configuration during development.
- Scaling Potential: While the paper demonstrates TriDim's success as a drop-in replacement under a controlled pretraining setup (using 2,000 samples from the TUH corpus), the authors suggest that future work should explore scaling TriDim-based foundation models on massive, ultra-large-scale EEG datasets to see if these efficiency and accuracy gains hold at scale.
Summary updated