acceptodds
Published as a conference paper at NeurIPS 2026

Is Dimensionality a Barrier for Retrieval Models?

Kiril Bangachev, Guy Bresler, Jonathan Kogan, Yury Polyanskiy

Abstract

Why does the low dimensionality of representations, typically , 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 be a binary matrix indicating whether each of queries is relevant to each of documents. We are interested in the largest margin denoted by for which there exist unit norm embeddings of the queries and documents with the following property. whenever and when 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, can be nearly achieved in dimension which improves a theorem of [BDES02]. Together with a matching lower bound in Theorem 1.5, we conclude that when is the matrix containing all possible -sparse rows once, dimension is necessary and sufficient for the maximal possible margin in this setting. This fully resolves the setup of [WBNL25]. We also give several constructions for large margins when 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.

Keywords:
Sydney

Reviews

Among:
Shape:
123456this paper, Top 8%
Figure 1. Mean review rating of the reviewed papers at NeurIPS 2026. This paper averages 5.00 over 3 reviews, above 92% of the others.
Reviewer_CwJsOpenReview ↗
Rating
5
Clarity
4
Confidence
3
Originality
3
Quality
3
Significance
4
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

Paper formatting concerns

None

Reviewer_R6u8OpenReview ↗
Rating
5
Clarity
4
Confidence
5
Originality
4
Quality
4
Significance
4
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

Paper formatting concerns

n/a

Final justification

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

Reviewer_roWsOpenReview ↗
Rating
5
Clarity
3
Confidence
3
Originality
4
Quality
4
Significance
4
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

Paper formatting concerns

none

Final justification

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

Comments on the paper

1 comment
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.

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

Related papers

Loading the map…

Discussion (0)

Sign in to comment.