Abstract
Query-based End-to-end Instance Segmentation (QEIS) models, such as K-Net and Mask2Former, have demonstrated state-of-the-art performance on large-scale benchmarks. However, these models often suffer from a "data hunger" problem, performing poorly in low-data regimes where training samples are scarce. This performance gap stems from the fact that their learnable kernels start as random noise and struggle to acquire localization and shape priors without massive supervision. This paper introduces Saliency Prompt (SP), a novel unsupervised pre-training framework that seeds these kernels with spatial and shape priors derived from unlabeled data. By treating salient regions as visual prompts, the method significantly improves the performance and convergence speed of QEIS models in data-constrained scenarios.
Introduction
Instance segmentation has traditionally relied on hand-crafted components like anchors and Non-Maximum Suppression (NMS). Modern QEIS models replace these with learnable queries or kernels that automatically encode object information. While effective on datasets like COCO-full, these kernels lack inherent knowledge of what constitutes an "object" in terms of location and shape. In low-data environments (e.g., 5% of COCO or specialized datasets like CTW1500), these models fail to converge effectively, often lagging behind older CNN-based architectures like Mask R-CNN.
The authors identify the primary bottleneck as a lack of "localization and shape priors." To address this, they propose an unsupervised pre-training strategy that uses saliency-based prompts to inject these priors directly into the model's kernels before supervised training begins.
The Saliency Prompt Framework
The Saliency Prompt (SP) method is a three-stage unsupervised pre-training pipeline designed to be architecture-agnostic for QEIS models.
1. Saliency Mask Proposal
Using a backbone pre-trained via self-supervised learning (such as DenseCL), the system identifies salient regions in unlabeled images. By calculating feature similarity across different image regions, the framework generates "pseudo-masks" that represent potential objects. While these masks are often noisy or coarse, they provide a foundational understanding of object boundaries.
2. Prompt-Kernel Matching and Injection
Inspired by prompting techniques in Natural Language Processing, the method converts these pseudo-masks into Saliency Prompts (feature vectors). Instead of using the masks as traditional training labels, the framework uses cosine similarity to match these prompts to the model’s initial kernels. The most relevant prompts are then "injected"—added directly to the kernels—providing an immediate spatial and shape "hint" to the model.
3. Kernel Supervision
To ensure the kernels retain and refine the knowledge provided by the prompts, the authors introduce a Kernel Supervision Loss ($L_{ker}$). This loss function supervises the model at the kernel level during the pre-training phase, making the learning process more robust against the inherent noise of unsupervised pseudo-masks.
Experimental Evaluation
The researchers evaluated the SP method across several benchmarks to test its effectiveness in low-data and specialized scenarios. Pre-training was conducted on the COCO unlabeled2017 dataset (approximately 123k images).
Performance on MS COCO and Cityscapes
On the MS COCO dataset, using only a 5% subset of training data, the SP method boosted K-Net performance by +5.1 mAP compared to standard ImageNet-supervised pre-training. On the Cityscapes dataset, which focuses on urban street scenes, the SP-equipped K-Net surpassed the final accuracy of the baseline model in less than half the training time, demonstrating significantly improved convergence speed.
Specialized Low-Data Regimes: CTW1500
The most dramatic results were observed on the CTW1500 dataset, a wild-scene curved text detection dataset with only 1,500 images. The SP method achieved a massive +24.9 mAP gain over the vanilla K-Net, finally making the QEIS architecture competitive with and often superior to traditional models like Mask R-CNN in this niche domain.
Key Insights
- Bypassing the "Search" Phase: By injecting priors, the model avoids the initial phase of training where it must "search" for the general location of objects. It begins supervised training with a pre-existing understanding of object distribution.
- Tolerance to Noise: The method does not require high-fidelity pseudo-masks. Even coarse saliency information is sufficient to provide a meaningful prior, making the approach computationally efficient.
- Kernel Diversity: Visualization of the kernels reveals that without SP pre-training, queries often focus redundantly on the same central areas. With SP, kernels learn to distribute themselves across the image and specialize in different object shapes early in the process.
Limitations and Future Work
While highly effective for prominent objects, the saliency mechanism naturally gravitates toward larger, more noticeable items. Consequently, the performance gains for very small objects are less pronounced. Additionally, the pre-training is currently class-agnostic; the model learns where an object is, but not what it is. Future work may involve integrating semantic knowledge into the pre-training phase or applying visual prompting to weakly supervised tasks.
Conclusion
Saliency Prompting offers a powerful solution to the data-hunger problem in query-based instance segmentation. By leveraging unlabeled data to provide localization and shape priors, the method allows modern QEIS models to thrive in low-data regimes, achieving superior accuracy and faster convergence across diverse datasets.
Summary updated