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

SOIT: Segmenting Objects with Instance-Aware Transformers

Xiaodong Yu, Dahu Shi, Xing Wei, Ye Ren, Tingqun Ye, Wenming Tan

Abstract

SOIT (Segmenting Objects with Instance-aware Transformers) is a fully end-to-end instance segmentation framework that treats the task as a direct set prediction problem. By generating unique, dynamic weights for a lightweight "instance-aware" transformer for every object in an image, it eliminates the need for traditional, hand-crafted steps like RoI cropping and Non-Maximum Suppression (NMS). SOIT achieves state-of-the-art performance on the COCO benchmark, reaching 42.5% Mask AP with a ResNet-50 backbone, outperforming established multi-stage models while maintaining a simpler pipeline.

Introduction

Most contemporary instance segmentation models, such as Mask R-CNN, follow a "detect-then-segment" paradigm. While effective, this approach suffers from three major limitations. First, segmentation quality is strictly bounded by the accuracy of the initial bounding box detector. Second, the use of "Region of Interest (RoI) cropping" resizes features into small, fixed-size patches (e.g., 14x14 pixels), discarding fine-grained spatial details crucial for large objects or complex boundaries. Finally, these models rely on complex, hand-crafted components like Non-Maximum Suppression (NMS) and intricate label assignment strategies, which complicate global optimization.

Comparison of instance segmentation pipelines: (a) Detect-then-segment, (b) Detect-and-segment, and (c) SOIT's fully end-to-end pipeline.

SOIT addresses these issues by proposing a "single-stage" framework that is both RoI-free and NMS-free, enabling a cleaner and more efficient end-to-end process.

Methodology

SOIT extends the architecture of the Detection Transformer (DETR) and Deformable DETR into the domain of instance segmentation. The framework consists of three primary components: a backbone and transformer encoder for multi-scale feature extraction, a transformer decoder that utilizes learnable "object queries," and multi-task prediction heads.

The overall architecture of SOIT, featuring multi-scale feature extraction and the instance-aware transformer mask head.

Instance-Aware Transformer

The core innovation of SOIT lies in its mask prediction branch. Instead of predicting a mask directly or using fixed weights, this branch predicts a set of dynamic parameters based on each object query. These parameters are used to assemble a lightweight Instance-aware Transformer on the fly. This transformer processes a high-resolution "Shared Mask Feature" map (at 1/8th the original image resolution). Because the transformer's weights are unique to each object query, it learns to activate specifically for the pixels belonging to that instance.

Relative Positional Encodings

To further distinguish between overlapping or identical-looking objects, SOIT incorporates Relative Positional Encodings. These encodings provide the mask head with spatial cues relative to the predicted bounding box center, significantly improving the model's ability to separate distinct instances in crowded scenes.

Experiments and Results

The model was evaluated on the MS COCO 2017 dataset, the standard benchmark for instance segmentation. SOIT demonstrates significant improvements over baseline models:

  • ResNet-50 Performance: SOIT achieved 42.5% Mask AP, significantly outperforming Mask R-CNN (37.5%) and even the more complex Hybrid Task Cascade (HTC) model (39.7%).
  • Detection Synergy: The joint learning of detection and segmentation tasks within a single query embedding improved detection performance to 49.1% Box AP. This suggests that mask knowledge provides valuable boundary information that refines bounding box accuracy.
  • Scalability: Utilizing a Swin-Large backbone, the model reached 49.2% Mask AP and 56.9% Box AP.
  • Qualitative Analysis: Visual inspections confirm that SOIT produces sharper, more detailed masks compared to RoI-based methods, which often suffer from boundary blurring due to low-resolution cropping.

Conclusion

SOIT represents a shift towards fully end-to-end instance segmentation by removing the need for RoI cropping and NMS. By leveraging dynamic weight generation and instance-aware transformers, it achieves superior accuracy and cleaner mask boundaries. Future work will explore the application of this unified query embedding approach to related tasks such as panoptic segmentation and real-time video instance segmentation.

Summary updated

BibTeX
@inproceedings{yu2022soit,
  author = {Xiaodong Yu and Dahu Shi and Xing Wei and Ye Ren and Tingqun Ye and Wenming Tan},
  title = {{SOIT: Segmenting Objects with Instance-Aware Transformers}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2022},
  doi = {10.1609/aaai.v36i3.20227},
}
Figure