[论文解读] Image Segmentation Using Text and Image Prompts
CLIPSeg 在 CLIP 的基础上增加一个轻量级 transformer 解码器,用于在自由文本或图像提示条件下进行图像分割,使得一个训练模型即可实现零样本、一步到位和指称表达任务。
Image segmentation is usually addressed by training a model for a fixed set of object classes. Incorporating additional classes or more complex queries later is expensive as it requires re-training the model on a dataset that encompasses these expressions. Here we propose a system that can generate image segmentations based on arbitrary prompts at test time. A prompt can be either a text or an image. This approach enables us to create a unified model (trained once) for three common segmentation tasks, which come with distinct challenges: referring expression segmentation, zero-shot segmentation and one-shot segmentation. We build upon the CLIP model as a backbone which we extend with a transformer-based decoder that enables dense prediction. After training on an extended version of the PhraseCut dataset, our system generates a binary segmentation map for an image based on a free-text prompt or on an additional image expressing the query. We analyze different variants of the latter image-based prompts in detail. This novel hybrid input allows for dynamic adaptation not only to the three segmentation tasks mentioned above, but to any binary segmentation task where a text or image query can be formulated. Finally, we find our system to adapt well to generalized queries involving affordances or properties. Code is available at https://eckerlab.org/code/clipseg.
研究动机与目标
- 在测试时无需再训练即可对任意文本或图像提示进行分割。
- 开发一个统一模型,通过单一训练过程覆盖指称表达、零样本和一次样本分割。
- 以 CLIP 嵌入作为骨干,并训练一个紧凑的 transformer 解码器用于密集预测。
- 研究文本提示与图像提示以及视觉提示工程,以增强对功能性与属性的泛化能力。
提出的方法
- 以冻结的 CLIP ViT-B/16 作为骨干,并连接一个带跳跃连接的轻量级 transformer 解码器。
- 从层 S=[3,7,9] 提取 CLIP 激活,并投影到解码器的 token 空间;通过 FiLM 条件进行融合。
- 训练二分类的前景/背景分割目标,且可适用于多标签设定。
- 在 PhraseCut 的基础上扩展可视提示和负样本(PhraseCut+),并将图像-文本插值作为训练数据增强。
- 系统性评估各种视觉提示设计(例如裁剪、背景变暗、模糊等),以优化提示与图像的一致性。
实验结果
研究问题
- RQ1单一模型是否能在推理时基于任意文本或图像提示进行分割,而无需针对特定任务重新训练?
- RQ2文本提示与图像提示在指称表达、零样本和一次样本分割任务中的性能影响如何?
- RQ3视觉提示工程对分割质量及对未见提示的泛化有何影响?
- RQ4模型在超出标准对象标签的可及性或属性提示上的泛化程度如何?
主要发现
- CLIPSeg (PC+) 在指称表达分割方面具有竞争力:mIoU 43.4,t=0.3 时,IoUFG 54.7,AP 76.7;当 D=128 时,mIoU 48.2,IoUFG 56.5,AP 78.2;使用 PC 时,mIoU 46.1,IoUFG 56.2,AP 78.2。
- 在 Pascal-VOC 的泛化零样本分割中,CLIPSeg (PC+) 实现了更高的未见类平衡(例如 unseen-10:mIoU S 35.7,mIoU U 43.1),且对于 unseen-4,mIoU U 47.3。
- 在 Pascal-5i 的一次样本分割中,CLIPSeg (PC+) 与 ViT(CLIP) 一起实现 mIoU 59.5,IoU_BIN 75.0,AP 82.3;与 HSNet 等方法并驾齐驱。
- 视觉提示工程显著影响性能;最佳设计结合降低背景影响的步骤(裁剪、背景变暗、模糊)以改善 CLIP 对齐。
- 消融研究显示对 CLIP 预训练和解码器容量的关键依赖;将 D 降至 16 或去除视觉/文本提示会显著退化性能,而保持 CLIP 预训练则能获得强劲结果。
- 涉及可及性与属性的泛化提示在实践中可行,PC+-训练的模型优于基线并显示出更广的泛化性。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。