TL;DR
Medical image segmentation models frequently degrade when deployed across different clinics and scanners due to distribution shifts. To solve this without risking catastrophic forgetting, the authors introduce TACT (Sparsely-Activated Continual Test-Time Adaptation), a framework that updates only the "inactive" (near-zero magnitude) parameters of a pre-trained model. By waking up these sleeping weights and resetting sample-specific updates after inference, TACT achieves state-of-the-art adaptability and long-term stability without requiring any source data.
What Problem Does This Paper Address?
Deep learning models for medical image segmentation perform exceptionally well in controlled environments but often struggle in real-world clinical deployment. Variations in scanner manufacturers, imaging protocols, and patient cohorts introduce distribution shifts that degrade model accuracy.
Continual Test-Time Adaptation (CTTA) attempts to fix this by updating the model online using unlabeled data streams as they arrive. However, existing CTTA methods face two major hurdles:
- Error Accumulation: Noisy, incorrect pseudo-labels generated during adaptation repeatedly overwrite valid pre-trained knowledge.
- Catastrophic Forgetting: Continually adapting to sample-specific nuances causes the model to forget general features, leading to long-term performance degradation.
The authors ask a fundamental question: How can we achieve reliable and stable adaptation to continual distribution shifts while minimizing interference with pre-trained knowledge?
Methods
Borrowing insights from network pruning, the authors observe that a large portion of parameters in a pre-trained model have near-zero magnitudes and negligible influence on predictions. Zeroing them out barely changes performance, but tuning only them provides significant adaptation capacity.
TACT exploits this low-interference subspace through a progressive two-stage framework:
- Stage 1: Sparse Domain Alignment: The model applies style perturbations (swapping low-frequency Fourier amplitudes with a running memory bank) and structure perturbations (entropy-based masking of high-uncertainty regions) to the input images. It then enforces prediction- and feature-level consistency, updating only the inactive parameters ($|\theta_0| < \tau$).
- Stage 2: Progressive Sample Refinement: To capture fine-grained, sample-specific details, TACT introduces a hard-pixel contrastive loss that focuses on highly ambiguous pixels. Crucially, these sample-specific updates are reset immediately after inference, preventing noisy gradients from corrupting the model's long-term memory.
Datasets
The authors evaluated TACT across three multi-center medical image segmentation benchmarks:
- Optic Disc/Cup (OD/OC) Segmentation: Composed of five distinct public fundus image datasets (RIM-ONE-r3, REFUGE, ORIGA, Drishti-GS) acting as shifting domains.
- Prostate Segmentation: Composed of T2-weighted MRI data from three public datasets partitioned into six distinct clinical domains (BIDMC, BMC, HK, I2CVB, RUNMC, UCL).
- Polyp Segmentation: Composed of four public datasets (BKAI-IGH-NeoPolyp, CVC-ClinicDB, ETIS-LaribPolypDB, Kvasir-Seg) featuring small, concealed targets.
Key Insights and Ideas
- The "Sleeping Weights" Subspace: Inactive parameters serve as a natural sandbox for adaptation. Modifying them allows the model to learn domain-specific shifts without corrupting the foundational representations stored in the larger, active weights.
- The Power of the Reset: While sample-specific refinement helps immediate prediction accuracy, allowing those updates to accumulate over time causes severe model drift. Wiping the sample-specific slate clean after every inference step is vital for long-term stability.
- Uncertainty-Guided Masking: Instead of applying arbitrary data augmentations, TACT targets the exact regions where the model is most confused (high entropy) and forces the network to reconstruct those areas using surrounding contextual cues.
Key Results
TACT consistently outperformed mainstream CTTA methods (such as TENT, CoTTA, and SURGEON) across all benchmarks:
- Superior Segmentation Accuracy: On the OD/OC benchmark, TACT achieved a mean Dice Coefficient (DSC) of 72.51%, outperforming the "Source Only" baseline (65.92%) and the best competing method (69.01%). On the highly challenging Prostate MRI benchmark, TACT reached 59.15% DSC compared to the baseline's 45.81%.
- Long-Term Stability: In multi-round evaluations simulating extended clinical deployment, TACT demonstrated the lowest performance degradation (-0.82% compared to up to -6.32% for full parameter adaptation methods).
- Efficiency: TACT achieves these results while updating only about 1.6% of the model's parameters, striking an excellent balance between accuracy and GPU memory footprint.
Limitations and Future Work
The authors note that the sparsity threshold $\tau$ (which determines which weights are classified as inactive) is currently a fixed hyperparameter. While a fixed threshold proved more stable than a dynamic schedule in their long-term experiments, it requires initial calibration depending on the network architecture. Future work could explore self-calibrating or automated thresholding techniques to make the framework entirely plug-and-play across diverse deep learning backbones.
Summary updated