English

MP-Former: Mask-Piloted Transformer for Image Segmentation

Computer Vision and Pattern Recognition 2023-03-16 v2

Abstract

We present a mask-piloted Transformer which improves masked-attention in Mask2Former for image segmentation. The improvement is based on our observation that Mask2Former suffers from inconsistent mask predictions between consecutive decoder layers, which leads to inconsistent optimization goals and low utilization of decoder queries. To address this problem, we propose a mask-piloted training approach, which additionally feeds noised ground-truth masks in masked-attention and trains the model to reconstruct the original ones. Compared with the predicted masks used in mask-attention, the ground-truth masks serve as a pilot and effectively alleviate the negative impact of inaccurate mask predictions in Mask2Former. Based on this technique, our \M achieves a remarkable performance improvement on all three image segmentation tasks (instance, panoptic, and semantic), yielding +2.3+2.3AP and +1.6+1.6mIoU on the Cityscapes instance and semantic segmentation tasks with a ResNet-50 backbone. Our method also significantly speeds up the training, outperforming Mask2Former with half of the number of training epochs on ADE20K with both a ResNet-50 and a Swin-L backbones. Moreover, our method only introduces little computation during training and no extra computation during inference. Our code will be released at \url{https://github.com/IDEA-Research/MP-Former}.

Keywords

Cite

@article{arxiv.2303.07336,
  title  = {MP-Former: Mask-Piloted Transformer for Image Segmentation},
  author = {Hao Zhang and Feng Li and Huaizhe Xu and Shijia Huang and Shilong Liu and Lionel M. Ni and Lei Zhang},
  journal= {arXiv preprint arXiv:2303.07336},
  year   = {2023}
}

Comments

CVPR 2023

R2 v1 2026-06-28T09:14:45.350Z