Skip to main content
QUICK REVIEW

[Paper Review] MP-Former: Mask-Piloted Transformer for Image Segmentation

Hao Zhang, Feng Li|arXiv (Cornell University)|Mar 13, 2023
Advanced Neural Network ApplicationsComputer Science6 citations
TL;DR

MP-Former introduces a mask-piloted training approach that improves Mask2Former by feeding noised ground-truth masks as attention masks in all decoder layers, enabling the model to reconstruct accurate predictions. This reduces inconsistent mask predictions across layers, boosts query utilization, and achieves +2.3 AP and +1.6 mIoU on Cityscapes with ResNet-50, while halving training time and adding negligible computation during inference.

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$AP and $+1.6$mIoU 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}.

Motivation & Objective

  • To address inconsistent mask predictions between consecutive decoder layers in Mask2Former, which degrade optimization and reduce query utilization.
  • To improve masked-attention in Transformers for image segmentation by using ground-truth masks as a pilot signal during training.
  • To develop a training method that enhances performance without increasing inference cost or model complexity.
  • To accelerate training convergence while maintaining or improving segmentation accuracy on multiple benchmarks.

Proposed method

  • Divide decoder queries into a matching part (standard bipartite matching) and a mask-piloted (MP) part that uses ground-truth class embeddings and masks as queries and attention masks.
  • Train the MP part to reconstruct original ground-truth masks and labels from noised inputs, using point noise and label flipping to improve robustness.
  • Apply multi-layer mask-piloted training across all decoder layers to stabilize predictions and improve consistency.
  • Use coarse-to-fine feature maps in the decoder, with the largest feature map (1/8 resolution) used across all layers for improved feature refinement.
  • Introduce label-guided training by using class embeddings as queries in the MP part, enabling joint mask and class prediction recovery.
  • Apply noise augmentation (point, scaling, shifting) to ground-truth masks and labels to strengthen generalization and robustness.

Experimental results

Research questions

  • RQ1Does inconsistent mask prediction across decoder layers degrade performance in Mask2Former, and can this be quantified?
  • RQ2Can using ground-truth masks as a pilot signal in masked-attention improve prediction consistency and performance?
  • RQ3Does multi-layer mask-piloted training with noise augmentation lead to better query utilization and segmentation accuracy?
  • RQ4Can the proposed method reduce training steps while maintaining or exceeding Mask2Former’s performance?
  • RQ5Does the method introduce significant inference overhead or architectural changes?

Key findings

  • MP-Former achieves +2.3 AP and +1.6 mIoU on Cityscapes for instance and semantic segmentation using a ResNet-50 backbone.
  • On ADE20K, MP-Former with 36 epochs matches Mask2Former trained for 50 epochs, and with 80k steps it matches Mask2Former at 160k steps.
  • With Swin-L backbone, MP-Former achieves +1.1 AP on COCO instance segmentation after 72 epochs, outperforming Mask2Former.
  • The method improves layer-wise query utilization and mean IoU by a large margin, validating its effectiveness in reducing prediction inconsistency.
  • Adding point noise yields +0.3 AP improvement, while scaling and shifting noises show no benefit.
  • Using the largest feature map (1/8) across all layers outperforms coarse-to-fine feature maps in MP-Former, contrary to Mask2Former’s design.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.