arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2408.07343cs.CV
收藏

梯度对齐改善医学图像分割的测试时自适应

Gradient Alignment Improves Test-Time Adaptation for Medical Image Segmentation

Northwestern Polytechnical University(西北工业大学);Research & Development Institute of Northwestern Polytechnical University in Shenzhen(西北工业大学深圳研究院);Ningbo Institute of Northwestern Polytechnical University(西北工业大学宁波研究院)

Ziyang Chen, Yiwen Ye, Yongsheng Pan, Yong Xia

AI总结:

本文提出GraTa方法,通过辅助梯度与伪梯度对齐来校正优化方向,并设计基于余弦相似度的动态学习率,从而提升医学图像分割模型在测试时自适应中的性能。

摘要:

尽管近年来医学图像分割取得了显著进展,但来自不同中心的医学图像之间普遍存在的域偏移问题阻碍了预训练模型的有效部署。许多测试时自适应(Test-time Adaptation, TTA)方法被提出以通过在推理过程中利用测试数据微调预训练模型来解决这一问题。然而,这些方法往往因次优的优化方向(由梯度决定)和固定的步长(取决于学习率)而难以获得令人满意的优化效果。在本文中,我们提出了基于梯度对齐的测试时自适应(Gradient alignment-based Test-time adaptation, GraTa)方法,以同时改进优化过程中的梯度方向和学习率。与主要优化由自监督目标导出的伪梯度的传统TTA方法不同,我们的方法引入了一个辅助梯度与伪梯度相结合,以促进梯度对齐。这种梯度对齐使模型能够挖掘不同梯度之间的相似性,并校正梯度方向以逼近与当前分割任务相关的经验梯度。此外,我们设计了一种基于伪梯度与辅助梯度之间余弦相似度的动态学习率,从而增强预训练模型在多样化测试数据上的自适应微调能力。大量实验验证了所提出的梯度对齐和动态学习率的有效性,并证明了我们的GraTa方法在基准医学图像分割任务上优于其他最先进的TTA方法。代码和预训练源模型的权重可在 https://github.com/Chen-Ziyang/GraTa 获取。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑