PEM: Prototype-Based Efficient MaskFormer for Image Segmentation

Niccolò Cavagnero, Gabriele Rosi, Claudia Cuttano, Francesca Pistilli, Marco Ciccone +2 more
2/9/2026

No official code found. Best implementation: NiccoloCavagnero/PEM (130 stars, last commit 2025-03-10).

Abstract

Recent transformer-based architectures have shown impressive results in the field of image segmentation. Thanks to their flexibility, they obtain outstanding performance in multiple segmentation tasks, such as semantic and panoptic, under a single unified framework. To achieve such impressive performance, these architectures employ intensive operations and require substantial computational resources, which are often not available, especially on edge devices. To fill this gap, we propose Prototype-based Efficient Mask-Former (PEM), an efficient transformer-based architecture that can operate in multiple segmentation tasks. PEM proposes a novel prototype-based cross-attention which leverages the redundancy of visual features to restrict the computation and improve the efficiency without harming the performance. In addition, PEM introduces an efficient multi-scale feature pyramid network, capable of extracting features that have high semantic content in an efficient way, thanks to the combination of deformable convolutions and context-based self-modulation. We benchmark the proposed PEM architecture on two tasks, semantic and panoptic segmentation, evaluated on two different datasets, Cityscapes and ADE20K. PEM demonstrates outstanding performance on every task and dataset, outperforming task-specific architectures while being comparable and even better than computationally expensive baselines. Code is available at https://github.com/NiccoloCavagnero/PEM.

View on arXivView PDF

Code Implementations(1)

[CVPR 2024] PEM: Prototype-based Efficient MaskFormer for Image Segmentation

1309Shell, PythonFeb 27, 20241 years ago

Similar Papers

Cite this paper

@article{cavagnero2026pem,
  title  = {PEM: Prototype-Based Efficient MaskFormer for Image Segmentation},
  author = {Niccolò Cavagnero and Gabriele Rosi and Claudia Cuttano and Francesca Pistilli and Marco Ciccone and Giuseppe Averta and Fabio Cermelli},
  year   = {2026},
  eprint = {2402.19422},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/pdf/2402.19422},
  journal = {CVPR 2024 2024}
}

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

Discussion