Manuscript Offprint

arXiv:2610.02749

Learning Query Encoders Can Be Hard Even When Vector Retrieval Is Geometrically Easy

Anders Wikum, Nina Mishra, Amin Saberi, Tal Wagner

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Efficient vector retrieval requires both a corpus geometry that supports retrieving the right documents through vector similarity, and a query encoder that can embed queries near their desired documents in the embedding space. Recent work has studied geometric capacity through the lens of the minimum embedding dimension needed to realize all top-k answer sets of n documents. We study a different notion of geometric capacity—the maximum recall achievable for a frozen document index—and explore whether learned query encoders can reach this ceiling. On several real-world retrieval benchmarks, we show that retrieval quality of single-vector query encoders often lies far below what the document indices can support.

Motivated by this observation, we give theoretical evidence that learning query encoders can be computationally hard. In particular, we construct a retrieval task that (1) admits a query encoder with perfect recall which is representable by a small one-hidden-layer ReLU network, but (2) any statistical-query learner (a class capturing learners that access training data through aggregate statistics) provably requires exponentially many statistical queries to achieve non-trivial recall advantage over the random baseline k/nk/n. Taken together, our results suggest substantial unrealized geometric capacity in retrieval benchmarks and establish query encoder learnability as a possible barrier in embedding-based retrieval.

1 Introduction

Efficient, large-scale modern vector retrieval systems are based on the bi-encoder architecture (Karpukhin et al., 2020; Lewis et al., 2020) in which documents are embedded offline as vectors and stored in a frozen index that can be reused across a stream of queries. At retrieval time, a query encoder maps the incoming query into the shared vector space, and the system returns the k best documents by similarity score (e.g. inner-product, cosine, or inverse ℓ2\ell_{2} distance). The success of this architecture depends on two distinct requirements:

  • the embedded document geometry must support accurate retrieval through vector similarity—that is, there must exist a query embedding whose k-nearest documents match the semantically intended documents for that query; and

• it must be computationally feasible to learn a query encoder that produces these query embeddings.

∗^{*}Work done while interning at Amazon AWS

The first has been the primary focus of recent work. Theoretically, it has been shown that even if documents are embedded optimally, geometry can be the limiting factor when embedding dimension is low and the retrieval task requires realizing many distinct top-k subsets of the document corpus; at the same time, empirical studies have observed that these geometric limits do not necessarily take effect in practice (Weller et al., 2026; S et al., 2026; Wang et al., 2026; Okajima and Yoshida, 2026; Bangachev et al., 2026). These findings motivate the questions: to what extent does a document index support high recall, and subject to this ceiling, how much recall can a learned query encoder achieve? We investigate both questions empirically and theoretically.

Our first contribution is an empirical study of the gap between the geometric capacity of a document index (i.e. the best recall it can possibly support) and the recall achieved by learned query encoders. We develop a ranking support vector machine (ranking SVM)-based method for efficiently gauging the geometric capacity of a given embedded corpus, then use it to study the recall attained on 20 datasets from the BRIGHT, BEIR and LIMIT retrieval benchmarks by various pre-trained and fine-tuned query encoders. Our results show that geometric capacity is rarely the limit—on most datasets, even a lightweight document encoder can support near-perfect retrieval. On the other hand, the tested query encoders—even when fine-tuned on queries and their gold sets—mostly fail to exceed 50% or even 25% recall on held-out test queries. These findings point to query-side encoding as a more salient barrier than geometric capacity in dense retrieval. These results are given in Section 3.

Our second contribution is a theoretical result which shows the existence of a retrieval task for which learning a good query encoder is computationally hard. Namely, we construct a task for which a query encoder with perfect recall exists and can be represented as a small ReLU network, but learning a query encoder with better-than-random recall requires exponentially many steps in the statistical query (SQ) learning model (Kearns, 1993)—a computational model for supervised learning in which a learner may only access the training set via aggregate statistics. This establishes a rigorous setting where retrieval quality is constrained not by the document geometry, but by the inability to efficiently learn a good query encoder. This result is formalized and proved in Section 4.

Our results complement the recent line of work on geometric limits of embedding-based retrieval, shining a spotlight on query encoding as a barrier and possible source of hardness.

References (30)

  • On the power of differentiable learning versus pac and sq learning
  • Is dimensionality a barrier for retrieval models?, 2026 (opens arXiv in a new tab)
  • Weakly learning DNF and characterizing statistical query learning using fourier analysis
  • Adversarial examples from computational constraints
  • Hardness of noise-free learning for two-hidden-layer neural networks
  • Statistical query lower bounds for robust estimation of high-dimensional gaussians and gaussian mixtures
  • Statistical algorithms and a lower bound for detecting planted cliques
  • Superpolynomial lower bounds for learning one-layer neural networks using gradient descent
  • Large Margin Rank Boundaries for Ordinal Regression
  • Lora: Low-rank adaptation of large language models
  • Dense passage retrieval for open-domain question answering
  • ColBERT: Efficient and effective passage search via contextualized late interaction over BERT. In Proceedings of the 43rd International ACM SIGIR Conference on Research and Development in Information Retrieval (SIGIR), pages 39–48, 2020
  • Retrieval-augmented generation for knowledge-intensive NLP tasks
  • Decoupled weight decay regularization
  • What limits does quantization place on dense top-k retrieval? A theoretical study, 2026 (opens arXiv in a new tab)
  • The probabilistic relevance framework: Bm25 and beyond
  • On strengths and limitations of single-vector embeddings, 2026 (opens arXiv in a new tab)
  • DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lighter
  • On the complexity of learning neural networks
  • BRIGHT: A realistic and challenging benchmark for reasoning-intensive retrieval
  • BEIR: A heterogeneous benchmark for zero-shot evaluation of information retrieval models
  • $\mathbb{R}^{2k}$ is theoretically large enough for embedding-based top-k retrieval
  • On the theoretical limitations of embedding-based retrieval
  • Qwen3 Embedding: Advancing Text Embedding and Reranking Through Foundation Models
  • For any nonzero $u \in \mathbb{F}_2^P$ we have $\Pr[\langle q_t, u \rangle = 0 \text{ for all } t = 1, \ldots, T] = 2^{-T}$ since $\langle q_t, u \rangle$ is a uniform random bit
  • The remainder of the proof is straightforward: we first show that $\{g_A/\sqrt{n-1}\}_{A\in\mathcal{A}}$ is a set of orthonormal random variables, then apply Bessel's inequality to directly obtain the desired result
  • By condition (3), the right-hand-side is equal to $n$ when $A = A'$ and 1 otherwise
  • Moreover, $\varphi_R^2 \leq \varphi_R$ since $\varphi_R \in [0, 1]$, and so
  • Instruct: Given a search query, retrieve relevant passages that answer the query\nQuery:
  • Table 3 reports out-of-the-box recall for each of the all four retrieval methods we consider