Fast Panoptic Segmentation Network

Daan de Geus, Panagiotis Meletis, Gijs DubbelmanarXiv 2019

TL;DR

FPSNet (Fast Panoptic Segmentation Network) achieves real-time panoptic segmentation by reframing the problem as a single-stage, dense pixel-wise classification task. By eliminating the need for computationally expensive instance mask generation and complex merging heuristics, it delivers a significant speedup—reaching up to 35 FPS—while maintaining competitive accuracy on standard benchmarks.

What Problem Does This Paper Address?

Panoptic segmentation is the "holy grail" of scene understanding, requiring a model to identify both "stuff" (uncountable regions like sky or road) and "things" (countable objects like cars or pedestrians).

Historically, this has been a two-headed beast. Researchers typically train one branch for semantic segmentation and another for instance segmentation (like Mask R-CNN). The final output is then stitched together using "merging heuristics" to resolve conflicts—for instance, when two predicted object masks overlap or a pixel is labeled as both "car" and "road." These heuristics are often slow, run on the CPU, and prevent models from achieving the real-time speeds necessary for robotics and self-driving cars.

Methods

The authors introduce FPSNet, an end-to-end architecture that treats panoptic segmentation as a unified dense classification problem.

Key components include:

  • Backbone: A standard RetinaNet with a ResNet-50 Feature Pyramid Network (FPN) to extract multi-scale features.
  • Attention Mask Generation: Instead of predicting complex masks, the model uses bounding box detections to create "soft" attention masks. These are Gaussian distributions that prioritize the center of a detected box, providing a spatial prior for where an object likely exists.
  • The Panoptic Head: This novel module concatenates the image features with the attention masks. It is trained to "morph" these simple attention masks into precise, pixel-wise instance masks.
  • Mask Shuffling: During training, the order of attention masks is shuffled. This forces the convolutional filters to learn general features rather than relying on a specific input order.

Unlike traditional methods, the output is a single map where each pixel is directly assigned either a "stuff" class label or a specific "thing" instance ID.

Overview of the FPSNet architecture, showing the fusion of FPN features and attention masks into the Panoptic Head.

Datasets

The model was evaluated on two primary benchmarks:

  1. Cityscapes: A specialized dataset of 5,000 urban street scenes with 8 "thing" and 11 "stuff" classes.
  2. Pascal VOC 2012: A more general vision dataset (augmented with SBD annotations) containing 20 "thing" classes.

Key Insights and Ideas

  • Learning the Merge: By casting the task as pixel-wise classification, the network learns to resolve overlaps and conflicts during training, rather than relying on hand-coded rules at inference time.
  • Soft is Better than Hard: The use of Gaussian "soft" masks outperformed binary "hard" masks. The gradient provided by the Gaussian distribution helps the network understand object boundaries more effectively.
  • The Power of Shuffling: Ablation studies showed that shuffling masks is critical. Without it, the model's performance on "things" dropped significantly because the network became overly dependent on the arbitrary order of detections.
  • Efficiency via Architecture: By avoiding the two-stage process of generating mask proposals and then refining them, FPSNet stays entirely within a convolutional framework, making it highly optimized for GPU execution.
Visual representation of how bounding boxes are converted into soft attention masks and eventually into the final panoptic output.

Key Results

FPSNet demonstrates a superior speed-to-accuracy trade-off compared to previous state-of-the-art models like DeeperLab and UPSNet.

  • Speed: On Cityscapes, FPSNet processes full-resolution images (1024x2048) in just 114ms. At lower resolutions (512x1024), it hits 22 FPS. On Pascal VOC, it reaches 35 FPS.
  • Accuracy: It achieved a 55.1% Panoptic Quality (PQ) score on Cityscapes. While some slower models score higher, FPSNet is significantly faster; for example, it is roughly 3x faster than Panoptic FPN when merging time is included.
A comparison of Inference Time vs. Panoptic Quality, highlighting FPSNet's efficiency compared to DeeperLab and UPSNet.

Limitations and Future Work

While highly efficient, the authors noted that performance begins to degrade if the number of attention masks ($N_{att}$) is set too high (e.g., 100), as the final convolutional layer struggles to learn that many simultaneous outputs.

Future work could explore more sophisticated normalization techniques to better balance the magnitude of attention masks with feature map values. Additionally, while the model is fast, there is still a small accuracy gap between this heuristic-free approach and the most complex, multi-stage models. Refining the "morphing" capability of the panoptic head could bridge this gap.

Summary updated

BibTeX
@misc{geus2019fast,
  author = {Daan de Geus and Panagiotis Meletis and Gijs Dubbelman},
  title = {{Fast Panoptic Segmentation Network}},
  year = {2019},
  eprint = {1910.03892},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1910.03892},
}
Figure