无需标注数据,用梯度反向定位CLIP模型中的图文错位词
Extract Free Dense Misalignment from CLIP
- 基于负梯度计算文本词的错位贡献,实现细粒度错位定位
- 在多个基准上达到零样本最优性能,效率优于微调模型
- 可检测实体、抽象对象和属性等难发现的错位,适合模型可解释性研究
当前视觉-语言基础模型仍频繁产生与输入不符的输出,如图像描述中的物体幻觉和文本生成中的提示错位。现有方法多依赖大模型零样本或人工标注微调模型,计算成本高且难以扩展。本文提出新方法CLIP4DM,从预训练的CLIP中提取密集错位信息,聚焦于定位图文之间的错位词。通过改进梯度归因计算,使单个文本词的负梯度指示其错位程度,并提出F-CLIPScore,将错位归因与全局对齐分数聚合。在涵盖多种图像与文本领域及错位类型的基准上评估,该方法在零样本模型中表现领先,媲美微调模型,同时具备更高效率。定性结果显示其能有效检测实体对象、无形对象及属性等难以被现有方法识别的错位。消融实验揭示了方法的优势与局限。代码已开源。
原文摘要 · Abstract (English)
Recent vision-language foundation models still frequently produce outputs misaligned with their inputs, evidenced by object hallucination in captioning and prompt misalignment in the text-to-image generation model. Recent studies have explored methods for identifying misaligned elements, aiming not only to enhance interpretability but also to improve model performance. However, current approaches primarily rely on large foundation models in a zero-shot manner or fine-tuned models with human annotations, which limits scalability due to significant computational costs. This work proposes a novel approach, dubbed CLIP4DM, for detecting dense misalignments from pre-trained CLIP, specifically focusing on pinpointing misaligned words between image and text. We carefully revamp the gradient-based attribution computation method, enabling negative gradient of individual text tokens to indicate misalignment. We also propose F-CLIPScore, which aggregates misaligned attributions with a global alignment score. We evaluate our method on various dense misalignment detection benchmarks, covering various image and text domains and misalignment types. Our method demonstrates state-of-the-art performance among zero-shot models and competitive performance with fine-tuned models while maintaining superior efficiency. Our qualitative examples show that our method has a unique strength to detect entity-level objects, intangible objects, and attributes that can not be easily detected for existing works. We conduct ablation studies and analyses to highlight the strengths and limitations of our approach. Our code is publicly available at https://github.com/naver-ai/CLIP4DM.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。