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

语义分割的测试时训练与输出对比损失

Test-Time Training for Semantic Segmentation with Output Contrastive Loss

Zhejiang University(浙江大学);Westlake University(西湖大学)

Yunlong Zhang, Yuxuan Sun, Sunyi Zheng, Zhongyi Shui, Chenglu Zhu, Lin Yang

AI总结:

针对语义分割测试时训练不稳定的问题,提出输出对比损失(OCL),在输出空间使用高温简化对比损失,稳定适应过程,并在多种评估场景及域适应预训练模型上验证了有效性。

摘要:

尽管基于深度学习的分割模型在公开基准上取得了令人瞩目的性能,但泛化到未见过的环境仍是一个重大挑战。为了提高模型在评估期间对新领域的泛化能力,测试时训练(TTT)是一种具有挑战性的范式,它以在线方式适应源预训练模型。早期关于TTT的研究主要集中在图像分类任务上。直接将这些方法扩展到语义分割,由于分割固有的特性,如极端的类别不平衡和复杂的决策空间,很容易经历不稳定的适应过程。为了稳定适应过程,我们引入了对比损失(CL),它以其学习稳健和泛化表示的能力而闻名。然而,传统的CL在表示空间中运作,无法直接增强预测。在本文中,我们通过将CL适应到输出空间、采用高温以及简化公式来解决这一限制,从而产生了一个简单而有效的损失函数,称为输出对比损失(OCL)。我们全面的实验验证了我们的方法在各种评估场景中的有效性。值得注意的是,即使应用于最初在测试域数据上使用域适应方法预训练的模型,我们的方法也表现出色,展示了其韧性和适应性。代码和更多信息可在 https://github.com/dazhangyu123/OCL 找到。

英文摘要:

Although deep learning-based segmentation models have achieved impressive performance on public benchmarks, generalizing well to unseen environments remains a major challenge. To improve the model's generalization ability to the new domain during evaluation, the test-time training (TTT) is a challenging paradigm that adapts the source-pretrained model in an online fashion. Early efforts on TTT mainly focus on the image classification task. Directly extending these methods to semantic segmentation easily experiences unstable adaption due to segmentation's inherent characteristics, such as extreme class imbalance and complex decision spaces. To stabilize the adaptation process, we introduce contrastive loss (CL), known for its capability to learn robust and generalized representations. Nevertheless, the traditional CL operates in the representation space and cannot directly enhance predictions. In this paper, we resolve this limitation by adapting the CL to the output space, employing a high temperature, and simplifying the formulation, resulting in a straightforward yet effective loss function called Output Contrastive Loss (OCL). Our comprehensive experiments validate the efficacy of our approach across diverse evaluation scenarios. Notably, our method excels even when applied to models initially pre-trained using domain adaptation methods on test domain data, showcasing its resilience and adaptability.\footnote{Code and more information could be found at~ \url{https://github.com/dazhangyu123/OCL}}

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

↑