Abstract: A number of tasks in classification, information retrieval, recommendation systems, and record linkage reduce to the core problem of inner product similarity join (IPS join): identifying pairs of vectors in a collection that have a sufficiently large inner product. IPS join is well understood when vectors are normalized and some approximation of inner products is allowed. However, the general case where vectors may have any length appears much more challenging. Recently, new upper bounds based on asymmetric locality-sensitive hashing (ALSH) and asymmetric embeddings have emerged, but little has been known on the lower bound side. In this paper we initiate a systematic study of inner product similarity join, showing new lower and upper bounds. Our main results include approximation hardness of IPS join in subquadratic time assuming the strong exponential time hypothesis, new upper and lower bounds for (A)LSH-based algorithms, and a new indexing method for IPS based on linear sketches.
Introduction
Inner Product Similarity (IPS) join is a cornerstone operation in modern data science, powering everything from latent factor models in recommendation systems to record linkage and information retrieval. The task is straightforward: given a collection of vectors, identify all pairs whose inner product exceeds a specified threshold. While similarity joins in metric spaces—such as those defined by Euclidean distance—benefit from the triangle inequality for efficient pruning, the inner product is not a metric. This lack of geometric structure makes the general case, where vectors can have arbitrary lengths, significantly more challenging.
The Complexity of Non-Metric Search
Historically, IPS join has been well-understood for normalized vectors, where it effectively reduces to cosine similarity. However, in many practical applications, vector magnitude carries critical information. Previous research established that exact IPS join is computationally expensive, likely requiring nearly quadratic time. The central question addressed by this paper is whether approximating the inner product can break this quadratic barrier.
Hardness of Approximation
The authors provide a definitive answer by establishing the first conditional lower bounds for approximate IPS join. By reducing the Orthogonal Vectors Problem (OVP) to IPS join, they demonstrate that significantly beating quadratic time ($O(n^{2-\epsilon})$) would disprove the Strong Exponential Time Hypothesis (SETH).
To achieve these results for approximate joins, the paper introduces "gap embeddings." These mathematical transformations, including a deterministic variant of Chebyshev embeddings, amplify the difference between orthogonal and non-orthogonal vectors, allowing the hardness of OVP to translate into the hardness of finding approximate inner product matches.
As shown in the table above, the hardness results vary across different vector domains, such as bipolar vectors ($\left\{-1, 1\right\}^d$) and binary vectors ($\left\{0, 1\right\}^d$). For instance, in the binary domain, the lower bounds are particularly tight when the approximation factor $c$ is close to 1.
Locality-Sensitive Hashing and Asymmetry
A significant portion of the paper is dedicated to analyzing Locality-Sensitive Hashing (LSH) for inner products. A common paradigm in the field is Asymmetric LSH (ALSH), where queries and data points are transformed differently before hashing. The authors investigate the "gap" between the collision probabilities of near pairs ($P_1$) and far pairs ($P_2$).
They prove a fundamental limitation: if the query domain is unbounded, the gap $P_1 - P_2$ in any LSH scheme must vanish, rendering the hash ineffective for subquadratic search. This highlights why normalization or clipping is often necessary in practical systems. Furthermore, the authors challenge the necessity of asymmetry, showing that by relaxing the LSH definition to ignore self-collisions, symmetric LSH can achieve comparable performance to ALSH.
New Algorithmic Upper Bounds
Beyond hardness, the paper contributes new indexing methods. For the "unsigned" version of the problem—where the goal is to find pairs with a large absolute inner product—the authors adapt linear sketches originally designed for $l_p$ norm estimation. This approach yields a truly subquadratic algorithm for coarse approximations, specifically achieving a $c = 1/n^\kappa$ approximation in $O(dn^{2-2/\kappa})$ time. This suggests that while fine-grained approximation is hard, very rough approximations are computationally feasible.
Conclusion
This work bridges the gap between fine-grained complexity theory and practical algorithm design for similarity search. By proving that the "curse of dimensionality" for inner products is a fundamental theoretical barrier under SETH, it provides a rigorous foundation for understanding why certain IPS tasks are inherently difficult. Future research remains focused on closing the gap for constant approximation factors in binary domains and exploring the practical trade-offs of these theoretical bounds in large-scale database systems.
Summary updated