Segment Anyword: Mask Prompt Inversion for Open-Set Grounded Segmentation
Zhihua Liu, Amrutha Saseendran, Lei Tong, Xilin He, Fariba Yousefi, Nikolay Burlutskiy, Dino Oglic, Tom Diethe, Philip Teare, Huiyu Zhou, Chen Jin
TL;DR
Segment Anyword introduces a training-free prompt-learning framework for open-set language grounded segmentation that leverages token-level cross-attention from a frozen diffusion model to generate segmentation prompts. By updating only the textual embeddings at test time and refining initial cross-attention prompts with linguistic-guided regularization, the method achieves robust, noise-tolerant masks without extensive training. The approach integrates a diffusion-based localization prior with a SAM post-processor and demonstrates state-of-the-art performance among training-free methods across GranDf, gRefCOCO, and PC-59, while showing strong generalization to open-set and reference segmentation scenarios. The results highlight the practical impact of combining diffusion-model attention, test-time prompt learning, and linguistic structure to enhance open-vocabulary segmentation in real-world settings.
Abstract
Open-set image segmentation poses a significant challenge because existing methods often demand extensive training or fine-tuning and generally struggle to segment unified objects consistently across diverse text reference expressions. Motivated by this, we propose Segment Anyword, a novel training-free visual concept prompt learning approach for open-set language grounded segmentation that relies on token-level cross-attention maps from a frozen diffusion model to produce segmentation surrogates or mask prompts, which are then refined into targeted object masks. Initial prompts typically lack coherence and consistency as the complexity of the image-text increases, resulting in suboptimal mask fragments. To tackle this issue, we further introduce a novel linguistic-guided visual prompt regularization that binds and clusters visual prompts based on sentence dependency and syntactic structural information, enabling the extraction of robust, noise-tolerant mask prompts, and significant improvements in segmentation accuracy. The proposed approach is effective, generalizes across different open-set segmentation tasks, and achieves state-of-the-art results of 52.5 (+6.8 relative) mIoU on Pascal Context 59, 67.73 (+25.73 relative) cIoU on gRefCOCO, and 67.4 (+1.1 relative to fine-tuned methods) mIoU on GranDf, which is the most complex open-set grounded segmentation task in the field.
