arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2405.12801cs.CLcs.IRcs.LG
收藏

一起比较邻居让事情变简单:联合比较多个候选以实现高效且有效的检索

Comparing Neighbors Together Makes it Easy: Jointly Comparing Multiple Candidates for Efficient and Effective Retrieval

Seoul National University(首尔大学);University of Massachusetts Amherst(马萨诸塞大学阿默斯特分校)

Jonghyun Song, Cheyon Jin, Wenlong Zhao, Andrew McCallum, Jay-Yoon Lee

AI总结:

本文提出 CMC 框架,通过浅层自注意力联合比较查询与多个近邻候选嵌入,缓解 BE-CE 检索中的误差传播,并以低延迟提升召回、top-1 准确率与排序效率。

摘要:

常见的检索与重排序范式使用快速的双编码器(BE)从大规模集合中检索相关候选,随后将昂贵但准确的交叉编码器(CE)应用于有限的候选集合。然而,依赖这一较小子集往往容易受到双编码器误差传播的影响,从而限制整体性能。为解决这些问题,我们提出 Comparing Multiple Candidates(CMC,联合比较多个候选)框架。CMC 通过浅层自注意力层比较一个查询与相似候选(即邻居)的多个嵌入,生成彼此上下文化的丰富表示。此外,CMC 具有足够的可扩展性,可同时处理多个比较。例如,用 CMC 比较约 10K 个候选所需的时间与用 CE 比较 16 个候选相近。在 ZeSHEL 数据集上的实验结果表明,当 CMC 作为无缝的中间重排序器插入双编码器与交叉编码器之间(BE-CMC-CE)时,相比仅使用双编码器(BE-CE),可有效提升 recall@k(R@16、R@64 分别提升 +4.8 个百分点、+3.5 个百分点),且延迟增加可忽略(<7%)。此外,为验证 CMC 作为末阶段重排序器在提升 top-1 准确率方面的有效性,我们在实体、段落和对话排序等下游任务上进行了实验。结果表明,CMC 不仅速度更快(11 倍),而且通常比 CE 更有效,在 Wikipedia 实体链接(+0.7 个百分点)和 DSTC7 对话排序(+3.3 个百分点)中提升了预测准确率。

英文摘要:

A common retrieve-and-rerank paradigm involves retrieving relevant candidates from a broad set using a fast bi-encoder (BE), followed by applying expensive but accurate cross-encoders (CE) to a limited candidate set. However, relying on this small subset is often susceptible to error propagation from the bi-encoders, which limits the overall performance. To address these issues, we propose the Comparing Multiple Candidates (CMC) framework. CMC compares a query and multiple embeddings of similar candidates (i.e., neighbors) through shallow self-attention layers, delivering rich representations contextualized to each other. Furthermore, CMC is scalable enough to handle multiple comparisons simultaneously. For example, comparing ~10K candidates with CMC takes a similar amount of time as comparing 16 candidates with CE. Experimental results on the ZeSHEL dataset demonstrate that CMC, when plugged in between bi-encoders and cross-encoders as a seamless intermediate reranker (BE-CMC-CE), can effectively improve recall@k (+4.8%-p, +3.5%-p for R@16, R@64) compared to using only bi-encoders (BE-CE), with negligible slowdown (<7%). Additionally, to verify CMC's effectiveness as the final-stage reranker in improving top-1 accuracy, we conduct experiments on downstream tasks such as entity, passage, and dialogue ranking. The results indicate that CMC is not only faster (11x) but also often more effective than CE, with improved prediction accuracy in Wikipedia entity linking (+0.7%-p) and DSTC7 dialogue ranking (+3.3%-p).

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

↑