TL;DR
This paper introduces a highly efficient framework for dynamic inverted indexing, enabling new documents to be searchable the moment they arrive. By combining a novel "Double-VByte" compression technique with a "Triangle" block-allocation strategy, the authors achieve a document-level index that requires as little as two bytes per posting—less than half the space of previous state-of-the-art methods—while maintaining gigabyte-per-minute ingestion speeds.
What Problem Does This Paper Address?
In modern information retrieval, there is a fundamental "three-way tension" between three competing goals: Fast Insertion (ingesting new data quickly), Small Index Size (minimizing memory footprint), and Fast Querying (resolving searches in milliseconds).
Static indexes are great at being small and fast to query because they can be optimized offline. However, in dynamic systems (like news feeds or social media), documents arrive in a continuous stream and must be findable immediately. Traditional dynamic methods often sacrifice space (using bloated pointers or uncompressed data) or query speed to achieve fast ingestion. The authors aim to find a new "sweet spot" in the interior of this trade-off triangle.
Methods
The authors propose a dynamic index structured as a chain of fixed-size blocks. Their approach introduces three primary innovations:
- Integrated Vocabulary: Instead of storing the vocabulary (terms and their global stats) in a separate data structure, they embed it directly into the "head block" of each term's postings list. This eliminates the metadata overhead typically associated with managing thousands of tiny, independent lists.
- Double-VByte Compression: Standard VByte compression encodes document ID gaps ($g$) and term frequencies ($f$) separately, requiring at least one byte for each. Double-VByte "folds" these two values into a single value before encoding. If $f$ is small (which it usually is), both $g$ and $f$ can often fit into a single byte, reducing postings size by roughly one-third.
- The Triangle Strategy: When a postings list grows and needs a new block, how big should that block be?
- Constant sizes lead to too many pointers.
- Geometric growth (doubling the size) leads to massive "tail wastage" (unused space in the last block).
- The Triangle Strategy grows block sizes proportional to the square root of the current list length ($\sqrt{n}$). This ensures that the overhead from both pointers and unused space becomes a vanishingly small fraction of the total index as it grows.
Datasets
The authors evaluated their system using three standard, widely-accessible text collections:
- WSJ1: Newspaper text from the Wall Street Journal (1987–1989).
- Robust04: A collection of newswire documents from the 80s and 90s.
- Wikipedia: A massive dump of the English Wikipedia (April 2022), containing nearly a billion postings.
They also utilized the TREC Million Query Track to generate a realistic log of approximately 28,000 test queries.
Key Insights and Ideas
- Metadata is the Enemy: In dynamic indexing, the "pointers" and "headers" often take up more space than the actual data. By merging the vocabulary into the postings blocks, the authors significantly reduced this "tax."
- Sub-linear Overhead: The Triangle strategy is a mathematical "aha moment." While previous methods accepted a constant percentage of wasted space (e.g., 5-10%), the Triangle strategy makes the waste sub-linear ($\Theta(n^{1/2})$), meaning the index actually becomes more space-efficient as it gets larger.
- Cache Locality via Collation: Because dynamic blocks are allocated as documents arrive, a single term's postings are scattered across memory, causing "cache misses" during queries. The authors show that a "periodic collation"—briefly pausing to reorder blocks so a term's data is contiguous—can double the speed of conjunctive queries.
Key Results
- Space Efficiency: The system achieves document-level indexing at ~2.0 bytes per posting. For word-level indexing (which includes exact positions), it uses ~2.5 bytes per posting. This is roughly 3x more compact than previous dynamic indexing implementations like Hawking and Billerbeck.
- Ingestion Speed: On a typical server, the system ingests data at a rate of 2 gigabytes per minute.
- Query Performance: Multi-term conjunctive Boolean queries are resolved in just a few milliseconds, even while new documents are being ingested simultaneously.
- Scalability: The architecture supports in-memory indexes up to 256 GiB, capable of handling over 100 billion postings.
Limitations and Future Work
- Deletions and Updates: The current implementation only handles "append" and "search." It does not yet support document deletions or updates, which are notoriously difficult in gap-encoded inverted indexes.
- Concurrency: The paper assumes a simplified model where document ingestion and querying are interleaved. A production-ready version would require more robust concurrency controls and locking mechanisms.
- Ranking Complexity: While the system supports basic TF-IDF ranking, the authors note that more complex models (like BM25) would require storing additional metadata (like document lengths), which was excluded from this specific study to focus on the core index structure.
Summary updated