Skip to main content
QUICK REVIEW

[Paper Review] ISTR: End-to-End Instance Segmentation with Transformers

Jie Hu, Liujuan Cao|arXiv (Cornell University)|May 3, 2021
Advanced Neural Network ApplicationsComputer Science54 references54 citations
TL;DR

ISTR presents an end-to-end instance segmentation framework built on Transformers that regresses low-dimensional mask embeddings, uses bipartite matching set loss, and iteratively refines predictions, achieving competitive COCO results without NMS.

ABSTRACT

End-to-end paradigms significantly improve the accuracy of various deep-learning-based computer vision models. To this end, tasks like object detection have been upgraded by replacing non-end-to-end components, such as removing non-maximum suppression by training with a set loss based on bipartite matching. However, such an upgrade is not applicable to instance segmentation, due to its significantly higher output dimensions compared to object detection. In this paper, we propose an instance segmentation Transformer, termed ISTR, which is the first end-to-end framework of its kind. ISTR predicts low-dimensional mask embeddings, and matches them with ground truth mask embeddings for the set loss. Besides, ISTR concurrently conducts detection and segmentation with a recurrent refinement strategy, which provides a new way to achieve instance segmentation compared to the existing top-down and bottom-up frameworks. Benefiting from the proposed end-to-end mechanism, ISTR demonstrates state-of-the-art performance even with approximation-based suboptimal embeddings. Specifically, ISTR obtains a 46.8/38.6 box/mask AP using ResNet50-FPN, and a 48.1/39.9 box/mask AP using ResNet101-FPN, on the MS COCO dataset. Quantitative and qualitative results reveal the promising potential of ISTR as a solid baseline for instance-level recognition. Code has been made available at: https://github.com/hujiecpp/ISTR.

Motivation & Objective

  • Motivate end-to-end training for instance segmentation beyond traditional NMS-dependent pipelines.
  • Develop a framework that predicts low-dimensional mask embeddings alongside boxes and class labels.
  • Enable end-to-end optimization through a set-based bipartite matching loss.
  • Introduce a recurrent refinement strategy to jointly improve detection and segmentation across stages.

Proposed method

  • Learn a mask embedding encoder/decoder to represent masks with low-dimensional embeddings.
  • Define a bipartite matching cost that combines box, class, and mask embedding similarity.
  • Use a set loss on matched predictions to supervise bounding boxes, classes, and mask embeddings.
  • Fuse image features with RoI features via a Transformer encoder with dynamic attention for prediction heads.
  • Employ N stages of recurrent refinement to update query boxes and predictions without NMS during inference.
  • Train with multi-scale backbones and standard COCO losses (L1, giou, focal loss, Dice for masks).

Experimental results

Research questions

  • RQ1Can end-to-end instance segmentation be achieved with Transformers by predicting mask embeddings instead of full masks?
  • RQ2Does a set-based bipartite matching loss combining boxes, classes, and mask embeddings enable NMS-free inference?
  • RQ3How does recurrent refinement affect joint detection and segmentation performance?
  • RQ4What architectural choices (dynamic attention, pooling, loss terms) maximize end-to-end performance for COCO?
  • RQ5How does ISTR perform compared to state-of-the-art methods on COCO, especially for small objects?

Key findings

  • ISTR achieves competitive COCO metrics, e.g., 46.8 box AP / 38.6 mask AP (ResNet50-FPN) and 48.1 box AP / 39.9 mask AP (ResNet101-FPN) on test-dev.
  • Mask embeddings outperform direct mask predictions, with optimal embedding dimension around 60–80.
  • Cosine similarity on normalized mask embeddings improves mask matching cost and overall performance.
  • Dynamic attention for fusing RoI and image features yields gains over multi-head attention.
  • Global average pooling with position embeddings improves both box and mask APs.
  • Stage-wise recurrent refinement allows detection and segmentation to improve jointly across stages, saturating after a few iterations.
  • ISTR shows strong performance on small objects and competitive Box AP compared to end-to-end DETR-based methods.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.