CSLP-AE: A Contrastive Split-Latent Permutation Autoencoder Framework for Zero-Shot Electroencephalography Signal Conversion

Anders Vestergaard Nørskov, Alexander Neergaard Zahid, Morten Mørup

Electroencephalography (EEG) is a prominent, non-invasive neuroimaging technique that provides critical insights into brain function. However, EEG data suffers from a massive "noise" problem. This noise isn't just electrical interference; it stems from the humans themselves. Individual brain anatomy and functional connectivity vary so drastically that the signal from one person performing a task (like looking at a face) might look completely different from another person doing the exact same thing.

In machine learning terms, the "subject variability" (style) often overwhelms the "task activation" (content). This makes it incredibly difficult to build models that generalize to new people. To address this, researchers have proposed the Contrastive Split-Latent Permutation Autoencoder (CSLP-AE), a novel deep learning framework that disentangles task-related brain activity from individual subject variability. By combining split-latent autoencoders with contrastive learning, the model enables "zero-shot" signal conversion—effectively synthesizing how an unseen subject's brain would respond to a specific task.

Disentangling Style and Content

The CSLP-AE architecture is built on several clever components designed to explicitly separate the underlying neural activation from individual subject variability.

Architecture of the CSLP-AE framework
  1. Split-Latent Architecture: The encoder doesn't just produce one hidden representation. Instead, it splits the latent space into two distinct streams: one for Subject (Style) and one for Task (Content). The backbone uses 1D convolutions for feature extraction and Transformers to capture temporal dependencies across the EEG epoch.
  2. Contrastive Learning (CLIP-style): The framework applies a contrastive loss (InfoNCE) to each latent space. This encourages subject latents from the same person to be similar to each other (and different from others), while doing the same for task latents. This "specializes" the spaces, preventing information leakage between style and content.
  3. Latent Permutation (The "Swap" Trick): To force the model to genuinely separate these components, the authors use a self-supervised "permutation" loss.
Split-Latent Permutation Strategy

During training, the model takes two EEG samples and swaps their latents. For example, if two samples share the same task, the model swaps the task latents and requires the decoder to still reconstruct the original signal. This ensures the task latent contains the necessary "structural" information for that specific task, rather than just acting as a simple classification label.

Key Insights and Zero-Shot Synthesis

The authors found that simply classifying tasks isn't enough to generate realistic signals. The permutation loss is vital because it forces the model to capture the structure of the EEG signal. Furthermore, instead of treating subject variability as a nuisance to be filtered out, CSLP-AE treats it as a valuable "style" component. This perspective could eventually lead to better biomarkers for individual differences in brain function.

Perhaps the most compelling capability of this framework is zero-shot synthesis. By successfully disentangling style and content, researchers can take a "style" vector from a person the model has never seen and pair it with a "content" vector for a specific task to generate a synthetic, highly realistic EEG signal for that person.

Datasets and Performance

The model was rigorously evaluated on three distinct types of EEG data:

  • ERP Core: The primary benchmark, containing Event-Related Potentials from 40 subjects across six standardized paradigms (e.g., face perception, word judgment).
  • EEGMMI (PhysioNet): A motor imagery dataset where subjects move or imagine moving their hands and feet.
  • SleepEDFx: A dataset for sleep stage classification, testing the model on data not "time-locked" to a specific external stimulus.

CSLP-AE demonstrated superior disentanglement, achieving a subject classification accuracy of ~80.3% and a task accuracy of ~48.5% on unseen subjects. This significantly outperforms standard autoencoders and several supervised baselines. In the task of converting EEG signals between subjects, CSLP-AE showed a massive 51.7% improvement in Mean Squared Error (MSE) compared to conventional contrastive autoencoders. The model also performed competitively on motor imagery and sleep staging tasks, proving the framework's versatility beyond standard ERP paradigms.

Limitations and Future Directions

While the model generalizes impressively to unseen subjects, it currently only works for seen tasks; it cannot yet synthesize a brain response for a completely new cognitive task it wasn't trained on. Additionally, while the MSE is low, moving from a standard decoder to more powerful generative models (like Variational Autoencoders or Diffusion models) could produce even more diverse synthetic signals.

Finally, the authors explicitly acknowledge the ethical implications of "deep faking" EEG. As the scientific community gets better at decoding and synthesizing brain activity, it is crucial to remain vigilant about privacy risks and the potential misuse of synthetic biometric data.

Summary updated

BibTeX
@inproceedings{nrskov2023cslp,
  author = {Anders Vestergaard Nørskov and Alexander Neergaard Zahid and Morten Mørup},
  title = {{CSLP-AE: A Contrastive Split-Latent Permutation Autoencoder Framework for Zero-Shot Electroencephalography Signal Conversion}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=G7Y145tm2F},
}
Figure