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

基于学习相似度的检索

Retrieval with Learned Similarities

Microsoft Research(微软研究院);Meta

Bailu Ding, Jiaqi Zhai

AI总结:

本文研究基于学习相似度的高效检索技术,提出 Mixture-of-Logits (MoL) 作为相似度函数的通用近似器,并结合互信息负载均衡损失在多场景创下新SOTA,其近似 top-k 算法在保持>0.99召回率下延迟优于基线达66倍。

摘要:

检索在推荐系统、搜索和自然语言处理(NLP)中发挥着基础性作用,通过在给定查询时从大型语料库中高效查找相关项目。点积在此类任务中被广泛用作相似度函数,这得益于最大内积搜索(MIPS)算法实现的高效检索。然而,最先进的检索算法已转向学习相似度。这些先进方法涵盖多查询嵌入、复杂神经网络、通过束搜索的直接项目ID解码以及混合解决方案。遗憾的是,我们缺乏在这些最先进设置下进行检索的高效解决方案。我们的工作通过研究具有强表达能力的学习相似度函数的高效检索技术来填补这一空白。我们将 Mixture-of-Logits (MoL) 确立为相似度函数的通用近似器,证明 MoL 的表达能力可以在经验上实现以在多样化检索场景中取得卓越性能,并提出使用 MoL 检索近似 top-k 结果且具有严格误差界限的技术。通过广泛实验,我们表明由我们提出的基于互信息的负载均衡损失增强的 MoL,在异构场景中创下了新的最先进成果,包括推荐系统中的序列检索模型和用于问答的微调语言模型;并且与精确算法相比,我们的近似 top-k 算法在延迟上优于基线高达 66 倍,同时召回率超过 0.99。

英文摘要:

Retrieval plays a fundamental role in recommendation systems, search, and natural language processing (NLP) by efficiently finding relevant items from a large corpus given a query. Dot products have been widely used as the similarity function in such tasks, enabled by Maximum Inner Product Search (MIPS) algorithms for efficient retrieval. However, state-of-the-art retrieval algorithms have migrated to learned similarities. These advanced approaches encompass multiple query embeddings, complex neural networks, direct item ID decoding via beam search, and hybrid solutions. Unfortunately, we lack efficient solutions for retrieval in these state-of-the-art setups. Our work addresses this gap by investigating efficient retrieval techniques with expressive learned similarity functions. We establish Mixture-of-Logits (MoL) as a universal approximator of similarity functions, demonstrate that MoL's expressiveness can be realized empirically to achieve superior performance on diverse retrieval scenarios, and propose techniques to retrieve the approximate top-k results using MoL with tight error bounds. Through extensive experimentation, we show that MoL, enhanced by our proposed mutual information-based load balancing loss, sets new state-of-the-art results across heterogeneous scenarios, including sequential retrieval models in recommendation systems and finetuning language models for question answering; and our approximate top-$k$ algorithms outperform baselines by up to 66x in latency while achieving >.99 recall rate compared to exact algorithms.

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

↑