arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2212.08653cs.CVeess.IV
收藏

注意力掩码CLIP

Attentive Mask CLIP

Microsoft Research Asia(微软亚洲研究院);Tongji University(同济大学);Tsinghua university(清华大学)

Yifan Yang, Weiquan Huang, Yixuan Wei, Houwen Peng, Xinyang Jiang, Huiqiang Jiang, Fangyun Wei, Yin Wang, Han Hu, Lili Qiu, Yuqing Yang

AI总结:

针对随机图像token移除影响CLIP训练准确率的问题,提出基于文本语义相关性的注意力token移除方法,结合多视图实例对比学习,在多个基准上实现准确率与效率的双重提升。

摘要:

图像token移除是一种用于降低图像特征计算成本的高效增强策略。然而,研究发现这种高效增强策略会对基于CLIP的训练准确率产生不利影响。我们假设,移除大部分图像token可能会不当丢弃与给定文本描述相关的语义内容,从而在CLIP训练中构成错误的配对目标。为解决这一问题,我们提出了一种用于CLIP训练的注意力token移除方法,该方法保留与文本描述具有高语义相关性的token。相关度得分使用视觉编码器的EMA(指数移动平均)版本以在线方式计算。我们的实验表明,所提出的注意力掩码方法在CLIP训练中表现优于以往的随机token移除方法。该方法还能高效地对图像应用多种增强视图,并且可以将这些视图之间的实例对比学习任务引入CLIP框架。与其他结合不同预训练目标的CLIP改进方法(如SLIP和MaskCLIP)相比,我们的方法不仅效果更好,而且效率更高。具体而言,使用ViT-B和YFCC-15M数据集,我们的方法在ImageNet-1K零样本分类上达到43.9%的top-1准确率,在Flickr30K和MS COCO上的图像到文本/文本到图像(I2T/T2I)检索准确率分别为62.7/42.1和38.0/23.2,比SLIP方法分别高出+1.1%、+5.5/+0.9和+4.4/+1.3,同时速度快2.30倍。我们方法的一个高效版本比普通CLIP模型运行速度快1.16倍,在这些基准测试上取得了+5.3%、+11.3/+8.0和+9.5/+4.9的显著提升。

英文摘要:

Image token removal is an efficient augmentation strategy for reducing the cost of computing image features. However, this efficient augmentation strategy has been found to adversely affect the accuracy of CLIP-based training. We hypothesize that removing a large portion of image tokens may improperly discard the semantic content associated with a given text description, thus constituting an incorrect pairing target in CLIP training. To address this issue, we propose an attentive token removal approach for CLIP training, which retains tokens with a high semantic correlation to the text description. The correlation scores are computed in an online fashion using the EMA version of the visual encoder. Our experiments show that the proposed attentive masking approach performs better than the previous method of random token removal for CLIP training. The approach also makes it efficient to apply multiple augmentation views to the image, as well as introducing instance contrastive learning tasks between these views into the CLIP framework. Compared to other CLIP improvements that combine different pre-training targets such as SLIP and MaskCLIP, our method is not only more effective, but also much more efficient. Specifically, using ViT-B and YFCC-15M dataset, our approach achieves $43.9\%$ top-1 accuracy on ImageNet-1K zero-shot classification, as well as $62.7/42.1$ and $38.0/23.2$ I2T/T2I retrieval accuracy on Flickr30K and MS COCO, which are $+1.1\%$, $+5.5/+0.9$, and $+4.4/+1.3$ higher than the SLIP method, while being $2.30\times$ faster. An efficient version of our approach running $1.16\times$ faster than the plain CLIP model achieves significant gains of $+5.3\%$, $+11.3/+8.0$, and $+9.5/+4.9$ on these benchmarks.

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

↑