MP-Former: Mask-Piloted Transformer for Image Segmentation

Hao Zhang, Feng Li, Huaizhe Xu, Shijia Huang, Siyi Liu +2 more
2/14/2026

No official code found. Best implementation: IDEA-Research/MP-Former (142 stars, last commit 2023-10-22).

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 MP-Former achieves a remarkable performance improvement on all three image segmentation tasks (instance, panoptic, and semantic), yielding +2.3AP and +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 https://github.com/IDEA-Research/MP-Former.

View on arXivView PDF

Code Implementations(1)

[CVPR 2023] Official implementation of the paper: MP-Former: Mask-Piloted Transformer for Image Segmentation

1427C++, CudaMar 13, 20233 years agoNOASSERTION

Similar Papers

Cite this paper

@article{zhang2026mpformer,
  title  = {MP-Former: Mask-Piloted Transformer for Image Segmentation},
  author = {Hao Zhang and Feng Li and Huaizhe Xu and Shijia Huang and Siyi Liu and L. Ni and Lei Zhang},
  year   = {2026},
  eprint = {2303.07336},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/pdf/2303.07336},
  journal = {CVPR 2023 2023}
}

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/2303.07336.svg)](https://codeofpaper.com/paper/2303.07336)

Discussion