In plain words: A picture generator trained only on text prompts becomes an object finder: at test time it tweaks a mask until it highlights whatever the prompt names, with no extra training. Its masks came close to earlier methods that learn without labeled outlines.
Abstract · Peekaboo: Text to Image Diffusion Models are Zero-Shot Segmentors
Recently, text-to-image diffusion models have shown remarkable capabilities in creating realistic images from natural language prompts. However, few works have explored using these models for semantic localization or grounding. In this work, we explore how an off-the-shelf text-to-image diffusion model, trained without exposure to localization information, can ground various semantic phrases without segmentation-specific re-training. We introduce an inference time optimization process capable of generating segmentation masks conditioned on natural language prompts. Our proposal, Peekaboo, is a first-of-its-kind zero-shot, open-vocabulary, unsupervised semantic grounding technique leveraging diffusion models without any training. We evaluate Peekaboo on the Pascal VOC dataset for unsupervised semantic segmentation and the RefCOCO dataset for referring segmentation, showing results competitive with promising results. We also demonstrate how Peekaboo can be used to generate images with transparency, even though the underlying diffusion model was only trained on RGB images - which to our knowledge we are the first to attempt. Please see our project page, including our code: https://ryanndagreat.github.io/peekaboo
Ryan Burgert, Kanchana Ranasinghe, Xiang Li, Michael S. Ryoo
arXiv:2211.13224 · cs.CV, cs.CL, cs.LG · submitted Nov 23, 2022 · updated Jun 21, 2023
abstract · pdf · html · 19 pages; contains appendix
My take is that the they guess at an alpha-mask first, then iterate by generating a composite image of the input image (to be segmented) with a uniform background using the proposed alpha, then update the mask using gradient descent on the score of the composite image related to the text-conditioning.
They add some extra scoring functions to try to suppress "bad" alpha masks.