Vector search
Searching billions of passages forces a split between offline indexing and query-time scoring. Single-vector search precomputes one vector per passage and runs fast, but it compresses every passage before the query arrives. Late interaction keeps one contextual vector per token offline and scores passages at query time by summing each query token's closest passage match.
Storing a vector for every token moves the bottleneck to index memory and clustering cost. Quantized residuals around k-means centroids shrink the index up to tenfold, and scoring candidates on centroids alone cuts latency before decompression. Building those centroids across billions of vectors then replaces twenty-five Lloyd passes with two or three mini-batch moving-average passes guided by fitted scaling laws.
- A corpus has 8.8 million passages. Before any query arrives, which scoring architecture can precompute and store all passage representations offline, and why?ColBERT encodes the passage alone into fixed vectors ; the query meets them only through dot products and row maxima. A cross-encoder feeds query and passage together, forcing a fresh forward pass for every pair.From Late interaction retrieval
- One Lloyd iteration and one e-means pass spend nearly identical compute on nearest-centroid assignment. Why does e-means match 25 Lloyd passes in about 2 passes?Assignment dominates compute in both methods, so one pass costs about the same. Updating centroids after every batch gives e-means many improving moves per pass (e.g., 15 per pass at ) rather than one.From e-means, k-means in a tenth of the passes
- For the query "when did the titanic sink", a Belfast museum passage literally contains "when" yet scores only 0.13 on that query row, versus 0.93 for "on" before a date. What does this test case show?Both sides come from a contextual BERT encoder. The query's "when" asks for a sinking date (aligned with "on" before 15 April 1912), whereas "when the ship was built" sits far away in context space.From Late interaction retrieval
- A cluster has running count , decay , and receives points in a batch. Compare e-means' step weight with an SGD step at .Here , keeping inside the segment to . SGD multiplies by , overshooting past the convex hull. Drag learning rate below to see SGD cross the ceiling:From e-means, k-means in a tenth of the passes
- ColBERT encodes a 32-token query once and spends FLOPs per passage, against FLOPs per pair for BERT-base. Scale the candidate list from 10 to 1,000 passages: what happens to ColBERT's FLOPs speedup?The cross-encoder pays FLOPs per candidate, whereas ColBERT pays one fixed 32-token encoder pass plus FLOPs per passage. At 1,000 passages MaxSim is just 0.56B of ColBERT's 7B total FLOPs.From Late interaction retrieval