Abstract
ISDA is a novel, end-to-end instance segmentation framework that eliminates the need for hand-crafted post-processing steps like Non-Maximum Suppression (NMS). By combining a deformable Transformer with dynamically generated, position-aware convolutional kernels, ISDA directly predicts a set of object masks, outperforming strong baselines like Mask R-CNN on the MS-COCO dataset.
Introduction
Historically, instance segmentation models, such as Mask R-CNN, have relied on non-differentiable, hand-designed components to function. Specifically, they utilize Region Proposal Networks (RPN) to estimate object locations and Non-Maximum Suppression (NMS) to filter out redundant, overlapping predictions. Because NMS is non-differentiable, it creates a bottleneck in the end-to-end training pipeline.
While recent Transformer-based models like DETR have successfully removed NMS for object detection by treating it as a direct set-prediction problem, applying this to instance segmentation presents unique challenges. Standard convolutions are translation-invariant, which makes it difficult for a model to distinguish between visually identical objects placed side-by-side. ISDA addresses this by building an efficient, NMS-free model that accurately disentangles objects with similar appearances through spatial awareness.
Methodology
The ISDA architecture consists of three primary components designed to facilitate end-to-end learning without post-processing:
- Backbone & Neck: A standard CNN (e.g., ResNet-50) extracts multi-scale image features.
- ISDA Head (Deformable Transformer): To avoid the computational weight of dense attention, ISDA employs a deformable Transformer encoder-decoder. The encoder fuses multi-scale features with positional encodings, while the decoder takes learned "object queries" to output specific object features and their spatial "reference points."
- Mask Generation via Position-Aware Kernels: This core novelty involves generating a high-resolution Mask Feature Representation (MFR) by fusing multi-scale features and appending normalized pixel coordinates. Simultaneously, the decoder's object features and reference points are transformed into dynamic, position-aware kernels.
To produce final predictions, these dynamic kernels are convolved directly with the MFR. By utilizing bipartite matching (the Hungarian algorithm) and a Mask IoU loss to match predictions one-to-one with ground truth masks, the model naturally avoids duplicate predictions, rendering NMS unnecessary.
Key Insights
- Dynamic Kernels vs. Fixed Grids: Unlike methods that predict kernels for cells in a rigid grid, ISDA adaptively learns object queries directly from the data, providing greater flexibility for varying object layouts.
- Positional Awareness: To overcome the translation-invariance of standard convolutions, ISDA explicitly injects coordinate data into both the mask features (MFR) and the dynamic kernels. This dual-injection provides the spatial awareness required to separate identical objects, such as two animals of the same species standing adjacent to one another.
- Multi-Scale Efficiency: By using a deformable Transformer to sample features across different scales, ISDA avoids the computational bottlenecks of standard Transformers while retaining the ability to segment objects of varying sizes.
Experimental Results
ISDA was evaluated on the MS-COCO dataset, showing significant improvements over established baselines. It achieved 38.7 AP on the COCO test-dev2017 split, outperforming the highly optimized Mask R-CNN baseline (36.1 AP) by 2.6 points. It also surpassed other modern approaches like SOLOv2 (37.4 AP) and CondInst (36.9 AP).
Ablation studies confirmed the importance of positional data; adding coordinate channels to the MFR and reference points to the kernels boosted performance by 4.1 AP compared to a baseline without them. Qualitatively, ISDA produces cleaner object edges and successfully avoids the "ghost" masks often seen in Mask R-CNN when NMS fails.
Conclusion and Future Work
While ISDA excels at separating adjacent objects, it still faces challenges with highly overlapping objects (e.g., one person standing directly in front of another). Additionally, while it performs best overall, its performance on extremely small or large objects is slightly lower than some specialized models. Future research will focus on addressing the segmentation of highly overlapping objects to further refine the model's robustness.
Summary updated