[Paper Review] Compressed Text Indexes:From Theory to Practice!
This paper presents a practical framework for compressed full-text self-indexes, introducing the Pizza&Chili website as a standardized, open-source platform offering optimized implementations, testbeds, and a common API for leading compressed indexes. It demonstrates through extensive experiments that these indexes achieve high compression (30–80% of original size) with competitive performance—up to 50,000 pattern searches per second and 1 MB/sec random extraction—making them viable for real-world applications on commodity hardware.
A compressed full-text self-index represents a text in a compressed form and still answers queries efficiently. This technology represents a breakthrough over the text indexing techniques of the previous decade, whose indexes required several times the size of the text. Although it is relatively new, this technology has matured up to a point where theoretical research is giving way to practical developments. Nonetheless this requires significant programming skills, a deep engineering effort, and a strong algorithmic background to dig into the research results. To date only isolated implementations and focused comparisons of compressed indexes have been reported, and they missed a common API, which prevented their re-use or deployment within other applications. The goal of this paper is to fill this gap. First, we present the existing implementations of compressed indexes from a practitioner's point of view. Second, we introduce the Pizza&Chili site, which offers tuned implementations and a standardized API for the most successful compressed full-text self-indexes, together with effective testbeds and scripts for their automatic validation and test. Third, we show the results of our extensive experiments on these codes with the aim of demonstrating the practical relevance of this novel and exciting technology.
Motivation & Objective
- To bridge the gap between theoretical advances in compressed text indexing and practical software deployment by providing a unified, reusable implementation framework.
- To address the lack of standardized APIs and reusable codebases in existing compressed index implementations, which hindered integration into larger applications.
- To evaluate and compare the performance of leading compressed full-text self-indexes across diverse text types and operations (count, locate, extract) in real-world scenarios.
- To demonstrate the practical feasibility and efficiency of compressed indexes for real-world workloads, showing they can achieve high compression with acceptable query performance.
Proposed method
- Design and deployment of the Pizza&Chili website as a centralized, open-access platform hosting tuned, production-ready implementations of major compressed full-text self-indexes.
- Implementation of a standardized application programming interface (API) to enable interoperability and reuse across different applications and systems.
- Creation of comprehensive testbeds and automated validation scripts to ensure correctness and reproducibility of index implementations.
- Benchmarking of multiple compressed indexes (e.g., CSA, SSA, AF-index, LZ-index) across diverse text corpora (DNA, English, XML, proteins, sources) using standard operations: counting, locating, and extracting substrings.
- Use of entropy-based compression models (e.g., H₀(T)) to analyze and compare index efficiency, particularly in relation to text compressibility and query complexity.
- Evaluation of time-space tradeoffs by varying sampling intervals and data structures (e.g., wavelet trees, FM-indices) to optimize performance for different text types.
Experimental results
Research questions
- RQ1Which compressed full-text self-indexes offer the best balance of space efficiency and query performance across diverse text types?
- RQ2How do different indexing structures (e.g., CSA, SSA, AF-index, LZ-index) compare in terms of compression ratio, counting, locating, and extraction speed?
- RQ3To what extent can compressed indexes achieve high performance (e.g., 1 MB/sec extraction) while using only 30–80% of the original text size?
- RQ4What are the practical limitations of compressed indexes in terms of cache efficiency and memory access patterns, and how do they affect real-world performance?
- RQ5Can a standardized API and shared test infrastructure significantly improve the reusability and deployment of compressed indexing technology in software systems?
Key findings
- The AF-index achieves superior performance on highly compressible texts like XML, sources, and English, particularly for counting, due to its efficient handling of high-order entropy.
- For low-alphabet texts such as DNA and proteins, the SSA (Wavelet Tree-based Suffix Array) outperforms other indexes in both locate and extract operations due to simpler data structures and better locality.
- The CSA (Burrows-Wheeler Transform with FM-index) provides strong performance across diverse text types, especially when space is constrained, and excels in extraction and locating tasks on high-compressibility texts.
- The LZ-index offers the fastest extraction speed—up to 1 MB/sec—on highly compressible texts like XML and English, but requires more than 1.5× the original text size, making it suitable only when extra space is available.
- All compressed indexes achieve compression ratios between 30% and 80% of the original text size, with query performance within one to three orders of magnitude slower than uncompressed suffix arrays, but with vastly reduced memory footprint.
- Despite non-local memory access patterns causing cache misses, the overall throughput of compressed indexes (e.g., 50,000 pattern searches/sec) is sufficient for most practical applications on commodity hardware, proving their real-world viability.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.