arXiv:2610.33065cs.CVOct 2026

Manuscript Offprint

arXiv:2610.33065

ProtoEEG: Structured Prototype Alignment for EEG Visual Decoding

Kieren Yu, Chang Huang, Ziyang Liu, Kaishun Wu

Abstract

EEG visual decoding remains difficult because scalp recordings are noisy, spatially coarse, and variable across trials and subjects. Most systems align each trial with a dense image embedding, although that embedding mixes semantic content with instance-specific texture, pose, and background. This target can demand details absent from EEG and provides no explicit account of the visual factors supporting a prediction. We propose ProtoEEG, a prototype-mediated framework that reformulates EEG–image alignment as soft composition over a shared learnable visual codebook. A trainable EEG encoder and a frozen visual teacher produce assignment distributions over the same K=64K = 64 prototypes. Their weighted reconstructions form a structured representation for retrieval and image generation. Prototype contrast supplies the main cross-modal training signal, distribution alignment coordinates codebook use across modalities, an instance anchor preserves fine-grained discrimination, and diversity regularization prevents redundant prototypes. The shared assignment profile also makes the learned bottleneck directly testable through prototype retention, random selection, and identity shuffling. Across five seeds, ProtoEEG reaches 64.0% Top-1 and 91.5% Top-5 on THINGS-EEG2 200-way retrieval. After retraining on EEG-ImageNet, it obtains 44.8% Top-1 and 73.8% Top-5 in 80-way retrieval. ProtoEEG also ranks first on all seven reconstruction metrics. Removing prototype contrast lowers Top-1 by 56.9 percentage points, while shuffling prototype identities reduces it to 0.5%. Prototype analyses further show distributed assignments and broad codebook use rather than one-prototype routing. These results support structured alignment targets as a practical alternative to increasing encoder or teacher capacity alone.

Introduction

Visual decoding has been studied across several neuroimaging modalities. Functional magnetic resonance imaging (fMRI) can reconstruct viewed images from blood-oxygen-level-dependent signals (Benchetrit, Banville, and King 2024; Scotti et al. 2023), but it requires expensive scanners and restricts subject movement. Electroencephalography (EEG) is portable, inexpensive, and records neural dynamics at millisecond resolution (Spampinato et al. 2017). Its scalp measurements are spatially coarse and vary across trials and people. A decoder must therefore recover visual distinctions without assuming that texture, viewpoint, or background is recorded consistently.

Figure

Figure 1: Dense alignment matches EEG to instance-specific image embeddings and can treat related concepts as negatives, as shown on the left. ProtoEEG instead maps both modalities to soft assignments over K=64K = 64 shared visual prototypes, shown on the right.

Deep learning has moved EEG visual decoding from category prediction toward representation alignment and image generation. Early approaches learned joint EEG–image embeddings for classification (Spampinato et al. 2017; Palazzo et al. 2020). Recent methods align EEG with pretrained visual features (Song et al. 2023; Li et al. 2024; Zhang et al. 2025; Li et al. 2025; Liu et al. 2025; Singh et al. 2024), modify visual supervision (Wu et al. 2025, 2026; Zhang et al. 2026), or condition generative models on EEG embeddings (Bai et al. 2024; Dai et al. 2026). Large-scale pretraining on EEG has also shown promise for learning generic representations (Jiang, Zhao, and Lu 2024; Yu et al. 2026; Zhou et al. 2026; Wang et al. 2025; El Ouahidi et al. 2026). These lines of work improve temporal modeling, visual supervision, or generation, yet they primarily change the predictor or teacher rather than asking whether a dense visual embedding is an appropriate target for a noisy neural measurement.

Most of these methods retain the same assumption: an EEG trial should match one dense, instance-level image representation (Song et al. 2023; Li et al. 2024; Wu et al. 2025, 2026; Zhang et al. 2026). Such a representation combines category and coarse shape with viewpoint, texture, lighting, background, and spatial arrangement, although EEG may support only some of these factors. Direct alignment can penalize the neural encoder for variation absent from the measurement and turn related images into negatives. The cross-modal gap adds another mismatch (Liang et al. 2022).

The choice of alignment target is therefore as important as encoder capacity.

The alignment target should remain tied to a visual teacher, represent uncertainty compositionally, and expose that composition for analysis. Prototype methods organize data around reusable representatives (Snell, Swersky, and Zemel 2017; Caron et al. 2018, 2020; Li et al. 2020). Hard assignments are too restrictive because one EEG trial may not support a single categorical choice. We instead use a learnable codebook with soft assignments. The prototypes define shared visual directions, while each sample assigns graded weights to them.

We propose ProtoEEG, which aligns EEG and images through a shared visual prototype space. Figure 1 shows the main design. A trainable EEG encoder and a frozen visual teacher produce soft assignments over the same K=64K = 64 codebook, then reconstruct assignment-weighted embeddings for retrieval and image generation. Prototype contrast aligns the decoded representation, while distribution, instance, and diversity terms coordinate codebook use and prevent collapse. The code supports retrieval, reconstruction, and controlled perturbations without assigning neurocognitive meanings to individual prototypes.

Our main contributions are:

• We propose ProtoEEG, a prototype-alignment framework built around a shared learnable codebook. Soft assignments express graded EEG evidence without forcing one prototype per trial.

• We combine prototype contrast for cross-modal discrimination, distribution alignment for shared codebook use, an instance anchor for fine-grained distinctions, and diversity regularization to prevent redundant prototypes.

• Experiments across retrieval and reconstruction show consistent gains across datasets and visual teachers. ProtoEEG reaches 64.0% Top-1 and 91.5% Top-5 on THINGS-EEG2, obtains 44.8% Top-1 on EEG-ImageNet after retraining, and leads reconstruction metrics.

References (36)