arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2306.02516cs.LGcs.IR
收藏

SamToNe:利用同塔负样本改进双编码器检索模型的对比损失

SamToNe: Improving Contrastive Loss for Dual Encoder Retrieval Models with Same Tower Negatives

Google Inc.(谷歌公司)

Fedor Moiseev, Gustavo Hernandez Abrego, Peter Dornbach, Imed Zitouni, Enrique Alfonseca, Zhe Dong

AI总结:

本文提出 SamToNe 对比损失,将同编码器塔中的查询或文档作为负样本,提升对称与非对称双编码器在多个检索基准上的表现,并从嵌入对齐和正则化角度解释其机理。

摘要:

双编码器已被用于检索任务和表示学习,并取得了良好效果。训练双编码器的标准方法是使用带批内负样本的对比损失。在本工作中,我们提出了一种改进的对比学习目标,将来自相同编码器塔的查询或文档加入负样本,并将其命名为“带同塔负样本的对比损失”(SamToNe)。通过在 MS MARCO 和 MultiReQA 的问答检索基准以及异构零样本信息检索基准(BEIR)上进行评估,我们证明 SamToNe 能够有效提升对称和非对称双编码器的检索质量。通过 t-SNE 算法(van der Maaten 和 Hinton,2008)直接探测两个编码塔的嵌入空间,我们观察到 SamToNe 确保了两个编码器塔所产生嵌入空间之间的对齐。基于对 top-1 检索结果的嵌入距离分布分析,我们进一步从正则化角度解释了该方法的有效性。

英文摘要:

Dual encoders have been used for retrieval tasks and representation learning with good results. A standard way to train dual encoders is using a contrastive loss with in-batch negatives. In this work, we propose an improved contrastive learning objective by adding queries or documents from the same encoder towers to the negatives, for which we name it as "contrastive loss with SAMe TOwer NEgatives" (SamToNe). By evaluating on question answering retrieval benchmarks from MS MARCO and MultiReQA, and heterogenous zero-shot information retrieval benchmarks (BEIR), we demonstrate that SamToNe can effectively improve the retrieval quality for both symmetric and asymmetric dual encoders. By directly probing the embedding spaces of the two encoding towers via the t-SNE algorithm (van der Maaten and Hinton, 2008), we observe that SamToNe ensures the alignment between the embedding spaces from the two encoder towers. Based on the analysis of the embedding distance distributions of the top-$1$ retrieved results, we further explain the efficacy of the method from the perspective of regularisation.

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

↑