TL;DR
When building RAG systems, we often rely on leaderboards like MTEB to pick the "best" embedding model. This paper argues that scalar performance scores are a poor proxy for model behavior; instead, we should measure representational and functional similarity. The authors reveal that even models with identical scores can retrieve wildly different documents at low $k$, and they identify specific open-source models that act as near-drop-in replacements for proprietary ones.
What Problem Does This Paper Address?
In Retrieval-Augmented Generation (RAG), the embedding model is the gatekeeper. If it retrieves the wrong context, the LLM will likely hallucinate. Currently, developers choose models based on performance benchmarks (like MTEB), which provide a single average score across tasks.
However, two models with a score of 64.5 might achieve that result by retrieving entirely different sets of documents. This creates a "black box" problem:
- Redundancy: If you want to ensemble models to improve accuracy, you need models that fail in different ways. Picking two "top" models that are functionally identical is a waste of compute.
- Migration Risks: If you want to switch from a proprietary API (like OpenAI) to an open-source model to save costs, you need to know if the new model will provide the same context to your LLM.
- Evaluation Costs: Testing every new model on a massive, multi-million document corpus is prohibitively expensive.
Methods
The authors propose a two-fold evaluation framework to measure how "alike" two embedding models truly are:
- Representational Similarity (CKA): They use Centered Kernel Alignment (CKA) with a linear kernel. This is a powerful metric because it allows for the comparison of embedding spaces even if the models have different architectures or output dimensions (e.g., comparing a 768-dim model to a 4096-dim model).
- Functional Similarity (Retrieval): Since RAG depends on the specific documents returned, they measure the overlap of the top-$k$ retrieved results using:
- Jaccard Similarity: A simple measure of how many document chunks are shared between the two models' results.
- Rank Similarity: A more nuanced measure that considers whether the shared documents appear in the same order.
Datasets
The study evaluates 19 different embedding models (including OpenAI, Cohere, and various open-source families like E5, BGE, and GTE) across five datasets from the BEIR (Benchmark Information Retrieval) suite:
- TREC-COVID (Scientific/Medical)
- NFCorpus (Medical)
- FiQA-2018 (Financial)
- ArguAna (Argumentation)
- SciFact (Scientific claims)
Key Insights and Ideas
- The "Clone" Cluster: The authors discovered an inter-family cluster where UAE-Large-V1, mxbai-embed-large-v1, and bge-large-en-v1.5 exhibit almost perfect similarity. For a practitioner, this means there is zero benefit to ensembling these three; they are essentially the same model.
- Instability at Low $k$: This is the "aha moment" for RAG developers. Most RAG systems only feed the top 5 or 10 chunks to an LLM. The paper shows that retrieval similarity is most volatile at these low $k$ values. Even models that look similar on a global scale might only have a 30-40% overlap in their top-10 results.
- Open-Source Alternatives: If you are looking to move away from OpenAI, SFR-Embedding-Mistral was identified as the most similar open-source alternative to OpenAI’s
text-embedding-3-large. However, for Cohere’s models, no single open-source "twin" was found, as similarity varied significantly by dataset.
Key Results
- Representational vs. Functional: High CKA scores (representational similarity) do not always guarantee high retrieval overlap at the top-10 level.
- Family Ties: Models generally cluster by family (e.g., all T5-based models are similar to each other).
- The Top-10 Reality Check: On larger datasets like TREC-COVID, the Jaccard similarity for the top-10 results between "similar" models dropped as low as 0.18. This means that out of 10 documents, two different "high-performing" models might only agree on two of them.
Limitations and Future Work
- Corpus Scale: The datasets used were relatively small (up to 171k documents). Real-world RAG often involves millions of documents, where retrieval similarity likely drops even further.
- Chunking Strategies: The study used a fixed 256-token chunking strategy. The authors note that different chunking methods (semantic vs. token-based) might influence model similarity and deserve further study.
- LLM Impact: While the paper measures retrieval similarity, it doesn't measure how these differences actually change the final answer generated by the LLM—a logical next step for this research.
Summary updated