Positive-Negative Equal Contrastive Loss for Semantic Segmentation
Not on the map. Why?
Abstract (arXiv)
The contextual information is critical for various computer vision tasks, previous works commonly design plug-and-play modules and structural losses to effectively extract and aggregate the global context. These methods utilize fine-label to optimize the model but ignore that fine-trained features are also precious training resources, which can introduce preferable distribution to hard pixels (i.e., misclassified pixels). Inspired by contrastive learning in unsupervised paradigm, we apply the contrastive loss in a supervised manner and re-design the loss function to cast off the stereotype of unsupervised learning (e.g., imbalance of positives and negatives, confusion of anchors computing). To this end, we propose Positive-Negative Equal contrastive loss (PNE loss), which increases the latent impact of positive embedding on the anchor and treats the positive as well as negative sample pairs equally. The PNE loss can be directly plugged right into existing semantic segmentation frameworks and leads to excellent performance with neglectable extra computational costs. We utilize a number of classic segmentation methods (e.g., DeepLabV3, HRNetV2, OCRNet, UperNet) and backbone (e.g., ResNet, HRNet, Swin Transformer) to conduct comprehensive experiments and achieve state-of-the-art performance on three benchmark datasets (e.g., Cityscapes, COCO-Stuff and ADE20K). Our code will be publicly available soon.
Key facts. Cited by 5 papers in the map (data through 7 Oct 2026). Builds on 50 of its 58 references that are in the map. First posted on arXiv 4 Jul 2022.
Builds on
50 of 58 references.
References · 50
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,160
- 2015U-Net: Convolutional Networks for Biomedical Image Segmentationcited by 19,604
- 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,082
- 2020A Simple Framework for Contrastive Learning of Visual Representationscited by 11,979
- 2015Distilling the Knowledge in a Neural Networkcited by 10,076
- 2018Representation Learning with Contrastive Predictive Codingcited by 7,662
- 2019Momentum Contrast for Unsupervised Visual Representation Learningcited by 7,482
- 2015Rethinking the Inception Architecture for Computer Visioncited by 5,451
- 2014Fully Convolutional Networks for Semantic Segmentationcited by 4,845
- 2016DeepLab: Semantic Image Segmentation with Deep Convolutional Nets, Atrous Convolution, and Fully Connected CRFscited by 3,239
- 2018Encoder-Decoder with Atrous Separable Convolution for Semantic Image Segmentationcited by 3,210
38 more
- 2020Supervised Contrastive Learningcited by 2,803
- 2016Pyramid Scene Parsing Networkcited by 2,472
- 2017Non-local Neural Networkscited by 2,290
- 2020Improved Baselines with Momentum Contrastive Learningcited by 2,282
- 2017Rethinking Atrous Convolution for Semantic Image Segmentationcited by 2,154
- 2018Unsupervised Feature Learning via Non-Parametric Instance-level Discriminationcited by 1,838
- 2015SegNet: A Deep Convolutional Encoder-Decoder Architecture for Image Segmentationcited by 1,483
- 2020Big Self-Supervised Models are Strong Semi-Supervised Learnerscited by 1,375
- 2020Rethinking Semantic Segmentation from a Sequence-to-Sequence Perspective with Transformerscited by 1,368
- 2018Unified Perceptual Parsing for Scene Understandingcited by 1,265
- 2015Multi-Scale Context Aggregation by Dilated Convolutionscited by 1,128
- 2018Dual Attention Network for Scene Segmentationcited by 1,001
- 2021Segmenter: Transformer for Semantic Segmentationcited by 855
- 2019Self-Supervised Learning of Pretext-Invariant Representationscited by 806
- 2014Spatial Pyramid Pooling in Deep Convolutional Networks for Visual Recognitioncited by 719
- 2018CCNet: Criss-Cross Attention for Semantic Segmentationcited by 717
- 2020Contrastive Learning with Hard Negative Samplescited by 619
- 2019Segmentation Transformer: Object-Contextual Representations for Semantic Segmentationcited by 573
- 2020Dense Contrastive Learning for Self-Supervised Visual Pre-Trainingcited by 512
- 2016RefineNet: Multi-Path Refinement Networks for High-Resolution Semantic Segmentationcited by 463
- 2020Understanding the Behaviour of Contrastive Losscited by 397
- 2020Contrastive learning of global and local features for medical image segmentation with limited annotationscited by 309
- 2020Propagate Yourself: Exploring Pixel-Level Consistency for Unsupervised Visual Representation Learningcited by 297
- 2018Context Encoding for Semantic Segmentationcited by 289
- 2021Exploring Cross-Image Pixel Contrast for Semantic Segmentationcited by 242
- 2019High-Resolution Representations for Labeling Pixels and Regionscited by 211
- 2022Rethinking Semantic Segmentation: A Prototype Viewcited by 140
- 2021SG-Net: Spatial Granularity Network for One-Stage Video Instance Segmentationcited by 87
- 2022Deep Hierarchical Semantic Segmentationcited by 84
- 2019ACFNet: Attentional Class Feature Network for Semantic Segmentationcited by 75
- 2020Cars Can't Fly up in the Sky: Improving Urban-Scene Segmentation via Height-driven Attention Networkscited by 70
- 2019Semantic Correlation Promoted Shape-Variant Context for Segmentationcited by 61
- 2019Adaptive Context Network for Scene Parsingcited by 51
- 2019Region Mutual Information Loss for Semantic Segmentationcited by 49
- 2018Adaptive Affinity Fields for Semantic Segmentationcited by 48
- 2021Mining Contextual Information Beyond Image for Semantic Segmentationcited by 48
- 2020Spatial Pyramid Based Graph Reasoning for Semantic Segmentationcited by 47
- 2021Revisiting the Transferability of Supervised Pretraining: an MLP Perspectivecited by 36
Built on by
Citing papers per year: 2022: 1; 2023: 0; 2024: 1; 2025: 3.
5 papers.
- 2024CLAMP-ViT: Contrastive Data-Free Learning for Adaptive Post-Training Quantization of ViTscited by 17
- 2022CLUDA : Contrastive Learning in Unsupervised Domain Adaptation for Semantic Segmentationcited by 13
- 2025OuroMamba: A Data-Free Quantization Framework for Vision Mambacited by 5
- 2025AIRCHITECT v2: Learning the Hardware Accelerator Design Space through Unified Representationscited by 1
- 2025Learning Robust Heterogeneous Graph Representations via Contrastive-Reconstruction under Sparse Semanticscited by 0
- 2025Learning Robust Heterogeneous Graph Representations via Contrastive-Reconstruction under Sparse Semantics7 Jun 2025
- 2025OuroMamba: A Data-Free Quantization Framework for Vision Mamba13 Mar 2025
- 2025AIRCHITECT v2: Learning the Hardware Accelerator Design Space through Unified Representations17 Jan 2025
- 2024CLAMP-ViT: Contrastive Data-Free Learning for Adaptive Post-Training Quantization of ViTs7 Jul 2024
- 2022CLUDA : Contrastive Learning in Unsupervised Domain Adaptation for Semantic Segmentation27 Aug 2022