Test-Time Training for Semantic Segmentation with Output Contrastive Loss
Not on the map. Why?
Abstract (arXiv)
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.footnoteCode and more information could be found at~ urlhttps://github.com/dazhangyu123/OCL
Key facts. Cited by 3 papers in the map (data through 7 Oct 2026). Builds on 57 of its 68 references that are in the map. First posted on arXiv 14 Nov 2023.
Builds on
57 of 68 references.
References · 57
- 2015U-Net: Convolutional Networks for Biomedical Image Segmentationcited by 19,604
- 2020A Simple Framework for Contrastive Learning of Visual Representationscited by 11,979
- 2018Representation Learning with Contrastive Predictive Codingcited by 7,662
- 2019Momentum Contrast for Unsupervised Visual Representation Learningcited by 7,482
- 2015Batch Normalization: Accelerating Deep Network Training by Reducing Internal Covariate Shiftcited by 6,979
- 2014Fully Convolutional Networks for Semantic Segmentationcited by 4,845
- 2016The Cityscapes Dataset for Semantic Urban Scene Understandingcited by 4,427
- 2016DeepLab: Semantic Image Segmentation with Deep Convolutional Nets, Atrous Convolution, and Fully Connected CRFscited by 3,239
- 2021SegFormer: Simple and Efficient Design for Semantic Segmentation with Transformerscited by 2,923
- 2020Supervised Contrastive Learningcited by 2,803
- 2018Unsupervised Feature Learning via Non-Parametric Instance-level Discriminationcited by 1,838
- 2020Understanding Contrastive Representation Learning through Alignment and Uniformity on the Hyperspherecited by 1,393
38 more
- 2019MixMatch: A Holistic Approach to Semi-Supervised Learningcited by 1,390
- 2017CyCADA: Cycle-Consistent Adversarial Domain Adaptationcited by 1,079
- 2019Unsupervised Data Augmentation for Consistency Trainingcited by 1,057
- 2016Temporal Ensembling for Semi-Supervised Learningcited by 1,054
- 2021Segmenter: Transformer for Semantic Segmentationcited by 855
- 2016Playing for Data: Ground Truth from Computer Gamescited by 816
- 2018ADVENT: Adversarial Entropy Minimization for Domain Adaptation in Semantic Segmentationcited by 623
- 2018Learning to Adapt Structured Output Space for Semantic Segmentationcited by 584
- 2020FDA: Fourier Domain Adaptation for Semantic Segmentationcited by 540
- 2022Continual Test-Time Domain Adaptationcited by 520
- 2022Efficient Test-Time Model Adaptation without Forgettingcited by 467
- 2020Improving robustness against common corruptions by covariate shift adaptationcited by 427
- 2019Confidence Regularized Self-Trainingcited by 418
- 2023Towards Stable Test-Time Adaptation in Dynamic Wild Worldcited by 409
- 2019Contrastive Adaptation Network for Unsupervised Domain Adaptationcited by 407
- 2020Understanding the Behaviour of Contrastive Losscited by 397
- 2021MEMO: Test Time Robustness via Adaptation and Augmentationcited by 376
- 2021DAFormer: Improving Network Architectures and Training Strategies for Domain-Adaptive Semantic Segmentationcited by 299
- 2018Taking A Closer Look at Domain Shift: Category-level Adversaries for Semantics Consistent Domain Adaptationcited by 295
- 2016Revisiting Batch Normalization For Practical Domain Adaptationcited by 285
- 2022Contrastive Test-Time Adaptationcited by 258
- 2020DACS: Domain Adaptation via Cross-domain Mixed Samplingcited by 226
- 2020Rethinking the Value of Labels for Improving Class-Imbalanced Learningcited by 216
- 2022Test-Time Training with Masked Autoencoderscited by 208
- 2022Parameter-free Online Test-time Adaptationcited by 184
- 2022MIC: Masked Image Consistency for Context-Enhanced Domain Adaptationcited by 176
- 2021Source-Free Domain Adaptation for Semantic Segmentationcited by 168
- 2019Domain Adaptation for Semantic Segmentation with Maximum Squares Losscited by 138
- 2017Curriculum Domain Adaptation for Semantic Segmentation of Urban Scenescited by 105
- 2022Robust Mean Teacher for Continual and Gradual Test-Time Adaptationcited by 102
- 2021Pixel Contrastive-Consistent Semi-Supervised Semantic Segmentationcited by 101
- 2023TTN: A Domain-Shift Aware Batch Normalization in Test-Time Adaptationcited by 101
- 2022Visual Prompt Tuning for Test-time Domain Adaptationcited by 97
- 2021Self-Supervised Aggregation of Diverse Experts for Test-Agnostic Long-Tailed Recognitioncited by 95
- 2022Attracting and Dispersing: A Simple Approach for Source-free Domain Adaptationcited by 93
- 2021Generalize then Adapt: Source-Free Domain Adaptive Semantic Segmentationcited by 81
- 2022MM-TTA: Multi-Modal Test-Time Adaptation for 3D Semantic Segmentationcited by 76
- 2022Improving Test-Time Adaptation via Shift-agnostic Weight Regularization and Nearest Source Prototypescited by 67
50 most cited of 57 All 57 (JSON)
Built on by
Citing papers per year: 2024: 1; 2025: 1; 2026: 1.
3 papers.
- 2024PASS:Test-Time Prompting to Adapt Styles and Semantic Shapes in Medical Image Segmentationcited by 12
- 2025Adapting In-Domain Few-Shot Segmentation to New Domains without Source Domain Retrainingcited by 4
- 2026Memory-Supported Synergistic Adaptation for Training-Free Test-Time Medical Image Segmentationcited by 0
- 2026Memory-Supported Synergistic Adaptation for Training-Free Test-Time Medical Image Segmentation20 Jul 2026
- 2025Adapting In-Domain Few-Shot Segmentation to New Domains without Source Domain Retraining30 Apr 2025
- 2024PASS:Test-Time Prompting to Adapt Styles and Semantic Shapes in Medical Image Segmentation2 Oct 2024