NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Pixelwise Instance Segmentation with a Dynamically Instantiated Network

Anurag Arnab, Philip H. S. Torr

Abstract

This paper introduces an end-to-end framework for instance segmentation that treats the problem as a holistic, pixel-wise labeling task rather than a collection of independent object proposals. By using a dynamically instantiated Conditional Random Field (CRF) that adapts to the number of objects detected in an image, the model produces sharp, non-overlapping boundaries and achieves state-of-the-art performance, particularly at high precision thresholds.

Introduction

In computer vision, semantic segmentation identifies the class of a pixel (e.g., "person"), but fails to distinguish between adjacent individuals. Conversely, object detection identifies individual instances but provides only coarse bounding boxes. Instance segmentation aims to unify these tasks by labeling every pixel with both a class and a unique instance ID.

Most contemporary methods follow a "detect-then-segment" pipeline, where a detector finds boxes and a separate model crops them to find masks. The authors argue this approach is flawed due to independent processing of proposals (ignoring global context), the physical impossibility of overlapping masks for a single pixel, and the propagation of errors from poorly localized bounding boxes.

Methodology

The proposed "Dynamically Instantiated Network" consists of two primary stages integrated into a single differentiable pipeline.

The end-to-end network architecture featuring semantic and instance segmentation subnetworks.

1. Semantic Segmentation Subnetwork

Based on the FCN8s architecture, this module predicts category-level labels. It incorporates a "Higher Order" CRF, implemented as a Recurrent Neural Network (RNN), to ensure spatial consistency across the image.

2. Instance Segmentation Subnetwork

This core innovation takes the semantic map and object detector outputs (e.g., from R-FCN) to define "Instance Unary Potentials" consisting of three terms:

  • Box Term: Encourages pixels within a detected bounding box to adopt that instance's ID.
  • Global Term: Acts as a fail-safe, allowing instance labels to be assigned to pixels outside the initial box if semantic segmentation suggests the object is larger.
  • Shape Term: Utilizes a library of ~250 learned shape templates to provide a geometric prior for specific object classes.

Dynamic Instantiation

Unlike standard networks with fixed output layers, the final CRF layer is instantiated on the fly. The number of possible labels in the CRF scales dynamically based on the number of detections in the specific image (e.g., $N$ instances + 1 background). This ensures that instances are mutually exclusive; a pixel belongs to exactly one instance, resolving the overlapping mask problem.

Key Results and Insights

The model was evaluated on major benchmarks including Pascal VOC 2012, the Semantic Boundaries Dataset (SBD), and Cityscapes.

Qualitative results showing sharp, non-overlapping instance masks for a person, cat, and monitor.
  • High Precision Performance: The model excels at high Intersection over Union (IoU) thresholds. On Pascal VOC, it achieved a 25.1% $AP^r$ at an IoU of 0.9, representing a 36% relative improvement over the previous state-of-the-art (MPA).
  • Cityscapes Benchmark: The method set a new state-of-the-art on the Cityscapes test set with an AP of 20.0, outperforming concurrent work by significant margins.
  • Robustness to Detection Errors: The "Global Term" allows the network to recover from poorly localized bounding boxes. If a detector clips an object, the semantic subnetwork can "vote" to include those pixels back into the instance.
  • Mutual Benefit: Training the network for instance segmentation actually improves the performance of the base semantic segmentation task by approximately 1% in Mean IoU.

Conclusion

This research demonstrates that treating instance segmentation as a holistic pixel-labeling problem yields superior results compared to proposal-based methods. While the model currently relies on an external detector for initial instance counts, its ability to produce sharp, non-overlapping boundaries marks a significant advancement. Future work may involve joint training with the detector and the development of more flexible generative shape models.

Summary updated

BibTeX
@inproceedings{arnab2017pixelwise,
  author = {Anurag Arnab and Philip H. S. Torr},
  title = {{Pixelwise Instance Segmentation with a Dynamically Instantiated Network}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2017},
  doi = {10.1109/cvpr.2017.100},
}
Figure