potentialpaper

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

Anonymous authors

ICLR 2027

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. In vector retrieval, even if document embeddings support perfect recall, learning a high-recall query encoder can be a barrier. We show this empirically on benchmarks and theoretically under the SQ model.

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-kk answer sets of nn 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.

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
18 Sep 2026ICLR 2027submittedICLR 2027Under reviewreviews ↓[1]PDF[1]
Missing a version?

ICLR 2027

Under review · 4 reviews · OpenReview

Updated 25 Nov 2026, 10:37 UTC.

Reviewer dbi6OpenReview ↗
Rating
4/4
Confidence
3/4
Soundness
3/3
Presentation
3/3
Informativeness
3/3
Read review
Summary

The paper proves that, given a frozen set of document embeddings, learning the query encoder for a bi-encoder retrieval setup can be computationally hard under the Statistical Query (SQ) model. A few recent works showed that some cases are geometrically impossible, but this work discusses a setting where it is geometrically possible, meaning good embeddings exist (a perfect query encoder exists by construction in the paper's setting), but you simply can't learn them. The SQ model closely approximates mini-batch SGD (Abbe et al., 2021). The paper also includes some experiments to demonstrate the motivation for this problem, showing that we actually do observe cases where query encoders are difficult to train.

Strengths

This paper explores a question I've thought about myself, and I was surprised to see they present it in a very clear way. In bi-encoder retrieval, encoding documents is relatively easy to understand; it is essentially a form of information compression. But we actually know very little about how to encode queries. In practice, all we can do is learn from massive retrieval sample data, seeing which queries correspond to which documents, and learn patterns from all those statistics. Therefore, the setting they study is very natural, and they prove that learning query encoders can actually be hard. Furthermore, the setting closely mirror real-world training practices like mini-batch SGD. To a large extent, this work deepens my understanding of how we train embedding models.

Weaknesses

None. I don't see any weaknesses here that would make me lean toward rejection. The authors acknowledge some limitations of this work in Appendix A.

Questions for the authors

These are just out of curiosity, and overall they won't change my (positive) assessment.

  1. My understanding is that SGD ≈ SQ relies on the batch gradient being an average of the per-sample gradients over i.i.d. samples. In practice, however, in-batch negatives are often used, so the samples are not i.i.d. (i) Could the authors clarify whether Section 3 uses in-batch negatives? (ii) Do you expect the SQ lower bound to extend to contrastive objectives with in-batch negatives?
  2. I'm curious how a negative result can inform practice (in a way that is more understandable to practitioners). Are there any practical tools to diagnose whether we are in the hard regime?
  3. Section 3.2 says all datasets were trained for a fixed 3,000 steps, but they vary in size, e.g., BRIGHT biology only has 72 queries, fiqa has 5,500. So the number of effective epochs is very different? If you have the compute to train them properly, that would be great...
2 comments
Authors · CommentOpenReview ↗

We're glad you found the paper interesting, thanks for the thoughtful feedback (and for your patience)! To answer each of your questions:

In-batch negatives and the SQ model. Our experiments in Section 3 use a contrastive loss with full negatives where feasible (up to 200k total documents) and randomly sample 100k documents otherwise. One of the main reasons in-batch negatives are used is to avoid re-embedding many documents in each training iteration when training query and document embedding models simultaneously; training only a query encoder on a frozen document index avoids this efficiency problem.

That being said, our SQ lower-bound argument does extend to contrastive losses with in-batch negatives (for a fixed batch size BB) with minor modifications. At a high level, we instead allow the SQ oracle to return the expectation of any [-1,1]-valued function of BB iid (query, gold-center) samples within tolerance τ\tau. The intent and null distributions over samples become DA⊗BD_A^{\otimes B} and N0⊗B\mathcal{N}_0^{\otimes B}, respectively, and the same orthogonality argument gives a batch version of Lemma 4.5 with nB−1n^B-1 replacing n−1n-1. The downstream effect is that our statistical query lower bound in Lemma 4.4 will have a denominator of nB−1n^B-1. This is polynomial in PP for a fixed batch size, so the number of required statistical queries remains exponential in PP.

Useful diagnostics in practice. As we do in the paper, a useful first step is determining the geometric capacity of the frozen index to diagnose whether poor retrieval performance is a consequence of document geometry or a learning failure on a particular task. Though we have no formal diagnostic for learning failures, one interpretation of our negative result is that it represents a worst-case setting in which semantic similarity between a query and document gives essentially no useful information about relevance to an SQ learner. This may suggest that hard settings are ones where semantic similarity is a poor proxy for query/document relevance, but this is not well understood and stands as an open direction for future work.

Epoch standardization. Thanks for catching this! We initially set a fixed number of steps because some datasets are too data-limited to do proper model selection. We will scale up the number of effective epochs for the larger categories to check whether they benefit from additional training. We don’t expect substantial changes to our overall results, as test recall peaked before the end of the original horizons on all but one category.

Reviewer dbi6 · CommentOpenReview ↗

Thanks! I'll keep my positive score. Good luck!

Reviewer cS7yOpenReview ↗
Rating
2/4
Confidence
2/4
Soundness
2/3
Presentation
2/3
Informativeness
2/3
Read review
Summary

This paper investigates why dense retrieval models underperform relative to the theoretical geometric capacity of their document indices. Using a ranking SVM approach to measure geometric capacity across multiple benchmarks, the authors demonstrate a striking gap: even when document indices support near-perfect retrieval (95%+ geometric capacity), fine-tuned single-vector query encoders frequently plateau below 50% recall and generalize poorly on held-out test data. To explain this, the paper provides a theoretical proof in the Statistical Query (SQ) model showing that learning a query encoder can be computationally hard even when a small, perfect-recall document index exists. However, the audience may expect a more practical analysis of the synergy between semantic geometry and query encoder learning, as well as a more thorough discussion of model scaling impact.

Strengths

The paper shifts attention away from geometric constraints (the primary focus of recent literature) toward query-side learnability as a critical bottleneck in dense retrieval. The construction of a hard retrieval task in the SQ model offers formal mathematical insight into why gradient-based or statistical learning can struggle with query encoder learning.

Weaknesses
  1. While the paper's SQ-hardness proof establishes a worst-case theoretical barrier, the chosen construction relies on an idealized, discrete hypercube geometry that largely decouples document representation from query learning. In practice, query encoding and document embedding are deeply coupled. If a document embedding space possesses rich, well-structured semantic geometry, it should theoretically provide a continuous "semantic runway" that makes query encoder learning substantially easier. The paper would be strengthened by discussing how the quality and continuity of real-world document embeddings mediate or alleviate this computational hardness in practice.

  2. The empirical evaluation is restricted to relatively modest or mid-sized models: DistilBERT and Qwen3-Embedding-4B. While Qwen3-4B consistently outperforms DistilBERT, the evaluation leaves open a crucial question regarding model scale. Given the rapid evolution of foundation models, the authors should address whether scaling model capacity (e.g., to 7B, 30B, or larger models) can further bridge the train-test generalization gap, or if the limitation is fundamentally structural.

Questions for the authors

Does scaling help bypass the single-vector compression trap, or does the single-vector bottleneck persist regardless of parameter count?

1 comment
Authors · CommentOpenReview ↗

Thanks for your feedback and suggestions! We agree that including a discussion about how the quality of semantic geometry can affect learning will strengthen the paper and help to contextualize our worst-case construction (it will be integrated into the introduction and start of Section 4 in the camera-ready version). To answer both points:

The motivation for this paper—and the broader line of research on limits of vector search—is to study the performance of vector search on the types of complex retrieval problems it is increasingly being applied to in practice. The fundamental difference between a simple application like semantic search (where vector search excels) and more complex retrieval tasks is that query/document relevance need not be a smooth function of semantic similarity in general (for example, retrieving the documents that answer a question may require reasoning like in BRIGHT). This makes for a more challenging learning landscape. We see our theoretical construction as representing a worst-case setting in which semantic similarity gives essentially no useful relevance information to an SQ-learner, though reality often sits somewhere between and is dependent on the retrieval task and inductive bias of the embedding model. Understanding the characteristics underlying this interaction is an under-explored area that we hope to steer future research toward.

Regarding model size, it’s uncommon to see large 10B+ parameter embedding models used in production vector search systems due to latency constraints on inference (often milliseconds). There is some evidence in the literature that scaling models can lead to performance improvements at a fixed dimension (see, e.g. “Large Dual Encoders Are Generalizable Retrievers" by Ni et al. ‘22). The fact that DistilBERT embeddings already support near-perfect retrieval in our experiments suggests that this parameter scaling may produce semantic embeddings that are more amenable to learning generalizable retrieval rules, though this is not well understood and stands as an interesting topic for future research.

Reviewer m9Q9OpenReview ↗
Rating
3/4
Confidence
2/4
Soundness
3/3
Presentation
3/3
Informativeness
2/3
Read review
Summary

This paper shows that document embeddings often support much better retrieval. It measures this gap and gives a theoretical example where even a small, accurate query encoder can be hard to learn.

Strengths

The experiments expose substantial unused retrieval capacity, making a strong case for focusing on query encoders. The SQ lower bound adds theoretical weight by showing that even a small, perfect encoder can be hard to learn.

Weaknesses

Many experiments use small training sets and a fixed LoRA method. Stronger training controls are needed to separate learning difficulty from limited data or training choices.

Questions for the authors

Can the results separate query-encoding difficulty from limited data and LoRA?

1 comment
Authors · CommentOpenReview ↗

Thanks for the support and for bringing attention to training controls. To better isolate learning difficulty, we have run ablations to test both the influence of small training sets (common in QA benchmarks since eliciting human-labeled question/answer pairs is expensive) and the LoRA pipeline. We will add both ablations to the appendix with a brief description and reference after the main experimental results in Section 3.2.1.

Sensitivity to training set size. For the first, we fine-tune DistilBERT using our LoRA pipeline on 5 random subsets of 25%, 50%, and 75% of the original training set (evaluation set fixed) and measure evaluation recall across each of the 15 resulting models. We find that in data-limited categories with at most 1000 total samples, training recall is often saturated by each model while evaluation recall is low-variance and doesn’t show a sizable upward trend as the size of the training set increases. Extrapolating this behavior to larger training sets is purely speculative, but it seems to suggest that the learning difficulty we observe is not only a relic of data limitations. The following table gives evaluation recall (mean + std) at each training set size across the 5 random training subsets for each benchmark, with NN denoting the number of queries in the full (100%) training set:

Benchmark N Geometric capacity 25% 50% 75% 100%
Touché-2020 34 86.0 9.3 ± 1.5 12.2 ± 0.6 13.0 ± 1.0 13.4
TREC-COVID 35 49.3 14.4 ± 2.4 18.8 ± 1.3 21.2 ± 1.1 23.1
TheoremQA theorems 53 100.0 8.3 ± 5.5 16.2 ± 2.2 17.1 ± 2.9 15.9
Psychology 70 99.6 4.7 ± 2.5 5.5 ± 3.6 2.8 ± 1.7 2.3
Robotics 70 96.8 4.2 ± 2.1 4.7 ± 1.9 4.8 ± 1.0 3.9
Biology 72 96.2 8.0 ± 3.2 9.2 ± 3.0 10.4 ± 2.7 9.4
Economics 72 100.0 9.9 ± 0.3 12.8 ± 2.4 11.0 ± 2.6 9.6
Sustainable living 75 95.7 5.3 ± 1.7 6.5 ± 1.7 8.7 ± 2.7 6.4
AoPS 77 100.0 10.1 ± 1.2 12.2 ± 3.4 12.4 ± 1.8 13.7
Pony 78 100.0 73.9 ± 0.9 73.0 ± 1.3 72.2 ± 0.9 73.1
Earth science 81 99.7 17.1 ± 3.1 19.0 ± 3.0 18.2 ± 3.9 16.1
Stack Overflow 81 83.3 1.6 ± 1.4 2.3 ± 1.8 2.3 ± 1.3 3.7
LeetCode 99 100.0 5.0 ± 1.7 4.5 ± 2.6 3.9 ± 1.1 5.5
TheoremQA questions 135 99.6 7.0 ± 2.1 7.4 ± 2.2 10.9 ± 1.7 10.7

LoRA vs full fine-tuning. Second, we fully fine-tuned DistilBERT on each of the QA categories to see if our recall gaps could be explained by limitations of LoRA. Previous work has shown that LoRA and full fine-tuning of Qwen3-Embedding-4B for query encoding yield similar downstream retrieval quality (Jain et al. ‘26), and our findings are similar. Full DistilBERT fine-tuning yields a 0.5% mean and 1% median improvement for held-out recall over LoRA fine-tuning, which is only a small fraction of the observed gap between geometric capacity and achieved recall on our benchmarks. The following table gives evaluation recall (mean + std across two training runs) for LoRA and full fine-tuned DistilBERT query encoders under the same step size:

Benchmark Geometric capacity LoRA recall Full FT recall
ArguAna 96.4 5.7 ± 0.3 4.3 ± 0.3
FiQA 99.6 18.1 ± 0.0 14.1 ± 0.2
NFCorpus 97.5 15.6 ± 0.2 19.2 ± 0.1
Quora 98.9 75.4 ± 0.1 74.3 ± 0.2
SCIDOCS 98.0 8.4 ± 0.6 9.0 ± 0.4
SciFact 100.0 66.3 ± 0.3 69.4 ± 0.2
TREC-COVID 49.3 23.1 ± 0.0 14.7 ± 0.1
Touché-2020 86.0 13.6 ± 0.9 7.6 ± 0.1
AoPS 100.0 14.7 ± 0.1 17.6 ± 0.0
Biology 96.2 10.1 ± 0.6 12.0 ± 0.2
Earth science 99.7 16.1 ± 2.3 15.2 ± 1.0
Economics 100.0 10.4 ± 0.1 11.2 ± 0.2
LeetCode 100.0 6.4 ± 0.8 7.4 ± 0.5
Pony 100.0 73.9 ± 0.2 76.4 ± 0.1
Psychology 99.6 2.3 ± 0.4 6.7 ± 2.4
Robotics 96.8 2.9 ± 1.1 1.1 ± 0.0
Stack Overflow 83.3 3.1 ± 0.0 3.1 ± 0.0
Sustainable living 95.7 5.3 ± 2.3 8.9 ± 0.2
TheoremQA questions 99.6 10.6 ± 0.8 18.1 ± 0.0
TheoremQA theorems 100.0 15.4 ± 0.8 17.0 ± 0.0
LIMIT 100.0 4.1 ± 0.6 5.3 ± 0.0
  • Prateek Jain, Shabari S Nair, Ritesh Goru, Prakhar Agarwal, Ajay Yadav, Yoga Sri Varshan Varadharajan, & Constantine Caramanis. (2026). Succeeding at Scale: Enterprise Retrieval Benchmark Construction and Index-Preserving Query Adaptation for Multi-Tenant Search.
Reviewer hVeGOpenReview ↗
Rating
3/4(+1)
Confidence
2/4
Soundness
3/3
Presentation
3/3
Informativeness
2/3
Read review
Summary

This paper investigates the gap between the retrieval potential of document embeddings and a query encoder’s ability to exploit that potential. Through experiments on real-world data and theoretical constructions under the SQ model, the authors show that even when document embeddings support high-recall retrieval, training an effective query encoder can remain challenging.

Strengths
  1. The authors use Ranking SVM’s recall as a benchmark for comparison with other models, providing a reference point for evaluating their performance.

  2. The authors find that document embeddings may inherently support high-recall retrieval, while training a query encoder that fully exploits this potential remains challenging. They support this finding with experiments on real-world data and theoretical constructions under the SQ model.

Weaknesses
  1. The authors use a 70/30 train–test split, but model performance also depends on the size and composition of the training set. Poor test performance may stem from insufficient training data or characteristics of the training data. The current experiments do not clearly distinguish among these possible explanations.

  2. The experiments show that the tested models fail to reach Ranking SVM’s reference recall on the selected datasets and under the specified training settings. However, this result does not establish that other models or training methods would also fail to achieve effective retrieval. The authors should limit their empirical conclusions to the models and settings evaluated, or include experiments with additional models and training methods to strengthen the generalizability of their findings.

  3. In Figure 2, the same multi-vector model performs noticeably differently across LIMIT, BRIGHT, and BEIR, indicating that retrieval performance depends substantially on the task and dataset. The current experiments demonstrate substantial gaps for the tested single-vector models on several tasks, but are insufficient to establish that models generally struggle to learn effective retrieval strategies. The authors should further clarify the scope of their conclusions.

Questions for the authors

Please refer to the points raised in the Weaknesses section. My main concerns are the three points raised in the Weaknesses section. If these concerns are satisfactorily addressed, I would be willing to reconsider my final score.

2 comments
Authors · CommentOpenReview ↗

Thank you for your thoughtful feedback! Addressing each of the three concerns you raised:

Effects of training set composition. Realistic QA benchmarks like the ones we consider tend to be small because obtaining labeled training examples requires significant human effort. To isolate the effects of the particular scale and composition of our training sets, we ran an ablation in which we fine-tune DistilBERT on 5 subsets of 25%, 50%, and 75% of the original training set (fixed evaluation set) and measure evaluation recall across each of the 15 resulting models. We find that on our datasets with fewer than 1000 total samples, training recall is often saturated by each model while evaluation recall is low-variance and has only a small upward trend. This suggests that the poor evaluation recall we observe empirically is not primarily a relic of our training sets. See the table below for evaluation recall (mean + std) for each training set size across benchmarks, where NN is the full number of training queries (100%). We will add this ablation to the appendix with a brief description and reference after the main experimental results in Section 3.2.1.

Benchmark N Geometric capacity 25% 50% 75% 100%
Touché-2020 34 86.0 9.3 ± 1.5 12.2 ± 0.6 13.0 ± 1.0 13.4
TREC-COVID 35 49.3 14.4 ± 2.4 18.8 ± 1.3 21.2 ± 1.1 23.1
TheoremQA theorems 53 100.0 8.3 ± 5.5 16.2 ± 2.2 17.1 ± 2.9 15.9
Psychology 70 99.6 4.7 ± 2.5 5.5 ± 3.6 2.8 ± 1.7 2.3
Robotics 70 96.8 4.2 ± 2.1 4.7 ± 1.9 4.8 ± 1.0 3.9
Biology 72 96.2 8.0 ± 3.2 9.2 ± 3.0 10.4 ± 2.7 9.4
Economics 72 100.0 9.9 ± 0.3 12.8 ± 2.4 11.0 ± 2.6 9.6
Sustainable living 75 95.7 5.3 ± 1.7 6.5 ± 1.7 8.7 ± 2.7 6.4
AoPS 77 100.0 10.1 ± 1.2 12.2 ± 3.4 12.4 ± 1.8 13.7
Pony 78 100.0 73.9 ± 0.9 73.0 ± 1.3 72.2 ± 0.9 73.1
Earth science 81 99.7 17.1 ± 3.1 19.0 ± 3.0 18.2 ± 3.9 16.1
Stack Overflow 81 83.3 1.6 ± 1.4 2.3 ± 1.8 2.3 ± 1.3 3.7
LeetCode 99 100.0 5.0 ± 1.7 4.5 ± 2.6 3.9 ± 1.1 5.5
TheoremQA questions 135 99.6 7.0 ± 2.1 7.4 ± 2.2 10.9 ± 1.7 10.7

Scope. We agree! Our results cover a number of benchmarks and training methods used in practice, but we can make no overarching claim about all datasets or query-encoder training methods. We call attention to this in lines 55-57 of our summary of contributions (“the tested query encoders… mostly fail”) and as an explicit statement in lines 589-593 of our Limitations section: “The empirical gap we demonstrate on real-world encoders and benchmarks is, in some part, an artifact of our specific fine-tuning setup; it does not preclude the existence of better query encoders which might have not been tested or not yet discovered.” We’re happy to add additional qualifiers if there is any ambiguity (e.g., “retrieval quality of single-vector query encoders” -> “retrieval quality of our single-vector query encoders” in the abstract). For context, we chose this particular LoRA fine-tuning pipeline because is an increasingly popular way to adapt pre-trained semantic embedding models to particular retrieval tasks in practice (e.g., Jain et al. '26), and LoRA-based contrastive training has been used to build state-of-the-art embedding models such as NV-Embed-v2 (Lee et al. ’24).

Task/model alignment. It is true that retrieval performance varies greatly based on the retrieval task and inductive bias of the retrieval model considered. As we note in lines 295-301, the LIMIT benchmark is constructed in such a way that keyword lookup achieves perfect recall with proper tokenization. This is a challenging setting empirically for single-vector retrievers (see the original LIMIT paper for more detailed experiments), but multi-vector models perform well because their MaxSim scoring function effectively “matches” each query token with the most relevant token in each document. Relevance in BEIR or BRIGHT, in contrast, does not share an obvious structural alignment with MaxSim scoring. This question of model/task alignment has been studied in some settings (see, e.g. Xu et al. ICLR ‘20), and we will add a note that further exploring this question in the context of retrieval is an interesting direction for future research.

  • Jain, P., Nair, S. S., Goru, R., Agarwal, P., Yadav, A., Varadharajan, Y. S. V., & Caramanis, C. (2026). Succeeding at Scale: Enterprise Retrieval Benchmark Construction and Index-Preserving Query Adaptation for Multi-Tenant Search. arXiv preprint.
  • Lee, C., Roy, R., Xu, M., Raiman, J., Shoeybi, M., Catanzaro, B., & Ping, W. (2025). NV-Embed: Improved Techniques for Training LLMs as Generalist Embedding Models. ICLR.
  • Xu, K., Li, J., Zhang, M., Du, S. S., Kawarabayashi, K., & Jegelka, S. (2020). What Can Neural Networks Reason About? ICLR..
Reviewer hVeG · CommentOpenReview ↗

Thank you for your response. My questions have been addressed thoroughly, and I will submit my final score to 3.

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

Missing a submission?

Loading the discussion…

This paper is under review