potentialpaper

Is Dimensionality a Barrier for Retrieval Models?

Kiril Bangachev, Guy Bresler, Jonathan Kogan, Yury Polyanskiy

NeurIPS 2026

Edit this page

Or clone it with git

Run in a terminal:

Needs Git LFS. To push, use an API key from your profile as the password.

Or let your agent set it up

It checks and sets up everything: signing in, git, the clone, credentials and an SSH key.

TL;DR. On the necessary dimension for embedding-based retrieval models

Abstract. Why does the low dimensionality of representations, typically d≈1000d\approx 1000, not prevent modern embedding-based retrieval models from scaling to billions, or even trillions, of data points? To answer this question, we study maximal-margin embeddings in the following retrieval model, classically studied in communication complexity [PS86] and more recently in embedding-based retrieval [WBNL25]. Let AA be a binary N×nN\times n matrix indicating whether each of NN queries is relevant to each of nn documents. We are interested in the largest margin m>0,m>0, denoted by mrd(d,A),\mathsf{m}^{\mathsf{rd}}(d, A), for which there exist unit norm embeddings of the queries and documents U1,U2,…,UN,V1,V2,…,VnU_1, U_2, \ldots, U_N, V_1, V_2, \ldots, V_n with the following property. ⟨Uj,Vi⟩≥m\langle U_j, V_i\rangle \ge m whenever Aji=1A_{ji} = 1 and ⟨Uj,Vi⟩≤−m\langle U_j, V_i\rangle \le -m when Aji=0.A_{ji} = 0. A large margin is a key proxy for representation quality: it controls both robustness to perturbations and compositional generalization across queries. Our main theorem establishes that the best possible margin without a restriction on the dimension, mrd(+∞,A),\mathsf{m}^{\mathsf{rd}}(+\infty, A), can be nearly achieved in dimension d=O(mrd(+∞,A)−2log⁡n)d = O(\mathsf{m}^{\mathsf{rd}}(+\infty, A)^{-2}\log n) which improves a theorem of [BDES02]. Together with a matching lower bound in Theorem 1.5, we conclude that when AA is the (nk)×n\binom{n}{k}\times n matrix containing all possible kk-sparse rows once, dimension d=O(klog⁡(n/k))d = O(k\log (n/k)) is necessary and sufficient for the maximal possible margin mrd(+∞,A)=Θ(k−1/2)\mathsf{m}^{\mathsf{rd}}(+\infty, A) = \Theta(k^{-1/2}) in this setting. This fully resolves the setup of [WBNL25]. We also give several constructions for large margins when d=o(klog⁡(n/k)).d = o(k\log (n/k)). Our proofs are based on connections between this problem and the literature on compressed sensing and the restricted isometry property. Finally, we empirically test the InfoNCE and sigmoid losses for producing large margin embeddings and demonstrate a clear advantage of the sigmoid loss. All code is available at https://github.com/BangachevKiril/TopK.

Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.

Claim this paper
How does this paper connect to your work? Write how you built on it, compared with it or reproduced it, or add a summary, a critique or errata.
Or make it interactive:
Start writing

edit · history

DateVersionSubmitted toPDFEvidence
20 Apr 2026NeurIPS 2026submittedNeurIPS 2026Accept (spotlight)reviews ↓[1]PDF[1]
Missing a version?

NeurIPS 2026

Accept (spotlight) · 3 reviews · OpenReview

Updated 25 Nov 2026, 03:49 UTC.

Program Chairs · DecisionOpenReview ↗
Decision
Accept (spotlight)
Read decision
Meta-review

The paper offers a theoretical study on the relationship between embedding dimension and retrieval, continuing a recent line of work. Reviewers are unanimously positive about the paper and they do not seem to feel that the weaknesses raised should bar acceptance. While the paper is headed for acceptance, and there is no apparent need to burden the authors with much additional work, they are kindly encouraged to answer reviewers' questions and concerns in order to complete the discussion.

Final justification

The authors are thanked for their responses and engagement in the discussion. The paper is recommended for acceptance.

Area Chair iAbH · Meta-reviewOpenReview ↗
Read meta-review
Meta-review

The paper offers a theoretical study on the relationship between embedding dimension and retrieval, continuing a recent line of work. Reviewers are unanimously positive about the paper and they do not seem to feel that the weaknesses raised should bar acceptance. While the paper is headed for acceptance, and there is no apparent need to burden the authors with much additional work, they are kindly encouraged to answer reviewers' questions and concerns in order to complete the discussion.

Final justification

The authors are thanked for their responses and engagement in the discussion. The paper is recommended for acceptance.

Reviewer CwJsOpenReview ↗
Rating
5/6
Confidence
3/5
Quality
3/4
Clarity
4/4
Significance
4/4
Originality
3/4
Contribution type
theory
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

This paper studies maximal-margin single vector embeddings, following the top-kk model of Weller et al. A maximal-margin vector embedding ideally measures how relevant and irrelevant documents separate geometrically for a query embedding. The main result shows that the best achievable margin for any dimension can be matched in dimension d=O(mrd(+∞,A)−2log⁡(min⁡(n,N)))d = O(\mathrm{mrd}(+\infty, A)^{-2} \log(\min(n, N))). For a kk-sparse relevance matrix, this resolves to d=O(klog⁡n)d = O(k \log n), an improvement over the prior O(k2log⁡n)O(k^2 \log n). A matching lower bound on the required dimension resolves an open question from Weller et al. The proofs combine JL and Maurey's approximation lemma, making connections to compressed sensing and communication complexity, in addition to a separate construction trading off margin against dimension below the threshold. Experiments show the sigmoid loss reaches large margins in far smaller dimensions than InfoNCE, which is explained by the fact that it aligns with maximal-margin embeddings.

Strengths and weaknesses

Strengths

  1. Strong followup on earlier work
  • resolution of the Sn,kS_{n,k} open problem
  • improvement of the bound from Ben-David et al.
  • supports the strong performance of lower dimensional embeddings at scale, somewhat in contrast to prior work
  1. Interesting proof machinery: I really like how this work improves upon BDES by only using JL for convex combinations of document vectors. You have control over the actual margin and you reduce over far fewer doc vectors, which reduces the log dependence considerably.
  2. Extremely well written. I thought the paper was super easy to follow, the intuition for each part of the narrative was clear.

Weaknesses

  1. It's not clear how far realistic relevance matrices are from these more idealized ones that this paper and Weller et al study. Problematic considering that the main analysis focuses on the idealized ones.
  2. Very narrow empirical evaluation. This is primarily a theory paper, but the question the paper asks is influenced by empirical observations, so I think it would be nice to see a more detailed empirical study (e.g. more/larger n, varied k)
Questions

See weaknesses

Limitations

-Some of the constants being troublesome make it tough to actually use these results for practical dimension recommendations -There's still more work to be done for general k-sparse relevance matrices

Formatting concerns

None

2 comments
Authors · CommentOpenReview ↗

Response To Reviewer CwJs

Q1. It's not clear how far realistic relevance matrices are from these more idealized ones that this paper and Weller et al study. Problematic considering that the main analysis focuses on the idealized ones.

We agree with the reviewer that the models are somewhat stylized. However, we still want to disambiguate that our results apply not only to the case of a relevance matrix Sn,kS_{n,k}, i.e. when N=(nk)N = \binom{n}{k} and AA is the matrix of all possible k-sparse rows. Namely:

  • Our Main Theorem 1.4. applies to any relevance matrix.

  • Our Theorem 1.5. Is stated in the main paper only for the Sn,kS_{n,k} case. However, in Appendix F, we show a generalization to all kk-sparse relevance matrices. The reason we chose to present the more specialized Theorem 1.5 in the main paper is that the bound is more interpretable. The general Theorem F.1. depends on the maximal size of a family of row-subets that respects a certain shattering property.

  • Theorem 1.6. holds for any relevance matrix with k-sparse rows.

As far as our experimental results go, since the original submission we also extended the experiments to more general matrices which are formed by taking uniformly random matrices with k-sparse rows (but not all possible (nk)n \choose k rows). The results are qualitatively the same as the ones currently in the paper.

Q2. Very narrow empirical evaluation. This is primarily a theory paper, but the question the paper asks is influenced by empirical observations, so I think it would be nice to see a more detailed empirical study (e.g. more/larger n, varied k).

We thank the reviewer for suggesting that we should do further experiments. In the submission, we only had experiments for k=2k = 2 in Figure 1 and k=3k = 3 in Figure 3 in Appendix.

Since the submission, we also performed experiments with k=4,5,6k = 4,5,6 when AA is a random matrix with NN rows, nn columns and each row is uniformly kk-sparse. We did not take all possible (nk)n \choose k rows as in the original submission due to computational restrictions for larger k.k. We varied nn and N.N. The results for larger kk and varying n,Nn, N were overall similar to the ones in the submission for k=2,3.k = 2,3. We did not notice any qualitative changes.

Reviewer CwJs · CommentOpenReview ↗

I thank the authors for the response and the additional experiments (which should go into the final version). I think this is a great submission and I keep my positive score.

Reviewer R6u8OpenReview ↗
Rating
5/6
Confidence
5/5
Quality
4/4
Clarity
4/4
Significance
4/4
Originality
4/4
Contribution type
theory
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

The primarily theoretical paper studies tradeoffs between dimensionality of embedding models and accuracy in retrieval tasks. The authors are particularly motivated by the question of trying to understand how relatively low dimensional models with dimension d in the low thousands can solve various retrieval tasks on billions of points.

The authors rely heavily on the retrieval setup of prior work of [WBNL26] wherein there are a collection of documents and a collection of queries and each document corresponds/is relevant only to a particular k-set of relevant queries. This is used by the authors to draw some interesting connnections with compressed sensing and RIP properties.

The goal in retrieval is to represent both documents and queries in d-dimensional euclidean space such that inner products between query-document pairs that are relevant are large, whereas if they are not relevant the inned product should be small.

Here, large and small depend on the notion of "margin" of the embedding and the authors try to understand how big of a margin m can an embedding have for some d-dimensional space. Notice that margin is desirable in this context as an embedding with high margin typically means that there is robustness in the representation.

The main result of the paper is obtained via the JL-lemma showing that essentially logn/m^2 dimensions suffice to obtain a particular margin m which would be attainable with no restriction of the dimension. The apply their theorem in the context of the prior work of [WBNL26] which allows them to show that dimension d = k log(n/k) is sufficient to get margin 1/√k. This helps explains why even low dimensions can achieve good margins in retrieval thus essentially answering their original question.

The key takeaway of this paper is that the highest possible quality embeddings (essentially if there was no restriction on the dimension) can already be achieved in a smaller dimension, particularly even if d is growing only logarithmically with the data size, supposing that the retrieval task is characterized by some sparsity k.

Strengths and weaknesses

Strengths:

This is one of the most interesting theoretical papers I have seen in a while at the venue, with a clean theoretical question, a clean technical setup and a very satisfying result, addressing the success of relatively low-dimensional model (compared to the huge data sizes).

I had read the [WBNL26] work and was curious myself about the tradeoffs between dimensionality and retrieval accuracy. Specifically, the authors provide a clean setup where documents and queries are supported on a k-sparse subset, and they prove that dimension does not have to grow too fast in order to satisfy the similarity prescribed by the doc-query pairs.

In addition, the paper is well-written and a pleasure to read. I also found the connection to RIP and compressed sensing novel.

Weakness:

  • I find no major weakness, however I want to point out two things that stood out while reading the paper (see also Questions). While reading the abstract/intro, and when I saw the bound of logn/m^2 for the dimension, it was already evident by the form of the bound that JL would be used somewhere in the analysis. Notice that, given that when there is a margin m that we want the embedding to satisfy, JL allows for low dimension (as ~logn/epsilon^2) where here the error on the distances/inner products is captured by epsilon (which essentially plays the role of the margin), it was expected to obtain a bound as such.

-Second, if I understand it correctly, I find it interesting that in the embedding model even though inner products can be preserved, the ordering of distances may be competely destroyed: so for example, since we allow for margins and JL introduces errors, the Nearest-Neighbor structure between embedded vectors is destroyed in the sense that for a given vector, there is no guarantee for which other vector will become the top-NN in the embedding. Can the authors clarify if their embedding come with some ordinal embedding guarantees as well (e.g., see the work by Noga Alon, Demaine et al. "Ordinal Embeddings of Minimum Relaxation: General Properties, Trees, and Ultrametrics").

Overall, this is a very solid contribution and a clear accept in my opnion. My only reason for not giving a strong accept is that the JL connection was kind of expected and straighforward. However, formulating the whole problem and the execution is highly interesting.

Questions

-As mentioned above, it would be nice to get a comment on how the top-Nearest-Neighbor structure is preserved by the embeddings. See also ordinal embeddings by Noga Alon et al.: Ordinal Embeddings of Minimum Relaxation: General Properties, Trees, and Ultrametrics.

-Moreover, are there results in terms of approximation guarantees? Say, we allow for some errors in the inner products, can we further decrease the dimension?

-Can the authors comment, on the accuracy drop if we further decrease the dimension? So for example, if we use even less dimension that the one specified by their theorems, do we get a catastrophic accuracy collapse phenomenon where most of the similarities between doc-queries are erroneous? Essentially, I am interested in how smooth is the transition between accuracy/dimension beyond the klogn bound.

Limitations

yes

Final justification

I maintain my very positive evaluation of this paper. I believe this is a genuine contribution for the dimensionality investigation!

Formatting concerns

n/a

2 comments
Authors · CommentOpenReview ↗

Response to Reviewer R6u8

We thank the reviewer for reading our paper and the insightful comments and questions on it.

Weaknesses: While reading the abstract/intro, and when I saw the bound of $ \log n/m^2$ for the dimension, it was already evident by the form of the bound that JL would be used somewhere in the analysis. We agree that the use of JL is natural here. One surprising feature of our proof is that we only use JL to reduce the dimension of the V vectors and then carry out an existential argument for the dimension-reduced U vectors. Applying JL directly to both U and V vectors yields a known (and suboptimal) result as stated in lines 174-178.

Q1: As mentioned above, it would be nice to get a comment on how the top-Nearest-Neighbor structure is preserved by the embeddings. See also ordinal embeddings by Noga Alon et al.: Ordinal Embeddings of Minimum Relaxation: General Properties, Trees, and Ultrametrics.

We agree that the question of preserving the ordinal structure of distances is very natural and interesting. Our current techniques do not obviously address it since we apply the dimension reduction only to the V-embeddings, but only show the existence of the U-embeddings. So, as written, in our argument there is little control over the U-embeddings.

The only way in which any ordinal structure is preserved is via the fact that the top-k nearest neighbours are retained (this statement is just a rephrasing of our Theorem 1.4.).

Q2. Moreover, are there results in terms of approximation guarantees? Say, we allow for some errors in the inner products, can we further decrease the dimension? We would like to clarify this question slightly before addressing it. Does the reviewer mean errors in the sense that we allow for a few violations of (−1)Aji+1⟨Ui,Vj⟩≥m(-1)^{A_{ji} + 1}\langle U_i, V_j\rangle \ge m?

Q3. Can the authors comment, on the accuracy drop if we further decrease the dimension? So for example, if we use even less dimension than the one specified by their theorems, do we get a catastrophic accuracy collapse phenomenon where most of the similarities between doc-queries are erroneous? Essentially, I am interested in how smooth is the transition between accuracy/dimension beyond the k lognk\ log n bound.

We thank the reviewer for this interesting question. To answer this question of the reviewer, we made the following additional measurement of the experiment from Figures 1 and 2. We tracked the false positive and false negative rates of retrieval in any dimension (even when the embedding was not successful). The results were interesting and perhaps surprising:

  • For any given dimension, the sigmoid embeddings have a lower false-positive and a lower false-negative rate. Thus, our proposition that sigmoid-based embeddings perform better for the retrieval task holds even in this stronger sense.

  • In the sigmoid case, however, false positive and false negative rates drop rather sharply over 2/3 values of dd from being extremely high to being extremely low.

  • For the InfoNCE embeddings, false positive and false negative rates drop much more smoothly. We mostly ascribe this to the fact that false positive and false negative rates are non-zero even in dimensions where perfect retrieval is possible (as witnessed by the sigmoid loss).

Reviewer R6u8 · CommentOpenReview ↗

Thank you and clarification Q2

I thank the authors for their careful response! For Q2, yes I mean error in terms of violations, where the inner products are not as large as they should be for example. In ordinal embeddings concretely, an error occurs whenever the distance between i,j is larger than i,k, even though in the prescribed constraints they indicated that ``i is closer to j than to k''. This is the standard notion of approximation for these types of problems.

Thank you for the extra experiments. Overall, I maintain my positive assessement about the paper.

Reviewer roWsOpenReview ↗
Rating
5/6
Confidence
3/5
Quality
4/4
Clarity
3/4
Significance
4/4
Originality
4/4
Contribution type
theory
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

The paper is about modeling how good an embedding is for the purposes of retrieval (that is, preserving high similarity between queries and input objects which are a match). The problem is modeled as follows: there are N queries and n documents and a binary matrix that captures which documents are relevant for each query. Both the queries and the documents are embedded in some dimension d, and the question is how well is this relevance matrix "captured" by the embedding. Namely, a good embedding would have a margin m such that the inner product between a query and a document is >m for pairs that match (entry 1 in the matrix) and <-m for pairs that don't match (entry 0 in the matrix).

Within this model, the paper characterizes the largest margin achievable given a fixed matrix and dimension d into which we want to embed. There are several main results which are quite surprising:

  1. the authors consider the highest achievable margin, no matter what the dimension d is (let's call this M). Then they construct an embedding into dimension O(M^2 log n) that achieves the same margin M (up to a multiplicative (1-eps) factor which features into the big-Oh notation).
  2. for the special case in which the matrix is a collection of all vectors with exactly k non-empty entries, they shows a tight characterization of the dimension needed to achieve M (upper and lower bounds).
  3. they also show empirically how to construct such good embedding, and emphasize in particular the relevance of the sigmoid loss function.
Strengths and weaknesses

Strengths:

  • the problem is interesting and the results are strong - it is worthwhile to understand the limitations of embeddings, but also to know that there are constructions which achieve best possible
  • from a technical perspective, the paper ties together several tools, from communication complexity to compressed sensing
  • the paper improves on several recent papers that have discussed similar issues

Weaknesses:

  • the writing is at times informal ("This establishes yet another, unexpected, connection between RIP and our model" - what exactly is the connection? better to spell it out), and at times quite unforgiving with the reader (see Theorem 1.2 and the paragraph that follows - it's unclear what ||J||_op) means
Questions

Q1. Can the requirement for a high margin be relaxed and still get similar bounds? My concern is that, given a high margin, the retrieval problem becomes trivial... can you comment, for example, on the notion of stability for nearest-neighbor searches, which tries to characterize "easy" instances?

Limitations

yes

Final justification

I thank the authors for their reply. I maintain my evaluation.

Formatting concerns

none

1 comment
Authors · CommentOpenReview ↗

Response to Reviewer roWs

Weaknesses: Thank you for the feedback on the exposition. We will go through the paper carefully and improve the two paragraphs mentioned as well as any other places we notice where the exposition can be improved.

Q1. Can the requirement for a high margin be relaxed and still get similar bounds? Thank you for the question. We do mention the case when the margin goes to zero. In that case, determining the minimal dimension becomes the sign-rank problem which is well-studied. As we mention in Theorem 1.1., dimension 2k+12k+1 is sufficient and necessary in this regime.

Q1. My concern is that, given a high margin, the retrieval problem becomes trivial. We do comment on page 3 (line 101 - line 110) that large margins yield interesting behaviour beyond retrieval from the training dataset. For instance, retrieval remains correct subject to small perturbations, More interestingly, there is compositional generalization dependent on the size of the margin (proposition 4). Concretely, when the margin is large we can retrieve groups of objects of size K>kK > k (for some KK) via appropriate query vectors even if during training all retrieval was on groups of size at most k. The larger the margin m,m, the larger we can take the value of KK to be. This shows the importance of a large margin to out-of-distribution generalization.

Q1. Can you comment, for example, on the notion of stability for nearest-neighbor searches, which tries to characterize "easy" instances? We agree with you that margin is related to the stability of nearest neighbour search. In fact, one relevant result here is related to approximate nearest-neighbour search algorithms using a dimension-reduction step. Consider the following standard algorithm. One first applies a JL-dimension-reduction to dimension D of the embeddings and then performs nearest neighbour search in the lower-dimensional space. A similar argument to the one of our Theorem 1.4 shows that dimension D=O(m−2log⁡(Nn))D = O(m^{-2}\log(Nn)) is sufficient so that the algorithm is correct with high probability on all instances. Thus, larger margin allows for success at a lower dimension.

From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.

Missing a submission?

Loading the discussion…