arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2505.20229cs.LGcs.AI
收藏

从“是什么”到“如何”:归因CLIP的潜在组件揭示意外的语义依赖

From What to How: Attributing CLIP's Latent Components Reveals Unexpected Semantic Reliance

Fraunhofer Heinrich Hertz Institute(弗劳恩霍夫海因里希·赫兹研究所);Technische Universität Berlin(柏林技术大学);BIFOLD – Berlin Institute for the Foundations of Learning and Data(柏林学习与数据基础研究所);Centre of eXplainable Artificial Intelligence, Technological University Dublin(可解释人工智能中心,都柏林技术大学)

Maximilian Dreyer, Lorenz Hufe, Jim Berend, Thomas Wiegand, Sebastian Lapuschkin, Wojciech Samek

AI总结:

本研究提出可扩展框架,通过归因修补和语义对齐分数揭示CLIP潜在组件的激活原因、语义对齐及预测重要性,发现数百个与多义词等相关的意外依赖,并指出文本嵌入比图像嵌入分类器更稳健。

摘要:

基于Transformer的CLIP模型被广泛用于文本-图像探测和特征提取,因此理解其预测背后的内部机制具有重要意义。尽管近期研究表明稀疏自编码器(SAEs)能够产生可解释的潜在组件,但这些研究主要关注这些组件编码了什么,而忽略了它们如何驱动预测。我们引入了一个可扩展的框架,该框架能够揭示潜在组件为何被激活、它们如何与预期语义对齐,以及它们对预测的重要性。为实现这一目标,我们调整了归因修补技术,用于CLIP中实例级别的组件归因,并指出了广泛使用的Logit Lens技术在忠实性方面的关键局限性。通过将归因与语义对齐分数相结合,我们能够自动发现对编码语义意外或虚假概念的组件的依赖。将该方法应用于多个CLIP变体,我们的方法发现了数百个与多义词、复合名词、视觉排版和数据集伪影相关的令人惊讶的组件。虽然文本嵌入仍易受语义歧义影响,但与在图像嵌入上训练的线性分类器相比,它们对虚假相关性更为稳健。一项关于皮肤病变检测的案例研究突显了此类分类器如何放大隐藏的捷径,强调了整体性、机制性可解释性的必要性。我们提供代码:https://github.com/maxdreyer/attributing-clip。

英文摘要:

Transformer-based CLIP models are widely used for text-image probing and feature extraction, making it relevant to understand the internal mechanisms behind their predictions. While recent works show that Sparse Autoencoders (SAEs) yield interpretable latent components, they focus on what these encode and miss how they drive predictions. We introduce a scalable framework that reveals what latent components activate for, how they align with expected semantics, and how important they are to predictions. To achieve this, we adapt attribution patching for instance-wise component attributions in CLIP and highlight key faithfulness limitations of the widely used Logit Lens technique. By combining attributions with semantic alignment scores, we can automatically uncover reliance on components that encode semantically unexpected or spurious concepts. Applied across multiple CLIP variants, our method uncovers hundreds of surprising components linked to polysemous words, compound nouns, visual typography and dataset artifacts. While text embeddings remain prone to semantic ambiguity, they are more robust to spurious correlations compared to linear classifiers trained on image embeddings. A case study on skin lesion detection highlights how such classifiers can amplify hidden shortcuts, underscoring the need for holistic, mechanistic interpretability. We provide code at https://github.com/maxdreyer/attributing-clip.

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

↑