Primary health care frequently relies on low-cost imaging devices, which are commonly used for screening purposes. To ensure accurate diagnosis, these systems depend on advanced reconstruction algorithms designed to approximate the performance of high-quality counterparts. Such algorithms typically employ iterative reconstruction methods that incorporate domain-specific prior knowledge. However, downstream task performance is generally assessed using only the final reconstructed image, thereby disregarding the informative intermediate representations generated throughout the reconstruction process. In this work, we propose IRTTA to exploit these intermediate representations at test-time by adapting the normalization-layer parameters of a frozen downstream network via a modulator network that conditions on the current reconstruction timescale. The modulator network is learned during test-time using an averaged entropy loss across all individual timesteps. Variation among the timestep-wise segmentations additionally provides uncertainty estimates at no extra cost. This approach enhances segmentation performance and enables semantically meaningful uncertainty estimation, all without modifying either the reconstruction process or the downstream model.
Figures & tables
Figure 1: A schematic overview of our proposed method IRTTA. The differences between the reconstructed x0,…,xS−1 . Initially, the weights and biases of the final layer in gΨ is set to 0 , which is highlighted with bold arrows. Hence, the frozen backbone fθ retains its performance at initialization and is adapted without labels.
Figure 2: Visual comparison of downstream results using different methods. The top and bottom two rows show examples from the Cirrus and Topcon datasets respectively.
Method
Venue
DICE
IRF
SRF
PED
Mean
Baseline
-
0.463±0.29
0.368±0.24
0.267±0.27
0.366
SCUNET Zhang et al. (2023a)
MLR
0.563±0.29
0.617±0.17
0.474±0.30
0.551
TENT Wang et al. (2021)
ICLR
0.548±0.21
0.492±0.25
0.234±0.23
0.425
CoTTA Wang et al. (2022)
CVPR
0.585±0.18
0.544±0.23
0.282±0.24
0.470
Energy Zach et al. (2023)
TMI
0.429±0.29
0.525±0.20
0.369±0.28
0.441
Table 1: Comparison of downstream performance on RETOUCH Cirrus → Spectralis Bogunović et al. (2019) . SVDNA and SegClr use Cirrus data during the training phase of the downstream network without labels.
Method
Venue
DICE
IRF
SRF
PED
Mean
Baseline
-
0.475±0.27
0.282±0.21
0.398±0.16
0.385
SCUNET Zhang et al. (2023a)
MLR
0.446±0.26
0.213±0.18
0.518±0.14
0.393
DDA Gao et al. (2023)
CVPR
0.461±0.27
0.362±0.27
0.384±0.22
0.402
EDM Chung et al. (2023)
ICLR
0.294±0.24
0.326±0.19
0.504±0.17
0.375
Energy Zach et al. (2023)
TMI
0.464±0.26
0.241±0.16
0.478±0.14
0.394
Table 2: Comparison of downstream performance on RETOUCH Topcon → Spectralis Bogunović et al. (2019) . SVDNA and SegClr use Topcon data during the training phase of the downstream network without labels.
Method
DICE
IRF
SRF
PED
Mean
Adapt only last
0.560±0.24
0.678±0.17
0.507±0.26
0.581
Adapt without first
0.575±0.23
0.697±0.16
0.519±0.26
0.597
Adapt per case
0.570±0.23
0.711±0.15
0.513±0.28
0.603
Adapt per dataset
0.581±0.23
0.709±0.15
0.517±0.27
0.603
Table 3: Ablation: Trajectory vs. Single-step adaptation (Cirrus).
Emb size
DICE
IRF
SRF
PED
Mean
4
0.579±0.23
0.697±0.16
0.531±0.26
0.602
8
0.578±0.23
0.704±0.16
0.526±0.26
0.603
16
0.581±0.23
0.709±0.15
0.517±0.27
0.603
32
0.572±0.24
0.709±0.15
0.516±0.27
0.599
64
0.550±0.25
0.705±0.13
0.480±0.29
0.578
Table 4: Ablation: Size of the embedding vector (Cirrus).
Steps
DICE
IRF
SRF
PED
Mean
1
0.579±0.23
0.670±0.19
0.541±0.26
0.597
10
0.580±0.23
0.674±0.18
0.541±0.26
0.598
50
0.580±0.23
0.691±0.17
0.536±0.26
0.602
100
0.581±0.23
0.709±0.15
0.517±0.27
0.603
500
0.465±0.26
0.613±0.20
0.386±0.33
0.488
Table 5: Ablation: Number of steps used in the adaption (Cirrus).
S
DICE
Run Time
IRF
SRF
PED
Mean
in s
5
0.539±0.23
0.648±0.18
0.497±0.26
0.561
16
10
0.580±0.23
0.674±0.18
0.541±0.26
0.598
69
15
0.593±0.23
0.720±0.13
0.500±0.30
0.605
121
20
0.604±0.20
0.695±0.13
0.474±0.32
0.591
196
Table 6: Ablation: Number of reconstructions used in the adaption (Cirrus).
Method
ECE
PRAUC
Cirrus
Topcon
Cirrus
Topcon
GARD
.01332±.010
.00455±.004
0.532±0.26
0.447±0.24
IRTTA
.00697±.007
.00342±.005
0.672±0.22
0.454±0.24
Supervised
.00534±.005
.00363±.004
0.765±0.21
0.614±0.25
Table 7: Uncertainty Quantification (Expected Calibration Error and Precision-Recall Area Under the Curve).
Figure 3: Visual comparison of uncertainty estimation compared to the baseline, visualized by showing the entropy of the prediction. The uncertainty now shows semantically meaningful information instead of the boundary of the initial segmentation.
Optical coherence tomography (OCT) is essential in ophthalmology, but inconsistent image quality especially in low-cost devices hinders automated analysis. To address this, we introduce a flow-matching-based test-time adaptation method that generates high-quality surrogate images from noisy inputs. Typically, domain gaps between test and training data cause pixel distribution mismatches during the denoising process. We overcome this by matching the test image's histogram to synthetic reference trajectories, successfully aligning the input with expected distributions. Additionally, we remove the network's time conditioning to account for slight deviations in real-world noise distributions. Our approach achieves state-of-the-art performance in segmenting critical biomarkers for two stages of Age-related Macular Degeneration (AMD). Code is available: https://github.com/Veit21/tta-flow.
Veit Hucke, Thomas Pinetz, Gregor Reiter +2
Institute of Artificial Intelligence, Center for Medical Data Science, Medical University of Vienna, Austria · Comprehensive Center for Artificial Intelligence in Medicine, Medical University of Vienna, Austria · Department of Ophthalmology and Optometry, Medical University of Vienna, Austria +1
Test-time adaptation (TTA) aims to mitigate distribution shifts by adapting models with unlabeled target data at inference time. While TTA with vision-language models (VLMs) has shown promising results in classification, extending it to medical image segmentation remains challenging. In this setting, the adaptation gains from optimizing on VLM-generated predictions are often outweighed by the degradation to the VLM's strong pretrained features caused by noisy, update-driven learning, resulting in limited and unstable improvements. We therefore propose Memory-Supported Synergistic Adaptation (MSSA), a novel training-free TTA framework for medical image segmentation. Without updating model parameters, MSSA dynamically selects reliable image-text predictions to construct an online memory, uses them as text-guided semantic priors, and couples them with cross-image structural alignment for robust adaptation. Specifically, MSSA consists of (i) a noise-aware memory construction module that filters and stabilizes cross-modal predictions, and (ii) a relevance-driven prototype alignment module that aligns the target sample with structurally consistent memory samples and their reliable predictions to improve adaptation. Extensive experiments on multiple medical segmentation benchmarks demonstrate that MSSA consistently improves VLM-based segmentation models and outperforms existing fine-tuning-based TTA methods by a clear margin, with gains of up to 12.2% DSC and 11.7% mIoU. Project page: https://lingrayy.github.io/MSSA/ .
Lingrui Li, Nan Pu, Dong Zhao +4
School of Computer Science, University of Nottingham, UK · School of Computer Science and Information Engineering, Hefei University of Technology, China · Information Systems Technology and Design Pillar, Singapore University of Technology and Design, Singapore
Increasingly advanced data augmentation techniques have greatly aided clinical medical research, increasing data diversity and improving model generalization capabilities. Although most current basic models exhibit strong generalization abilities, image quality varies due to differences in equipment and operators. To address these challenges, we present SegTTA, a framework that improves medical image segmentation without model retraining by combining four augmentations (Gamma correction, Contrast enhancement, Gaussian blur, Gaussian noise) with weighted voting across multiple MedSAM2 checkpoints. Experiments demonstrate consistent improvements across three diverse datasets: healthy uterus segmentation, uterine myoma detection, and multi class hepatic structure segmentation. Ablation studies reveal that large organs benefit from intensity augmentations while small lesions require noise augmentations. The voting threshold controls the coverage precision trade off, enabling task specific optimization for different clinical requirements. Ultimately, on a multiclass hepatic vessel dataset, compared to MedSAM2 baselines, our method achieves an increase of 1.6 in mIoU and 1.9 in aIoU, along with a reduction of approximately 2.0 in HD95. Code will be available at https://github.com/AIGeeksGroup/SegTTA.
Yihong Yao, Chunlei Li, Canxuan Gang +4
AI Geeks · Qingdao Municipal Hospital · University of Chinese Academy of Sciences