Prompting Diffusion Models for Zero-Shot Instance Segmentation
Abstract
Interactive instance segmentation enables users to identify and iteratively refine object masks, offering fine-grained control. Discriminative foundation models achieve strong zero-shot generalization across diverse natural-image domains at the cost of large-scale, task-specific mask annotations. On the other hand, early generative attempts demonstrate annotation-efficient fine-tuning but use prompts only during post-processing, yielding suboptimal segments. In this paper, we address this limitation with Prompt2Seg, a spatial prompt-conditioning branch that guides a frozen diffusion-based segmentation model. Our approach is prompted with 2D Gaussians as explicit input signals, and trains the conditioning branch to respond directly to user intent. Fine-tuned on a deliberately constrained set of synthetic data from Hypersim and Virtual KITTI 2, Prompt2Seg generalizes zero-shot to a wide range of real data, with diverse visual domains and unseen object types. Extensive experiments on seven datasets, including paintings, egocentric views, and X-ray data, show Prompt2Seg consistently outperforming the underlying diffusion segmentation backbone. Additionally, we show how Prompt2Seg can be prompted with uncertainty maps to identify unknown object instances.