gen2seg: Generative Models Enable Generalizable Instance Segmentation
Om Khangaonkar, Hamed Pirsiavash
TL;DR
Gen2seg investigates whether generative pretraining can enable generalizable, category-agnostic instance segmentation. By finetuning Stable Diffusion and MAE on a narrow synthetic domain with an instance-coloring loss, the approach achieves strong zero-shot generalization to unseen object types and image styles, yielding crisper boundaries than several baselines. It approaches or matches SAM on multiple unseen domains and excels at segmenting fine structures and boundaries, supporting the claim that generative priors encode robust perceptual grouping. The work highlights a scalable, data-efficient direction for generalizable perception with potential impact on robotics, medical imaging, and autonomous systems.
Abstract
By pretraining to synthesize coherent images from perturbed inputs, generative models inherently learn to understand object boundaries and scene compositions. How can we repurpose these generative representations for general-purpose perceptual organization? We finetune Stable Diffusion and MAE (encoder+decoder) for category-agnostic instance segmentation using our instance coloring loss exclusively on a narrow set of object types (indoor furnishings and cars). Surprisingly, our models exhibit strong zero-shot generalization, accurately segmenting objects of types and styles unseen in finetuning (and in many cases, MAE's ImageNet-1K pretraining too). Our best-performing models closely approach the heavily supervised SAM when evaluated on unseen object types and styles, and outperform it when segmenting fine structures and ambiguous boundaries. In contrast, existing promptable segmentation architectures or discriminatively pretrained models fail to generalize. This suggests that generative models learn an inherent grouping mechanism that transfers across categories and domains, even without internet-scale pretraining. Code, pretrained models, and demos are available on our website.
