Exploring Transformers for Open-world Instance Segmentation

Jiannan Wu, Yi Jiang, Bin Yan, Huchuan Lu, Zehuan Yuan, Ping Luo

Abstract

Open-World Instance Segmentation (OWIS) requires models to localize and segment objects beyond a predefined set of training categories. Traditional Transformer-based detectors often fail in this setting because their internal matching logic suppresses novel objects that do not align with known classes. We present SWORD, a framework that leverages a stop-gradient mechanism, IoU prediction heads, and contrastive learning to decouple localization from classification. SWORD achieves state-of-the-art performance on benchmarks like COCO, LVIS, and UVO, demonstrating superior generalization to unseen categories while maintaining high precision.

Introduction

Most instance segmentation models operate in a "closed world." When trained on a fixed set of categories (e.g., the 80 classes in COCO), these models learn to treat everything else—from elephants to rare medical tools—as "background." This behavior is a significant hurdle for robotics and autonomous systems operating in unpredictable environments.

The challenge of Open-World Instance Segmentation (OWIS) is twofold: the model must maintain high recall to localize any object regardless of its label, and high precision to avoid "hallucinating" objects in the background. Existing Transformer-based detectors like DETR struggle here because their bipartite matching relies heavily on classification scores; if an object doesn't look like a known class, the optimization process actively suppresses it.

SWORD successfully segments novel objects like elephants even when they were not included in the training set.

Methodology

SWORD (built on Deformable-DETR) addresses these issues through three primary innovations:

  • The Stop-Gradient Trick: To retain the benefits of bipartite matching without suppressing unknown objects, a stop-grad operation is placed before the classification head. This prevents the "background" signal of novel objects from destroying their feature representations during training.
  • IoU Prediction Heads: Instead of relying on class scores, SWORD uses specialized heads to predict the Intersection-over-Union (IoU) for both boxes and masks. This provides a more reliable "objectness" score for unseen categories.
  • Universal Object Contrastive Learning: The model maintains a "Universal Object Queue" of known object embeddings. Contrastive loss is used to push object queries closer to known object centers and further from the background, sharpening the distinction between "things" and "stuff."
  • Self-Training (SWORD†): An extension that uses a trained SWORD model to generate pseudo-labels for unannotated regions, allowing the model to iteratively learn about the unknown objects it discovers.

Evaluation and Results

The researchers evaluated SWORD across several rigorous cross-category and cross-dataset setups, including VOC-to-COCO, LVIS (rare classes), and generalization to the UVO and Objects365 datasets.

Key Performance Metrics

SWORD sets a new benchmark for open-world performance:

  • VOC to non-VOC: SWORD† achieved 40.0% Average Recall ($AR^b_{100}$) for boxes and 34.9% ($AR^m_{100}$) for masks, significantly outperforming previous methods like OLN.
  • Cross-Dataset Generalization: On the UVO dataset, SWORD outperformed the previous state-of-the-art by 5.9% in Average Precision ($AP^m$).
Qualitative comparison of (a) Deformable-DETR, (b) OLN, (c) SWORD, and (d) Ground-truth. SWORD produces cleaner masks and higher recall for novel objects compared to baselines.

Insights

Visualizations demonstrate that while standard models ignore unseen objects and class-agnostic models like OLN often produce noisy detections, SWORD produces clean, accurate masks. The results reinforce the idea that localization quality (IoU) is a superior proxy for "objectness" than class probability distributions in open-world scenarios.

Conclusion and Future Work

SWORD represents a significant leap in bridging the gap between closed-world training and open-world reality. While self-training (SWORD†) greatly boosts recall, future work is needed to mitigate false positives introduced by pseudo-labeling background textures. Additionally, incorporating language-driven priors or larger-scale self-supervised pre-training could further enhance the model's ability to distinguish novel objects from complex backgrounds.

Summary updated

BibTeX
@inproceedings{wu2023exploring,
  author = {Jiannan Wu and Yi Jiang and Bin Yan and Huchuan Lu and Zehuan Yuan and Ping Luo},
  title = {{Exploring Transformers for Open-world Instance Segmentation}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2023},
}
Figure