Bridging Dense and Sparse Maximum Inner Product Search
Sebastian Bruch, Franco Maria Nardini, Amir Ingber, Edo Liberty
TL;DR
This paper addresses the fragmentation between dense and sparse Maximum Inner Product Search (MIPS) by proposing a unified IVF-based framework that applies dense MIPS techniques to sparse and hybrid vectors. It investigates linear and non-linear dimensionality reduction—Johnson-Lindenstrauss (JL) and Sinnamon transforms—to sketch high-dimensional sparse vectors, enabling effective clustering and dynamic pruning within inverted indexes. The authors extend IVF to sketches of sparse vectors, analyze clustering strategies (standard vs. spherical KMeans), and introduce a dynamic-pruning inverted-index organization with skip pointers, demonstrating substantial throughput gains and robust performance across query distributions. Finally, they propose a unified MIPS regime for hybrid dense-sparse vectors, showing potential improvements over two-stage dense-sparse retrieval and outlining research opportunities in sparse representation learning and multi-modal retrieval. The work offers a practical, density-agnostic pathway for scalable MIPS with broad implications for lexical-semantic search and hybrid-vector applications.
Abstract
Maximum inner product search (MIPS) over dense and sparse vectors have progressed independently in a bifurcated literature for decades; the latter is better known as top-$k$ retrieval in Information Retrieval. This duality exists because sparse and dense vectors serve different end goals. That is despite the fact that they are manifestations of the same mathematical problem. In this work, we ask if algorithms for dense vectors could be applied effectively to sparse vectors, particularly those that violate the assumptions underlying top-$k$ retrieval methods. We study IVF-based retrieval where vectors are partitioned into clusters and only a fraction of clusters are searched during retrieval. We conduct a comprehensive analysis of dimensionality reduction for sparse vectors, and examine standard and spherical KMeans for partitioning. Our experiments demonstrate that IVF serves as an efficient solution for sparse MIPS. As byproducts, we identify two research opportunities and demonstrate their potential. First, we cast the IVF paradigm as a dynamic pruning technique and turn that insight into a novel organization of the inverted index for approximate MIPS for general sparse vectors. Second, we offer a unified regime for MIPS over vectors that have dense and sparse subspaces, and show its robustness to query distributions.
