Abstract
Modern search systems often struggle to balance the high recall of keyword-based retrieval with the deep semantic understanding of neural models, especially for long documents. This paper introduces the Fast-Forward index, a novel ranking approach that utilizes a vector forward index to look up pre-computed embeddings. By combining sparse retrieval with semantic similarity scores, the system achieves state-of-the-art performance on CPUs, bypassing the need for expensive GPU-accelerated re-ranking or complex nearest-neighbor searches.
The Challenge of Modern Ranking
Traditional search engines typically employ a two-stage pipeline. First, a retrieval stage uses keyword matching (e.g., BM25) to identify a candidate set. Second, a re-ranking stage applies a powerful Transformer model like BERT to refine the order. However, this architecture faces significant hurdles with long documents. Keyword search often fails due to vocabulary mismatch, while dense retrieval models—which represent documents as single vectors—frequently lose recall when a document covers multiple topics. Furthermore, re-ranking thousands of candidates with Transformers is computationally intensive, often requiring specialized GPU hardware.
The Fast-Forward Index Approach
The core innovation presented is the Fast-Forward index. Unlike standard dense retrieval that relies on computationally expensive Approximate Nearest Neighbor (ANN) searches, this system leverages the strengths of both lexical and semantic signals.
The process follows four key steps:
- Sparse Retrieval: A standard BM25 search generates an initial candidate set.
- Vector Look-up: The system uses the Fast-Forward index to retrieve pre-computed dense vector representations for these specific candidates in constant time.
- Similarity Computation: A semantic similarity score (typically a dot product) is calculated between the query and the retrieved document/passage vectors.
- Score Interpolation: The final ranking is determined by a linear combination of the initial keyword score and the new semantic score.
Optimization Techniques
To ensure high efficiency and a low memory footprint, the authors introduce two primary optimizations:
Sequential Coalescing
Since long documents are typically partitioned into passages, storing a vector for every passage is memory-intensive. Sequential Coalescing merges similar, consecutive passage vectors into a single representative vector. This technique can reduce index size by up to 75% with negligible impact on ranking accuracy, exploiting the fact that adjacent passages often share topical focus.
Early Stopping
Because the initial sparse retrieval results are already sorted by relevance, the system can calculate a theoretical upper bound for the total score of remaining documents. If a document's maximum possible score (current keyword score + maximum possible semantic score) cannot surpass the current top-K threshold, the system terminates vector look-ups early.
Key Results and Insights
The researchers evaluated the Fast-Forward index on the TREC Deep Learning (TREC-DL) 2019 and 2020 tracks.
- Performance Gains: On the TREC-DL Doc'19 dataset, the approach achieved an nDCG@10 of 0.696, a substantial improvement over BM25 (0.519) and pure dense retrieval (0.612).
- Efficiency: Sequential coalescing reduced memory usage by 75%, while early stopping cut query processing time by up to 50%.
- Hardware Accessibility: The system delivers high-quality neural ranking entirely on CPUs, making it a cost-effective alternative to GPU-heavy cross-encoder models.
Conclusion
The Fast-Forward index demonstrates that combining lexical "anchors" with semantic "context" through a simple interpolation of scores is highly effective. By moving vector encoding to an offline phase and optimizing look-ups, the authors provide a scalable, CPU-friendly path for integrating deep learning into production-grade search systems. Future work will explore more advanced passage aggregation methods beyond the current "MaxP" strategy.
Summary updated