基于对比积Quantization的BERT端到端细化量化高效文档检索
Efficient Document Retrieval by End-to-End Refining and Quantizing BERT Embedding with Contrastive Product Quantization
摘要:
高效的文档检索在很大程度上依赖于语义哈希技术,该技术为每个文档学习一个二进制代码,并使用汉明距离来评估文档距离。然而,现有的语义散列方法大多是建立在过时的TFIDF特征上,这些特征显然不包含大量关于文档的重要语义信息。此外,汉明距离只能等于几个整数值之一,大大限制了它对文档距离的表示能力。为了解决这些问题,在本文中,我们建议利用BERT嵌入进行有效的检索的基础上的产品量化技术,这将分配给每个文档的代码簿的实值码字,而不是一个二进制代码的语义哈希。具体来说,我们首先通过可学习的映射变换原始BERT嵌入,并将变换后的嵌入馈送到概率乘积量化模块中以输出分配的码字。可以通过最小化概率对比损失来以端到端的方式优化细化和量化模块。进一步提出了一种基于互信息最大化的方法来提高码字的代表性,从而使文档的量化更加精确。在三个基准上进行的大量实验表明,我们提出的方法显着优于当前最先进的基线。
英文摘要:
Efficient document retrieval heavily relies on the technique of semantic hashing, which learns a binary code for every document and employs Hamming distance to evaluate document distances. However, existing semantic hashing methods are mostly established on outdated TFIDF features, which obviously do not contain lots of important semantic information about documents. Furthermore, the Hamming distance can only be equal to one of several integer values, significantly limiting its representational ability for document distances. To address these issues, in this paper, we propose to leverage BERT embeddings to perform efficient retrieval based on the product quantization technique, which will assign for every document a real-valued codeword from the codebook, instead of a binary code as in semantic hashing. Specifically, we first transform the original BERT embeddings via a learnable mapping and feed the transformed embedding into a probabilistic product quantization module to output the assigned codeword. The refining and quantizing modules can be optimized in an end-to-end manner by minimizing the probabilistic contrastive loss. A mutual information maximization based method is further proposed to improve the representativeness of codewords, so that documents can be quantized more accurately. Extensive experiments conducted on three benchmarks demonstrate that our proposed method significantly outperforms current state-of-the-art baselines.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。