[论文解读] CLOOB: Modern Hopfield Networks with InfoLOOB Outperform CLIP
CLOOB 将 CLIP 的对比目标替换为 InfoLOOB,并使用现代 Hopfield 网络来增强嵌入以丰富协方差结构,从而在多组数据集上实现零样本迁移的最先进性能。
CLIP yielded impressive results on zero-shot transfer learning tasks and is considered as a foundation model like BERT or GPT3. CLIP vision models that have a rich representation are pre-trained using the InfoNCE objective and natural language supervision before they are fine-tuned on particular tasks. Though CLIP excels at zero-shot transfer learning, it suffers from an explaining away problem, that is, it focuses on one or few features, while neglecting other relevant features. This problem is caused by insufficiently extracting the covariance structure in the original multi-modal data. We suggest to use modern Hopfield networks to tackle the problem of explaining away. Their retrieved embeddings have an enriched covariance structure derived from co-occurrences of features in the stored embeddings. However, modern Hopfield networks increase the saturation effect of the InfoNCE objective which hampers learning. We propose to use the InfoLOOB objective to mitigate this saturation effect. We introduce the novel "Contrastive Leave One Out Boost" (CLOOB), which uses modern Hopfield networks for covariance enrichment together with the InfoLOOB objective. In experiments we compare CLOOB to CLIP after pre-training on the Conceptual Captions and the YFCC dataset with respect to their zero-shot transfer learning performance on other datasets. CLOOB consistently outperforms CLIP at zero-shot transfer learning across all considered architectures and datasets.
研究动机与目标
- 激发对特征协方差的改进利用,超越 CLIP 的解释性消解问题。
- 提出基于现代 Hopfield 网络的协方差富化方法,以提升跨模态表示。
- 引入 InfoLOOB 作为对比学习的非饱和目标。
- 展示在多个数据集和架构上相较于 CLIP 的零样本迁移改进。
提出的方法
- 用 CLOOB 取代标准的 CLIP 风格对比学习,该方法通过两个存储图像和文本嵌入的现代 Hopfield 网络检索被强化的嵌入。
- 使用带有 softmax 注意力(Hopfield 检索)的存储模式计算检索 U_x、U_y、V_x、V_y。
- 在 InfoLOOB 损失中使用归一化的检索嵌入,强制对检索锚点进行对齐,并利用两个对称项(图像到文本和文本到图像)。
- InfoLOOB 损失计算两项,其形式类似于对数软最大比,但不具备 InfoNCE 的饱和特性,使对齐增长时仍能继续提升。
- 提供对 InfoLOOB 及其非饱和特性的理论依据。
- 在 Conceptual Captions 和 YFCC 的预训练后,评估七个下游数据集上的零样本迁移。
实验结果
研究问题
- RQ1现代 Hopfield 网络是否能在多模态嵌入中丰富协方差结构,超越 CLIP?
- RQ2用 InfoLOOB 取代 InfoNCE 是否在不降低、甚至提升零样本性能的同时缓解饱和?
- RQ3在 CC 与 YFCC 预训练后,CLOOB 在标准基准数据集上的零样本迁移表现如何?
- RQ4基于 Hopfield 的协方差富化对表示的均匀性和嵌入的特征值谱的实证影响是什么?
主要发现
- CLOOB 在所有考虑的架构和数据集上(CC 与 YFCC 预训练)在零样本迁移方面持续优于 CLIP。
- 现代 Hopfield 网络在学习过程中提高了嵌入协方差矩阵的有效特征值,表明协方差结构得到丰富。
- InfoLOOB 避免了 InfoNCE 饱和,并在高维单位球上产生更均匀的图像/文本嵌入,帮助训练。
- 消融分析显示协同效应:Hopfield 富化加上 InfoLOOB 的组合效果优于任一单独组件。
- 更大的视觉编码器(如 ResNet 变体)提升 CLOOB 性能,在多数任务上常常超过 CLIP。
- CLOOB 在多个人 zero-shot 数据集和设置中达到优于或与 CLIP 重现版本相当的结果。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。