Panoptic SegFormer: Delving Deeper into Panoptic Segmentation with Transformers

Li Zhiqi, Wenhai Wang, Enze Xie, Zhiding Yu, Anima Anandkumar, Jose M. Alvarez, Ping Luo, Tong Lu · OpenReview

Abstract

Panoptic segmentation involves a combination of joint semantic segmentation and instance segmentation, where image contents are divided into two types: things and stuff. We present Panoptic SegFormer, a general framework for panoptic segmentation with transformers. It contains three innovative components: an efficient deeply-supervised mask decoder, a query decoupling strategy, and an improved post-processing method. We also use Deformable DETR to efficiently process multi-scale features, which is a fast and efficient version of DETR. Specifically, we supervise the attention modules in the mask decoder in a layer-wise manner. This deep supervision strategy lets the attention modules quickly focus on meaningful semantic regions. It improves performance and reduces the number of required training epochs by half compared to Deformable DETR. Our query decoupling strategy decouples the responsibilities of the query set and avoids mutual interference between things and stuff. In addition, our post-processing strategy improves performance without additional costs by jointly considering classification and segmentation qualities to resolve conflicting mask overlaps. Our approach increases the accuracy 6.2% PQ over the baseline DETR model. Panoptic SegFormer achieves state-of-the-art results on COCO test-dev with 56.2% PQ. It also shows stronger zero-shot robustness over existing methods.

Introduction

Panoptic segmentation is often considered the "holy grail" of scene understanding, requiring a model to simultaneously perform instance segmentation (identifying individual "things" like cars or people) and semantic segmentation (identifying amorphous "stuff" like sky or grass). While recent Transformer-based models like DETR simplified this by using a unified query set, they introduced challenges such as slow convergence, blurry object boundaries, and interference between thing and stuff representations. Panoptic SegFormer addresses these issues by introducing architectural innovations that decouple query responsibilities and supervise the learning process more effectively.

Methodology

Panoptic SegFormer builds upon the Deformable DETR architecture, incorporating three primary innovations to enhance performance and efficiency.

The Panoptic SegFormer architecture includes a backbone, transformer encoder, and specialized decoders for location and masks.

Query Decoupling Strategy

Instead of a unified query pool, Panoptic SegFormer employs two distinct sets. "Thing" queries are matched to ground truth via bipartite matching, while "stuff" queries are assigned to specific semantic classes in a fixed manner. This separation prevents the distinct logical requirements of object detection and region segmentation from interfering with each other.

Deeply-Supervised Mask Decoder

To accelerate convergence, the model supervises the attention maps at every layer of the mask decoder. By using a lightweight fully connected head to generate intermediate masks from these attention maps, the model is forced to focus on semantically relevant regions much earlier in the training process. This strategy allows the model to converge 2x to 10x faster than previous methods.

Mask-Wise Merging

Traditional pixel-wise argmax post-processing often produces artifacts in overlapping regions. The authors propose a "mask-wise merging" strategy that resolves overlaps by jointly considering classification probability and predicted mask quality. This approach improved Panoptic Quality (PQ) by 1.3% without additional training costs.

Experimental Results

The framework was evaluated on COCO 2017, ADE20K, and the corrupted COCO-C datasets.

Panoptic SegFormer achieves state-of-the-art results on COCO, outperforming models like MaskFormer and K-Net in both accuracy and parameter efficiency.

State-of-the-Art Performance

Panoptic SegFormer achieved a record-breaking 56.2% PQ on the COCO test-dev set. As shown in the performance comparison, it maintains a superior trade-off between accuracy and parameter efficiency compared to existing methods like MaskFormer and K-Net.

Efficiency and Robustness

The model demonstrates remarkable training efficiency, reaching 48.0% PQ on COCO in just 12 epochs with a ResNet-50 backbone—a fraction of the 300 epochs required by previous state-of-the-art models. Additionally, on the COCO-C benchmark, the Swin-L variant outperformed MaskFormer by 5.5% PQ, highlighting the robustness of the transformer-based decoder against image corruptions like noise and weather effects.

Conclusion

Panoptic SegFormer advances the state of panoptic segmentation by introducing query decoupling and deep supervision within a transformer framework. These innovations lead to faster convergence, higher accuracy, and improved robustness. While inference speed remains a focus for future optimization, the model's ability to handle complex scenes with high fidelity sets a new benchmark for the field.

Summary updated

BibTeX
@misc{zhiqi2021panoptic,
  author = {Li Zhiqi and Wenhai Wang and Enze Xie and Zhiding Yu and Anima Anandkumar and Jose M. Alvarez and Ping Luo and Tong Lu},
  title = {{Panoptic SegFormer: Delving Deeper into Panoptic Segmentation with Transformers}},
  year = {2021},
  eprint = {2109.03814},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2109.03814},
}
Figure