基于因子分解的倒排索引无损压缩
Factorization-based Lossless Compression of Inverted Indices
摘要:
许多需要排名前k检索的大型Web应用程序(例如Web搜索和在线广告)都是使用倒排索引实现的。倒排索引表示稀疏的术语-文档矩阵,其中非零元素指示术语-文档关联的强度。在这项工作中,我们提出了一种倒排索引的无损压缩的方法。我们的方法将文档语料库中的术语映射到一个新的术语空间,以减少术语-文档矩阵中非零元素的数量,从而产生更紧凑的倒排索引。我们制定的问题,选择一个新的术语空间,最大限度地减少所产生的索引大小作为一个矩阵分解问题,并证明,找到最佳的分解是一个NP-困难的问题。我们开发了一个贪心算法来寻找近似解。我们的方法的一个副作用是增加了索引中的术语数量,这可能会对查询评估性能产生负面影响。为了消除这种影响,我们开发了一种方法来修改查询评估算法,利用我们的压缩方法的特定属性。我们的实验评估表明,我们的方法实现了索引大小减少20%,同时保持相同的查询响应时间。可以实现高达35%的更高压缩率,但代价是查询响应时间稍长。此外,结合我们的方法与其他无损压缩技术,即可变字节编码,导致索引大小减少高达50%。
英文摘要:
Many large-scale Web applications that require ranked top-k retrieval such as Web search and online advertising are implemented using inverted indices. An inverted index represents a sparse term-document matrix, where non-zero elements indicate the strength of term-document association. In this work, we present an approach for lossless compression of inverted indices. Our approach maps terms in a document corpus to a new term space in order to reduce the number of non-zero elements in the term-document matrix, resulting in a more compact inverted index. We formulate the problem of selecting a new term space that minimizes the resulting index size as a matrix factorization problem, and prove that finding the optimal factorization is an NP-hard problem. We develop a greedy algorithm for finding an approximate solution. A side effect of our approach is increasing the number of terms in the index, which may negatively affect query evaluation performance. To eliminate such effect, we develop a methodology for modifying query evaluation algorithms by exploiting specific properties of our compression approach. Our experimental evaluation demonstrates that our approach achieves an index size reduction of 20%, while maintaining the same query response times. Higher compression ratios up to 35% are achievable, however at the cost of slightly longer query response times. Furthermore, combining our approach with other lossless compression techniques, namely variable-byte encoding, leads to index size reduction of up to 50%.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。