arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2305.20088cs.CVcs.CLcs.LG
收藏

通过语言重写改进 CLIP 训练

Improving CLIP Training with Language Rewrites

Google Research(谷歌研究院);MIT CSAIL(麻省理工学院计算机科学与人工智能实验室)

Lijie Fan, Dilip Krishnan, Phillip Isola, Dina Katabi, Yonglong Tian

AI总结:

本文提出 LaCLIP,通过大语言模型重写图像文本描述作为文本增强,在不增加训练开销的情况下显著提升 CLIP 的迁移性能和零样本准确率。

摘要:

对比语言-图像预训练(CLIP)是利用成对图像和文本数据训练可迁移视觉模型的最有效且可扩展的方法之一。CLIP 模型使用对比损失进行训练,通常依赖数据增强来防止过拟合和捷径学习。然而,在 CLIP 训练范式中,数据增强仅应用于图像输入,而语言输入在整个训练过程中保持不变,限制了同一图像接触多样化文本的机会。在本文中,我们提出了语言增强 CLIP(LaCLIP),这是一种简单而高效的方法,通过语言重写来增强 CLIP 训练。利用大语言模型的上下文学习能力,我们重写与每张图像相关联的文本描述。这些重写后的文本在句子结构和词汇上表现出多样性,同时保留原始关键概念和含义。在训练过程中,LaCLIP 随机选择原始文本或重写版本作为每张图像的文本增强。在 CC3M、CC12M、RedCaps 和 LAION-400M 数据集上的大量实验表明,使用语言重写进行 CLIP 预训练可显著提升迁移性能,且不会带来训练期间的计算或内存开销。具体而言,在 ImageNet 零样本准确率上,LaCLIP 在 CC12M 上比 CLIP 高出 8.2%,在 LAION-400M 上高出 2.4%。代码可在 https://github.com/LijieFan/LaCLIP 获取。

英文摘要:

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.

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

↑