Brain visual decoding · EEG · MEG · fMRI · MUA

See what the brain sees.

Beyond Hierarchical Alignment: Distilling Teacher Diversity for Brain Visual Decoding

Dongyang Li1,2,3Peng Jiang1Jiayu Zuo2,3Chen Wei2,3Mei Wang1Liyuan Wang1,†Xiaoxuan Jia1,†Quanying Liu2,3,†

1Tsinghua University2Omni-Intelligence3Southern University of Science and Technology†Corresponding authors

BHA turns brain activity into the picture being looked at. One recipe reads scalp EEG, MEG, fMRI and multi-unit activity (MUA) from inside the cortex. And because it learns from four vision models kept separate, it also shows which AI representations the brain carries, where it looks, and when.

93.9%EEG · Top-1 of 200
68.1%MEG · Top-1 of 200
92.9%fMRI · Top-1 of 300
100%MUA · Top-1 of 100

The film

Every second, your brain is drawing.

A 103-second brand film in seven chapters: from the 86 billion neurons inside you, through a century of recordings, to the first picture read back from a cap of electrodes, the one world that every eye, human or machine, is looking at, a brain the decoder has never met, and a bird made of light. Every frame is real material: one participant’s EEG, the pictures they saw, the pictures BHA decoded, and the model’s own attribution maps. Sound on.

The explainer

Four minutes. One idea.

Want the mechanism? A narrated walk-through in English: what we record, why brains and vision models describe one world, what the model learns from four teachers, what comes out, and what is still open. It was made before the fMRI and MUA experiments and covers EEG and MEG.

Live decoder

From brain activity to pictures.

Real recordings, nothing retouched. Someone looks at a photo they have never seen; their brain activity goes into BHA; a picture comes out. The same recipe reads EEG from the scalp, MEG around the head, fMRI of human visual cortex and multi-unit activity (MUA) from macaque visual cortex. Pick a recording, then a picture.

63 scalp electrodes · 1 s per picture

What they saw
Seen image
cheetah
Their brain · EEG, 63 channels
0 ms
What BHA decoded
Three decodes
Pick a pictureTHINGS-EEG2 held-out image · three independent decodes · best of ten participants shown

Full demo on Hugging Face: hundreds of test images, every participant, each teacher’s vote →

How it works

One brain model, four teachers.

Every vision model sees an image differently. Instead of picking one — or averaging them into a single target — BHA lets four of them teach a single brain model and keeps their views separate when it matters. The pipeline is the same whatever the recording.

  1. 01

    Record

    Scalp electrodes, magnetic sensors, an MRI scanner or electrodes in the cortex: each records the visual brain responding to a picture, in its own noisy and partial way.

    In
    A picture in front of the eyes
    Out
    A brain recording: EEG, MEG, fMRI or MUA
  2. 02

    Learn from four teachers

    A small input layer brings every kind of recording into one form. A single brain model then learns to predict what four vision models see in the picture; each teacher keeps its own read-out, and learned weights decide how much each counts.

    In
    A brain recording of any of the four kinds
    Out
    Five descriptions of the picture: one per teacher, one they share
  3. 03

    Generate

    Two small predictors turn the brain model's output into the two inputs a frozen image generator already takes: what the picture shows, and how it is laid out. Nothing in the generator is retrained, so a better one can be swapped in tomorrow.

    In
    What the brain model read from the recording
    Out
    The picture, reconstructed

AI ↔ BI · What BHA reveals

A decoder that is also an instrument.

Because BHA keeps four AI “views” of every image separate instead of fusing them, it can answer questions no single-teacher decoder can: which AI representations the brain actually carries, where in the image each one looks, when the signal arrives, and which part of the cortex each one is read from. Eight things we learned, across four kinds of recording.

01EEG

Not every AI sees like a brain — until you let it.

We measured how well each vision model’s features can be predicted from EEG (brain–image cosine, higher = more brain-like). Out of the box, a web-trained CLIP-style model (DFN) is the most brain-predictable; self-supervised DINOv2 and masked MAE are almost unpredictable. Train a small adapter on their space and they become nearly as predictable — the brain-relevant information was there, encoded differently.

Takeaway: “brain-likeness” is a property of the readout, not only of the model. Pick teachers for what they add, then let the brain reshape them.

Paired brain–image cosine similarity, THINGS-EEG2, ten participants. Non-paired baseline ≈ 0.

02EEG

The brain imposes a shared geometry on very different AIs.

Ask the four vision models which images are similar to which, and they barely agree (correlation between their similarity structures 0.07–0.70). Ask BHA’s four expert heads — each predicting its own teacher’s space from the same brain signal — and they agree strongly (0.71–0.91). Passing through a brain pulls wildly different AI spaces into one geometry.

Takeaway: what the brain can express is the common denominator across vision models. The shared expert preserves image-to-image relations best (r = 0.82).

Hover a cell. Pearson correlation between representational similarity matrices, mean over ten participants.

03EEG

Same geometry, different eyes.

Occlude a patch of the image and watch each expert’s match score move. For the bok choy, the DFN and MAE experts raise the match from the leaves and the shared expert agrees; the OpenCLIP expert is pulled down by the very same leaves, and DINOv2 splits them. Try the boat or the recorder: there, MAE and DINOv2 lower the match from the one object DFN raises it from. Experts that embed images similarly can still use them in opposite ways.

Takeaway: this is why BHA composes expert scores instead of averaging them — averaging would cancel exactly these disagreements.

lowers the matchraises the match
04EEG

Units of the brain-aligned model become concept-selective.

Probe single units of BHA’s brain readout with held-out images: one fires for clothing (suit, chaps, coat), one for desserts, one for animals. Across all units, the concept profile of the brain predictions matches that of the vision models at cosine 0.61–0.81, against 0 for a shuffled control.

Takeaway: category structure survives the trip through 63 noisy electrodes. These are properties of the learned model, not claims about individual neurons in cortex.

Top-activating held-out images for three units of the brain readout; concept-profile cosine per branch versus a shuffled baseline.

05EEGMEGMUA

When the decision is made: two windows, 100 and 220 ms.

Delete a 50 ms slice of the recording and re-run the frozen model. On EEG and MEG two slices matter: around 100 ms and around 220 ms after the image appears, where deleting costs up to 60 points of accuracy. The DFN expert and the composed BHA output depend on these windows far more than the DINOv2 and MAE experts.

Inside the cortex the picture changes. The MUA input has five 25 ms bins per recording site, and deleting any one of them costs less than a point. Yet the second bin alone, 25 to 50 ms into the response, is enough for 66 pictures in 100.

Takeaway: the decoder keys on the earliest visual responses, not on late cognition. From the scalp it needs two specific moments; from inside the cortex no single moment is needed, and one 25 ms bin already carries most of the answer.

Delete: accuracy lost when one 50 ms window is removed. Keep: accuracy when only that window is left. Mean ± SD over participants.

06fMRIMUA

Where it reads: the whole visual hierarchy, not one area.

Now delete in space instead of time: silence one part of the recording, or everything but that part, and re-run the frozen model. On human fMRI a random half of the voxels still gives 72% (all of them: 85.5%, of 1,000 pictures). Take that half from higher visual cortex alone and accuracy falls to 34%. Early visual cortex alone gives 9%, where a random set of the same size gives 56%.

In the macaque arrays no area is indispensable: without V1, V4 or IT, BHA still finds 77 to 96 pictures in 100. The best single area reaches about three quarters, V4 in one animal and IT in the other.

Takeaway: BHA does not live off one privileged region. It needs early and higher visual cortex together, and with electrodes in the cortex it tolerates the loss of any one area.

07fMRIMUA

The top-layer teacher reads the top of the visual hierarchy.

Repeat the deletion for every expert and ask what share of its own accuracy survives. Three of the four teachers are taken from the middle of a vision network (DFN layer 6, MAE layer 18, DINOv2 layer 12). OpenCLIP alone is taken at the top, as the final image embedding, and its expert is the outlier in both species.

On human fMRI it keeps 67% of its accuracy without early visual cortex, more than any other expert, and only 20% without higher visual cortex, less than any other. In the macaque, losing IT hurts it most: 62% left, against 84% for the composed output. The mid-layer experts lean the other way: without early cortex DFN and DINOv2 keep 41% and 43% on fMRI, and without V1 it is MAE and DINOv2 that keep the least in the macaque.

Takeaway: depth in a vision network lines up with position in the visual hierarchy, and BHA’s experts inherit it. Keeping the teachers apart lets one decoder show which cortex each kind of feature is read from. These are dependencies of the trained model, not a map of where information exists.

08EEG

Two results you can take to your own decoder.

First, a bound: with K teachers whose errors are uncorrelated, the teacher-error part of the alignment risk shrinks by a factor of K — diversity is worth more than another epoch. Second, a trap: adapting the visual target to the brain raised brain–image agreement from 0.22 to 0.48 and retrieval from 30.1% to 37.8%, yet made reconstructions less recognisable (CLIP identification 0.754 → 0.706).

Takeaway: features that discriminate images drift away from what a frozen generator expects. Keep one prediction space per task — exactly what BHA does.

Brain–image agreement0.22 → 0.48▲
Retrieval Top-130.1% → 37.8%▲
Reconstruction identification (CLIP)0.754 → 0.706▼

Effect of adapting the visual target toward brain signals, same backbone, same generator.

What is actually different from a typical brain decoder

Typical decoder
BHA
Supervision
One vision model (usually CLIP), or several fused into one target
Four teachers, kept separate; the brain encoder and the fused target learned jointly
Decision
One similarity score in one space
Scores from each teacher’s own space, composed with learned weights
Generator
Fine-tuned or adapted to brain features
Frozen; native semantic and spatial conditions predicted separately
Recordings
Built around one kind of recording
One recipe for EEG, MEG, fMRI and MUA; only the input layer changes
What you learn
An accuracy number
Which AI representations the brain carries, where each looks, when the signal arrives and which cortex it is read from, plus the number

Results

One recipe, four kinds of brain recording.

Shown a set of candidate pictures, how often does the model pick the exact one the brain was looking at? BHA sets a new state of the art on the public EEG and MEG benchmarks. The same model, with only its input layer changed, also reads fMRI and multi-unit activity from inside the cortex.

EEG · human scalp
0%
Top-1 of 200 pictures
THINGS-EEG2 · previous best 82.6% · 87.0% before re-ranking
See it decoded ↑
MEG · human, 271 sensors
0%
Top-1 of 200 pictures
THINGS-MEG · previous best 48.0% · 55.6% before re-ranking
See it decoded ↑
fMRI · human visual cortex
0%
Top-1 of 300 pictures
Natural Scenes Dataset · MindEye2 98.3% · BHA highest on CLIP identification
See it decoded ↑
MUA · macaque V1, V4, IT
0%
Top-1 of 100 pictures
TVSD, categories never seen in training · previous best 62.8% on the same split
See it decoded ↑

Same brain model, same four teachers, same training recipe in all four. Only the input layer, the part that reads the recording, differs. On fMRI, MindEye2 stays ahead on retrieval and on most image metrics; on MUA, BHA also beats FuzzyAlign, the published decoder tested on the same split, on all eight reconstruction metrics.

Pictures from a frozen generator.

BHA never retrains the image generator. On EEG and on MUA its reconstructions still beat the strongest published decoder on pixel-level and semantic metrics. On fMRI, MindEye2 fine-tunes its generator and keeps the lead on the pixel-level metrics, while BHA has the highest CLIP identification.

FuzzyAlign: the better of its two pipelines on each metric. MEG reconstructions are not evaluated in the paper.

Full comparison tables
200-way retrieval (Top-1 / Top-5, %). LOSO = tested on a person never seen in training.
MethodEEGMEG
WithinLOSOWithinLOSO
NICE16.143.66.221.412.836.0––
ATM-S28.560.411.933.8––––
UBP50.979.712.433.426.755.22.210.4
HyFI68.291.915.137.235.864.63.211.5
NeuroBridge63.289.919.045.932.260.83.412.8
MBP75.794.620.044.133.960.75.415.2
LVBP80.096.920.048.044.072.05.315.9
DMSA82.697.721.849.448.074.43.713.0
BHA · Raw87.098.522.551.655.685.83.612.8
BHA · CSLS-293.999.730.463.468.191.45.316.5
Image reconstruction from EEG (THINGS-EEG2, ten-participant mean). ↑ higher is better, ↓ lower is better.
MethodLow-levelHigh-level
PixCorr ↑SSIM ↑AlexNet(2) ↑AlexNet(5) ↑Inception ↑CLIP ↑EffNet-B ↓SwAV ↓
ATM-S0.1300.3390.7400.8220.6850.716–0.599
CC-All0.1430.3470.7540.6230.6690.715–0.590
AVDE0.1470.3660.7660.8350.7240.747–0.587
MBP0.1950.3360.8430.9050.7560.808–0.554
BHA0.2770.4540.8740.9220.7910.8300.8450.516
BHA + VAE-guided0.2830.4640.8740.9210.7900.8300.8450.515
fMRI (Natural Scenes Dataset, participants 1, 2, 5 and 7). Image and Brain: 300-way retrieval Top-1 (%) in the two directions. Other rows as reported by MindEye2.
MethodImage ↑Brain ↑PixCorr ↑SSIM ↑AlexNet(2) ↑AlexNet(5) ↑Inception ↑CLIP ↑EffNet-B ↓SwAV ↓
Takagi & Nishimoto––0.2460.4100.7890.8560.8380.8210.8110.504
Brain Diffuser18.826.30.2730.3650.9440.9660.9130.9090.7280.421
MindEye84.190.00.3190.3600.9280.9690.9460.9330.6480.377
MindEye298.398.80.3220.4310.9610.9860.9540.9300.6190.344
BHA · one model, all participants92.994.10.2390.4190.8830.9590.9410.9470.6560.373
BHA · MindEye2 protocol93.294.10.2350.4190.8810.9570.9410.9460.6590.374
MUA (TVSD, mean of two macaques). Top-1: 100-way retrieval (%). † trained on the official split, in which the test categories appear in training; the other rows use the zero-shot split.
MethodTop-1 ↑PixCorr ↑SSIM ↑AlexNet(2) ↑AlexNet(5) ↑Inception ↑CLIP ↑EffNet-B ↓SwAV ↓
Ciferri et al. †69.30.1400.364––0.8680.8790.7920.492
FuzzyAlign · high-level62.80.1560.3870.8320.9310.7990.8390.8360.541
FuzzyAlign · low-level0.2210.4240.8560.9210.7820.8290.8340.539
BHA100.00.2680.4650.9130.9630.8640.8790.7770.484

Read the technical report →Model, ablations, pre-registered readout tests, interpretability and limitations, written for practitioners.

Why it matters

A new interface between mind and machine.

One method for four ways of recording the visual brain, from a cap of electrodes to arrays in the cortex. Data-efficient, independent of the generator, and open about what it relies on.

Recording-agnostic

EEG, MEG, fMRI or MUA: the brain model, the teachers and the settings stay the same. A new sensor needs a new input layer, not a new method.

Data-efficient

Gains hold with a quarter of a participant’s data. Shorter calibration means products, not demos.

Generator-agnostic

The image generator stays frozen. Every advance in generative AI upgrades BHA for free.

Transparent

We can show which image regions, which concepts, which moments and which parts of cortex the decoder relies on — the groundwork for clinical and consumer trust.

Now

State of the art on EEG and MEG within-subject; the same recipe verified on fMRI and on multi-unit activity from inside the cortex. The paper is on arXiv; code and models coming soon.

Next

Cross-subject generalization: a model that works on a person it has never seen (today 30.4% Top-1 on EEG, chance 0.5%).

Ambition

Real-time decoding on consumer-grade wearables, and the same recipe on new signals and new tasks.

The paper

Beyond Hierarchical Alignment: Distilling Teacher Diversity for Brain Visual Decoding

Dongyang Li1,2,3Peng Jiang1Jiayu Zuo2,3Chen Wei2,3Mei Wang1Liyuan Wang1,†Xiaoxuan Jia1,†Quanying Liu2,3,†

1Tsinghua University2Omni-Intelligence3Southern University of Science and Technology†Corresponding authors

arXiv:2611.36444 · code and models coming soon.

Cite this work
@misc{li2026bha,
  title = {Beyond Hierarchical Alignment:
           Distilling Teacher Diversity for
           Brain Visual Decoding},
  author = {Dongyang Li and Peng Jiang and
            Jiayu Zuo and Chen Wei and
            Mei Wang and Liyuan Wang and
            Xiaoxuan Jia and Quanying Liu},
  year = {2026},
  eprint = {2611.36444},
  archivePrefix = {arXiv},
  primaryClass = {cs.CV},
  url = {https://arxiv.org/abs/2611.36444}
}

Acknowledgements

BHA builds on public datasets and open models. We thank their authors for making them available.