RTEB: An Overfitting-Resistant Benchmark for Embedding Model Evaluation

Sahil Verma, Minghan Li, Andrew Gaut, Yujie Qian, Kaidi Cao, Zhenmei Shi, Kenneth Enevoldsen, Roman Solomatin, Isaac Chung, Tom Aarsen, Apoorva Joshi, Emilia Garcia-Casademont, Michael Günther, Niklas Muennighoff, Yevhen Kostiuk, Fődi Zoltán, Tengyu Ma, Frank LiuNeurIPS 2026 Evaluations and Datasets Track Poster 2026

TL;DR

Popular embedding benchmarks like BEIR and MTEB are fully public, which means models can—intentionally or accidentally—overfit to the test data, inflating scores without improving real-world performance. RTEB is a new retrieval-focused benchmark that fixes this by keeping 28 of its 48 datasets permanently private and zeroing in on high-impact domains like agentic code retrieval. The result? Model rankings shuffle dramatically, revealing that today’s top models still struggle when faced with unseen, real-world retrieval tasks.

What Problem Does This Paper Address?

Embedding models are the quiet workhorses behind modern search, Retrieval-Augmented Generation (RAG), and AI coding agents. When an LLM needs to answer a question or fix a bug in a massive codebase, it relies on an embedding model to fetch the right context first.

The problem is that we can no longer trust the standard yardsticks used to measure these models. Widely used benchmarks like BEIR and MTEB are completely public. Anyone can download the queries, documents, and relevance labels. Over time, this leads to data contamination—benchmark data leaks into pretraining corpora, synthetic training data gets generated around the same tasks, and researchers repeatedly tune models against public leaderboards. As a result, high scores on BEIR or MTEB often reflect memorization or lexical shortcuts rather than genuine generalization.

Methods

RTEB (Retrieval-Focused Embedding Benchmark) tackles this problem with three core design choices:

  1. Retrieval-Only Focus: Unlike MTEB, which mixes classification, clustering, and similarity tasks, RTEB focuses exclusively on retrieval—the capability that actually drives RAG and agentic systems.
  2. Structural Privacy: Out of 48 datasets, 28 are kept permanently private. Researchers cannot download them; instead, they submit models to be evaluated on dedicated, free compute hosted by the authors. This structurally prevents direct test-set overfitting.
  3. Agentic Code Emphasis: Beyond standard text-to-code matching, RTEB introduces agentic code retrieval—given a GitHub issue (title and body), can the model retrieve the exact repository files that need to be edited?

Datasets

RTEB spans 48 datasets (20 public, 28 private) across six domains—general, legal, finance, healthcare, traditional code, and agentic code—and five languages (English, German, Japanese, French, and Spanish).

Figure 2: Distribution of query (top) and document (bottom) token lengths across RTEB’s public datasets, computed using tiktoken tokenizer. Boxes span the interquartile range with whiskers at the min and max, and the horizontal line marks the median. Query and document lengths vary by several orders of magnitude across domains, with agentic code datasets posing the most challenging long-context retrieval settings.

A standout feature is the 26 code-focused datasets, 19 of which are agentic code tasks (4 public, 15 private) covering Python, JavaScript, Java, Rust, and Go. In these agentic tasks, each query is paired with its own repository-specific corpus ranging from 6 to 128,000 files, turning retrieval into a true needle-in-a-haystack problem.

Key Insights and Ideas

  • Public leaderboards don't predict unseen performance: Model rankings on BEIR and MTEB diverge sharply from RTEB. A model that looks like a superstar on BEIR can plummet when tested on private, unseen data.
  • Domain specialists don't beat generalists: Surprisingly, domain-specialized models (built specifically for legal, finance, healthcare, or code) failed to outperform the best general-purpose embedding models in any domain.
  • Agentic code retrieval is largely unsolved: While models ace traditional code retrieval (matching clean natural language descriptions to code snippets), they struggle badly when mapping noisy, verbose GitHub issues to the right files in a large repository.
  • Python bias is real: In agentic code retrieval, models perform noticeably better on Python (0.37 mean NDCG@10) than on Java (0.27), JavaScript (0.25), Go (0.24), or Rust (0.23).
Figure 1: NDCG@10 scores on BEIR vs. RTEB public (left) and RTEB private (right). Most models score much higher on BEIR (right side of the diagonal) and rankings between the two datasets diverge substantially (ρ = 0.38), e.g. Voyage-lite jumps from 10th on BEIR to 1st on RTEB private, while BGE-M3 drops to the level of BM25. MTEB shows a similar pattern; see Figure 8.

Key Results

The authors evaluated 20 models (including 11 general-purpose embedding models, 8 domain-specialized models, and BM25 as a lexical baseline) using NDCG@10 as the primary metric:

  • Ranking Divergence: The Spearman rank correlation between BEIR and RTEB Public is just $\rho = 0.38$ (and $\rho = 0.45$ for BEIR vs. RTEB Private). Meanwhile, RTEB's own public and private splits agree strongly ($\rho = 0.90$), showing they measure the same underlying capability.
  • Dramatic Rank Shifts: Voyage-4-lite jumps from 10th place (out of 12) on BEIR to 1st place on RTEB Private. Conversely, Gemini-2 drops from 1st on BEIR to 6th on RTEB Private, and BGE-M3 falls from 5th on MTEB to 11th on RTEB Private—tying with the simple lexical baseline BM25 (0.48).
  • The Agentic Code Bottleneck: While top models routinely score above 0.83 NDCG@10 on traditional code datasets, the best model on agentic code retrieval reaches only 0.48 NDCG@10.
  • Lower Pretraining Contamination: Auditing query overlap against the 2.6-trillion-token Dolma corpus showed RTEB Public had only 9.2% overlap, compared to 15.0% for BEIR and 18.7% for MTEB.

Limitations and Future Work

The authors note several areas for future improvement:

  • Text-Only (For Now): RTEB currently evaluates text retrieval; future releases will add multimodal tasks like visual document retrieval.
  • Language Coverage: Expanding beyond the current five languages to include Chinese, Arabic, and low-resource languages is a priority.
  • Distributional Overlap: While private test sets prevent direct memorization, models could still be trained on data distributionally similar to the private sets. The authors plan to explore training-data disclosure and overlap scoring.
  • Benchmark Saturation: Even private datasets will eventually saturate as models improve, requiring a versioned release cycle to retire old datasets and introduce fresh ones.

Summary updated

BibTeX
@inproceedings{verma2026rteb,
  author = {Sahil Verma and Minghan Li and Andrew Gaut and Yujie Qian and Kaidi Cao and Zhenmei Shi and Kenneth Enevoldsen and Roman Solomatin and Isaac Chung and Tom Aarsen and Apoorva Joshi and Emilia Garcia-Casademont and Michael Günther and Niklas Muennighoff and Yevhen Kostiuk and Fődi Zoltán and Tengyu Ma and Frank Liu},
  title = {{RTEB: An Overfitting-Resistant Benchmark for Embedding Model Evaluation}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=ktfYzbgPfX},
}

Loading related content...

Figure