Introduction
State-of-the-art "late-interaction" retrieval models like ColBERTv2 offer superior search quality by maintaining token-level vector representations. However, this granularity comes at a significant cost: a standard ColBERT index for a large corpus like Wikipedia requires nearly 100GB of RAM. This memory bottleneck makes high-concurrency deployment prohibitively expensive for most real-world applications. ColBERT-serve addresses this challenge by introducing a serving system optimized for low-memory, high-concurrency environments.
Methodology
ColBERT-serve employs a multi-stage strategy to reduce memory overhead while maintaining performance:
- Memory-Mapped Storage (mmap): Instead of loading the entire index into RAM, the system utilizes memory-mapping. This allows the operating system to manage index pages on disk, pulling them into memory only when required by a query.
- Multi-Stage Retrieval: To mitigate the latency of disk access, the system uses a sparse lexical retriever (SPLADEv2) as a first-stage filter to identify the top 200 candidates. The computationally intensive ColBERT model is then used only to re-rank this small subset.
- Hybrid Scoring: Final rankings are determined by a weighted average of z-normalized scores from both SPLADE and ColBERT. This hybrid approach leverages both lexical and semantic strengths.
- Concurrency Engineering: The backend was modified to release Python’s Global Interpreter Lock (GIL) during heavy C++ computations, enabling efficient parallel query processing without blocking.
Experimental Setup
The system was evaluated on three diverse benchmarks:
- MS MARCO: The industry standard for in-domain passage ranking (8.8M passages).
- Wikipedia (NQ-dev): A large-scale open-QA dataset (21M passages) used to test RAM limits.
- LoTTE (Lifestyle-dev): A dataset used to test out-of-domain generalization on niche topics.
Key Results and Discussion
Resource Efficiency and Cost Savings
ColBERT-serve achieves dramatic reductions in hardware requirements. For MS MARCO, RAM usage was reduced by 90% (from 23.4 GB down to 2.3 GB). For the larger Wikipedia index, usage dropped by 92% (from 98.3 GB down to 8.2 GB). These efficiencies translate directly into cost savings by allowing the use of smaller, more affordable cloud instances.
Retrieval Quality
Crucially, the transition to a low-memory, multi-stage architecture does not compromise search quality. In fact, the Hybrid scoring method (combining SPLADE and ColBERT) outperformed the full, in-memory ColBERTv2 on the MS MARCO benchmark, demonstrating the complementary nature of sparse and dense retrieval signals.
Throughput and Latency
The system maintains low latency (under 200ms) for up to 5 queries per second on the Wikipedia dataset. By optimizing the threading model and minimizing disk hits through multi-stage filtering, ColBERT-serve scales gracefully under load, making it suitable for production environments with multiple concurrent users.
Conclusion
ColBERT-serve demonstrates that high-quality late-interaction retrieval can be served on a "shoestring budget." By trading a marginal increase in latency for a 90%+ reduction in RAM, the system makes state-of-the-art IR accessible for resource-constrained deployments. Future work will focus on automated parameter tuning for the hybrid scoring model to further improve out-of-domain performance.
Summary updated