arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2310.05916cs.CVcs.AI
收藏

通过基于文本的分解解释CLIP的图像表示

Interpreting CLIP's Image Representation via Text-Based Decomposition

UC Berkeley(加州大学伯克利分校)

Yossi Gandelsman, Alexei A. Efros, Jacob Steinhardt

AI总结:

本文将CLIP图像表示分解为图像块、层和注意力头,借助文本表示解释各组件作用,发现空间定位能力,并据此去除虚假特征、构建零样本分割器,证明可扩展理解Transformer模型能用于修复和改进模型。

摘要:

我们通过分析单个模型组件如何影响最终表示来研究CLIP图像编码器。我们将图像表示分解为各个图像块、模型层和注意力头的总和,并使用CLIP的文本表示来解释这些求和项。在解释注意力头时,我们通过自动寻找跨越其输出空间的文本表示来刻画每个头的作用,这揭示了许多头具有特定属性的作用(例如位置或形状)。接下来,在解释图像块时,我们发现了CLIP内部涌现出的空间定位能力。最后,我们利用这些理解来移除CLIP中的虚假特征,并创建一个强大的零样本图像分割器。我们的结果表明,对Transformer模型的可扩展理解是可以实现的,并且可以用于修复和改进模型。

英文摘要:

We investigate the CLIP image encoder by analyzing how individual model components affect the final representation. We decompose the image representation as a sum across individual image patches, model layers, and attention heads, and use CLIP's text representation to interpret the summands. Interpreting the attention heads, we characterize each head's role by automatically finding text representations that span its output space, which reveals property-specific roles for many heads (e.g. location or shape). Next, interpreting the image patches, we uncover an emergent spatial localization within CLIP. Finally, we use this understanding to remove spurious features from CLIP and to create a strong zero-shot image segmenter. Our results indicate that a scalable understanding of transformer models is attainable and can be used to repair and improve models.

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

↑