Abstract
Neural document ranking approaches, specifically transformer models, have achieved impressive gains in ranking performance. However, query processing using such over-parameterized models is both resource and time intensive. In this paper, we propose the Fast-Forward index -- a simple vector forward index that facilitates ranking documents using interpolation of lexical and semantic scores -- as a replacement for contextual re-rankers and dense indexes based on nearest neighbor search. Fast-Forward indexes rely on efficient sparse models for retrieval and merely look up pre-computed dense transformer-based vector representations of documents and passages in constant time for fast CPU-based semantic similarity computation during query processing. We propose index pruning and theoretically grounded early stopping techniques to improve the query processing throughput. We conduct extensive large-scale experiments on TREC-DL datasets and show improvements over hybrid indexes in performance and query processing efficiency using only CPUs. Fast-Forward indexes can provide superior ranking performance using interpolation due to the complementary benefits of lexical and semantic similarities.
Introduction
Modern search engines typically utilize a two-stage pipeline: a fast retrieval stage to identify candidate documents, followed by a precise re-ranking stage using complex neural models. However, this architecture faces a significant "speed vs. accuracy" dilemma. Traditional keyword-based (sparse) retrieval is efficient but limited by vocabulary mismatch. Conversely, dense retrieval and cross-attention re-rankers offer deep semantic understanding but are computationally expensive, often requiring high-end GPUs and substantial memory. Furthermore, dense retrieval struggles to scale with long documents where representing multiple passages as searchable vectors becomes inefficient.
Methodology
The proposed Fast-Forward index rethinks the application of dense vectors. Instead of using vectors for initial discovery (which necessitates costly Approximate Nearest Neighbor searches), the system employs a traditional sparse index (e.g., BM25) for retrieval. The Fast-Forward index then serves as a lookup table to retrieve pre-computed semantic vectors for the candidate set.
Score Interpolation and Early Stopping
The final ranking score is calculated as a linear combination of the lexical score and the semantic similarity (vector dot-product). To optimize throughput, the authors introduced a mathematically grounded early stopping mechanism. Since the candidate list is pre-sorted by keyword relevance, the system can terminate vector score calculations once it is determined that remaining documents cannot enter the top-k results.
Sequential Coalescing
To manage the memory footprint, the authors utilize "topical locality"—the tendency of adjacent passages in a document to share semantic meaning. Sequential coalescing combines vectors of neighboring passages if their cosine distance is below a threshold $\delta$, significantly reducing index size.
Experimental Setup
The approach was evaluated on industry-standard benchmarks:
- TREC Deep Learning (DL) 2019 & 2020: Benchmarks for document and passage ranking.
- MS MARCO: Used for hyperparameter tuning and training dense encoders (TCT-ColBERT and ANCE).
Key Results and Insights
The Fast-Forward approach demonstrates that lexical and semantic scores are complementary. On the TREC-DL 2019 document task, it achieved an nDCG@10 of 0.696, outperforming pure dense retrieval (0.612) and standard cross-attention re-rankers (0.685).
Efficiency and Compression
The early stopping optimization reduced query processing latency by approximately 50% in passage retrieval tasks without compromising accuracy. Furthermore, sequential coalescing proved highly effective for index compression. As shown in Figure 6, increasing the distance threshold $\delta$ leads to substantial size reduction. At optimal settings, indexes were compressed to approximately 25% of their original size with only a negligible (~3%) drop in ranking quality.
Conclusion
Fast-Forward indexes provide a CPU-friendly alternative to GPU-intensive re-rankers. By shifting heavy vector encoding to an offline phase and utilizing forward lookups, the system avoids the overhead of ANN algorithms. While currently optimized for dual-encoder models, future work involves integrating document expansion techniques like docT5query to further enhance initial retrieval recall.
Summary updated