Skip to main content
QUICK REVIEW

[Paper Review] PLAID: An Efficient Engine for Late Interaction Retrieval

Keshav Santhanam, Omar Khattab|arXiv (Cornell University)|May 19, 2022
Topic ModelingComputer Science8 citations
TL;DR

PLAID is a highly optimized retrieval engine that accelerates late interaction retrieval using ColBERTv2 by introducing centroid interaction and centroid pruning, reducing search latency by up to 7× on GPU and 45× on CPU while maintaining state-of-the-art retrieval quality on large-scale datasets up to 140M passages.

ABSTRACT

Pre-trained language models are increasingly important components across multiple information retrieval (IR) paradigms. Late interaction, introduced with the ColBERT model and recently refined in ColBERTv2, is a popular paradigm that holds state-of-the-art status across many benchmarks. To dramatically speed up the search latency of late interaction, we introduce the Performance-optimized Late Interaction Driver (PLAID). Without impacting quality, PLAID swiftly eliminates low-scoring passages using a novel centroid interaction mechanism that treats every passage as a lightweight bag of centroids. PLAID uses centroid interaction as well as centroid pruning, a mechanism for sparsifying the bag of centroids, within a highly-optimized engine to reduce late interaction search latency by up to 7$ imes$ on a GPU and 45$ imes$ on a CPU against vanilla ColBERTv2, while continuing to deliver state-of-the-art retrieval quality. This allows the PLAID engine with ColBERTv2 to achieve latency of tens of milliseconds on a GPU and tens or just few hundreds of milliseconds on a CPU at large scale, even at the largest scales we evaluate with 140M passages.

Motivation & Objective

  • Address the high latency of late interaction retrieval in large-scale IR systems despite its state-of-the-art performance.
  • Optimize the end-to-end retrieval pipeline for ColBERTv2, which uses residual representations and centroid-based compression.
  • Enable low-latency inference on both CPU and GPU at scale, particularly for production deployment with 100M+ passages.
  • Preserve retrieval quality while drastically reducing computation and memory overhead during candidate scoring.
  • Develop a modular, highly-optimized engine that leverages the discrete nature of centroid IDs for efficient filtering and scoring.

Proposed method

  • Introduce centroid interaction: treat each passage as a lightweight bag of integer centroid IDs, enabling fast, approximate scoring without loading full residual vectors.
  • Use precomputed centroid-query distances to avoid recomputing similarity scores across all centroids during search, enabling reuse across multiple passages.
  • Implement centroid pruning: skip distant centroid IDs during early filtering stages by leveraging the sparsity of low-scoring centroids, reducing candidate set size.
  • Design custom, padding-free MaxSim kernels for GPU and optimized C++ kernels for CPU to accelerate residual decompression and scoring operations.
  • Build a multi-stage retrieval pipeline that applies centroid interaction and pruning before full residual scoring, minimizing expensive operations on low-quality candidates.
  • Leverage the fixed, discrete vocabulary of centroids to enable efficient vectorized operations and memory access patterns in both CPU and GPU execution.

Experimental results

Research questions

  • RQ1Can centroid-based representations alone achieve high recall in late interaction retrieval, enabling efficient filtering before full residual scoring?
  • RQ2How effective is centroid pruning in reducing the number of candidate passages without degrading retrieval quality?
  • RQ3To what extent can algorithmic optimizations (centroid interaction and pruning) combined with low-level kernel optimizations improve end-to-end latency on CPU and GPU?
  • RQ4How does PLAID scale with increasing corpus size and retrieval depth (k) across different hardware configurations?
  • RQ5What is the trade-off between latency reduction and retrieval quality when replacing full residual scoring with centroid-only scoring in early stages?

Key findings

  • PLAID ColBERTv2 achieves up to 7× speedup on GPU and 45× speedup on CPU compared to vanilla ColBERTv2, with no measurable quality loss on MS MARCO v1, v2, Wikipedia, and LoTTE benchmarks.
  • Centroid interaction alone delivers 5.2× speedup on GPU and 8.6× on CPU, demonstrating that centroid-only scoring retains high recall and enables effective early filtering.
  • The combination of algorithmic optimizations (centroid interaction and pruning) and low-level kernel optimizations yields 42.4× speedup on CPU with k=1000, compared to 3× from kernels alone.
  • End-to-end latency scales approximately with the square root of dataset size, aligning with the scaling of centroid count relative to embedding count in ColBERTv2.
  • PLAID achieves sub-100ms end-to-end latency on CPU and sub-50ms on GPU even at 140M passages, enabling real-time inference at scale.
  • PLAID scales well with CPU threads, achieving a 4.9× speedup with 16 threads for k=1000, indicating effective parallelization despite non-ideal load balancing.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.