Learning Category- and Instance-Aware Pixel Embedding for Fast Panoptic Segmentation

Naiyu Gao, Yanhu Shan, Xin Zhao, Kaiqi Huang

Abstract

Panoptic segmentation traditionally relies on complex, two-stage "detect-then-fuse" pipelines that are computationally expensive and prone to boundary inconsistencies. This paper proposes a simplified, one-stage framework that treats "thing" and "stuff" classes consistently through a novel Category- and Instance-Aware Pixel Embedding (CIAE). By mapping pixels into a unified feature space where instances and categories are naturally clustered, the model achieves high-quality segmentation via simple similarity checks. Our approach matches the accuracy of state-of-the-art two-stage models while significantly improving inference speed, reaching 20 FPS on the COCO dataset.

Introduction

Panoptic Segmentation (PS) represents a comprehensive scene parsing task, requiring the simultaneous recognition of individual objects ("things") and amorphous background regions ("stuff"). Conventional methods typically employ separate branches for instance and semantic segmentation, necessitating heuristic fusion rules to resolve pixel-level conflicts. These dual-branch architectures are often slow and lack a unified representation. This research introduces a one-stage framework built upon the FCOS (Fully Convolutional One-Stage) detector that replaces heuristic fusion with a single, unified embedding space.

Methodology: Category- and Instance-Aware Pixel Embedding (CIAE)

The core innovation of this work is the CIAE, which maps every pixel into a feature space designed for both category and instance discrimination. Unlike traditional methods that produce separate masks, our model learns to cluster pixels belonging to the same instance or "stuff" category together while pushing different identities apart.

Illustration of different embedding strategies. CIAE (d) combines category-level partitioning with instance-level clustering to create a unified space.

Architecture and Inference

The model consists of a Proposal Head that predicts bounding boxes and unique "query embeddings" for detected instances, and an Embedding Branch that generates a high-resolution pixel-wise embedding map. To handle "stuff" classes, the model maintains "memory embeddings"—representative vectors for categories like sky or grass updated during training.

At test time, segmentation is performed by calculating the cosine similarity between the pixel embedding map and the set of query embeddings (derived from both detected boxes and category memory). Each pixel is assigned to the identity with the highest similarity. This process reduces complex fusion to a highly optimized matrix multiplication, significantly lowering computational overhead.

Experimental Results

The proposed method was evaluated on the COCO Panoptic challenge split. Our model is the first one-stage approach to achieve performance parity with leading two-stage methods like UPSNet and Panoptic FPN.

Accuracy and Efficiency

Using a ResNeXt-101 backbone, the model reached a Panoptic Quality (PQ) of 46.3% on the COCO test-dev set. Crucially, the model offers significant speed advantages. A ResNet-50 version operates at approximately 20 FPS (48ms per image), compared to 120ms–170ms for comparable two-stage models.

Panoptic Quality vs. Inference Time on the COCO dataset. Our models (red) demonstrate superior speed-accuracy trade-offs compared to existing methods.

Conclusion

By treating "stuff" as a specialized type of instance and utilizing a unified embedding space, this framework eliminates the architectural bloat of dual-branch systems. While distinguishing very distant instances remains a challenge, the CIAE approach provides a highly efficient and consistent solution for real-time panoptic segmentation. Future work may extend this unified embedding to video domains for improved temporal consistency.

Summary updated

BibTeX
@article{gao2020learning,
  author = {Naiyu Gao and Yanhu Shan and Xin Zhao and Kaiqi Huang},
  title = {{Learning Category- and Instance-Aware Pixel Embedding for Fast Panoptic Segmentation}},
  journal = {IEEE Trans. Image Process.},
  year = {2020},
  doi = {10.1109/tip.2021.3090522},
}
Figure