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

语义分割的正负等对比损失法

Positive-Negative Equal Contrastive Loss for Semantic Segmentation

University of Science and Technology Beijing(北京科技大学)

Jing Wang, Jiangyun Li, Wei Li, Lingfei Xuan, Tianxiang Zhang, Wenxuan Wang

摘要:

背景信息对于各种计算机视觉任务至关重要,以前的工作通常设计即插即用模块和结构损失来有效地提取和聚合全局背景。这些方法利用精细标记来优化模型,但忽略了精细训练的特征也是宝贵的训练资源,其可以向硬像素引入优选分布(即,误分类像素)。受无监督模式下对比学习的启发,我们以监督的方式应用对比损失,并重新设计损失函数,以摆脱无监督学习的刻板印象(例如,正负不平衡,锚计算混乱)。为此,我们提出了正负相等对比损失(PNE损失),它增加了正嵌入对锚点的潜在影响,并平等对待正样本和负样本对。PNE损失可以直接插入到现有的语义分割框架中,并以可忽略的额外计算成本获得出色的性能。我们利用许多经典的分割方法(例如,DeepLabV 3、HRNetV 2、OCRNet、UperNet)和主干(例如,ResNet、HRNet、Swin Transformer)进行全面的实验,并在三个基准数据集(例如,Cityscapes、COCO-Stuff和ADE20K)。我们的代码将很快公开。

英文摘要:

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.

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

↑