- The paper proves that low-dimensional embeddings, scaling logarithmically with data size, can achieve nearly optimal retrieval margins.
- It presents novel algebraic constructions and sphere packing arguments to establish necessary and sufficient conditions based on k-sparse rows.
- Empirically, the sigmoid loss outperforms InfoNCE by achieving positive margins in low dimensions, highlighting practical benefits for scalable retrieval.
Dimensionality Constraints in Embedding-Based Retrieval Models
The paper systematically analyzes the relationship between the embedding dimensionality and the retrieval capability of models based on unit-norm embeddings, focusing on maximal-margin embeddings. Given a binary relevance matrix A∈{0,1}N×n describing the association between queries and documents, the core metric is the largest achievable margin m>0 such that there exist unit-norm query {Uj} and document {Vi} embeddings in dimension d with
⟨Uj,Vi⟩≥m if Aji=1,⟨Uj,Vi⟩≤−m otherwise.
Large margin embeddings confer robustness to perturbations, enable compositional generalization, and guarantee accurate quantization. The paper provides a formal equivalence between dimensionality and achievable margin, situating the analysis in the context of communication complexity, compressed sensing, and learning theory.
Main Theoretical Results: Tight Dimension-Margin Trade-Off
A central claim is that high-quality retrieval embeddings, as measured by maximal margin m(+∞,A), can be constructed in dimension scaling logarithmically with the data size: d=O(m(+∞,A)−2logn)
achieves margin arbitrarily close to m(+∞,A). For A with m>00-sparse rows, it is shown that m>01, so that dimension m>02 is both necessary and sufficient for optimal margin, closing the gap with existing results. The proof improves on prior JL-based dimensionality reduction arguments by leveraging convex geometry and Maurey's Approximation Lemma to obtain sharper logarithmic bounds, rather than quadratic ones.
Matching lower bounds are established using sphere packing volume arguments, demonstrating that achieving margin m>03 for the exhaustive m>04-sparse retrieval setting requires dimension m>05.
Constructions Below the Maximal Margin and Beyond Standard Settings
The paper develops explicit constructions for non-maximal margins in sub-logarithmic dimensions, e.g., margin m>06 in m>07 via algebraic embeddings, and applies self-Khatri-Rao lifts for improved restricted isometry properties. These constructions provide smooth trade-offs between margin and dimension, extending applicability to more realistic retrieval settings.
Empirical Evaluation: Sigmoid vs InfoNCE Losses
Experimental results reveal that the sigmoid loss is significantly more efficient in producing high-margin embeddings in low dimensions, compared to InfoNCE, both quantitatively and across a range of m>08, m>09, and {Uj}0. The sigmoid achieves positive margins in dimensions near theoretical minimum, while InfoNCE requires considerably higher dimension for nonzero margin.

Figure 1: Minimal dimension needed to achieve a non-zero margin after 100000 training steps for the InfoNCE and sigmoid losses; sigmoid loss succeeds in much smaller dimensions.
This empirical finding is rationalized theoretically: global minimizers of the sigmoid loss coincide with maximal-margin embeddings, while InfoNCE lacks this property outside the one-hot ({Uj}1) case. Further, the margins achieved by the sigmoid loss are consistently higher across dimensions.

Figure 2: Comparison of achieved maximal margin for various {Uj}2 and {Uj}3, demonstrating clear advantage of the sigmoid loss over InfoNCE.
Practical and Theoretical Implications
The results demonstrate that dimensionality is not a practical barrier for retrieval models: optimal retrieval performance can typically be attained using low-dimensional embeddings, provided they are well-constructed. This has significant implications for the scalability of nearest neighbor search, memory-efficient deployment, and system design for billion-scale datasets. Moreover, the strong connection to restricted isometry and sphere packing theory establishes an explicit link between information-theoretic limits, generalization, and representation geometry.
Theoretical implications extend to robust retrieval under adversarial perturbations, compositional generalization with margin-based embeddings, and quantization-resistant representation learning. The tight characterization of the margin-dimension trade-off enables principled encoder design. The work also clarifies inductive bias effects of contrastive and sigmoid losses, and provides a foundation for analyzing limitations of retrieval systems.
Speculation on Future Developments
Future directions include extending these constructions to practical architectures, real-world datasets, and generalized top-{Uj}4 retrieval scenarios. Analysis of representation quality for downstream tasks beyond retrieval, as well as deeper connections between margin-based learning, adaptation, and multimodal representation compatibility, are promising avenues. Advances in parameter-efficient transfer learning, robust geometric representation, and further exploration of statistical properties of contrastive losses may leverage these theoretical insights.
Conclusion
The paper provides a comprehensive and tight characterization of how embedding dimensionality governs retrieval margin in dense retrieval models, establishing that logarithmic dimension scaling suffices for nearly optimal margin and performance. It refutes the assumption that low dimensionality is a fundamental barrier for large-scale retrieval, and offers explicit constructions, matching lower bounds, and empirical evidence supporting the theoretical results. The implications for scalable information retrieval, representation learning, and architectural design are substantial, and the framework is extensible to broader settings in AI research.