On Length Bias in EEG-to-Text Decoding

Iakovos Tenedios, Yashar MoshfeghiNeurIPS 2026

TL;DR

Modern AI models claim impressive accuracy at translating raw brainwaves (EEG) directly into text, raising hopes for assistive communication devices. However, this paper uncovers a massive "Clever Hans" shortcut: because neural recordings of different sentences vary in duration and are padded with zeros to fit a fixed input window, models largely guess the sentence just by measuring how long the recording is, rather than reading actual brain activity. By swapping time-domain convolutions for frequency-domain tokenisation, the authors neutralize this "length bias" and reveal that current state-of-the-art text generators are mostly acting as glorified lookup tables.

What Problem Does This Paper Address?

Decoding speech from non-invasive brain recordings like EEG could transform lives for people with conditions like ALS. Recently, "open-vocabulary" EEG-to-text models—systems meant to generate arbitrary sentences rather than classify a few words—have reported striking text-generation scores (like BLEU and ROUGE) on benchmarks where subjects passively listen to speech.

Here’s the catch: sentences have different lengths, so their corresponding EEG segments vary in duration. To feed them into neural networks, pipelines zero-pad every segment to a fixed window length.

Figure 1: Illustration of length bias in sentence-level EEG decoding. EEG segments corresponding to individual sentences vary in duration and are zero-padded ( Shaded Red Area ) to a fixed window length.

If every participant hears the same fixed set of sentences (e.g., an audiobook chapter), segment duration correlates strongly with sentence identity. A model doesn't need to decode neural semantics if it can simply spot where the real signal stops and the zero-padding begins—a shortcut the authors term length bias. Furthermore, when trained and tested on a closed set of sentences, it is unclear whether generative decoders actually translate brainwaves word-by-word or simply memorize and retrieve full transcripts from the training set.

Methods

To audit and fix these pipelines without relying on flawed teacher-forcing evaluations, the authors introduce three diagnostic and architectural tools:

  • Length-Matched Noise Baselines (New Diagnostic): Standard noise baselines replace the entire input (signal + padding) with random noise. Instead, the authors replace only the true EEG signal region with Gaussian noise while keeping the zero-padding completely intact. If a model still scores well, it is indisputably reading segment length rather than brainwaves.
  • Architectural Remedy via STFT (New Variants): Evaluating ten established EEG classifiers, the authors found only one model (BIOT) dropped to chance under length-matched noise. Systematically ablating BIOT revealed its secret weapon: Short-Time Fourier Transform (STFT) tokenisation, which converts chunks of time-series waves into frequency-magnitude spectrograms. Because a window of pure zeros yields exact zero STFT coefficients, padded regions become mathematically inert, leaving only a tiny, unavoidable cue at the single boundary frame where signal meets padding. The authors transplant this frontend into the state-of-the-art BrainECHO generation pipeline (creating BrainECHO w/ STFT and BrainECHO w/ Full BIOT) to replace its vulnerable time-domain convolutions (TS_Conv).
Figure 2: The three EEG encoder configurations evaluated in this work. Left: BrainECHO’s original time-domain TS_Conv frontend, which operates directly on the raw padded signal and is susceptible to length bias. Centre: BrainECHO w/ STFT, replacing TS_Conv with an STFT tokeniser while retaining BrainECHO’s standard Transformer encoder. Right: BrainECHO w/ Full BIOT, additionally replacing the Transformer with BIOT’s LinearAttentionTransformer.
  • Classification-to-Generation (Cls2Gen) Probe (New Diagnostic): To test the memorization hypothesis, they train standard classifiers to predict a sentence ID, look up the exact transcript from the dataset, and score it using text-generation metrics (BLEU/ROUGE) to see if complex sequence decoders add any value beyond simple retrieval.

Datasets

All experiments use strict subject-held-out splits (testing exclusively on unseen individuals) across three English listening EEG datasets with varying padding characteristics:

  • Brennan: 49 subjects listening to an audiobook (Alice's Adventures in Wonderland, 139 sentences). High duration variability (64.2% mean padding, 20.4% SD).
  • HBN (Healthy Brain Network): 123 pediatric subjects watching movie clips (171 sentences; 84.7% mean padding, 12.0% SD).
  • NeuraSearch (Newly Introduced): Collected by the authors from 28 subjects listening to 48 isolated sentences designed specifically to have uniform, tightly matched lengths (~7.4 words; 36.7% mean padding, 12.5% SD), naturally starving models of length cues.

Key Insights and Ideas

  • Time-domain convolutions love sharp edges: Standard convolutional frontends easily detect the sharp cliff between noisy EEG data and flat zero-padding, turning duration into a shortcut for sentence ID.
  • Frequency transforms naturally mask padding: Converting time windows into frequency bins via STFT renders zero-padded frames silent (all zeros), largely curing encoder-side length bias by construction.
  • "Open-vocabulary" models are acting as closed-book retrievers: Because every test sentence appears in the training set (just recorded from different people), generative decoders like Whisper fine-tuned on EEG default to spitting out memorized training sentences verbatim rather than piecing together novel text.

Key Results

  • Massive score inflation: Under length-matched Gaussian noise (zero brain signal), the original BrainECHO still achieves 22.5 of its 91.1 BLEU-4 points on Brennan, 57.3 of 81.9 on HBN, and 55.0 of 62.7 on NeuraSearch. Between 25% and 88% of state-of-the-art generation scores come purely from segment duration.
  • Extreme classifier vulnerability: Among end-to-end classifiers, DeepConvNet actually scored higher on length-matched noise than on real EEG on Brennan (80.8% vs. 75.7% accuracy). Conversely, BIOT fell to chance across all datasets when STFT was present, jumping back up to 58.8% noise accuracy on Brennan the moment STFT was swapped for a stride-matched Conv1d layer.
  • STFT cures encoder bias in generation: Replacing BrainECHO's frontend with STFT/BIOT drops length-matched noise generation scores down to—or below—the random baseline across all three datasets, while retaining genuine neural decoding (e.g., BrainECHO w/ STFT achieves 45.6 BLEU-4 on Brennan and 54.5 on HBN on normal EEG, with higher scores on longer real-signal bins).
Figure 3: Generation results across all datasets, shown as BLEU-4 with paired bars per model for normal input and length-matched noise. Bars are subject means and error bars subject SDs, and the dashed line marks the random baseline. Values reported in Table 4 in Appendix D, which reports BLEU-1 through BLEU-4, ROUGE, and WER together with all noise conditions.
  • Retrieval matches generation: On Brennan, the simple Cls2Gen lookup baseline hits 89.1 BLEU-4—virtually tying BrainECHO's 91.1. Furthermore, 92.2% of BrainECHO's Brennan test outputs were exact, verbatim matches to training sentences.

Limitations and Future Work

The authors note four main limitations:

  1. Closed-vocabulary benchmarks inherently encourage retrieval, making Cls2Gen a diagnostic rather than absolute proof that models cannot do open-vocabulary decoding.
  2. Length-matched Gaussian noise is a practical diagnostic rather than a complete causal disentanglement of boundary/noise statistics.
  3. Blaming residual bias on the Whisper decoder's spectrogram processing is inferential—directly ablating decoder positional encodings is left for future work.
  4. Dataset sizes and sentence inventories remain small compared to modern speech recognition benchmarks.

Moving forward, the authors urge the field to evaluate on held-out sentences alongside held-out subjects, adopt length-matched noise and Cls2Gen baselines as standard practice, and explore richer biological noise surrogates (like phase-scrambling). Lower, honest scores will mark real progress toward clinical communication prostheses.

Summary updated

BibTeX
@inproceedings{tenedios2026length,
  author = {Iakovos Tenedios and Yashar Moshfeghi},
  title = {{On Length Bias in EEG-to-Text Decoding}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=lsTNd5Lyoe},
}
Figure