arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2410.11473cs.CV
收藏

InvSeg:面向语义分割的测试时提示反演

InvSeg: Test-Time Prompt Inversion for Semantic Segmentation

Queen Mary University of London(伦敦玛丽女王大学);Sony AI(索尼人工智能)

Jiayi Lin, Jiabo Huang, Jian Hu, Shaogang Gong

AI总结:

InvSeg 提出测试时提示反演方法,通过将图像视觉上下文反演到文本提示嵌入空间并结合对比软聚类对齐结构信息,解决开放词汇语义分割中的输入分布差异问题,在多个数据集上取得最先进性能。

摘要:

从文本到图像扩散模型得到的注意力图中的视觉-文本相关性已被证明对稠密视觉预测任务(例如语义分割)有益。然而,一个重大挑战来自用于图像生成的上下文丰富句子与语义分割中通常使用的孤立类别名称之间的输入分布差异。这种差异阻碍了扩散模型捕获准确的视觉-文本相关性。为解决这一问题,我们提出了 InvSeg,一种测试时提示反演方法,通过将图像特定的视觉上下文反演到文本提示嵌入空间中,并利用扩散模型重建过程得到的结构信息来丰富文本提示,从而将每个类别与结构一致的掩码关联起来,以应对开放词汇语义分割。具体而言,我们引入了对比软聚类(Contrastive Soft Clustering,CSC),将得到的掩码与图像的结构信息对齐,为每个类别软选择锚点并计算加权距离,使类内像素更接近,同时分离类间像素,从而确保掩码的区分性和内部一致性。通过融入样本特定的上下文,InvSeg 在嵌入空间中学习上下文丰富的文本提示,并实现跨模态的准确语义对齐。实验表明,InvSeg 在 PASCAL VOC、PASCAL Context 和 COCO Object 数据集上取得了最先进的性能。

英文摘要:

Visual-textual correlations in the attention maps derived from text-to-image diffusion models are proven beneficial to dense visual prediction tasks, e.g., semantic segmentation. However, a significant challenge arises due to the input distributional discrepancy between the context-rich sentences used for image generation and the isolated class names typically used in semantic segmentation. This discrepancy hinders diffusion models from capturing accurate visual-textual correlations. To solve this, we propose InvSeg, a test-time prompt inversion method that tackles open-vocabulary semantic segmentation by inverting image-specific visual context into text prompt embedding space, leveraging structure information derived from the diffusion model's reconstruction process to enrich text prompts so as to associate each class with a structure-consistent mask. Specifically, we introduce Contrastive Soft Clustering (CSC) to align derived masks with the image's structure information, softly selecting anchors for each class and calculating weighted distances to push inner-class pixels closer while separating inter-class pixels, thereby ensuring mask distinction and internal consistency. By incorporating sample-specific context, InvSeg learns context-rich text prompts in embedding space and achieves accurate semantic alignment across modalities. Experiments show that InvSeg achieves state-of-the-art performance on the PASCAL VOC, PASCAL Context and COCO Object datasets.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑