arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2407.07479cs.CV
收藏

如何让交叉编码器成为高效图文检索的优秀教师?

How to Make Cross Encoder a Good Teacher for Efficient Image-Text Retrieval?

State Key Laboratory of Multimodal Artificial Intelligence Systems(多模态人工智能系统国家重点实验室);School of Information Science and Technology, ShanghaiTech University(上海科技大学信息科学与技术学院);The University of Hong Kong(香港大学);School of Artificial Intelligence, University of Chinese Academy of Sciences(中国科学院大学人工智能学院)

Yuxin Chen, Zongyang Ma, Ziqi Zhang, Zhongang Qi, Chunfeng Yuan, Bing Li, Junfu Pu, Ying Shan, Xiaojuan Qi, Weiming Hu

AI总结:

针对双编码器图文检索精度有限、交叉编码器效率低的问题,提出对比部分排序蒸馏方法,基于难负样本相对顺序排序蒸馏并协调两类损失,将交叉编码器知识高效迁移至双编码器,显著提升其精度。

摘要:

主流的双编码器模型可实现高效的图文检索,但存在精度有限的问题;而交叉编码器模型精度更高,却以效率为代价。将交叉模态匹配知识从交叉编码器蒸馏到双编码器,是一种结合二者优势的天然思路。因此我们探讨了一个颇具价值的问题:如何让交叉编码器成为双编码器的优秀教师?我们的研究发现有三点:(1)交叉编码器的跨模态相似度得分分布更为集中,而双编码器的结果近似正态分布,这使得普通的logit蒸馏效果不佳,但排序蒸馏不受得分分布影响,仍然实用。(2)仅难负样本之间的相对顺序传递有效知识,而易负样本之间的顺序信息几乎没有意义。(3)维持蒸馏损失与双编码器训练损失之间的协调有利于知识迁移。基于这些发现,我们提出了一种新颖的对比部分排序蒸馏(Contrastive Partial Ranking Distillation, CPRD)方法,该方法通过对比学习实现模仿难负样本之间相对顺序的目标,能够与双编码器的训练相协调,将有效知识从交叉编码器迁移到双编码器。在图文检索和排序任务上的大量实验表明,我们的方法优于其他蒸馏方法,显著提升了双编码器的精度。

英文摘要:

Dominant dual-encoder models enable efficient image-text retrieval but suffer from limited accuracy while the cross-encoder models offer higher accuracy at the expense of efficiency. Distilling cross-modality matching knowledge from cross-encoder to dual-encoder provides a natural approach to harness their strengths. Thus we investigate the following valuable question: how to make cross-encoder a good teacher for dual-encoder? Our findings are threefold:(1) Cross-modal similarity score distribution of cross-encoder is more concentrated while the result of dual-encoder is nearly normal making vanilla logit distillation less effective. However ranking distillation remains practical as it is not affected by the score distribution.(2) Only the relative order between hard negatives conveys valid knowledge while the order information between easy negatives has little significance.(3) Maintaining the coordination between distillation loss and dual-encoder training loss is beneficial for knowledge transfer. Based on these findings we propose a novel Contrastive Partial Ranking Distillation (CPRD) method which implements the objective of mimicking relative order between hard negative samples with contrastive learning. This approach coordinates with the training of the dual-encoder effectively transferring valid knowledge from the cross-encoder to the dual-encoder. Extensive experiments on image-text retrieval and ranking tasks show that our method surpasses other distillation methods and significantly improves the accuracy of dual-encoder.

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

↑