Rethinking Cross-Subject Data Splitting for Brain-to-Text Decoding

Congchi Yin, Qianqian Yu, Zhiwei Fang, Changping Peng, Piji Li

Abstract

Recent major milestones have successfully reconstructed natural language from non-invasive brain signals (e.g., functional Magnetic Resonance Imaging (fMRI) and Electroencephalogram (EEG)) across subjects. However, we find current dataset splitting strategies for cross-subject brain-to-text decoding are wrong. Specifically, we first demonstrate that all current splitting methods suffer from a data leakage problem, which refers to the leakage of validation and test data into the training set, resulting in significant overfitting and overestimation of decoding models. In this study, we develop a correct cross-subject data splitting criterion without data leakage for decoding fMRI and EEG signals to text. Some SOTA brain-to-text decoding models are re-evaluated correctly with the proposed criterion for further research.

Introduction: The Hidden Flaw in Brain-to-Text Decoding

Brain-to-text decoding—the process of translating non-invasive brain signals like fMRI or EEG into natural language—represents a frontier in neuro-AI. To make these models clinically or practically useful, they must generalize across different individuals (cross-subject). However, recent research has uncovered a fundamental flaw in how data is split into training and testing sets in this field. This flaw, known as "data leakage," leads to significantly inflated performance scores, creating a false sense of progress.

The Two Faces of Data Leakage

In many current studies, the "test" data is not truly unseen by the model. The authors identify two primary types of leakage that compromise scientific validity:

  1. Brain Signal Leakage: This occurs when data from the same subject appears in both the training and testing sets. Because every brain is unique, the model learns to recognize the specific individual's neural signature rather than the general neural patterns of language.
  2. Text Stimuli Leakage: This occurs when the specific sentences or stories the model is trying to decode in the test set were already encountered during training (even if recorded from a different person). Because modern decoders (like GPT or BART) are exceptionally good at memorizing sequences, they stop "decoding" the brain and start simply "recalling" the text they have seen before.

A Formal Framework for Data Splitting

To address these issues, the researchers formalized the structure of brain-to-text datasets using a 4-partite multigraph, mapping the complex relationships between Subjects ($S$), Stories ($M$), Text Segments ($T$), and Brain Signals ($F$).

The 4-partite multigraph framework used to define data relationships and identify leakage points.

Based on this framework, they proposed a rigorous three-step splitting method to ensure zero leakage:

  • Step 1 (Isolate Text): Ensure that no text segment appears in more than one split (Train, Val, or Test).
  • Step 2 (Isolate Subjects): Split the remaining data so that subjects in the test set are entirely different from those in the training set.
  • Step 3 (Safe Expansion): Carefully add back data that does not violate the "no-same-subject" and "no-same-text" rules to maximize the use of available data.

To quantify the problem, the authors introduced two new metrics: the Brain Signal Leakage Rate (BSLR) and the Text Stimuli Leakage Rate (TSLR).

Re-evaluating the State-of-the-Art

The study re-evaluated two prominent models, UniCoRN and EEG2Text, using the Narratives (fMRI) and ZuCo (EEG) datasets. The results were sobering. When the "clean" splitting method was applied, performance plummeted. For example, on the Narratives dataset, UniCoRN’s BLEU-1 score dropped from ~50.24 (with leakage) to ~22.83 (without leakage).

This "Memorization Machine" effect was further proven by randomly shuffling brain signals; even with junk input, models with text leakage maintained high performance because they were simply outputting memorized sentences triggered by minor cues.

Conclusion and Future Directions

The re-evaluation reveals that current neural encoders are significantly weaker at generalizing to new subjects than previously thought. While a "right" split is harder to achieve and may require discarding some expensive data, it is a necessary price for scientific validity. Future work must focus on building more robust neural encoders rather than relying on the powerful memorization capabilities of large language model decoders. The authors also recommend that future data collection efforts involve unique stimuli for different subjects to facilitate more effective cross-subject splitting.

Summary updated

BibTeX
@misc{yin2023rethinking,
  author = {Congchi Yin and Qianqian Yu and Zhiwei Fang and Changping Peng and Piji Li},
  title = {{Rethinking Cross-Subject Data Splitting for Brain-to-Text Decoding}},
  year = {2023},
  eprint = {2312.10987},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2312.10987},
}
Figure