[论文解读] IsoCLIP: Decomposing CLIP Projectors for Efficient Intra-modal Alignment
IsoCLIP 分析 CLIP 投影头,以识别对图像与文本进行跨模态对齐的跨模态算子以及仅进行归一化但不对齐的内模态算子。随后仅保留中谱带方向以对投影头进行对齐,从而在无额外延迟的情况下提升内模态检索效果。
Vision-Language Models like CLIP are extensively used for inter-modal tasks which involve both visual and text modalities. However, when the individual modality encoders are applied to inherently intra-modal tasks like image-to-image retrieval, their performance suffers from the intra-modal misalignment. In this paper we study intra-modal misalignment in CLIP with a focus on the role of the projectors that map pre-projection image and text embeddings into the shared embedding space. By analyzing the form of the cosine similarity applied to projected features, and its interaction with the contrastive CLIP loss, we show that there is an inter-modal operator responsible for aligning the two modalities during training, and a second, intra-modal operator that only enforces intra-modal normalization but does nothing to promote intra-modal alignment. Via spectral analysis of the inter-modal operator, we identify an approximately isotropic subspace in which the two modalities are well-aligned, as well as anisotropic directions specific to each modality. We demonstrate that this aligned subspace can be directly obtained from the projector weights and that removing the anisotropic directions improves intra-modal alignment. Our experiments on intra-modal retrieval and classification benchmarks show that our training-free method reduces intra-modal misalignment, greatly lowers latency, and outperforms existing approaches across multiple pre-trained CLIP-like models. The code is publicly available at: https://github.com/simomagi/IsoCLIP.
研究动机与目标
- 理解为何 CLIP 在像图像对图像等内模态任务上的表现不佳。
- 表征 CLIP 投影头如何与余弦相似度和 CLIP 损失相互作用。
- 通过跨模态算子的谱分析识别共享语义子空间。
- 提出一种无需训练即可通过限制为各向同性方向来改进内模态对齐的方法。
- 在多个类似 CLIP 的模型及骨干上展示在内模态任务上的无延迟改进。
提出的方法
- 将 CLIP 的余弦相似度表述为涉及跨模态算子 Psi = Wi^T Wt,该算子将文本映射到图像空间。
- 分析 CLIP 损失梯度,证明 Psi 实现模态对齐而 Ii = Wi^T Wi 仅作为内模态归一化。
- 对 Psi 进行奇异值分解 Psi = U Sigma V^T,以研究谱特性并识别近似各向同性的中间带。
- 通过将图像投影头和文本投影头投射到对应的中间谱带的各向同性子空间 SpU 和 SpV,定义 IsoCLIP,得到 юл i = Wi U_SU U_SU^T 和 札 t = Wt V_SV V_SV^T。
- 证明使用具备各向同性限制的投影头计算的内模态相似性具有更强的区分性、并提升图像-图像及文本-文本任务的检索性能。
- 在需要时通过一阶线性化将 IsoCLIP 扩展到非线性投影头。
实验结果
研究问题
- RQ1跨模态算子 Psi = Wi^T Wt 在 CLIP 训练动态中的作用是什么?
- RQ2Psi 的谱如何与图像-图像与文本-文本任务的内模态对齐质量相关?
- RQ3将投影头限制在 Psi 的各向同性中间带是否能提升内模态检索而无需训练或额外延迟?
- RQ4IsoCLIP 是否在多种类似 CLIP 的模型与骨干网络上提供稳定改进?
- RQ5IsoCLIP 如何影响内模态基准的延迟和效率?
主要发现
- 跨模态算子 Psi 负责跨模态对齐的训练过程,而内模态算子 Wi^T Wi 仅执行归一化。
- 谱分析揭示一个近似各向同性的中间带,在该带内两个模态对齐良好,而顶端/底端的各向异方向与各自模态相关。
- 保留中间带的奇异向量以形成 IsoCLIP 投影头,能在内模态相似性上表现更好、在图像-图像与文本-文本任务的检索准确度上提升。
- IsoCLIP 具备显著的延迟降低,因为它是无训练的且不增加前向计算,在多种骨干网络和数据集上超越现有的基于翻转/反演的方法。
- 消融实验显示 whitening 或预投影基线不及仅保留各向同性中间带的方法,凸显排除非各向异性方向的优势。
- 来自多张表格的实证结果显示在多样基准上的 mAP/准确率提升,并相对于基线的延迟降低。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。