Contextrast: Contextual Contrastive Learning for Semantic Segmentation
Changki Sung, Wanhee Kim, Jungho An, Wooju Lee, Hyungtae Lim, Hyun Myung
Abstract
Despite great improvements in semantic segmentation, challenges persist because of the lack of local/global contexts and the relationship between them. In this paper, we propose Contextrast, a contrastive learning-based semantic segmentation method that allows to capture local/global contexts and comprehend their relationships. Our proposed method comprises two parts: a) contextual contrastive learning (CCL) and b) boundary-aware negative (BANE) sampling. Contextual contrastive learning obtains local/global context from multi-scale feature aggregation and inter/intra-relationship of features for better discrimination capabilities. Meanwhile, BANE sampling selects embedding features along the boundaries of incorrectly predicted regions to employ them as harder negative samples on our contrastive learning, resolving segmentation issues along the boundary region by exploiting fine-grained details. We demonstrate that our Contextrast substantially enhances the performance of semantic segmentation networks, outper-forming state-of-the-art contrastive learning approaches on diverse public datasets, e.g. Cityscapes, CamVid, PASCALC, COCO-Stuff, and ADE20K, without an increase in computational cost during inference.
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 3b1ab9d9-dc2b-49ff-9106-33fec2a8ac09Cited by top-tier papers8
- Revisiting Efficient Semantic Segmentation: Learning Offsets for Better Spatial and Class Feature AlignmentShi-Chen Zhang, Yunheng Li, Yu-Huan Wu, Qibin Hou et al.ICCV 2025 · 8 citations
- GraspALL: Adaptive Structural Compensation from Illumination Variation for Robotic Garment Grasping in Any Low-Light ConditionsHaifeng Zhong, Wenshuo Han, Zhouyu Wang, Runyang Feng et al.CVPR 2026 · 2 citations
- Selective Contrastive Learning for Weakly Supervised Affordance GroundingWonJun Moon, Hyun Seok Seong, Jae-Pil HeoICCV 2025 · 1 citation
- ALLNet: Multi-task Dense Prediction for Degraded ImagesWeiran Wang, Jialing Wu, Yaqi Chang, Gang He et al.CVPR 2026
- Masked Representation Modeling for Domain-Adaptive SegmentationWenlve Zhou, Zhiheng Zhou, Tiantao Xian, Yikui Zhai et al.CVPR 2026
Builds on16
- Swin Transformer: Hierarchical Vision Transformer using Shifted WindowsZe Liu, Yutong Lin, Yue Cao, Han Hu et al.ICCV 2021 · 31,683 citations
- Supervised Contrastive LearningPrannay Khosla, Piotr Teterwak, Chen Wang, Aaron Sarna et al.NeurIPS 2020 · 7,049 citations
- Hard Negative Mixing for Contrastive LearningYannis Kalantidis, Mert Bülent Sariyildiz, Noé Pion, Philippe Weinzaepfel et al.NeurIPS 2020 · 805 citations
- Exploring Cross-Image Pixel Contrast for Semantic SegmentationWenguan Wang, Tianfei Zhou, Fisher Yu, Jifeng Dai et al.ICCV 2021 · 568 citations
- Targeted Supervised Contrastive Learning for Long-Tailed RecognitionTianhong Li, Peng Cao, Yuan Yuan, Lijie Fan et al.CVPR 2022 · 196 citations
Related papers
- Region-aware Contrastive Learning for Semantic SegmentationHanzhe Hu, Jinshi Cui, Liwei WangICCV 2021 · 132 citations
- Unsupervised Representation for Semantic Segmentation by Implicit Cycle-Attention Contrastive LearningBo Pang, Yizhuo Li, Yifan Zhang, Gao Peng et al.AAAI 2022 · 10 citations
- Semantic Information in Contrastive LearningShengjiang Quan, Masahiro Hirano, Yuji YamakawaICCV 2023 · 4 citations
- Confidence-Aware Contrastive Learning for Semantic SegmentationLele Lv, Qing Liu, Shichao Kan, Yixiong LiangACM MM 2023 · 3 citations
- Edge Guided GANs with Contrastive Learning for Semantic Image SynthesisHao Tang, Xiaojuan Qi, Guolei Sun, Dan Xu et al.ICLR 2023 · 2 citations
