Skip to content

Maximum Inner-Product Search

Find a stored vector whose raw inner product with a query vector is maximal.

Version
v1 · 2026-10-03 · History
Domain-specific #
13422
Aliases
MIPS, Max Inner Product Search

Core Idea

Maximum inner-product search (MIPS) selects a stored vector \(x\) maximizing \(\langle q,x\rangle\) for query \(q\). The necessary roles are a stored vector set, a query vector and this raw dot-product objective. Top-\(k\), approximate answers and indexes are extensions or solution methods, not defining requirements.[1][2]

How would you explain it like I'm…

Find the Top-Scoring Arrow

Imagine a box full of arrows, some long and some short, pointing different ways. You hold up your own arrow and want the one from the box that scores highest, where an arrow scores more if it points the same way as yours and also if it is longer. Maximum inner-product search is finding that top-scoring arrow.

Highest Dot-Product Match

Computers store lots of items as lists of numbers, like arrows. Given a new 'question' arrow, maximum inner-product search finds the stored arrow with the highest dot product with it, which means multiplying matching numbers and adding them up. A stored arrow scores high if it points in a similar direction and is long. That's different from finding the closest arrow, because a long arrow can win even if it isn't the nearest one. Tricks for finding the closest arrow only work here if you check carefully that they give the same answer.

Raw Inner-Product Retrieval

Maximum inner-product search (MIPS) is the problem of finding, in a stored collection S of vectors, a vector x that maximizes the inner product ⟨q, x⟩ with a query vector q. That is the whole definition: the collection, the query, and ranking by raw dot product. Returning the top k results, using an index, or accepting approximate answers are variants and techniques, not part of the core problem. An inner product is not a distance, so this differs from nearest-neighbor search: a vector's length affects its score even if its direction is the same. Normalizing all vectors to length 1 turns the problem into cosine similarity, which can change the answer. Nearest-neighbor methods can solve MIPS only when the vectors have equal lengths or after a carefully checked transformation.

 

Maximum inner-product search is the query problem of returning x* in argmax over x in S of <q, x> for a stored candidate set S and query q; the candidate collection, the query, and the raw dot-product ordering fully define it. Top-k retrieval, indexing, approximation, and reductions to distance queries are variants or solution methods rather than prerequisites. Because an inner product is not a metric distance, candidate magnitude affects ranking even at fixed direction, and normalizing to cosine similarity can change which item wins. Nearest-neighbor machinery applies only to a related form, for example when candidates have equal norms or after an order-preserving transformation valid under stated bounds, and such reductions must be verified rather than assumed to be the same objective.

Scope of Application

Matrix-factorization recommendation can rank item embeddings against a user embedding by dot product. Any dense retrieval model using query–item dot product has the same query structure; systems using a different score do not. Exact flat scanning and approximate indexed search both solve versions of MIPS.[1][2]

Clarity

Raw inner product is not Euclidean distance or necessarily cosine similarity. Candidate norms can change the ranking; normalizing them may change the target objective. Equal candidate norms or a proved order-preserving transformation can connect MIPS to nearest-neighbor procedures under conditions.[1][3]

Manages Complexity

Specifying the score separately from the solver allows an exact scan, approximate hash or transformed nearest-neighbor method to be assessed against the same target. An approximate answer requires its own recall/quality qualification and should not be mislabeled exact.[3][2]

Abstract Reasoning

For candidates \(x_i,x_j\), their relative score is the sign of \(\langle q,x_i-x_j\rangle\). Euclidean distance adds candidate-norm terms, explaining why nearest-neighbor and MIPS can diverge. The proposed strict DAG genus is live Optimization; nearest-neighbor search is a conditional reduction target, not the universal parent.[1]

Knowledge Transfer

Identify candidates, query and whether magnitude is part of intended relevance. Then choose a search implementation and test whether normalization, quantization or asymmetric mapping preserves the original dot-product ordering under actual bounds.[1][2]

Relationships to Other Abstractions

Local relationship map for Maximum Inner-Product SearchParents appear above the current abstraction, mutual partners to the right, and children below. Node labels state whether each abstraction is prime or domain-specific; colors identify relation types.MaximumInner-Product SearchDOMAINPrime abstraction: Optimization — is a kind ofOptimizationPRIME

Current abstraction Maximum Inner-Product Search Domain-specific

Parents (1) — outgoing typed relations

  • Maximum Inner-Product Search is a kind of Optimization Prime

    MIPS is finite-candidate optimization under a specified inner-product objective.

Hierarchy path (1) — routes to 1 parentless root

Neighborhood in Abstraction Space

Maximum Inner-Product Search sits in a moderately populated region (54th percentile for distinctiveness): it has near-neighbors but no dense thicket of look-alikes.

Family — Codes, Matrices & Combinatorial Problems (33 abstractions)

Nearest neighbors

Computed from structural-signature embeddings · 2026-11-14

References

[1] Behnam Neyshabur and Nathan Srebro, “On Symmetric and Asymmetric LSHs for Inner Product Search,” PMLR 37 (2015), original full paper §1 Eq. (1) and §2 directly checked. registry ↩a ↩b ↩c ↩d ↩e

[2] Faiss documentation and index summary, project-maintainer descriptions of exact IndexFlatIP and approximate indexes directly checked. registry ↩a ↩b ↩c ↩d

[3] Anshumali Shrivastava and Ping Li, “Asymmetric LSH (ALSH) for Sublinear Time Maximum Inner Product Search (MIPS),” NeurIPS (2014), original abstract/§1 directly checked. registry ↩a ↩b