Abstract
Recent advances in large language models have demonstrated remarkable effectiveness in information retrieval (IR) tasks. While many neural IR systems encode queries and documents into single-vector representations, multi-vector models elevate the retrieval quality by producing multi-vector representations and facilitating similarity searches at the granularity of individual tokens. However, these models significantly amplify memory and storage requirements for retrieval indices by an order of magnitude. This escalation in index size renders the scalability of multi-vector IR models progressively challenging due to their substantial memory demands. We introduce Embedding from Storage Pipelined Network (ESPN) where we offload the entire re-ranking embedding tables to SSDs and reduce the memory requirements by 5-16x. We design a software prefetcher with hit rates exceeding 90%, improving SSD based retrieval up to 6.4x, and demonstrate that we can maintain near memory levels of query latency even for large query batch sizes.
Introduction
Modern Information Retrieval (IR) has transitioned from simple keyword matching to sophisticated neural models. While "single-vector" models represent an entire document as a single point in space, "multi-vector" models, such as ColBERT, represent documents at the token level. This granularity leads to significantly higher accuracy but introduces a massive storage challenge: multi-vector indices can be up to 200x larger than traditional methods.
To maintain low query latency, these indices are typically stored in System RAM (DRAM). However, for web-scale datasets, the cost of RAM becomes prohibitively expensive. Traditional operating system workarounds like memory mapping (mmap) or swap space often fail because they introduce significant software overhead and blocking delays that degrade query performance. ESPN (Embedding from Storage Pipelined Network) addresses this by offloading embedding tables to SSDs while maintaining the speed of RAM-based systems.
The ESPN Architecture
ESPN is designed to pipeline the retrieval process to hide the latency of storage access. The architecture relies on several key innovations:
- GPUDirect Storage (GDS): By utilizing NVIDIA’s GDS, ESPN streams embeddings directly from the SSD to GPU memory, bypassing the CPU and reducing system overhead.
- ANN-Based Prefetcher: Most retrieval systems use Approximate Nearest Neighbor (ANN) search to find candidate documents. ESPN introduces a "look-ahead" prefetcher that predicts which documents will be needed after exploring only a fraction of the search space, initiating SSD fetches immediately.
- Pipelined Execution: This approach ensures that by the time the ANN search concludes, the necessary embeddings are already present in GPU memory for re-ranking.
Experimental Results
The researchers evaluated ESPN using the MS-MARCO v1 and v2 benchmarks. A critical finding was that the software prefetcher achieved a hit rate exceeding 90% after exploring only 30% of the search space. This allows the system to hide SSD latency within the "prefetch budget"—the time naturally taken by the ANN search algorithm.
As shown in the latency analysis, when memory is constrained (e.g., 10 GB), traditional mmap performance degrades significantly (reaching 183.2 ms) due to the high cost of embedding retrieval from disk. In contrast, ESPN maintains a latency of 46.5 ms, which is nearly identical to the performance of a fully cached 30 GB RAM system (45.6 ms). Overall, ESPN reduces memory requirements by 5–16x and performs 3.1x to 3.9x faster than standard mmap configurations under memory pressure.
Conclusion
ESPN demonstrates that high-performance multi-vector IR does not require massive amounts of expensive DRAM. By bypassing the OS kernel with GPUDirect Storage and using a predictive prefetcher, the system achieves near-DRAM performance using significantly cheaper SSD storage. Future work will explore offloading the candidate generation index to SSDs as well, further pushing the boundaries of cost-effective, large-scale information retrieval.
Summary updated