NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

HSTTA: Hierarchical Selective Test-Time Adaptation for Label-Free Cross-Subject EEG-to-Image Retrieval

Hongzhou Chen, Yuhao Wei, Lianghua He, Yihang Liu, Zengqiang WangarXiv 2026

TL;DR

Brain-decoding models can tell what picture you’re looking at from your EEG waves with astonishing accuracy—until you put the headset on someone new, and accuracy falls off a cliff. This paper introduces HSTTA, a framework that recalibrates a brain-decoding model to a new person on the fly without requiring any labeled calibration data. Instead of throwing out uncertain guesses, it organizes candidate images into a family tree and learns from whatever level of certainty the signal supports—turning a fuzzy "probably an animal" into useful training fuel rather than discarding it.

What Problem Does This Paper Address?

Visual brain decoding matches neural signals (like non-invasive EEG) to the visual stimuli that triggered them. Within a single person, contrastive-learning models can pick the exact image out of 200 candidates over 90% of the time. Move to a new person (cross-subject retrieval), however, and Top-1 accuracy routinely plunges below 20%. Every skull, visual cortex fold, and electrode placement is slightly different—a phenomenon called subject shift.

Normally, you’d ask the new user to sit through tedious labeled calibration sessions. Test-time adaptation (TTA) tries to skip this by adapting the pretrained model using unlabeled EEG signals from the target user. Standard TTA relies on generating "pseudo-labels" (the model's best guesses) to update itself.

Here is the catch: when a model faces a new brain, exact single-image guesses are mostly wrong. If you filter loosely, the model trains on bad guesses and spirals into confirmation bias. If you filter strictly, you throw away most of the data—even when the model correctly senses that an EEG wave corresponds to "some kind of furry animal," just not which specific cat. Existing methods lack the vocabulary to supervise at varying levels of certainty.

Figure 1. Supervision granularity for EEG queries with varying confidence. (a) Existing TTA methods typically assign selected queries single-image or partial-label supervision, excluding the rest. (b) HSTTA uses the gallery hierarchy to select an appropriate supervision granularity based on each query’s current confidence.

Methods

The authors propose Hierarchical Selective Test-Time Adaptation (HSTTA), adapting only the EEG encoder (via lightweight LoRA adapters and normalization parameters) while keeping the image encoder frozen.

Wait—let's trace the pipeline shown in the overview: Overview of HSTTA

Figure 2. Overview of HSTTA. (a)(b) Ward tree H construction and threshold ˆθ calibration before adaptation. (c) Localization of each query to its finest reliable level. (d) Level-wise supervision. (e) Per-epoch LoRA updates with re-localization every t epochs.
  1. Gallery Tree Construction (Standard Clustering, New Context): Since image galleries don't always come with neat WordNet taxonomies, HSTTA builds a tree directly from the frozen image embeddings using Euclidean Ward agglomerative clustering—from individual images (leaves) up to mid-level and coarse semantic clusters, ending at the full gallery (root).
  2. Climbing & Hierarchical Supervision (Novel TTA Formulation): For each unlabeled EEG query, HSTTA starts at the highest-scoring leaf image and climbs up parent nodes until the summed probability of the cluster hits a global confidence threshold $\theta$.
  3. Leaf nodes get standard cross-entropy (single-image pseudo-label).
  4. Mid-level nodes get partial-label loss over the cluster's candidate set.
  5. Coarse/Root nodes align the statistical distributions (mean and standard deviation) of query embeddings with the cluster's image embeddings.
  6. Cross-Session Consistency Calibration / CSCC (Novel): How do you pick threshold $\theta$ without labels? Standard EEG datasets record multiple trials of the same stimulus across sessions (note: the model knows which trials share a stimulus, just not which image it was). CSCC checks how often Session A's predicted cluster contains Session B's top-1 image guess, picking the smallest $\theta$ that hits a target consistency rate $\alpha$.
  7. Reciprocal Hierarchical Backoff / RHB (Novel): Every few epochs, queries are re-evaluated. To prevent reinforcing lucky-looking errors, RHB checks reverse matching: if no image inside the chosen node picks that EEG query as its #1 match, the query is backed off to a coarser parent node.

Datasets

No new datasets are introduced; the authors evaluate on two public cross-subject EEG benchmarks under leave-one-subject-out protocols:

  • THINGS-EEG2: A widely used benchmark with test sets featuring 200 unseen object concepts (one image each, ~20 EEG trials across 4 sessions).
  • Alljoined-1.6M: A newer, more challenging benchmark evaluated with a matching 200-unseen-concept test structure across 4 sessions.

Both are tested in standard 200-way retrieval and a disjoint 100-way gallery split (adapting on 100 concepts, then freezing the model to test on 100 completely unseen concepts).

Key Insights and Ideas

  • "I don't know which cat, but it's a mammal" beats silence: At epoch 0 on THINGS-EEG2, strict baselines exclude nearly half (96/200) of the EEG queries. HSTTA excludes only 36, routing 99 uncertain queries into accurate multi-image clusters. Forcing those uncertain queries to take single-image labels—or dropping them—cuts Top-1 accuracy by 4.3 to 8.5 percentage points.
  • Noisy brain repetitions act as built-in self-checkers: Using cross-session consistency (CSCC) as a label-free proxy tracks true hierarchical accuracy remarkably well—hitting the target accuracy in 135 out of 144 test configurations without seeing a single ground-truth pair.
  • Two-way handshakes stop runaway delusion: As offline adaptation runs for 200 epochs, standard pseudo-labeling methods assign more single-image labels, but their accuracy steadily rots. Adding Reciprocal Hierarchical Backoff (RHB) acts as a sanity check, expanding single-image pseudo-labels from 41 to 129 while keeping accuracy steady near ~78%.

Key Results

Using the pretrained SAMGA backbone on THINGS-EEG2 (reported as cosine / CSLS ranking):

  • Standard 200-way Top-1 accuracy jumps from 25.65% (34.55%) frozen to 59.22% (61.22%) with HSTTA.
  • This beats the strongest EEG-specific TTA baseline (SCORE) by 17.9 (13.4) percentage points in Top-1 and 8.9 (3.7) points in Top-5, and outperforms the strongest general learnable TTA baseline (CLIPTTA) by 2.5 (4.1) Top-1 points.
  • True generalization, not gallery memorization: On the 100-way disjoint gallery, HSTTA leads across all metrics, reaching 53.81% (63.44%) Top-1 and 86.08% (91.29%) Top-5.
  • Plug-and-play across backbones: Without retuning hyperparameters, HSTTA boosts three other recent EEG encoders (VE-SDN, NeuroBridge, and BrainHIVE), lifting BrainHIVE's Top-1 by 15.7 (12.0) points.

Limitations and Future Work

  • Systematic errors can fool CSCC: If a model makes the exact same confident mistake across different recording sessions, cross-session consistency will overestimate true accuracy, meaning target accuracy $\alpha$ is not theoretically guaranteed.
  • Garbage-in limits learnable TTA: On Alljoined-1.6M, where the frozen backbone starts very weak (~6.7% Top-1), gradient-based updates risk overfitting to noisy fine-grained pseudo-labels; on the disjoint split there, training-free alignment methods (SATTC, SCORE) slightly edge out learnable approaches.
  • Repeated-stimulus assumption: Both trial-averaging and CSCC rely on knowing how repeated EEG trials group by stimulus across sessions—a standard setup in lab benchmarks, though a practical constraint to keep in mind for single-trial streaming BCIs. (Future directions are not explicitly discussed in the paper.)

Summary updated

BibTeX
@misc{chen2026hstta,
  author = {Hongzhou Chen and Yuhao Wei and Lianghua He and Yihang Liu and Zengqiang Wang},
  title = {{HSTTA: Hierarchical Selective Test-Time Adaptation for Label-Free Cross-Subject EEG-to-Image Retrieval}},
  year = {2026},
  eprint = {2611.34153},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.34153},
}
Figure