# ContrastMask: Contrastive Learning to Segment Every Thing

Source: [ContrastMask: Contrastive Learning to Segment Every Thing](<https://www.sota2.com/research/paper/68fa6c0f1e209131cea31d0d>)

Collection index: [llms.txt](<https://www.sota2.com/research/llms.txt>)

Data updated: 2026-01-04T05:12:12.992Z

Authors: Xuehui Wang, Kai Zhao, Ruixin Zhang, Shouhong Ding, Yan Wang, Wei Shen

Published: 2022-03-18T07:41:48.000Z

## Abstract

Partially-supervised instance segmentation is a task which requests segmenting objects from novel unseen categories via learning on limited seen categories with annotated masks thus eliminating demands of heavy annotation burden. The key to addressing this task is to build an effective class-agnostic mask segmentation model. Unlike previous methods that learn such models only on seen categories, in this paper, we propose a new method, named ContrastMask, which learns a mask segmentation model on both seen and unseen categories under a unified pixel-level contrastive learning framework. In this framework, annotated masks of seen categories and pseudo masks of unseen categories serve as a prior for contrastive learning, where features from the mask regions (foreground) are pulled together, and are contrasted against those from the background, and vice versa. Through this framework, feature discrimination between foreground and background is largely improved, facilitating learning of the class-agnostic mask segmentation model. Exhaustive experiments on the COCO dataset demonstrate the superiority of our method, which outperforms previous state-of-the-arts.

## Recorded benchmark results

A research result applies to its stated dataset, split, metric and evaluation configuration. Compare like-for-like settings, preserve the metric's unit and direction, and distinguish paper-reported results from independent reproduction. The best result recorded here is not a claim of exhaustive, current global coverage.

- [Instance Segmentation on COCO non-VOC categories](<https://www.sota2.com/research/sota/instance-segmentation-on-coco-non-voc-categories.md>): Instance Segmentation; COCO non-VOC categories; mAP: 39.7.

## Original sources and implementation

[Original paper](<https://arxiv.org/abs/2203.09775>)

[PDF](<https://arxiv.org/pdf/2203.09775.pdf>)
