arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2302.08714cs.IRcs.AIcs.CV
收藏

腾讯基于二进制嵌入的检索

Binary Embedding-based Retrieval at Tencent

Tencent(腾讯)

Yukang Gan, Yixiao Ge, Chang Zhou, Shupeng Su, Zhouchuan Xu, Xuyuan Xu, Quanchao Hui, Xiang Chen, Yexin Wang, Ying Shan

摘要:

大规模嵌入式检索(EBR)是搜索相关工业应用的基石。给定用户查询,EBR的系统旨在从可能是数百亿或数千亿大小的大型文档语料库中识别相关信息。存储和计算结果是昂贵的,效率低下,大量的文档和高并发查询,使其难以进一步扩展。为了应对这一挑战,我们提出了一个基于二进制嵌入的检索(BEBR)引擎,该引擎配备了一个循环二进制化算法,可以实现每个维度的自定义位。具体来说,我们压缩的全精度查询和文档嵌入,制定为浮点向量一般,到多个二进制向量的组合使用一个轻量级的转换模型与残留多层感知(MLP)块。因此,我们可以为不同的应用定制位数,以平衡精度损失和成本节约。重要的是,我们使用一种新的嵌入到嵌入策略来实现任务无关的二值化模型的有效训练。我们还利用二进制嵌入的兼容训练,使BEBR引擎可以支持统一系统中的多个嵌入版本之间的索引。为了进一步实现有效的搜索,我们提出了对称距离计算(SDC),以实现更低的响应时间比汉明码。我们成功地将BEBR引入腾讯产品,包括搜狗,腾讯视频,QQ世界等。二值化算法可以无缝地推广到具有多种模态的各种任务。大量的离线基准测试和在线A/B测试实验表明,该方法的效率和有效性,显着节省30%~50%的指标成本,几乎没有损失的准确性在系统级。

英文摘要:

Large-scale embedding-based retrieval (EBR) is the cornerstone of search-related industrial applications. Given a user query, the system of EBR aims to identify relevant information from a large corpus of documents that may be tens or hundreds of billions in size. The storage and computation turn out to be expensive and inefficient with massive documents and high concurrent queries, making it difficult to further scale up. To tackle the challenge, we propose a binary embedding-based retrieval (BEBR) engine equipped with a recurrent binarization algorithm that enables customized bits per dimension. Specifically, we compress the full-precision query and document embeddings, formulated as float vectors in general, into a composition of multiple binary vectors using a lightweight transformation model with residual multilayer perception (MLP) blocks. We can therefore tailor the number of bits for different applications to trade off accuracy loss and cost savings. Importantly, we enable task-agnostic efficient training of the binarization model using a new embedding-to-embedding strategy. We also exploit the compatible training of binary embeddings so that the BEBR engine can support indexing among multiple embedding versions within a unified system. To further realize efficient search, we propose Symmetric Distance Calculation (SDC) to achieve lower response time than Hamming codes. We successfully employed the introduced BEBR to Tencent products, including Sogou, Tencent Video, QQ World, etc. The binarization algorithm can be seamlessly generalized to various tasks with multiple modalities. Extensive experiments on offline benchmarks and online A/B tests demonstrate the efficiency and effectiveness of our method, significantly saving 30%~50% index costs with almost no loss of accuracy at the system level.

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

↑