Exploring Cross-Image Pixel Contrast for Semantic Segmentation

Wenguan Wang, Tianfei Zhou, Fisher Yu, Jifeng Dai, Ender Konukoglu +1 more
1/28/2021
cs.CV

Official code: tfzhou/ContrastiveSeg (693 stars, MIT, last commit 2022-10-13).

Abstract

Current semantic segmentation methods focus only on mining "local" context, i.e., dependencies between pixels within individual images, by context-aggregation modules (e.g., dilated convolution, neural attention) or structure-aware optimization criteria (e.g., IoU-like loss). However, they ignore "global" context of the training data, i.e., rich semantic relations between pixels across different images. Inspired by the recent advance in unsupervised contrastive representation learning, we propose a pixel-wise contrastive framework for semantic segmentation in the fully supervised setting. The core idea is to enforce pixel embeddings belonging to a same semantic class to be more similar than embeddings from different classes. It raises a pixel-wise metric learning paradigm for semantic segmentation, by explicitly exploring the structures of labeled pixels, which were rarely explored before. Our method can be effortlessly incorporated into existing segmentation frameworks without extra overhead during testing. We experimentally show that, with famous segmentation models (i.e., DeepLabV3, HRNet, OCR) and backbones (i.e., ResNet, HR-Net), our method brings consistent performance improvements across diverse datasets (i.e., Cityscapes, PASCAL-Context, COCO-Stuff, CamVid). We expect this work will encourage our community to rethink the current de facto training paradigm in fully supervised semantic segmentation.

View on arXivView PDF

Code Implementations(1)

MIT

ICCV2021 (Oral) - Exploring Cross-Image Pixel Contrast for Semantic Segmentation

69388C, C++Jan 26, 20214 years agoMIT
cityscapescontrastive-learninghard-example-miningpascal-contextpixel-contrast+1 more

Cite this paper

@article{wang2021exploring,
  title  = {Exploring Cross-Image Pixel Contrast for Semantic Segmentation},
  author = {Wenguan Wang and Tianfei Zhou and Fisher Yu and Jifeng Dai and Ender Konukoglu and Luc Van Gool},
  year   = {2021},
  eprint = {2101.11939},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2101.11939}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2101.11939.svg)](https://codeofpaper.com/paper/2101.11939)

Discussion