Gradient Alignment Improves Test-Time Adaptation for Medical Image Segmentation
Not on the map. Why?
Abstract (arXiv)
Although recent years have witnessed significant advancements in medical image segmentation, the pervasive issue of domain shift among medical images from diverse centres hinders the effective deployment of pre-trained models. Many Test-time Adaptation (TTA) methods have been proposed to address this issue by fine-tuning pre-trained models with test data during inference. These methods, however, often suffer from less-satisfactory optimization due to suboptimal optimization direction (dictated by the gradient) and fixed step-size (predicated on the learning rate). In this paper, we propose the Gradient alignment-based Test-time adaptation (GraTa) method to improve both the gradient direction and learning rate in the optimization procedure. Unlike conventional TTA methods, which primarily optimize the pseudo gradient derived from a self-supervised objective, our method incorporates an auxiliary gradient with the pseudo one to facilitate gradient alignment. Such gradient alignment enables the model to excavate the similarities between different gradients and correct the gradient direction to approximate the empirical gradient related to the current segmentation task. Additionally, we design a dynamic learning rate based on the cosine similarity between the pseudo and auxiliary gradients, thereby empowering the adaptive fine-tuning of pre-trained models on diverse test data. Extensive experiments establish the effectiveness of the proposed gradient alignment and dynamic learning rate and substantiate the superiority of our GraTa method over other state-of-the-art TTA methods on a benchmark medical image segmentation task. The code and weights of pre-trained source models are available at https://github.com/Chen-Ziyang/GraTa.
Key facts. Cited by 11 papers in the map (data through 7 Oct 2026). Builds on 18 of its 31 references that are in the map. First posted on arXiv 14 Aug 2024.
Builds on
18 of 31 references.
References · 18
- 2015Deep Residual Learning for Image Recognitioncited by 51,809
- 2014Adam: A Method for Stochastic Optimizationcited by 36,960
- 2017Learning to Generalize: Meta-Learning for Domain Generalizationcited by 762
- 2023Towards Stable Test-Time Adaptation in Dynamic Wild Worldcited by 409
- 2021MEMO: Test Time Robustness via Adaptation and Augmentationcited by 376
- 2023A Comprehensive Survey on Test-Time Adaptation under Distribution Shiftscited by 353
- 2019Embracing Imperfect Datasets: A Review of Deep Learning Solutions for Medical Image Segmentationcited by 258
- 2020Evaluating Prediction-Time Batch Normalization for Robustness under Covariate Shiftcited by 235
- 2019REFUGE Challenge: A Unified Framework for Evaluating Automated Methods for Glaucoma Assessment from Fundus Photographscited by 226
- 2021The Norm Must Go On: Dynamic Unsupervised Domain Adaptation by Normalizationcited by 131
- 2023Sharpness-Aware Gradient Matching for Domain Generalizationcited by 102
- 2021Dynamic Weighted Learning for Unsupervised Domain Adaptationcited by 53
6 more
- 2021Learning Anchored Unsigned Distance Functions with Gradient Direction Alignment for Single-view Garment Reconstructioncited by 36
- 2022TeST: Test-time Self-Training under Distribution Shiftcited by 29
- 2022DLTTA: Dynamic Learning Rate for Test-time Adaptation on Cross-domain Medical Imagescited by 28
- 2023DomainAdaptor: A Novel Approach to Test-time Adaptationcited by 20
- 2024MedBN: Robust Test-Time Adaptation against Malicious Test Samplescited by 10
- 2022Towards More Robust Interpretation via Local Gradient Alignmentcited by 4
Built on by
Citing papers per year: 2025: 4; 2026: 7.
11 papers.
- 2025Test-time Adaptation for Foundation Medical Segmentation Model without Parametric Updatescited by 5
- 2025A Large Scale Benchmark for Test Time Adaptation Methods in Medical Image Segmentationcited by 5
- 2025SAM-aware Test-time Adaptation for Universal Medical Image Segmentationcited by 3
- 2026A3-TTA: Adaptive Anchor Alignment Test-Time Adaptation for Image Segmentationcited by 1
- 2026SPEGC: Continual Test-Time Adaptation via Semantic-Prompt-Enhanced Graph Clustering for Medical Image Segmentationcited by 1
- 2025DP-TTA: Test-time Adaptation for Transient Electromagnetic Signal Denoising via Dictionary-driven Prior Regularizationcited by 0
- 2026EviATTA: Evidential Active Test-Time Adaptation for Medical Segment Anything Modelscited by 0
- 2026When Can Test-Time Adaptation Help Zero-Shot CT Vision-Language Models?cited by 0
- 2026Learning Prostate Anatomy at Test Time for Cancer Detection in Micro-Ultrasoundcited by 0
- 2026On the Interaction Between Model Compression and Test-Time Adaptationcited by 0
- 2026Should This Case Be Adapted? Prediction Fragmentation Controls Test-Time Adaptationcited by 0
- 2026Should This Case Be Adapted? Prediction Fragmentation Controls Test-Time Adaptation17 Sep 2026
- 2026On the Interaction Between Model Compression and Test-Time Adaptation3 Sep 2026
- 2026Learning Prostate Anatomy at Test Time for Cancer Detection in Micro-Ultrasound20 Aug 2026
- 2026When Can Test-Time Adaptation Help Zero-Shot CT Vision-Language Models?17 Jul 2026
- 2026EviATTA: Evidential Active Test-Time Adaptation for Medical Segment Anything Models15 Mar 2026
- 2026SPEGC: Continual Test-Time Adaptation via Semantic-Prompt-Enhanced Graph Clustering for Medical Image Segmentation12 Mar 2026
- 2026A3-TTA: Adaptive Anchor Alignment Test-Time Adaptation for Image Segmentation3 Feb 2026
- 2025A Large Scale Benchmark for Test Time Adaptation Methods in Medical Image Segmentation2 Dec 2025
- 2025DP-TTA: Test-time Adaptation for Transient Electromagnetic Signal Denoising via Dictionary-driven Prior Regularization15 Oct 2025
- 2025SAM-aware Test-time Adaptation for Universal Medical Image Segmentation5 Jun 2025
- 2025Test-time Adaptation for Foundation Medical Segmentation Model without Parametric Updates2 Apr 2025