arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2305.05095cs.CVcs.AI
收藏

少即是多:去除文本区域提升CLIP训练效率与鲁棒性

Less is More: Removing Text-regions Improves CLIP Training Efficiency and Robustness

Apple AI/ML(苹果人工智能与机器学习部门)

Liangliang Cao, Bowen Zhang, Chen Chen, Yinfei Yang, Xianzhi Du, Wencong Zhang, Zhiyun Lu, Yantao Zheng

AI总结:

本文提出通过扩充数据集和过滤含文本区域图像两种方法,提升CLIP训练效率与鲁棒性,并在ImageNet-Attr上实现68.78%的top-1准确率。

摘要:

CLIP(对比语言-图像预训练)模型及其变体正成为许多应用中的事实标准骨干网络。然而,从数亿图像-文本对中训练一个CLIP模型可能代价高昂。此外,传统CLIP模型不区分图像中嵌入的文本区域的视觉语义与含义,当嵌入区域中的文本与图像的视觉外观不匹配时,这可能导致模型缺乏鲁棒性。本文讨论了两种提高CLIP训练效率与鲁棒性的有效方法:(1)在保持相同优化步数的情况下扩充训练数据集,(2)过滤掉包含图像中文本区域的样本。通过这样做,我们在ImageNet和CoCo等公共基准上显著提高了分类和检索准确率。过滤掉带有文本区域的图像还能保护模型免受排版攻击。为了验证这一点,我们构建了一个名为ImageNet with Adversarial Text Regions(ImageNet-Attr)的新数据集。基于过滤的CLIP模型实现了68.78%的top-1准确率,优于之前所有准确率均低于50%的模型。

英文摘要:

The CLIP (Contrastive Language-Image Pre-training) model and its variants are becoming the de facto backbone in many applications. However, training a CLIP model from hundreds of millions of image-text pairs can be prohibitively expensive. Furthermore, the conventional CLIP model doesn't differentiate between the visual semantics and meaning of text regions embedded in images. This can lead to non-robustness when the text in the embedded region doesn't match the image's visual appearance. In this paper, we discuss two effective approaches to improve the efficiency and robustness of CLIP training: (1) augmenting the training dataset while maintaining the same number of optimization steps, and (2) filtering out samples that contain text regions in the image. By doing so, we significantly improve the classification and retrieval accuracy on public benchmarks like ImageNet and CoCo. Filtering out images with text regions also protects the model from typographic attacks. To verify this, we build a new dataset named ImageNet with Adversarial Text Regions (ImageNet-Attr). Our filter-based CLIP model demonstrates a top-1 accuracy of 68.78\%, outperforming previous models whose accuracy was all below 50\%.

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

↑