How Many Dimensions Does Relevance Need? Sign-Rank and Margin Complexity
Rank says how many dimensions suffice to fit the scores; sign-rank says how many dimensions relevance actually needs to get the order right — far fewer for benign patterns, unboundedly many for combinatorial qrels, and the reason a single-vector embedding has a ceiling no amount of training removes
Overview & motivation
Dense retrieval left us with a clean upper bound. Stack the scores of every query against every document into a relevance matrix; a -dimensional dual encoder can realize any such matrix of rank at most , and below that rank the truncated SVD — Eckart–Young — is the best it can do. That theorem answers how many dimensions suffice to reproduce the scores. It is not the question a retrieval engineer actually has, which is sharper and more practical: how many dimensions does relevance need — not to match the real-valued scores, but to get the order right, to put every relevant document above every irrelevant one?
These are different questions, and the gap between them is the whole subject of this topic. Relevance is a sign pattern: for each query, a partition of the corpus into relevant and not. What a single-vector retriever must reproduce is that pattern of signs, and the smallest dimension in which a pattern of signs is linearly realizable is its sign-rank, not its rank. The two can be wildly different. We will see a relevance pattern of full rank whose sign-rank is — most of the rank is wasted on magnitudes the ranking never uses — and, going the other way, patterns whose sign-rank is forced upward without bound, so that no fixed embedding dimension can represent them at all. The second kind is not a pathology: it is what combinatorial relevance looks like, the queries a real analyst asks, and it is the reason a single-vector embedding has a ceiling that no amount of training, data, or scale removes.
The signed identity — each query relevant to its own document and no other — has full rank 4, yet a rank-3 model reproduces every one of its signs: its sign-rank is 3. Below the sign-rank no correct realization exists (the margin is zero); at and above it the achievable margin is positive and grows with d — more dimensions buy a more robust separation. Rank counts directions in the scores; sign-rank counts the dimensions the relevance pattern needs, and here most of the rank is wasted on magnitudes the ranking never uses.
The first panel is the rank/sign-rank gap: a full-rank relevance pattern whose signs are reproduced by a model of much lower rank, with the achievable margin appearing only once the dimension clears the sign-rank. The second is a closed-form wall — Forster’s spectral lower bound forcing a Hadamard relevance pattern to need at least dimensions. The third is the retrieval wall: the largest corpus whose all-pairs relevance pattern a -dimensional model can realize, even with perfect embeddings, growing only polynomially in .
Notation: relevance as a sign pattern
Fix queries and documents. A qrel matrix records relevance: when document is relevant to query . Its signed form is , with for relevant and for not. A single-vector retriever realizes this pattern if it can place query embeddings and document embeddings in some so that, within each query’s row, every relevant document outscores every irrelevant one — equivalently, so that the score matrix has the right signs against a per-row threshold. Absorbing the threshold into an extra constant coordinate, the clean object is the sign-rank.
Definition 1 (Sign-rank (dimension complexity)).
For a sign matrix , the sign-rank is
It is the smallest inner dimension in which the pattern is linearly realizable as with , — the dimension the relevance pattern needs, with the score magnitudes free.
Throughout, is the spectral norm (largest singular value) and the ordinary rank. The contrast in one line: rank constrains the matrix of scores; sign-rank constrains only their signs, so it is never larger than the rank — a matrix realizes its own signs at — and is usually strictly smaller.
Movement 1 — rank is the wrong complexity ⇒ sign-rank
The cleanest way to see that rank and sign-rank are different measures is a single pattern on which they disagree maximally.
Theorem 1 (The signed identity: full rank, sign-rank three).
Let be the signed identity: on the diagonal, off it. Then for every , while . The relevance pattern “each query’s own document, and no other” therefore needs only three dimensions, however many documents there are.
Proof (Proof).
Rank. , the all-ones matrix, has eigenvalues (once) and (with multiplicity ), so has eigenvalues (once) and (with multiplicity ). For both values are nonzero, so all eigenvalues are nonzero and .
Sign-rank. We exhibit a rank- realization geometrically. Place the queries at points in strictly convex position — the vertices of a regular -gon. Each is then a vertex of the convex hull, so there is a line with strictly on its positive side and every other strictly on its negative side; write as with . Lift each query to and each document to . Then
which is positive exactly when and negative otherwise — precisely . Since and , the realizing matrix has rank at most , so .
∎The proof is the whole intuition. Rank counts independent directions in the scores; sign-rank counts the dimensions the geometry needs to separate each point from the rest, and points in convex position separate with a two-dimensional picture plus one affine coordinate. The notebook confirms it numerically: for the signed identity it finds an explicit rank- matrix matching all sixteen signs and fails to find any rank- one (the sign-rank is in fact exactly , a classical value we cite rather than belabor). The laboratory’s first panel shows the same gap as a margin: the pattern is unrealizable below three dimensions — the achievable margin is zero — and at a positive margin appears, widening as grows.
This already overturns the reflex that “more relevance structure means more dimensions.” A relevance matrix can be full rank and yet, as a pattern, demand only a constant dimension. The sign-rank, not the rank, is the honest answer to how many dimensions relevance needs — and the rest of the topic is about when that answer is small, when it is provably large, and what it means for retrieval.
Movement 2 — a closed-form lower bound: Forster on Hadamard
The signed identity is the easy direction: a pattern that looks expensive but is cheap. The hard and more consequential direction is a pattern that is genuinely expensive — one whose sign-rank we can lower-bound by a closed form, with no optimization and no guessing. The tool is a spectral inequality of Forster.
Theorem 2 (Forster's spectral lower bound (cited)).
For every sign matrix ,
A small spectral norm forces a large sign-rank: a pattern whose energy is spread evenly across all singular directions cannot be realized in few dimensions.
Forster’s theorem is proved by a balancing argument — every sign matrix admits a realization whose query and document points are in near-isotropic position, and isotropy plus the unit-modulus entries bound the spectral norm from below in terms of the dimension. The argument is delicate and we cite it. What we do prove is its sharpest consequence, on the matrix that saturates it.
Theorem 3 (Hadamard patterns need √N dimensions).
Let be a Hadamard matrix (orthogonal rows, ). Then and therefore
A relevance pattern shaped like provably needs at least dimensions, with no appeal to optimization.
Proof (Proof).
The rows of are orthogonal and each has squared norm , so . Hence every eigenvalue of equals , every singular value of equals , and in particular . Substituting and into Forster’s bound gives .
∎This is the first genuinely negative result of the curriculum’s expressivity track: an explicit family of relevance patterns whose required dimension grows without bound, at documents, provably, in closed form. The laboratory’s second panel walks the Sylvester–Hadamard matrices and shows the bound rising; the notebook corroborates it from the other side, failing to realize in three dimensions when the bound says four are required. Where the signed identity showed sign-rank far below the rank, Hadamard shows it can be a hard floor — and crucially, a floor we can certify without solving an intractable problem.
Eckart–Young is the wrong norm
It is worth saying precisely why DPR’s rank story does not already answer this. The truncated SVD is optimal for the Frobenius norm: . But Frobenius error weights large-magnitude entries, and a relevance pattern cares only about signs against a per-row threshold. A rank- approximation can have small Frobenius error and still flip the signs of the small entries that decide a close ranking; conversely the signs can be entirely correct at a rank where the Frobenius error is still large. The notebook makes this concrete on the signed identity: the Frobenius-optimal rank- truncation does not reproduce every sign, while a rank- realization built for the signs does. Approximating in rank and realizing a sign pattern are different objectives, and the SVD solves the first. This is the load-bearing reason sign-rank, not rank, is the relevant complexity — and it is rigorFlag territory, because the “rank ” framing we inherited is exposition, not the tight measure.
Movement 3 — margin complexity: the dimension for a usable gap
Sign-rank is honest but austere: it asks only that the signs come out right, allowing scores to sit arbitrarily close to the threshold. A retriever trained by a contrastive (soft-margin) loss does not get to live on that knife edge — it needs a gap, a margin by which relevant beats irrelevant, or noise and finite samples will flip the order. The capacity measure that respects this is the margin complexity.
Definition 2 (Margin complexity).
For a realization , its margin is , the smallest normalized gap by which any entry has the correct sign. Writing for the largest margin over all realizations in any dimension, the margin complexity is .
Margin complexity and sign-rank are close relatives but not the same number. Linial, Mendelson, Schechtman, and Shraibman tie them together through the norm — a quantity with a semidefinite-programming characterization, hence computable, unlike sign-rank itself — by the inequalities and . The direction that matters for retrieval is the second read backward: a large margin (small ) forces a small sign-rank, but a small sign-rank does not promise a usable margin — a pattern can be realizable in few dimensions only by hugging the threshold. For a model that must generalize from finite data, margin complexity is therefore the more faithful measure of how many dimensions relevance needs, and it is never smaller than the sign-rank story suggests.
The laboratory’s first panel shows exactly this shape on the signed identity: zero margin below the sign-rank (no correct realization exists), then a positive margin at that grows as increases. More dimensions do not just make the pattern realizable; they make it robustly so. We report the achievable margins found by projected gradient — an honest lower bound on the best margin at each dimension — and leave the exact value as the semidefinite program it is, described but not solved.
Movement 4 — the retrieval theorem and the free-embedding wall
The abstract story becomes a statement about retrieval through a recent result of Weller, Boratko, Naim, and Lee — the LIMIT paper — which pins the embedding dimension a qrel matrix demands directly to its sign-rank.
Theorem 4 (The qrel dimension is the sign-rank (cited)).
For a binary qrel matrix , let be the smallest embedding dimension in which a single-vector model can rank, within every query’s row, all relevant documents above all irrelevant ones. Then
The minimum embedding dimension of a relevance pattern is its sign-rank, up to one.
The sandwich turns every sign-rank fact into a retrieval fact. Forster’s Hadamard bound becomes: a qrel whose signed form is Hadamard cannot be realized below dimensions, period. And it lets us measure the wall on a concrete construction. Take the all-pairs qrel: documents, one query for every unordered pair , relevant to exactly documents and . This is the densest top- pattern, and the experiment that isolates the architecture from every confound is to optimize the embeddings freely — drop the encoder, drop the training data, let and be unconstrained parameters fit directly to the qrel — and find the largest document count a given dimension can realize.
Proposition 1 (The free-embedding wall (measured)).
Let the critical at dimension be the largest whose all-pairs qrel is realizable by free embeddings in . The notebook measures it growing slowly with — on its grid, at — and confirms that beyond the critical the best achievable row-order accuracy drops below one. Even with perfect, freely optimized embeddings, each dimension admits only a bounded combinatorial corpus.
This is the practical face of the sign-rank ceiling. The all-pairs pattern over many documents has a sign-rank that climbs faster than any fixed can follow, so at a chosen embedding dimension there is always a corpus size past which some combination of relevant documents is simply unrepresentable — not poorly trained, unrepresentable. The LIMIT authors extrapolate the same growth to the dimensions production systems use and find the critical corpus, even for an idealized embedder, lands well below web scale. The wall is real, it is best-case, and it is the property of a single vector per document; we return to the escape below.
The communication-complexity bridge
One last reframing explains why the limit is fundamental rather than an artifact of how we fit embeddings. Sign-rank is not only a geometric quantity — it is an information quantity. Paturi and Simon proved that the unbounded-error randomized communication complexity of a sign matrix — the number of bits two parties, holding the row and the column respectively, must exchange to decide with any advantage over a coin flip — equals up to an additive constant. The embedding dimension a relevance pattern needs is, up to a logarithm, the number of bits its relevance decision contains. A pattern that needs many dimensions needs them because its relevance is genuinely information-rich, not because the optimizer was weak — which is why no amount of training removes the wall.
Proposition 2 (What the laboratory measures).
The three panels run on deterministic synthetic setups, not a trained transformer. Panel A is the signed identity, its rank and a found rank- realization, with the achievable margin by dimension. Panel B is the Sylvester–Hadamard family with and the Forster bound , both closed form. Panel C is the free-embedding critical- curve on the all-pairs construction, with the finance flip beside it. Every measured number — the realization, the margins, the critical- values, the flip — is owned by the companion notebook and mirrored here to the decimal; the laboratory recomputes only closed forms, the Forster bound and the all-pairs query count .
Finance case study
Honest accounting
The dimension lower bound is the deepest impossibility result in the dense-retrieval track, and it points directly at the architectures that route around it. Late interaction replaces a single pooled vector with a token-level comparison, lifting the relevance matrix out of the sign-rank bound proved here — the explicit escape, and the next topic in this track. Cross-encoders, which DPR kept invoking as the rank-free counterpoint, pay a quadratic cost to fuse query and document and so are not factorizations at all. And the evaluation track measures where the wall bites: the metrics that follow are how you detect, on real qrels, that a single embedding has run out of dimensions.
Connections
- DPR proved the upper bound this topic completes: a d-dimensional dual encoder realizes exactly the relevance matrices of rank at most d, with the truncated SVD the best approximation below that rank. That bound says how many dimensions SUFFICE for the real-valued scores; this topic supplies the tight LOWER bound — the sign-rank and margin complexity of how many dimensions the relevance PATTERN needs — and reuses DPR's finance matrix and its byte-for-byte in-batch loss anchor, so the two topics are the two halves of the dual encoder's expressivity story dense-retrieval-dual-encoders
- PCA reads Eckart-Young as the optimal low-rank approximation of a data matrix in Frobenius norm; this topic shows that exactly that norm is the wrong one for a relevance pattern, since a sign/threshold pattern can have a small Frobenius error while still flipping the order, so the truncated SVD that is optimal for PCA is not optimal for getting relevance signs right — the same theorem, now exhibited as a mismatch pca-dimensionality-reduction
- MIPS hardness is a lower bound on the COST of exact inner-product search given the vectors; this topic is a lower bound on the DIMENSION of the vectors themselves, so the two are the curriculum's two impossibility results for single-vector retrieval — one says exact search cannot be made truly sublinear, the other says a fixed dimension cannot represent every relevance pattern, and both are reasons production retrieval approximates and combines architectures mips-hardness-and-sublinearity-limits
- InfoNCE is a soft-margin objective, so the quantity it actually optimizes is not the bare sign pattern but the margin with which queries separate their relevant documents; margin complexity, the robust cousin of sign-rank developed here, is therefore the capacity measure most faithful to a contrastively trained encoder, making this topic the expressivity counterpart to InfoNCE's training story infonce-contrastive-objective
- late interaction is the architectural escape from the single-vector ceiling this topic proves: replacing one pooled dot product with a token-level MaxSim over many vectors per document lifts the relevance matrix out of the sign-rank bound that limits a single embedding, so the wall proved here is precisely the motivation for the multi-vector architecture that follows late-interaction-learned-sparse
References & Further Reading
- paper On the Theoretical Limitations of Embedding-Based Retrieval — Weller, Boratko, Naim & Lee (2025) The LIMIT result: the minimum embedding dimension to realize a binary qrel matrix equals the sign-rank of its signed form up to one, and even free, perfectly optimized embeddings hit a polynomial wall in the all-pairs construction; the source of the retrieval-specific framing and the LIMIT dataset, accepted at ICLR 2026
- paper A linear lower bound on the unbounded error probabilistic communication complexity — Forster (2002) Forster's spectral lower bound on sign-rank, sign-rank(M) >= sqrt(mn) / ||M||, the first linear lower bound on unbounded-error communication complexity; the closed-form lower bound this topic proves for Hadamard patterns; the DOI resolves to the Journal of Computer and System Sciences 65(4)
- paper Probabilistic communication complexity — Paturi & Simon (1986) The identity that the unbounded-error randomized communication complexity of a sign matrix equals log of its sign-rank up to an additive constant, the bridge that recasts the embedding-dimension lower bound as a communication lower bound; the DOI resolves to the Journal of Computer and System Sciences 33(1)
- paper Complexity measures of sign matrices — Linial, Mendelson, Schechtman & Shraibman (2007) Margin complexity, the gamma_2 norm and its semidefinite characterization, and the inequality chain relating margin complexity to sign-rank with a logarithmic slack; the source for the margin-complexity movement; the DOI resolves to Combinatorica 27(4)
- paper Sign rank versus VC dimension — Alon, Moran & Yehudayoff (2017) The separation between sign-rank and VC dimension — sign matrices of bounded VC dimension whose sign-rank is nonetheless large — the precise statement of why a low-complexity concept class can still demand a high embedding dimension, cited for the sign-rank versus VC-dimension connection
- paper The sign-rank of AC^0 — Razborov & Sherstov (2010) The first exponential sign-rank lower bound for an explicit (AC^0) sign matrix, the constructive frontier behind the rigor flag that most sign-rank lower bounds are existential; the DOI resolves to the SIAM Journal on Computing 39(5)