Cross-subject EEG-to-image retrieval suffers from substantial performance degradation on new subjects due to subject shift. Test-time adaptation (TTA) can mitigate this shift by adapting pretrained models with unlabeled target-subject EEG. However, most existing TTA methods struggle to match supervision granularity to each query's prediction confidence, leaving many queries without reliable pseudo-labels. To address this, we propose a novel framework named Hierarchical Selective Test-Time Adaptation (HSTTA). HSTTA builds a hierarchy over gallery image embeddings, uses hierarchical selective prediction to assign each EEG query a supervision granularity matching its current prediction confidence, and constructs adaptation objectives accordingly. We further propose Cross-Session Consistency Calibration (CSCC), an unsupervised method that calibrates the global confidence threshold to target a predefined accuracy level for hierarchical predictions. Moreover, we introduce Reciprocal Hierarchical Backoff (RHB), which moves queries lacking reverse-matching support to coarser nodes to mitigate error reinforcement. Experiments on two public benchmarks and ablation studies validate the effectiveness of HSTTA and its key components. On THINGS-EEG2, HSTTA outperforms the strongest EEG-specific TTA baseline by 17.9 (13.4) and 8.9 (3.7) percentage points in Top-1/Top-5 accuracy, respectively, under cosine (CSLS) ranking. Further analyses show that HSTTA yields more accurate pseudo-labels during adaptation, supporting more reliable model updates.
Figures & tables
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.
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.
THINGS-EEG2
Alljoined-1.6M
Standard (200-way)
Disjoint gallery (100-way)
Standard (200-way)
Disjoint gallery (100-way)
Method
Top-1
Top-5
Top-1
Top-5
Top-1
Top-5
Top-1
Top-5
SAMGA (frozen)
25.65 (34.55)
56.75 (67.35)
33.77 (45.13)
69.10 (78.13)
6.70 (8.40)
23.38 (27.15)
10.93 (13.82)
34.77 (40.08)
SATTC (SAW) [ 15 ]
30.45 (31.90)
61.65 (62.90)
35.53 (37.83)
68.90 (70.13)
8.93 (9.80)
27.78 (28.55)
13.60 (14.37)
37.88 (39.27)
SCORE [ 3 ]
41.35 (47.80)
71.25 (79.85)
49.57 (57.40)
81.37 (88.13)
8.98 (10.83)
26.40 ( 30.68 )
12.98 ( 16.03 )
38.82 ( 43.75 )
GA
31.90 (39.88)
63.42 (71.68)
39.31 (49.56)
73.44 (81.16)
6.13 (7.83)
21.20 (25.11)
9.81 (12.89)
31.00 (36.39)
Table 1: Entries are accuracy (%) under cosine (CSLS) ranking. The second and third blocks list training-free and learnable TTA methods, respectively. GA adapts with Ldistglob only. p -values in the text are from two-sided paired t -tests over held-out subjects.
Variant
Top-1
Top-5
Δ Top-1
Standard (200-way)
HSTTA (full)
59.22 ( 61.22 )
80.18 ( 83.58 )
–
w/o Ldistloc
50.32 (53.50)
73.58 (79.07)
−8.9 ( −7.7 )
w/o Lleaf
46.78 (50.82)
73.10 (77.67)
−12.4 ( −10.4 )
w/o Lsup ( γ=0 )
37.48 (41.92)
66.85 (71.97)
−21.7 ( −19.3 )
w/o re-localization
41.30 (46.45)
69.13 (74.97)
−17.9 ( −14.8 )
Table 2: HSTTA component ablation on THINGS-EEG2 with SAMGA. Ldistloc is the local distribution-alignment term in Eq. ( 11 ).
Figure 3: Reliability and sensitivity of CSCC. (a) Actual accuracy of CSCC-calibrated pseudo-labels across target α on THINGS-EEG2. (b) Top: HSTTA top-1 across α , relative to the selected α ; bottom: query distribution over tree levels at epoch 0.
Backbone
Method
Top-1
Top-5
VE-SDN [ 1 ] (arXiv 2024)
Frozen
14.30 (18.85)
39.05 (45.95)
SCORE
20.10 (22.80)
44.45 (50.95)
GA
19.65 (22.93)
46.02 (51.18)
PASLE
21.17 ( 23.90 )
48.72 ( 51.63 )
HSTTA (Ours)
23.37 ( 26.23 )
50.43 ( 54.43 )
NeuroBridge [ 46 ] (AAAI 2026)
Frozen
19.40 (24.95)
43.95 (54.25)
Table 3: Generalization to other pretrained EEG encoders on THINGS-EEG2 under standard 200-way retrieval.
Figure 4: Accuracy of (a) single-image and (b) candidate-set pseudo-labels, annotated as acc. (correct/total); (c) wrong pseudo-labels, annotated as wrong (supervised). Shading: s.e. over folds.
Figure 5: (a) Multi-image: a mid-level or coarse node; Excluded: no query-specific pseudo-label (the root for HSTTA). (b) Uncertain queries are those at non-leaf nodes. † : p<0.05 vs. HSTTA.
Figure S1 : Comparison of a WordNet class hierarchy and a Ward tree. (a) WordNet hierarchy of the selected test concepts. (b) Ward tree of one held-out subject on THINGS-EEG2, built from SAMGA image embeddings.
Figure S2 : Pairwise precision at each level of the Ward tree on THINGS-EEG2. Mean ± standard error over 10 folds.
Figure S3 : Threshold selection on THINGS-EEG2. Lines show the 10-fold mean accuracy averaged over τ∈{0.02,0.04,0.06,0.08} , with shading for the range across τ .
Figure S4 : CSCC undercounts and overcounts per fold for SAMGA at α=0.75 .
Top-1
Top-5
Pretrained model
Frozen
MM
Δ
Frozen
MM
Δ
NICE [ 33 ]
8.60 (10.75)
8.35 (10.05)
−0.25 ( −0.70 )
25.90 (30.55)
22.60 (27.90)
−3.30 ( −2.65 )
ATMS [ 23 ]
8.30 (12.05)
5.70 (10.40)
−2.60 ( −1.65 )
25.05 (32.85)
16.60 (28.50)
−8.45 ( −4.35 )
UBP [ 40 ]
12.65 (19.35)
6.75 (10.75)
−5.90 ( −8.60 )
33.20 (44.85)
18.95 (29.35)
−14.25 ( −15.50 )
NeuroBridge [ 46 ]
19.40 (24.95)
17.70 (25.40)
−1.70 ( +0.45 )
43.95 (54.25)
42.40 (54.05)
−1.55 ( −0.20 )
VE-SDN [ 1 ]
14.30 (18.85)
19.20 (23.15)
+4.90 ( +4.30 )
39.05 (45.95)
45.15 (50.80)
+6.10 ( +4.85 )
Table S1 : Cross-subject retrieval accuracy of the non-learned moment matching (MM) of SCORE [ 3 ] , i.e . , Eq. (3) of the main paper, on eight pretrained models. Accuracy is reported as cosine (CSLS) ranking in %. Δ denotes the difference between MM and the frozen model.
Pretrained model
Frozen
SCORE
GA
PASLE
HSTTA
(a) Top-1
MM ↓
NICE [ 33 ]
8.60 ( 10.75 )
7.40 (8.65)
1.68 (1.95)
2.12 (2.53)
1.98 (2.45)
ATMS [ 23 ]
8.30 ( 12.05 )
3.75 (5.00)
7.77 (10.65)
7.38 (8.85)
7.83 (10.15)
UBP [ 40 ]
12.65 ( 19.35 )
6.40 (7.70)
4.07 (7.07)
3.62 (6.15)
5.53 (8.33)
NeuroBridge [ 46 ]
19.40 (24.95)
20.95 ( 27.75 )
13.72 (19.43)
20.63 (22.42)
22.75 (25.58)
MM ↑
VE-SDN [ 1 ]
14.30 (18.85)
20.10 (22.80)
19.65 (22.93)
21.17 (23.90)
23.37 ( 26.23 )
Table S2 : Cross-subject retrieval accuracy (%) of TTA methods on eight pretrained models under cosine (CSLS) ranking. MM ↓ and MM ↑ denote that MM lowers and raises the frozen accuracy, respectively.
Figure S5 : Top-3 retrieved images on held-out subject 10 of THINGS-EEG2. Green borders mark the viewed image, and Rank shows its rank among the 200 gallery images before and after adaptation.
Figure S6 : UMAP visualization of ℓ2 -normalized EEG and image embeddings for all 200 test images of held-out subject 10 before (a) and after (b) HSTTA.