EEGFaceSem: An EEG Benchmark with Paired Generative Latents for Semantic Visual Modeling

Jun Ma, Michiel M. Spapé, Keith M. Davis, Tuukka RuotsaloarXiv 2026

TL;DR

EEGFaceSem is a new large-scale dataset that pairs high-quality EEG recordings with photorealistic face images and their underlying 512-dimensional generative latent vectors. By linking neural responses to a continuous, controllable visual latent space, it enables advanced brain-computer interface (BCI) applications like brain-supervised image editing and conditional image generation.

What Problem Does This Paper Address?

Traditional research into how the brain processes visual semantics (like "is this person smiling?") usually relies on fixed sets of natural images. This presents a major bottleneck: natural images are "messy." It is difficult to tell if a brain response is triggered by a high-level semantic feature (the smile) or a low-level confound (the lighting or background). Furthermore, fixed image sets are discrete samples; they don't allow researchers to explore the continuous transitions between visual features.

The authors address this by moving from "found" images to "synthesized" ones. By using a generative model, they gain fine-grained control over visual stimuli and, crucially, gain access to the mathematical "DNA" of each image—the latent vector.

Methods

The researchers developed a paradigm where participants viewed a stream of synthetic faces generated by a Progressive GAN (PGAN).

  1. Stimulus Generation: They generated 70,000 faces from a 512-dimensional latent space.
  2. Experimental Paradigm: They used a Rapid Serial Visual Presentation (RSVP) task. Participants were shown faces at a high speed (500ms per image) and asked to mentally note "targets" matching a specific semantic task (e.g., "look for blond hair" or "look for smiling faces").
  3. Neural Recording: EEG data was collected from 30 participants using a 32-electrode setup.
  4. Modeling: The team established benchmarks using both classical machine learning (LDA, Logistic Regression) and deep learning (EEGNet, and the transformer-based EEGPT).
Figure 1: Overview of the data acquisition pipeline, from generative stimulus creation to neural recording. Central to our paradigm, visual stimuli are synthesized by passing latent vectors through a pre-trained generative model. During the experiment, a participant views a sequence of these generated faces presented in a rapid serial visual presentation (RSVP) stream. For each task (e.g., ’smiling’), each stimulus is contextually defined as a ’target’ or ’non-target’, as shown by the corresponding label sequence. This procedure is repeated across multiple blocks for each of the eight semantic tasks, allowing for the collection of a rich set of time-locked EEG responses.

Datasets

The primary contribution is the EEGFaceSem dataset:

  • 30 participants providing 67,200 time-locked EEG recordings.
  • 8 semantic tasks: Female, Male, Blond, Dark-haired, Smiles, No-smile, Old, and Young.
  • Paired Data: Each EEG epoch is paired with the specific 512D latent vector used to generate the stimulus.

The authors compare EEGFaceSem to existing benchmarks like THINGS-EEG and EEG-ImageNet, noting that EEGFaceSem is the first to provide these generative latent representations for investigating semantic visual processing.

Key Insights and Ideas

  • The Power of Latents: Providing the latent vectors transforms the dataset from a simple classification task into a tool for modeling the continuous mapping between brain activity and visual space.
  • Robust Population Signal: While individual EEG trials are noisy, the "Cross-Subject Voting" results show that the underlying cognitive response to these semantic features is remarkably consistent across different people.
  • Implicit Supervision: The paper demonstrates that we can derive "semantic directions" in a GAN's latent space using only neural signals. This means a BCI could potentially learn a user's subjective concept of "beauty" or "happiness" just by having them look at images, without requiring any explicit button presses or labels.
Figure 2: Left: Average event-related potentials (ERPs) across participants at the Pz electrode for target and non-target stimuli, illustrating a P300 effect. Topoplots show the scalp distribution of the ERP at specific time points (0.2s, 0.3s, 0.4s, 0.5s, 0.6s). Right: Electrode positions on the scalp.

Key Results

  • Classification Performance: Deep learning models like EEGNet achieved a mean AUC of 0.77 in cross-subject settings and 0.81 when adapted to specific subjects.
  • Cross-Subject Voting: By aggregating predictions across all 30 participants for the same stimulus, the accuracy jumped to an impressive 0.95 AUC, proving the reliability of the neural signal.
  • Brain-Supervised Editing: The authors successfully used EEG signals to find a "blondness" vector in the latent space. Moving an image's latent vector along this neurally-derived axis effectively changed the hair color in the generated image.
  • Conditional Generation: A generative model conditioned on brain-decoded labels achieved a 0.747 correct-selection rate in human evaluations, approaching the performance of models conditioned on perfect manual labels (0.825).

Limitations and Future Work

  • Demographic Bias: The stimuli are based on the CelebA-HQ dataset, which carries inherent demographic skews. The authors suggest treating this as a "controlled-faces" benchmark rather than a universal model of human vision.
  • Unimodal Stimuli: The current dataset is strictly visual. Future iterations could incorporate multi-modal stimuli (e.g., combining faces with voices).
  • Generative Model Age: The data was collected using PGAN; the authors note that future work could benefit from more modern high-fidelity diffusion models.

EEGFaceSem is openly available on HuggingFace and OSF.

Summary updated

Abstract

Electroencephalography (EEG) is widely used to measure brain activity for brain-computer interface applications for its non-invasive nature and high temporal resolution. However, progress in modeling the neural responses to visual semantics has been limited by a reliance on fixed image collections that lack the fine-grained control needed to isolate fine-grained changes in visual features and their relation to perception. In this work, we present EEGFaceSem, a large-scale dataset pairing high-quality EEG with photorealistic face images synthesized from a generative model. We provide the generative latent vector for each stimulus, enabling research into the continuous mapping between a visual latent space and neural representations. Each participant's brain responses were recorded while they attended to specific semantic features (e.g., smiling, hair color) in a rapid serial visual presentation paradigm. The dataset contains EEG signals from 30 participants, totaling 67,200 time-locked EEG recordings. We present benchmarks for single-trial semantic classification under single-subject, cross-subject, and subject-adapted settings, as well as for cross-subject voting that aggregates per-stimulus predictions across participants. We further demonstrate the dataset's unique utility with two complementary applications: deriving semantic directions in the latent space for brain-supervised image editing, and conditioning a generative model on brain-decoded labels for brain-supervised image generation. Our dataset paves the way for advancing brain-computer interfaces (BCI) for semantic-level visual saliency detection and brain-supervised generative modeling. Our dataset and code are openly released at OSF (https://osf.io/2guk3/) and at HuggingFace https://huggingface.co/datasets/yefllower/EEGFaceSem.
BibTeX
@misc{ma2026eegfacesem,
  author = {Jun Ma and Michiel M. Spapé and Keith M. Davis and Tuukka Ruotsalo},
  title = {{EEGFaceSem: An EEG Benchmark with Paired Generative Latents for Semantic Visual Modeling}},
  year = {2026},
  eprint = {2611.10781},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.10781},
}
Figure