Skip to main content
QUICK REVIEW

[Paper Review] FastInst: A Simple Query-Based Model for Real-Time Instance Segmentation

Junjie He, Pengyu Li|arXiv (Cornell University)|Mar 15, 2023
Image Retrieval and Classification TechniquesComputer Science6 citations
TL;DR

FastInst proposes a query-based instance segmentation framework that achieves real-time inference (32.5 FPS) with 40.5 AP on COCO test-dev using a lightweight architecture. It introduces instance activation-guided queries, a dual-path update strategy, and ground truth mask-guided learning to reduce reliance on heavy pixel decoders and multiple Transformer layers, enabling high accuracy at low inference latency.

ABSTRACT

Recent attention in instance segmentation has focused on query-based models. Despite being non-maximum suppression (NMS)-free and end-to-end, the superiority of these models on high-accuracy real-time benchmarks has not been well demonstrated. In this paper, we show the strong potential of query-based models on efficient instance segmentation algorithm designs. We present FastInst, a simple, effective query-based framework for real-time instance segmentation. FastInst can execute at a real-time speed (i.e., 32.5 FPS) while yielding an AP of more than 40 (i.e., 40.5 AP) on COCO test-dev without bells and whistles. Specifically, FastInst follows the meta-architecture of recently introduced Mask2Former. Its key designs include instance activation-guided queries, dual-path update strategy, and ground truth mask-guided learning, which enable us to use lighter pixel decoders, fewer Transformer decoder layers, while achieving better performance. The experiments show that FastInst outperforms most state-of-the-art real-time counterparts, including strong fully convolutional baselines, in both speed and accuracy. Code can be found at https://github.com/junjiehe96/FastInst .

Motivation & Objective

  • Address the gap in high-accuracy, real-time instance segmentation by demonstrating the potential of query-based models in efficient architecture design.
  • Overcome the inefficiency and high computational cost of existing query-based models, which often require many Transformer decoder layers and heavy pixel decoders.
  • Achieve state-of-the-art speed-accuracy performance on COCO benchmark without relying on NMS or complex post-processing.
  • Enable lightweight, end-to-end, and NMS-free instance segmentation suitable for real-world applications like robotics and autonomous driving.

Proposed method

  • Introduce instance activation-guided queries that dynamically select high-semantic-potential pixel embeddings from feature maps as initial queries, reducing the need for extensive query refinement.
  • Implement a dual-path update strategy in the Transformer decoder where query features and pixel features are updated alternately, enhancing feature representation and accelerating convergence.
  • Apply ground truth mask-guided learning by replacing standard masked attention with a fixed bipartite-matching-based ground truth mask during training, enabling each query to attend to the full target object region.
  • Use learnable positional embeddings instead of sinusoidal ones to improve inference speed without performance degradation.
  • Design a lightweight pixel decoder by reducing dependency on complex modules like MSDeformAttn through improved query and feature interaction.
  • Optimize query number and selection source (e.g., feature map scale) to balance accuracy and speed, with E4 feature map showing a good trade-off.

Experimental results

Research questions

  • RQ1Can a query-based instance segmentation model achieve real-time inference speed (≥30 FPS) while maintaining high AP (>40) on COCO without NMS or heavy post-processing?
  • RQ2How can the query initialization process be improved to reduce the number of required Transformer decoder layers and accelerate convergence?
  • RQ3To what extent can the dual-path update strategy reduce dependency on heavy pixel decoders and improve feature representation in query-based models?
  • RQ4Can ground truth mask-guided learning improve masked attention performance by enabling more effective attention to the full object region during training?
  • RQ5What is the optimal configuration of query types (IA-guided vs. auxiliary) and feature map scales for balancing speed and accuracy in real-time instance segmentation?

Key findings

  • FastInst achieves 40.5 AP at 32.5 FPS on COCO test-dev using a ResNet-50 backbone, setting a new SOTA for real-time instance segmentation without bells and whistles.
  • The model reaches 35.6 AP at 53.8 FPS with a faster variant, demonstrating strong speed-accuracy trade-offs on a single V100 GPU.
  • Using only 6 Transformer decoder layers, FastInst achieves 30.5 AP, indicating that performance saturates early and reducing layers improves inference speed.
  • Instance activation-guided queries with bipartite matching and location cost loss yield more concentrated query distributions on foreground objects, improving localization and recall.
  • Adding 10 IA-guided queries achieves 31.2 AP, showing that even a small number of dynamic queries can yield strong performance.
  • Replacing sinusoidal positional embeddings with learnable ones improves inference speed without performance loss, confirming efficiency gains in deployment.

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.