Abstract
Modern search engines rely on massive inverted indices, often stored in RAM to minimize latency. While traditional compression techniques focus on individual posting lists, they ignore redundancies across different terms. This paper introduces a lossless compression method that treats the term-document matrix as an exact sparse matrix factorization problem ($V = WH$). By mapping terms to a new "meta-term" space, the approach reduces the total number of non-zero elements. Evaluation on the TREC WT10g corpus shows that this method can reduce index size by up to 50% when combined with standard encoding, without sacrificing query performance.
Introduction
Inverted indices are fundamental to information retrieval, but their size poses significant memory constraints. Traditional lossless compression methods, such as variable-byte or delta encoding, operate on individual posting lists. However, these methods fail to exploit cross-term redundancies—patterns where different terms appear in the same sets of documents (e.g., "Britney" and "Spears"). This research proposes a factorization-based approach to identify and eliminate these multi-list redundancies by treating the index as a sparse matrix.
Methodology
The core idea is to represent the term-document matrix $V$ as the product of two matrices, $W$ and $H$, such that $V = WH$.
The matrix $W$ maps original terms to "meta-terms," while $H$ contains the compressed posting lists for these meta-terms. The goal is to minimize the total number of non-zero entries in both $W$ and $H$. Because finding the optimal factorization is NP-hard, the authors employ a greedy algorithm that iteratively identifies identical or proportional segments of posting lists.
To scale this to web-sized indices, the algorithm is implemented using MapReduce. Furthermore, to ensure query efficiency, the authors adapted the No-Random-Access (NRA) algorithm to work with "virtual lists," allowing the search engine to process meta-terms as if they were original terms, preserving early termination properties that make top-k retrieval fast.
Experimental Evaluation
The method was tested on the TREC WT10g corpus (1.7M documents) and evaluated using 50,000 queries from the AOL log.
- Space Efficiency: The factorization alone achieved a 20-35% reduction in non-zero elements. When layered with variable-byte encoding, the total space savings reached 50%.
- Query Latency: The compressed index often performed as well as or better than the uncompressed version. For $k=20$ top-k retrieval, a 6% latency improvement was observed, likely due to the reduction in the total number of elements processed during query evaluation.
- Scalability: The MapReduce implementation proved capable of processing millions of terms, with the mapping matrix $W$ remaining extremely compact (less than 1% of the total index size).
Conclusion
Factorization-based compression offers a powerful, orthogonal layer to traditional index compression. By reducing the number of elements rather than just their encoding size, it provides significant space savings with minimal latency overhead. While the initial computation is intensive, the resulting efficiency makes it a viable strategy for memory-resident search indices. Future work includes handling complex payloads and optimizing incremental updates as the corpus evolves.
Summary updated