FlashRetrieve delivers ultrafast GPU sparse search for text queries

FlashRetrieve: Ultrafast and High-Throughput Sparse Retrieval using GPU Acceleration

Information Retrieval

Summary

Finding the best matching texts quickly is important for search engines and question-answering systems. The authors developed FlashRetrieve, which uses graphics processing units (GPUs) to speed up sparse text search methods. This new tool processes queries in microseconds, much faster than previous exact methods, and works on large collections even when memory is limited. It also supports different text representations and can handle many queries at once, making search much faster for users or automated systems.

What this means in practice

Authors

Sean MacAvaney, Maik Fröbe, Ferdinand Schlatt, Antonio Mallia, Benno Stein, Nicola Tonellotto

Abstract

We introduce FlashRetrieve, an exact top-k sparse retrieval engine that adapts efficient query processing techniques for use on GPUs. FlashRetrieve combines (1) dynamic block-max pruning, (2) shared-memory score accumulation, and (3) a global top-k threshold shared across parallel workers. Experiments show that it can perform BM25 retrieval over MS MARCO at 39 μs/query on a single consumer-grade GPU (14x faster than the strongest exact baseline), achieving a throughput of nearly 150k queries/s when queries are batched. We find that it supports other sparse representations (including SPLADE-v3, at 78 μs/query), runs on a variety of GPU architectures and multi-GPU environments, and scales to collections that exceed available GPU memory (64 μs/query over 134M MS MARCO v2 passages, with 1.7 GB of postings offloaded to host memory). Altogether, FlashRetrieve provides faster retrieval results to end users, can handle the deluge of queries issued by agents, and may enable new applications that need top-k sparse dot products. The code is available at: https://github.com/seanmacavaney/flash-retr