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

基于动态对比蒸馏的图文检索

Dynamic Contrastive Distillation for Image-Text Retrieval

Harbin Institute of Technology(哈尔滨工业大学);JD Explore Academy at JD.com(京东集团京东探索研究院);Eindhoven University of Technology(埃因霍温理工大学)

Jun Rao, Liang Ding, Shuhan Qi, Meng Fang, Yang Liu, Li Shen, Dacheng Tao

摘要:

尽管配备视觉和语言预训练(VLP)的跨模态图像-文本检索(ITR)在过去两年中取得了显着进展,但它存在一个主要缺点:VLP模型的不断增加限制了其在现实世界搜索场景中的部署(其中高延迟是不可接受的)。为了缓解这个问题,我们提出了一种新的插件动态对比蒸馏(DCD)框架来压缩大型VLP模型的ITR任务。在技术上,我们面临着以下两个挑战:1)典型的单峰度量学习方法很难直接应用于跨模态任务,这是由于在处理跨模态融合特征时,GPU内存有限,无法优化太多的负样本。2)不同的硬样本对蒸馏学习和学生网络优化的影响不同,静态优化学生网络效率低。我们试图从两个方面克服这些挑战。首先,为了实现多模态的对比学习,平衡训练成本和效果,我们提出用教师网络为学生估计困难样本,使学生从预先训练好的教师那里吸收强大的知识,并从困难样本中掌握知识。其次,对于硬样本对的动态学习,从更好地平衡知识的难度和学生自主学习能力的角度出发,提出了动态提炼的方法,对不同难度的样本进行动态学习。我们成功地将我们提出的DCD策略应用于两个最先进的视觉语言预训练模型,即ViLT和METER。在MS-COCO和Flickr 30 K基准测试上的大量实验表明了该DCD框架的有效性和高效性。令人鼓舞的是,我们可以加快推理至少129 $\times$相比,现有的ITR模型。

英文摘要:

Although the vision-and-language pretraining (VLP) equipped cross-modal image-text retrieval (ITR) has achieved remarkable progress in the past two years, it suffers from a major drawback: the ever-increasing size of VLP models restricts its deployment to real-world search scenarios (where the high latency is unacceptable). To alleviate this problem, we present a novel plug-in dynamic contrastive distillation (DCD) framework to compress the large VLP models for the ITR task. Technically, we face the following two challenges: 1) the typical uni-modal metric learning approach is difficult to directly apply to the cross-modal tasks, due to the limited GPU memory to optimize too many negative samples during handling cross-modal fusion features. 2) it is inefficient to static optimize the student network from different hard samples, which have different effects on distillation learning and student network optimization. We try to overcome these challenges from two points. First, to achieve multi-modal contrastive learning, and balance the training costs and effects, we propose to use a teacher network to estimate the difficult samples for students, making the students absorb the powerful knowledge from pre-trained teachers, and master the knowledge from hard samples. Second, to dynamic learn from hard sample pairs, we propose dynamic distillation to dynamically learn samples of different difficulties, from the perspective of better balancing the difficulty of knowledge and students' self-learning ability. We successfully apply our proposed DCD strategy to two state-of-the-art vision-language pretrained models, i.e. ViLT and METER. Extensive experiments on MS-COCO and Flickr30K benchmarks show the effectiveness and efficiency of our DCD framework. Encouragingly, we can speed up the inference at least 129$\times$ compared to the existing ITR models.

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

↑