Masked-attention Mask Transformer for Universal Image Segmentation

Image segmentation is about grouping pixels with different semantics, e.g., category or instance membership, where each choice of semantics defines a task. While only the semantics of each task differ, current research focuses on designing specialized architectures for each task. We present Masked-attention Mask Transformer (Mask2Former), a new architecture capable of addressing any image segmentation task (panoptic, instance or semantic). Its key components include masked attention, which extracts localized features by constraining cross-attention within predicted mask regions. In addition to reducing the research effort by at least three times, it outperforms the best specialized architectures by a significant margin on four popular datasets. Most notably, Mask2Former sets a new state-of-the-art for panoptic segmentation (57.8 PQ on COCO), instance segmentation (50.1 AP on COCO) and semantic segmentation (57.7 mIoU on ADE20K).

PDF Abstract CVPR 2022 PDF CVPR 2022 Abstract
Task Dataset Model Metric Name Metric Value Global Rank Result Benchmark
Semantic Segmentation ADE20K Mask2Former(Swin-B) Validation mIoU 55.1 # 44
Semantic Segmentation ADE20K Mask2Former (SwinL) Validation mIoU 57.3 # 27
Semantic Segmentation ADE20K Mask2Former (SwinL-FaPN) Validation mIoU 57.7 # 21
Semantic Segmentation ADE20K Mask2Former (Swin-L-FaPN) Validation mIoU 56.4 # 34
Panoptic Segmentation ADE20K val Mask2Former (Swin-L) PQ 48.1 # 15
AP 34.2 # 11
mIoU 54.5 # 15
Semantic Segmentation ADE20K val Mask2Former (Swin-L-FaPN) mIoU 56.4 # 23
Panoptic Segmentation ADE20K val Mask2Former (ResNet-50, 640x640) AP 26.5 # 13
mIoU 46.1 # 17
PQ 39.7 # 19
Panoptic Segmentation ADE20K val Mask2Former (Swin-L + FAPN, 640x640) PQ 46.2 # 16
AP 33.2 # 12
mIoU 55.4 # 12
Instance Segmentation ADE20K val Mask2Former (Swin-L, single-scale) AP 34.9 # 9
APS 16.3 # 4
APM 40 # 4
APL 54.7 # 5
Panoptic Segmentation ADE20K val Panoptic-DeepLab (SwideRNet) PQ 37.9 # 20
mIoU 50 # 16
Instance Segmentation ADE20K val Mask2Former (ResNet-50) APM 28.9 # 7
APL 43.1 # 7
Instance Segmentation ADE20K val Mask2Former (Swin-L + FAPN) AP 33.4 # 10
APS 14.6 # 6
APM 37.6 # 6
APL 54.6 # 6
Instance Segmentation ADE20K val Mask2Former (ResNet50) AP 26.4 # 11
APS 10.4 # 7
Semantic Segmentation ADE20K val Mask2Former (Swin-L-FaPN, multiscale) mIoU 57.7 # 16
Instance Segmentation Cityscapes val Mask2Former (Swin-L, single-scale) mask AP 43.7 # 9
Semantic Segmentation Cityscapes val Mask2Former (Swin-L) mIoU 84.3 # 15
Panoptic Segmentation Cityscapes val Mask2Former (Swin-L) PQ 66.6 # 14
mIoU 82.9 # 13
AP 43.6 # 12
Instance Segmentation Cityscapes val Mask2Former (Swin-B) mask AP 42 # 10
Instance Segmentation Cityscapes val Mask2Former (Swin-S) mask AP 41.8 # 11
Instance Segmentation Cityscapes val Mask2Former (Swin-T) mask AP 39.7 # 13
Instance Segmentation Cityscapes val Mask2Former (ResNet-101) mask AP 38.5 # 14
Instance Segmentation Cityscapes val Mask2Former (ResNet-50) mask AP 37.4 # 15
Panoptic Segmentation COCO minival Mask2Former (single-scale) PQ 57.8 # 14
PQth 64.2 # 8
PQst 48.1 # 9
AP 48.6 # 8
Instance Segmentation COCO minival Mask2Former (Swin-L) mask AP 50.1 # 24
Instance Segmentation COCO test-dev Mask2Former (Swin-L, single scale) mask AP 50.5 # 19
AP50 74.9 # 6
AP75 54.9 # 5
APS 29.1 # 10
APM 53.8 # 5
APL 71.2 # 2
Panoptic Segmentation COCO test-dev Mask2Former (Swin-L) PQ 58.3 # 3
PQst 48.1 # 3
PQth 65.1 # 1
Instance Segmentation COCO val (panoptic labels) Mask2Former (Swin-L, single-scale) AP 49.1 # 3
Semantic Segmentation Mapillary val Mask2Former (Swin-L, multiscale) mIoU 64.7 # 3
Semantic Segmentation MS COCO MaskFormer (Swin-L, single-scale) mIoU 64.8 # 5
Semantic Segmentation MS COCO Mask2Former (Swin-L, single-scale) mIoU 67.4 # 3

Methods