Towards Robust EEG Decoding Based on Riemannian Self-Attention

Shaocheng Jin, Tao Zhou, Rui Wang, Ziheng Chen, Xiaoqing Luo, Xiaojun Wu, Josef KittlerarXiv 2026

TL;DR

This paper introduces GBWAtt, a novel Riemannian self-attention network designed to decode electroencephalography (EEG) signals robustly. By leveraging the Bures-Wasserstein Metric (BWM) and its power-deformed variant instead of traditional affine-invariant metrics, the model effectively captures local relationships between EEG signals while elegantly handling ill-conditioned covariance matrices under low signal-to-noise ratios.

What Problem Does This Paper Address?

Brain-Computer Interfaces (BCIs) rely heavily on decoding EEG signals, which inherently suffer from a low Signal-to-Noise Ratio (SNR) and high inter-subject variability. Recent advanced approaches model EEG signals using Symmetric Positive Definite (SPD) spatial covariance matrices to capture spatial correlation patterns across different brain regions.

However, existing SPD-based networks use simple architectures that fail to capture local relationships. Furthermore, they predominantly rely on the Affine-Invariant Metric (AIM) to calculate distances on the Riemannian manifold. AIM has a quadratic dependency on the SPD matrices and breaks down when encountering ill-conditioned SPD matrices (ICSM)—a common issue when dealing with noisy, real-world EEG data. This numerical instability severely hinders network performance.

Methods

The authors propose GBWAtt (Generalized Bures-Wasserstein Attention), which maps the self-attention mechanism onto the SPD manifold using a more stable geometric framework. The architecture consists of four main modules:

  1. Spatiotemporal Feature Extraction Module (SFEM): Employs spatial and temporal convolutions to extract initial representations from multi-channel EEG signals.
  2. SPD Modeling Module (SPDM): Divides the spatiotemporal features into subparts and computes trace-normalized covariance matrices to form a sequence of SPD matrices.
  3. SPD Self-Attention Module (SSAM): Instead of standard Euclidean attention, it uses a bilinear transformation to map SPD matrices while preserving their geometric structure. Similarity scores are calculated using an inverse-log distance based on the learnable power-deformed generalized Bures-Wasserstein metric ($\theta$-GBWM). Feature aggregation is performed using the Weighted Fréchet Mean (WFM) via fixed-point iteration.
  4. Manifold to Euclidean Embedding Mapping (MEEM): Employs ReEig (rectification) and LogEig (logarithmic mapping) layers to project the data back into Euclidean space for final classification via a fully connected layer.
Figure 1: An overview of the proposed BWAtt. (a) illustrates the overall architecture of the BWAtt network; (b) shows the SPD modeling module; and (c) presents the SPD self-attention mechanism based on Bures-Wasserstein geometry.

Datasets

The model was evaluated on three standard BCI benchmarking datasets:

  • BCIC-IV-2a: A 4-class motor imagery benchmark (9 subjects).
  • MAMEM-SSVEP-II: A 5-frequency steady-state visually evoked potential dataset (11 subjects).
  • BCI-ERN: A binary, highly imbalanced error-related negativity dataset (26 subjects).

Additionally, to test scalability, the authors integrated their method into large-scale clinical EEG foundation models (BIOT and LaBraM) using the TUAB and TUEV clinical datasets.

Key Insights and Ideas

  • Linear vs. Quadratic Dependency: As shown in the paper's metric comparison, the BWM exhibits a linear dependence on SPD matrices via the Kronecker sum ($\oplus$), making it significantly more numerically stable than AIM (which relies on a quadratic Kronecker product $\otimes$) when dealing with ill-conditioned matrices.
  • Geometry-Aware Attention: Traditional attention mechanisms fail on non-Euclidean manifolds. By using geodesic distances for attention scoring and the Fréchet mean for aggregation, GBWAtt preserves the intrinsic geometry of brain signals.
  • Power Deformation Flexibility: The parameter $\theta$ in $\theta$-GBWM allows the model to dynamically adapt and interpolate between BWM ($\theta=1$) and Log-Euclidean-like metrics ($\theta \to 0$), optimizing the latent geometry for specific tasks.

Key Results

  • State-of-the-Art Performance: GBWAtt consistently outperformed both conventional Euclidean deep learning models (like EEGNet) and geometric models (like MAtt). On the SSVEP dataset, it achieved an accuracy of 67.27% (vs MAtt's 65.19%), and on the ERN dataset, it reached an AUC of 80.90% (vs MAtt's 75.68%).
  • Robustness to Noise: Under high Gaussian noise ($N(0, 1.0)$), the proportion of ill-conditioned matrices before attention skyrocketed to 91.09%. GBWAtt successfully mitigated this, reducing the post-attention ill-conditioned proportion to just 7.46%, compared to MAtt's 14.27%.
  • Data Efficiency: GBWAtt maintained superior performance even when training data was progressively reduced down to 50%, demonstrating excellent data efficiency.
Figure 2: Comparison of the limited data on the MAMEM.

Limitations and Future Work

  • Computational Overhead: Repeated manifold-valued matrix operations—such as Singular Value Decompositions (SVDs) for the Lyapunov operator and fixed-point iterations for the Fréchet mean—increase training time compared to Euclidean attention mechanisms.
  • Extreme Noise Degradation: While highly robust, the relative advantage of GBWAtt narrows under extreme noise where the underlying covariance structure of the EEG signal is completely obliterated.
  • Future Directions: The authors suggest focusing on optimizing the computational efficiency of these Riemannian operations and exploring deeper architectures for large-scale foundation models.

Summary updated

BibTeX
@misc{jin2026towards,
  author = {Shaocheng Jin and Tao Zhou and Rui Wang and Ziheng Chen and Xiaoqing Luo and Xiaojun Wu and Josef Kittler},
  title = {{Towards Robust EEG Decoding Based on Riemannian Self-Attention}},
  year = {2026},
  eprint = {2606.25456},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2606.25456},
}
Figure