arXiv:2610.10952cs.LGOct 2026

Manuscript Offprint

arXiv:2610.10952

SPD-MetaFormer is what you need for small-data brain decoding

Zhida Wang, Wei Lyu, Guo Yu, Sui Tang

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Brain signal decoding is challenging because neural recordings are noisy and vary across individuals, while labeled data are often limited. Recent attention-based models on the symmetric positive definite (SPD) manifold have nevertheless achieved strong performance using covariance and connectivity representations, yet the contribution of learned token weighting remains unclear. We examine two representative architectures, MAtt (based on log-Euclidean geometry) and GBWAtt (based on generalized Bures–Wasserstein geometry), and find that their learned attention weights remain close to uniform after training. We relate this behavior to bounded similarity parameterizations that, under the original softmax scaling, limit attention-weight contrast. Moreover, replacing learned weights with uniform weights, throughout training and evaluation, has little effect on mean predictive performance while preserving each model's original aggregation geometry. Motivated by these findings, we introduce SPD-MetaFormer, an attention-free architecture built on uniformly weighted Fréchet aggregation under log-Euclidean geometry. Its backbone uses a geodesic residual to update a summary token and a shared spectral feedforward map to transform all tokens, followed by a learned weighted readout. Token states remain SPD-valued until tangent-space classification. Across three EEG benchmarks, SPD-MetaFormer achieves competitive results relative to published Euclidean and manifold baselines. Separate matched reproductions test learned versus uniform weighting within MAtt and GBWAtt. These results suggest that, in the short-sequence and limited-data regimes studied, carefully designed SPD architectures can provide a simpler and effective alternative to adaptive manifold attention.

1 INTRODUCTION

Understanding the human brain is a long-standing challenge in science and medicine. Brain decoding connects neural recordings to cognitive and clinical states, supporting brain–computer interfaces, neurorehabilitation, and the study of neurological and psychiatric conditions such as ADHD, Parkinson's disease, and depression (GBD 2021 Nervous System Disorders Collaborators, 2024; GBD 2019 Mental Disorders Collaborators, 2022; Wolpaw et al., 2002; Chaudhary et al., 2016; Woo et al., 2017). The learning problem is demanding because recordings are high-dimensional, noisy, and heterogeneous, while labeled data are often limited and costly to collect (Lotte et al., 2018; Varoquaux, 2018). Reliable decoding must therefore recover stable structure without overfitting to subject- and session-specific variation.

Existing approaches include convolutional decoders for electroencephalography (EEG) signals (Lawhern et al., 2018; Mane et al., 2021) and methods that explicitly model second-order structure. In EEG, covariance matrices capture power and coordinated channel variation relevant to motor imagery (MI), steady-state visual evoked potentials (SSVEPs), and error-related negativity (ERN), while functional magnetic resonance imaging (fMRI) connectivity describes covariation among regional time series (Barachant et al., 2012; Congedo et al., 2017; Dai et al., 2020; You & Park, 2021). Although these quantities have different neuroscientific meanings, appropriately regularized estimates from both are symmetric positive definite (SPD) matrices. Once a metric is specified, SPD geometry supplies meaningful distances and averages without learning these operations from scarce labels, supporting classical Riemannian classifiers and deep SPD networks (Pennec et al., 2006; Arsigny et al., 2006; Huang & Van Gool, 2017; Brooks et al., 2019).

Building on these representations, recent methods use Transformer-style attention to model interactions among manifold-valued tokens. Manifold attention assigns these tokens input-dependent weights before geometry-aware aggregation. MAtt (Pan et al., 2022) and GBWAtt (Jin et al., 2026) are representative examples, using Log–Euclidean and generalized Bures–Wasserstein geometries, respectively. Other methods explore deep SPD features, correlation matrices, and gyrovector spaces (Wang et al., 2023; Hu et al., 2025; Wang et al., 2025). Related Transformers likewise preserve SPD structure throughout their layers (Seraphim et al., 2024). Although these models achieve competitive performance, it remains unclear how much the learned attention weights contribute to the improvement.

We investigate this question in MAtt and GBWAtt by comparing learned attention weights with uniform weights while keeping the rest of each architecture unchanged. We find that both models learn nearly uniform attention weights. Replacing these weights with uniform weights during both training and evaluation has little effect on mean predictive performance, while preserving each model's original aggregation geometry (see Section 4.4; Appendix A.5 and Appendix B). Our analysis shows that bounded scores limit the contrast between attention weights at unit temperature, while temperature controls reveal no consistent benefit from sharper attention. Together, these findings suggest that attention in these two architectures acts primarily as geometry-aware averaging in the studied regime. This motivates using uniform geometric aggregation as the token mixer and designing effective transformations around it.

MetaFormer, developed for computer vision tasks (Yu et al., 2022), and related work on token mixing (Tay et al., 2021) mirror these observations by demonstrating that simplified token mixers suffice for effective representations. Adapting these ideas to small-data brain decoding requires operations that preserve SPD structure while combining information across covariance groups and keeping local evidence available for classification. We therefore introduce SPD-MetaFormer, which retains local covariance tokens and refines a separate summary through uniform geometric aggregation of transformed tokens. A shared spectral transformation improves matrix conditioning, and a geometric readout combines the local tokens and summary using learned weights shared across inputs. The resulting representation enters a tangent space only for final classification.

In summary, we make the following contributions:

• Controlled diagnosis of manifold attention. Across three EEG benchmarks, MAtt and GBWAtt learn nearly uniform attention weights, and matched uniform-weight interventions change mean scores by at most 0.36 points. Score analysis bounds attention-weight contrast at unit temperature, while temperature controls reveal no consistent benefit from sharper attention in the studied settings (Section 4.4; Appendix B).

• SPD-MetaFormer. We introduce an attention-free SPD backbone that separates local covariance memories from a global summary. Uniform Log–Euclidean aggregation of transformed memories drives a gated geodesic update of the summary, while keeping local tokens available for readout. A shared, single-parameter spectral transformation preserves positive definiteness and cannot increase the spectral condition number of any token. A geometric readout then combines local and global information using learned weights shared across inputs (Sections 3.2–3.5).

• Empirical evaluation. SPD-MetaFormer achieves mean accuracies of 75.44% and 70.79% on MI and SSVEP and a mean AUC of 82.53% on ERN, exceeding the highest baseline means in the published comparison compiled by Jin et al. (2026). On ABIDE fMRI, it achieves 79.14% AUC, the highest mean among the compared baselines under shared subject splits.

References (56)