Benchmarking Positional Encoding Strategies for Transformer-Based EEG Foundation Models

Ayse Betul Yuce, Sebastian Stober
5/28/2026
cs.AI
benchmark-datasettransformer-attention

No confident code implementation found for this paper.

Abstract

Electroencephalography (EEG) is a widely used non-invasive technique for measuring brain activity in brain-computer interface (BCI) applications. Supervised EEG decoding models often struggle to generalize across tasks, subjects, and datasets, motivating transformer-based EEG foundation models trained with self-supervised learning.

Show full abstract

Since transformers are permutation-invariant, they require explicit positional information. Unlike textual tokens, EEG electrodes are spatially distributed across the scalp, raising the question of how electrode positions should be encoded in transformer-based EEG models. In this study, we benchmark five positional encoding strategies within the CBraMod backbone and evaluate them under linear probing and fine-tuning protocols on motor imagery classification and emotion recognition. Our results show that no single strategy consistently outperforms across tasks. Spherical Positional Encoding (SPE) yields strong representations for motor imagery but underperforms on emotion recognition, while Asymmetric Conditional Positional Encoding (ACPE) demonstrates more consistent performance across tasks. These findings suggest that the optimal positional encoding strategy is task-dependent, with no universal solution across EEG decoding scenarios.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{yuce2026benchmarking,
  title  = {Benchmarking Positional Encoding Strategies for Transformer-Based EEG Foundation Models},
  author = {Ayse Betul Yuce and Sebastian Stober},
  year   = {2026},
  eprint = {2605.29754},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2605.29754v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2605.29754.svg)](https://codeofpaper.com/paper/2605.29754)

Discussion