HSTTA: Hierarchical Selective Test-Time Adaptation for Label-Free Cross-Subject EEG-to-Image Retrieval
Organizations: School of Computer Science and Technology, Tongji University · Shanghai Eye Disease Prevention and Treatment Center
Abstract
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
| 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) |
| Variant | Top-1 | Top-5 | Top-1 |
| Standard (200-way) | |||
| HSTTA (full) | 59.22 ( 61.22 ) | 80.18 ( 83.58 ) | – |
| w/o | 50.32 (53.50) | 73.58 (79.07) | ( ) |
| w/o | 46.78 (50.82) | 73.10 (77.67) | ( ) |
| w/o ( ) | 37.48 (41.92) | 66.85 (71.97) | ( ) |
| w/o re-localization | 41.30 (46.45) | 69.13 (74.97) | ( ) |
| 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) |
| Top-1 | Top-5 | |||||
|---|---|---|---|---|---|---|
| Pretrained model | Frozen | MM | Frozen | MM | ||
| NICE [ 33 ] | 8.60 (10.75) | 8.35 (10.05) | ( ) | 25.90 (30.55) | 22.60 (27.90) | ( ) |
| ATMS [ 23 ] | 8.30 (12.05) | 5.70 (10.40) | ( ) | 25.05 (32.85) | 16.60 (28.50) | ( ) |
| UBP [ 40 ] | 12.65 (19.35) | 6.75 (10.75) | ( ) | 33.20 (44.85) | 18.95 (29.35) | ( ) |
| NeuroBridge [ 46 ] | 19.40 (24.95) | 17.70 (25.40) | ( ) | 43.95 (54.25) | 42.40 (54.05) | ( ) |
| VE-SDN [ 1 ] | 14.30 (18.85) | 19.20 (23.15) | ( ) | 39.05 (45.95) | 45.15 (50.80) | ( ) |
| 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 ) |
Test-Time Adaptation
Test-time adaptation updates or recalibrates pretrained models at inference to handle distribution shifts, often without target labels.
See all 355 papers