Gradient Alignment Improves Test-Time Adaptation for Medical Image Segmentation
Ziyang Chen, Yiwen Ye, Yongsheng Pan, Yong Xia
Abstract
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.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext f68694ca-5d2b-4fdf-8ebb-944a5fa19652Cited by top-tier papers5
- SPEGC: Continual Test-Time Adaptation via Semantic-Prompt-Enhanced Graph Clustering for Medical Image SegmentationXiaogang Du, Jiawei Zhang, Tongfei Liu, Tao Lei et al.CVPR 2026 · 1 citation
- Test-time Adaptation for Foundation Medical Segmentation Model without Parametric UpdatesKecheng Chen, Xinyu Luo, Tiexin Qin, Jie Liu et al.ICCV 2025
- TANGO: Learning Distribution-wise Foundation Prior Consistency and Instance-wise Style Calibration for Medical Image GeneralizationChuang Liu, Yichao Cao, Xiu Su, Haogang ZhuCVPR 2026
- MedLIME: A Distribution-Aligned and Evidence-Supported Framework for Medical Saliency ExplanationsRaghav Magazine, Xingjian Li, Min XuCVPR 2026
- Topology-Inspired Backward-Free Framework for Test-Time Adaptation in Medical DetectionBin Pu, Xingguo Lv, Jiewen Yang, Kai Xu et al.AAAI 2026
Builds on21
- Gradient Surgery for Multi-Task LearningTianhe Yu, Saurabh Kumar, Abhishek Gupta, Sergey Levine et al.NeurIPS 2020 · 2,261 citations
- Tent: Fully Test-Time Adaptation by Entropy MinimizationDequan Wang, Evan Shelhamer, Shaoteng Liu, Bruno A. Olshausen et al.ICLR 2021 · 1,731 citations
- Test-Time Training with Self-Supervision for Generalization under Distribution ShiftsYu Sun, Xiaolong Wang, Zhuang Liu, John Miller et al.ICML 2020 · 1,220 citations
- MEMO: Test Time Robustness via Adaptation and AugmentationMarvin Zhang, Sergey Levine, Chelsea FinnNeurIPS 2022 · 595 citations
- Test-Time Classifier Adjustment Module for Model-Agnostic Domain GeneralizationYusuke Iwasawa, Yutaka MatsuoNeurIPS 2021 · 456 citations
Related papers
- Each Test Image Deserves A Specific Prompt: Continual Test-Time Adaptation for 2D Medical Image SegmentationZiyang Chen, Yongsheng Pan, Yiwen Ye, Mengkang Lu et al.CVPR 2024
- Feature Alignment and Uniformity for Test Time AdaptationShuai Wang, Daoan Zhang, Zipei Yan, Jianguo Zhang et al.CVPR 2023
- Everything to the Synthetic: Diffusion-driven Test-time Adaptation via Synthetic-Domain AlignmentJiayi Guo, Junhao Zhao, Chaoqun Du, Yulin Wang et al.CVPR 2025
- TeSLA: Test-Time Self-Learning With Automatic Adversarial AugmentationDevavrat Tomar, Guillaume Vray, Behzad Bozorgtabar, Jean-Philippe ThiranCVPR 2023
- Test-Time Domain Generalization via Universe Learning: A Multi-Graph Matching Approach for Medical Image SegmentationXingguo Lv, Xingbo Dong, Liwen Wang, Jiewen Yang et al.CVPR 2025
