Skip to main content
QUICK REVIEW

[论文解读] Improving CLIP Training with Language Rewrites

Lijie Fan, Dilip Krishnan|arXiv (Cornell University)|May 31, 2023
Multimodal Machine Learning ApplicationsComputer Science被引用 35
一句话总结

LaCLIP 通过使用 LLaMA 的在上下文学习生成多样化的改写标题来增强 CLIP 训练,提升零样本、少样本和线性探测的迁移,而无需额外的训练成本。

ABSTRACT

Contrastive Language-Image Pre-training (CLIP) stands as one of the most effective and scalable methods for training transferable vision models using paired image and text data. CLIP models are trained using contrastive loss, which typically relies on data augmentations to prevent overfitting and shortcuts. However, in the CLIP training paradigm, data augmentations are exclusively applied to image inputs, while language inputs remain unchanged throughout the entire training process, limiting the exposure of diverse texts to the same image. In this paper, we introduce Language augmented CLIP (LaCLIP), a simple yet highly effective approach to enhance CLIP training through language rewrites. Leveraging the in-context learning capability of large language models, we rewrite the text descriptions associated with each image. These rewritten texts exhibit diversity in sentence structure and vocabulary while preserving the original key concepts and meanings. During training, LaCLIP randomly selects either the original texts or the rewritten versions as text augmentations for each image. Extensive experiments on CC3M, CC12M, RedCaps and LAION-400M datasets show that CLIP pre-training with language rewrites significantly improves the transfer performance without computation or memory overhead during training. Specifically for ImageNet zero-shot accuracy, LaCLIP outperforms CLIP by 8.2% on CC12M and 2.4% on LAION-400M. Code is available at https://github.com/LijieFan/LaCLIP.

研究动机与目标

  • 通过文本扩增来提升 CLIP,以解决语言端过拟合和文本多样性受限的问题。
  • 提出一种可扩展的方法,使用开源 LLM 在训练期间不产生额外计算量的情况下改写图像标题。
  • 证明文本增强在多数据集和骨干网络上的迁移性能提升。
  • 展示将 LaCLIP 与现有基于 CLIP 的框架结合时的兼容性与收益。

提出的方法

  • 通过使用 LLaMA ICL 与元输入-输出提示,提出语言增强的 CLIP(LaCLIP),为每张图像生成多个改写标题。
  • 从 ChatGPT、Bard、MSCOCO 和人类那里创建元输入-输出标题对以指导改写。
  • 将每个标题改写为产生 M=4 个多样化变体,同时保留关键概念。
  • 通过在原始标题与改写标题之间抽样来扩增 CLIP 训练的文本。
  • 在保持训练成本和模型参数相对于标准 CLIP不变的前提下,增加文本增强。
  • 可选扩展到 LaCLIP-MT,利用所有改写标题的多正样本对比损失。

实验结果

研究问题

  • RQ1语言改写的标题是否能提升 CLIP 的跨模态对齐与迁移性能?
  • RQ2LaCLIP 在不同的预训练数据规模和骨干架构下的表现如何?
  • RQ3不同来源的元输入-输出对对改写质量和下游性能有何影响?
  • RQ4通过语言改写的文本增强是否能推广到 SLIP 基于或其他衍生自 CLIP 的框架?

主要发现

  • LaCLIP 在 ImageNet 零样本及下游数据集上的表现持续优于原生 CLIP,覆盖多种预训练规模(如 CC12M、LAION-400M)。
  • LaCLIP 在 CC12M 上相对于 CLIP 的 ImageNet 零样本准确率提升可达 8.2 个百分点,并在 LAION-400M 上显示显著收益。
  • 使用带有LLM改写的文本增强在零样本、少样本和线性探测方面带来增益,且无需额外训练成本或参数。
  • LaCLIP 在不同骨干尺寸(ViT-S/16、ViT-B/16、ViT-L/16)上提升性能,并与其他基于 CLIP 的改进(如 SLIP)保持兼容。
  • 使用多种文本改写作为输入时效果稳定提升,人工生成的改写常带来相对其他来源的微小优势。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。