Learning Where to Adapt: Learned Subspace Test-Time Adaptation for Medical Time Series
Abstract
Test-time adaptation (TTA) promises to personalize medical time series classifiers to a new subject from a few unlabeled recordings. Its standard recipe, entropy minimization over normalization parameters, follows the model's uncertainty rather than the ways in which subjects actually differ, and with few windows it can turn correct predictions into errors. We argue that where to adapt should itself be learned. Because inter-subject shift is plausibly driven by a few shared physiological and recording factors, we propose Learned Subspace Test-Time Adaptation (LSTA), which meta-learns from past subjects a low-rank space of LayerNorm updates and restricts each new subject's adaptation to it. During meta-training, unlabeled support windows determine an entropy step within this space, and the classification loss on labeled query windows from the same subject shapes it. At test time the space is fixed, the parameters outside LayerNorm remain frozen, and each subject adapts from at most eight unlabeled windows. On five EEG and ECG benchmarks with subject-exclusive splits, LSTA obtains the highest mean accuracy and macro-F1 among seven TTA baselines, and a learned subspace outperforms a random one in 22 of 25 dataset-seed pairs. Across all eight datasets we evaluate, LSTA is the only method whose macro-F1 never falls below that of the frozen model, and under contaminated support it degrades far less than direct LayerNorm adaptation and turns fewer correct predictions into errors. On clean data, its gain over direct LayerNorm adaptation is concentrated on one dataset.
est. 32% chance this paper gets accepted at ICLR 2027.
What do you think this paper will get?
All positions stay anonymous.