MindAlign: Bridging EEG, Vision, and Language for Zero-Shot Visual Decoding

Zexuan Chen, Sichao Liu, Runhao Lu, Huichao Qi, Alexandra Woolgar, Xi Vincent Wang, Lihui WangNeurIPS 2026

TL;DR

Reading what someone is looking at using only non-invasive scalp sensors sounds like science fiction, mostly because brainwaves (EEG) are notoriously noisy and vary wildly from person to person. MindAlign cracks this problem open by aligning EEG signals not just with images, but also with rich, LLM-generated text descriptions inside a shared mathematical space. By teaching the model the underlying physics of brainwaves first and using language as a gentle semantic guide, the authors shatter previous benchmarks—jumping from 32.4% to 54.1% zero-shot visual decoding accuracy.

What Problem Does This Paper Address?

Imagine trying to reconstruct a symphony by pressing a stethoscope against the Thick concrete outer wall of a concert hall. That is essentially electroencephalography (EEG). While EEG captures brain activity at millisecond speeds without surgery, the skull smears the electrical signals, resulting in a terrible signal-to-noise ratio (SNR). Worse yet, every human brain is wired slightly differently, meaning a decoder trained on Alice’s brainwaves usually fails on Bob’s.

Historically, researchers tried to decode visual perception by directly pairing EEG recordings with image embeddings (from models like CLIP). Because the EEG signal is so noisy, this direct pairwise supervision is brittle and unstable. Recent studies tried fixing pieces of the puzzle in isolation—like pre-training on raw brainwaves or tweaking how electrode geometry is modeled—but struggled to bring them together, leaving rich linguistic meaning largely untapped.

Methods

MindAlign reframes visual decoding from a fragile brain-to-image mapping into a robust two-stage, tri-modal alignment problem.

Figure 2: Framework overview. Stage 1 (pre-training): EEG signals are split and partially masked with noise, and reconstructed by a lightweight decoder from the encoder’s latents, driving the encoder to learn intrinsic neural dy- namics. Stage 2 (tri-modal alignment): the pre-trained EEG encoder is jointly trained with frozen image and text encoders, where text descriptions are generated by an LLM from visual content and category labels. Two contrastive losses — EEG–image and image–text — align all three modalities in a shared space. At test time, EEG embed- dings retrieve images and text via cross-modal similarity.
  1. A Custom EEG Encoder: Before learning anything, the authors build an encoder tailored to the physical realities of EEG. It starts with a subject-specific linear layer to absorb individual quirks, passes signals through a Graph Attention Network (GAT) for local electrode chatter, a Transformer for global brain-wide interactions, a spatial-prior module using actual 3D electrode coordinates, and finally a spatio-temporal convolution.
  2. Stage 1: Self-Supervised Pre-training: Inspired by Masked Autoencoders (MAE), the encoder first practices on unlabeled EEG data. Time-slices of the brainwaves are randomly replaced with Gaussian noise (30% of the signal), and a temporary decoder tries to reconstruct the full wave. Crucially, all learned encoder weights—including the subject-specific layer—are transferred to Stage 2.
  3. Stage 2: Tri-Modal Contrastive Alignment: Here is the secret sauce. Alongside the brainwaves and the image the person saw, the authors prompt a multimodal LLM (Qwen2-VL) to describe what is visibly happening in the image in one sentence. Using frozen CLIP encoders for the image and text, the system optimizes two contrastive losses: EEG–Image ( weighted at 90%) and Image–Text (weighted at 10%). Notice there is no direct EEG–Text loss! Because both EEG and text are pulled toward the same image representation, language acts as a gentle "semantic regularizer," organizing the shared space by meaning without overwhelming the delicate visual brain signal.

Datasets

No new datasets were introduced; instead, the authors evaluated on two established, large-scale neuroimaging benchmarks:

  • Things-EEG2: 63-channel EEG recordings from 10 participants viewing rapid streams of images (200 ms per image). It features 1,654 training concepts and 200 completely unseen test concepts, setting up a strict 200-way zero-shot retrieval task (random chance is 0.5%).
  • Things-MEG: 271-channel magnetoencephalography (MEG—which measures magnetic fields rather than electrical ones) from 4 participants across 1,854 concepts, used to test whether the architecture generalizes to other neural recording modalities.

Key Insights and Ideas

  • Smaller Vision Backbones Beat Giants: Surprisingly, a compact 38M-parameter ResNet-50 backbone (CN-CLIP) crushed a massive 1.37B-parameter ViT-G model by 16.7% in Top-1 accuracy. Why? ResNet's built-in bias toward local spatial features—paired with CN-CLIP's smaller, cleaner training set—creates a tighter, more compact embedding geometry that is much easier to align with low-SNR brainwaves.
  • The "Goldilocks" Masking Ratio for Brainwaves: Vision MAEs typically mask 75% of an image; language models like BERT mask 15%. MindAlign peaks at 30% masking. Mask too much, and you destroy fleeting, stimulus-locked neural spikes; mask too little, and the network just interpolates across neighboring electrodes without learning deeper dynamics.
  • Errors Make Semantic Sense: When the decoder misses the exact image, its mistakes aren't random static—they are neighbors in meaning (e.g., mistaking a cruise ship for a ferry, or bread for meatloaf). Even without category labels during training, the EEG embeddings naturally cluster into animales, food, tools, and vehicles.
  • Biologically Grounded Decoding: Digging into how the model decodes reveals textbook human neurophysiology. Accuracy relies heavily on electrodes over the occipital cortex (the brain's visual center), integrates information over the first 500 milliseconds, and leans on slow delta-band (0.5–4 Hz) waves, reflecting classic stimulus-locked event-related potentials rather than muscle artifacts.

Key Results

Overview of decoding accuracy and qualitative top-5 retrievals

Figure 1: Overview of the framework and decoding performance on Things-EEG2. (a) Tri-modal contrastive alignment. EEG signals, visual stimuli, and LLM-generated descriptions are encoded into a shared feature space, where corresponding triplets are aligned through contrastive learning and mismatched samples are separated. At inference, an EEG embedding retrieves the most similar image and text candidates in this space. (b) Qualitative top-5 retrievals on the Things-EEG2 test set, ranked by EEG–image similarity; correct matches are highlighted. (c) Quantitative comparison against state-of-the-art (SoTA) baselines (NICE [14], NICE++ [15], ATMS [16], MCRL [18]) under the in-subject (left) and cross-subject leave-one-subject-out (right) protocols, reporting Top-1 and Top-5 retrieval accuracy averaged over 10 participants. Our method leads in both settings, with the largest margin in-subject.
  • Massive In-Subject Leap (Things-EEG2): MindAlign achieves 54.1% Top-1 and 83.4% Top-5 zero-shot accuracy across 200 unseen classes, blowing past the strongest prior baseline, MCRL (32.4% Top-1 / 64.0% Top-5).
  • Cross-Subject Generalization: When tested on a brand-new person's brainwaves without calibration (leave-one-subject-out), performance drops for all methods, yet MindAlign still leads the pack at 15.1% Top-1 and 39.3% Top-5 (vs. 14.0% / 34.3% for MCRL).
  • Cross-Modality Transfer (Things-MEG): Without redesigning the architecture, MindAlign more than doubles prior in-subject Top-1 accuracy on MEG data, hitting 25.3% Top-1 / 53.9% Top-5 compared to NICE++ (11.8% / 32.4%).

Limitations and Future Work

The elephant in the room remains inter-subject variability. While 54.1% accuracy within a known subject is remarkable for 200-way EEG decoding, dropping to ~15.1% on an unseen subject shows that zero-calibration, plug-and-play brain-computer interfaces aren't quite ready for prime time. Removing the subject-specific layer caused the single largest performance drop in ablations, proving how much heavy lifting personal calibration still does. Looking ahead, the authors plan to extend MindAlign to functional MRI (fMRI) and plug their semantically rich brain embeddings into diffusion models to reconstruct actual images directly from thought.

Summary updated

Abstract

Visual decoding from brain signals is a key challenge at the intersection of computer vision and neuroscience, requiring methods that bridge neural representations and computational models of vision. A field-wide goal is to achieve accurate, generalizable decoding from non-invasive, temporally resolved signals, including electroencephalography (EEG). A major obstacle towards this goal is the low signal-to-noise ratio of EEG and the substantial inter-subject variability, which render direct end-to-end EEG–image supervision weak and unstable. To address this, we introduce a tri-modal contrastive framework for EEG-based visual decoding that aligns EEG, visual, and textual representations within a unified latent space. Our approach follows a two-stage design. First, we pre-train an EEG encoder via masked reconstruction on unlabeled trials, learning spatio-temporal regularities that transfer robustly downstream. Second, we jointly align EEG, image, and LLM-generated textual descriptions through contrastive learning, where text supervision acts as a semantic regularizer that injects linguistic structure into the shared space without overwhelming the primary EEG–image signal. The encoder integrates subject-specific adaptation, graph-attention over channels, and temporal-spatial convolutional embeddings. On the Things-EEG2 200-way zero-shot benchmark, our framework achieves 54.1\% Top-1 and 83.4\% Top-5 accuracy, substantially exceeding the strongest prior baseline (32.4\% / 64.0\%), with paired Wilcoxon tests confirming significance (p < 0.01) over all in-subject baselines. We validate generalization on Things-MEG. Analysis reveals that compact embedding geometries (CN-CLIP) outperform much larger backbones, and that decoding aligns with established neurophysiology of visual processing. This work is a critical step towards robust, semantically-grounded visual decoding from non-invasive temporal neural signals.
BibTeX
@inproceedings{chen2026mindalign,
  author = {Zexuan Chen and Sichao Liu and Runhao Lu and Huichao Qi and Alexandra Woolgar and Xi Vincent Wang and Lihui Wang},
  title = {{MindAlign: Bridging EEG, Vision, and Language for Zero-Shot Visual Decoding}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=riv0NRuHeq},
}
Figure