Proceedings

MarCon: Max-Margin Contrastive Learning for Imbalanced Domain Adaptation Semantic Segmentation

Download BibTeX Cite

Proceedings of the Thirty-Fifth International Joint Conference on Artificial Intelligence. Main Track. Pages 4994-5002.

https://doi.org/10.24963/ijcai.2026/556

Abstract

Unsupervised Domain Adaptation for Semantic Segmentation (UDA-SS) has seen significant progress in recent years. Existing UDA-SS approaches mostly adopt a pseudo-labeling schema to adapt model in the target domain, but they often overlook the inherent long-tailed data distribution in segmentation. We find that such scarce tail samples can lead to representation collapse for tail classes and further hinder the quality of pseudo-labels. To address these challenges, we propose MarCon, a framework that mitigates the long-tailed problem from both feature representation and pseudo-labeling perspectives. Specifically, to explicitly learn a Maximum-Margin Distribution, we derive a reformulated pixel-level contrastive learning objective by modeling feature distributions with the von Mises-Fisher (vMF) distribution. It enforces strict margins to enhance intra-class compactness and inter-class separability, preventing tail classes from being overwhelmed by head classes. Furthermore, to mitigate label noise, we introduce a Reliability-aware Filter (RaF) based on the vMF-derived metrics, which performs adaptive class-wise pixel reliability assessment to identify unreliable pixels and attenuate their contribution to model training, thereby mitigating confirmation bias. Extensive experiments on GTA → Cityscapes and SYNTHIA → Cityscapes demonstrate that MarCon consistently outperforms current leading methods across various transformer-based architectures.

  1. [Chen et al., 2018] Liang-Chieh Chen, George Papandreou, Iasonas Kokkinos, Kevin Murphy, and Alan L. Yuille. Deeplab: Semantic image segmentation with deep convo- lutional nets, atrous convolution, and fully connected crfs. IEEE Trans. Pattern Anal. Mach. Intell., pages 834-848, 2018.
  2. [Chen et al., 2020] Ting Chen, Simon Kornblith, Moham- mad Norouzi, and Geoffrey E. Hinton. A simple frame- work for contrastive learning of visual representations. In Proc. of ICML, pages 1597-1607, 2020.
  3. [Chen et al., 2023] Mu Chen, Zhedong Zheng, Yi Yang, and Tat-Seng Chua. Pipa: Pixel-and patch-wise self- supervised learning for domain adaptative semantic seg- mentation. In Proc. of ACM MM, pages 1905-1914, 2023.
  4. [Chen et al., 2024a] Linwei Chen, Ying Fu, Lin Gu, Cheng- gang Yan, Tatsuya Harada, and Gao Huang. Frequency- aware feature fusion for dense image prediction. IEEE Trans. Pattern Anal. Mach. Intell., pages 10763-10780, 2024.
  5. [Chen et al., 2024b] Mu Chen, Zhedong Zheng, and Yi Yang. Transferring to real-world layouts: A depth- aware framework for scene adaptation. In Proc. of ACM MM, pages 399-408, 2024.
  6. [Cordts et al., 2016] Marius Cordts, Mohamed Omran, Se- bastian Ramos, Timo Rehfeld, Markus Enzweiler, Rodrigo Benenson, Uwe Franke, Stefan Roth, and Bernt Schiele. The cityscapes dataset for semantic urban scene under- standing. In Proc. of CVPR, pages 3213-3223, 2016.
  7. [Fan et al., 2024] Qizhe Fan, Xiaoqin Shen, Shihui Ying, and Shaoyi Du. OTCLDA: optimal transport and con- trastive learning for domain adaptive semantic segmen- tation. IEEE Trans. Intell. Transp. Syst., pages 14685- 14697, 2024.
  8. [Ghiasi et al., 2021] Golnaz Ghiasi, Yin Cui, Aravind Srini- vas, Rui Qian, Tsung-Yi Lin, Ekin D. Cubuk, Quoc V. Le, and Barret Zoph. Simple copy-paste is a strong data aug- mentation method for instance segmentation. In Proc. of CVPR, pages 2918-2928, 2021.
  9. [Gui et al., 2021] Xian-Jin Gui, Wei Wang, and Zhang-Hao Tian. Towards understanding deep learning from noisy la- bels with small-loss criterion. In Proc. of IJCAI, pages 2469-2475, 2021. IJCAI
  10. [Gupta et al., 2019] Agrim Gupta, Piotr Dollár, and Ross B. Girshick. LVIS: A dataset for large vocabulary instance segmentation. In Proc. of CVPR, 2019.
  11. [He et al., 2021] Ruifei He, Jihan Yang, and Xiaojuan Qi. Re-distributing biased pseudo labels for semi-supervised semantic segmentation: A baseline investigation. In Proc. of ICCV, pages 6910-6920, 2021.
  12. [Hoffman et al., 2018] Judy Hoffman, Eric Tzeng, Taesung Park, Jun-Yan Zhu, Phillip Isola, Kate Saenko, Alexei A. Efros, and Trevor Darrell. Cycada: Cycle-consistent ad- versarial domain adaptation. In Proc. of ICML, pages 1994-2003, 2018.
  13. [Hoyer et al., 2022a] Lukas Hoyer, Dengxin Dai, and Luc Van Gool. Daformer: Improving network architec- tures and training strategies for domain-adaptive semantic segmentation. In Proc. of CVPR, pages 9914-9925, 2022.
  14. [Hoyer et al., 2022b] Lukas Hoyer, Dengxin Dai, and Luc Van Gool. HRDA: context-aware high-resolution domain-adaptive semantic segmentation. In Proc. of ECCV, pages 372-391, 2022.
  15. [Hoyer et al., 2023] Lukas Hoyer, Dengxin Dai, Haoran Wang, and Luc Van Gool. MIC: masked image consis- tency for context-enhanced domain adaptation. In Proc. of CVPR, pages 11721-11732, 2023.
  16. [Jiang et al., 2022] Zhengkai Jiang, Yuxi Li, Ceyuan Yang, Peng Gao, Yabiao Wang, Ying Tai, and Chengjie Wang. Prototypical contrast adaptation for domain adaptive se- mantic segmentation. In Proc. of ECCV, pages 36-54, 2022.
  17. [Kang et al., 2020] Guoliang Kang, Yunchao Wei, Yi Yang, Yueting Zhuang, and Alexander G. Hauptmann. Pixel- level cycle association: A new perspective for domain adaptive semantic segmentation. In Proc. of NeurIPS, 2020.
  18. [Khan et al., 2025] Md. Al-Masrur Khan, Durgakant Pushp, and Lantao Liu. AFRDA: attentive feature refinement for domain adaptive semantic segmentation. IEEE Robotics Autom. Lett., pages 9573-9580, 2025.
  19. [Lee et al., 2021] Suhyeon Lee, Junhyuk Hyun, Hongje Seong, and Euntai Kim. Unsupervised domain adaptation for semantic segmentation by content transfer. In Proc. of AAAI, pages 8306-8315, 2021.
  20. [Li and Li, 2021] Wei Li and Zhixin Li. Domain adaptative semantic segmentation by alleviating long-tail problem. In Proc. of IJCNN, pages 1-8, 2021.
  21. [Li et al., 2022] Ruihuang Li, Shuai Li, Chenhang He, Yabin Zhang, Xu Jia, and Lei Zhang. Class-balanced pixel-level self-labeling for domain adaptive semantic segmentation. In Proc. of CVPR, pages 11583-11593, 2022.
  22. [Li et al., 2023] Tianyu Li, Subhankar Roy, Huayi Zhou, Hongtao Lu, and Stéphane Lathuilière. Contrast, stylize and adapt: Unsupervised contrastive learning framework for domain adaptive semantic segmentation. In Proc. of CVPR, pages 4869-4879, 2023.
  23. [Li et al., 2025a] Wangkai Li, Rui Sun, Bohao Liao, Zhaoyang Li, and Tianzhu Zhang. Balanced learning for domain adaptive semantic segmentation. In Proc. of ICML, 2025.
  24. [Li et al., 2025b] Wangkai Li, Rui Sun, Huayu Mai, and Tianzhu Zhang. Towards unsupervised domain bridging via image degradation in semantic segmentation. In Proc. of NeurIPS, 2025.
  25. [Long et al., 2015] Jonathan Long, Evan Shelhamer, and Trevor Darrell. Fully convolutional networks for semantic segmentation. In Proc. of CVPR, pages 3431-3440, 2015.
  26. [Luo et al., 2022a] Cheng Luo, Qinliang Lin, Weicheng Xie, Bizhu Wu, Jinheng Xie, and Linlin Shen. Frequency- driven imperceptible adversarial attack on semantic sim- ilarity. In Proc. of CVPR, pages 15294-15303, 2022.
  27. [Luo et al., 2022b] Yawei Luo, Ping Liu, Liang Zheng, Tao Guan, Junqing Yu, and Yi Yang. Category-level adver- sarial adaptation for semantic segmentation using purified features. IEEE Trans. Pattern Anal. Mach. Intell., pages 3940-3956, 2022.
  28. [Mata et al., 2024] Cristina Mata, Kanchana Ranasinghe, and Michael S. Ryoo. Copt: Unsupervised domain adap- tive segmentation using domain-agnostic text embeddings. In Proc. of ECCV, pages 424-440, 2024.
  29. [Ren et al., 2024] Qinghua Ren, Qirong Mao, and Shijian Lu. Prototypical bidirectional adaptation and learning for cross-domain semantic segmentation. IEEE Trans. Mul- tim., pages 501-513, 2024.
  30. [Richter et al., 2016] Stephan R. Richter, Vibhav Vineet, Stefan Roth, and Vladlen Koltun. Playing for data: Ground truth from computer games. In Proc. of ECCV, pages 102-118, 2016.
  31. [Ronneberger et al., 2015] Olaf Ronneberger, Philipp Fis- cher, and Thomas Brox. U-net: Convolutional networks for biomedical image segmentation. In Medical Image Computing and Computer-Assisted Intervention -MICCAI 2015 -18th International Conference Munich, Germany, October 5 -9, 2015, Proceedings, Part III, pages 234-241, 2015.
  32. [Ros et al., 2016] Germán Ros, Laura Sellart, Joanna Materzynska, David Vázquez, and Antonio M. López. The SYNTHIA dataset: A large collection of synthetic images for semantic segmentation of urban scenes. In Proc. of CVPR, pages 3234-3243, 2016.
  33. [Sra, 2012] Suvrit Sra. A short note on parameter approx- imation for von mises-fisher distributions: and a fast im- plementation of I s (x). Comput. Stat., pages 177-190, 2012.
  34. [Toldo et al., 2020] Marco Toldo, Andrea Maracani, Um- berto Michieli, and Pietro Zanuttigh. Unsupervised do- main adaptation in semantic segmentation: a review. CoRR, 2020.
  35. [Tranheden et al., 2021] Wilhelm Tranheden, Viktor Olsson, Juliano Pinto, and Lennart Svensson. DACS: domain adaptation via cross-domain mixed sampling. In Proc. of WACV, pages 1378-1388, 2021.
  36. [Vayyat et al., 2022] Midhun Vayyat, Jaswin Kasi, Anu- raag Bhattacharya, Shuaib Ahmed, and Rahul Tallamraju. CLUDA : Contrastive learning in unsupervised domain adaptation for semantic segmentation. CoRR, 2022.
  37. [Vu et al., 2019] Tuan-Hung Vu, Himalaya Jain, Maxime Bucher, Matthieu Cord, and Patrick Pérez. ADVENT: ad- versarial entropy minimization for domain adaptation in semantic segmentation. In Proc. of CVPR, pages 2517- 2526, 2019.
  38. [Wang et al., 2021] Jiaqi Wang, Wenwei Zhang, Yuhang Zang, Yuhang Cao, Jiangmiao Pang, Tao Gong, Kai Chen, Ziwei Liu, Chen Change Loy, and Dahua Lin. Seesaw loss for long-tailed instance segmentation. In Proc. of CVPR, pages 9695-9704, 2021.
  39. [Xie et al., 2021] Enze Xie, Wenhai Wang, Zhiding Yu, An- ima Anandkumar, José M. Álvarez, and Ping Luo. Seg- former: Simple and efficient design for semantic seg- mentation with transformers. In Proc. of NeurIPS, pages 12077-12090, 2021.
  40. [Xie et al., 2023] Binhui Xie, Shuang Li, Mingjia Li, Chi Harold Liu, Gao Huang, and Guoren Wang. Sepico: Semantic-guided pixel contrast for domain adaptive se- mantic segmentation. IEEE Trans. Pattern Anal. Mach. Intell., pages 9004-9021, 2023.
  41. [Zhang et al., 2018] Hang Zhang, Kristin J. Dana, Jianping Shi, Zhongyue Zhang, Xiaogang Wang, Ambrish Tyagi, and Amit Agrawal. Context encoding for semantic seg- mentation. In Proc. of CVPR, pages 7151-7160, 2018.
  42. [Zhang et al., 2021] Pan Zhang, Bo Zhang, Ting Zhang, Dong Chen, Yong Wang, and Fang Wen. Prototypical pseudo label denoising and target structure learning for do- main adaptive semantic segmentation. In Proc. of CVPR, pages 12414-12424, 2021.
  43. [Zhao et al., 2024] Xingchen Zhao, Niluthpol Chowdhury Mithun, Abhinav Rajvanshi, Han-Pang Chiu, and Supun Samarasekera. Unsupervised domain adaptation for se- mantic segmentation with pseudo label self-refinement. In IEEE/CVF Winter Conference on Applications of Com- puter Vision, WACV 2024, Waikoloa, HI, USA, January 3-8, 2024, pages 2388-2398, 2024.
  44. [Zheng et al., 2021] Sixiao Zheng, Jiachen Lu, Hengshuang Zhao, Xiatian Zhu, Zekun Luo, Yabiao Wang, Yanwei Fu, Jianfeng Feng, Tao Xiang, Philip H. S. Torr, and Li Zhang. Rethinking semantic segmentation from a sequence-to- sequence perspective with transformers. In Proc. of CVPR, pages 6881-6890, 2021.
  45. [Zou et al., 2018] Yang Zou, Zhiding Yu, B. V. K. Vijaya Kumar, and Jinsong Wang. Unsupervised domain adap- tation for semantic segmentation via class-balanced self- training. In Proc. of ECCV, pages 297-313, 2018.
  46. [Zou et al., 2019] Yang Zou, Zhiding Yu, Xiaofeng Liu, B. V. K. Vijaya Kumar, and Jinsong Wang. Confidence regularized self-training. In Proc. of ICCV, pages 5981- 5990, 2019.

References were extracted automatically from the PDF and may contain errors.

Welcome Future Conferences AI Journal Division IJCAI Proceedings About IJCAI IJCAI Awards