Retrieval models need different data than generators
A retrieval model learns whether two texts are about the same thing, not what comes next. Its training data must therefore exist as query, positive and negative triplets, and the difficulty distribution of the negatives sets how fine the boundary gets. MTEB's layered results show that picking models or data by an aggregate score is the wrong move.
On this page
Say you buy two million instruction-response records. The price is reasonable, the format is tidy, the cleaning is thorough. You train an embedding model on them, point it at your own knowledge base, and it loses to the generic model in the vendor demo. You conclude that volume was insufficient and consider buying two million more. Volume is not the problem. A generator learns what token comes next given prior text; a retriever learns whether two passages are saying the same thing. Feed the same records to the second and what is missing is not count but structure.
Where exactly the mismatch sits
An instruction-response record carries one piece of information: under this instruction, produce this text. A retrieval training record carries a different one: this query is relevant to this passage and not to that one. The first needs a single positive. The second needs counterexamples, or the model never learns a boundary. It can drive the loss down by mapping every text into one neighbourhood.
That is why training an embedding model on generation data often produces an odd outcome: the training loss falls nicely while ranking metrics on validation barely move. The model learned that two passages share a topic, not that one passage answers the question. Shared topic is easy. Shared answer is hard.
There is a subtler mismatch too, in query shape. Instructions in generation data are usually complete, polite, and context-rich. Real retrieval queries are often three keywords, one typo, half a sentence. If every training query is a full sentence, the model treats completeness as part of the relevance signal and degrades on short queries. Nothing is wrong with the data; its query distribution simply is not yours, and you cannot see that at procurement time.
MTEB splits evaluation into eight layers, not one score
MTEB does something plain: it splits embedding use into eight task types, namely bitext mining, classification, clustering, pair classification, reranking, retrieval, semantic textual similarity and summarization, then runs a set of models over dozens of datasets in over a hundred languages.[1] Its most useful output is not the leaderboard but the way the leaderboard fails. No model is strongest across all eight types, and the ordering of models changes with the task type.[1]
What does that mean for someone buying data? An average is a composite index that weights a task you do not care about equally with one you do. If your use case is retrieval, read the retrieval column only. When a vendor argues from an aggregate score, they are pricing the capability you need using a capability you do not.
The same fact explains why a general-purpose embedding model disappoints in your domain. It was trained to be balanced across eight task types, and balanced means unremarkable on each. The narrower your task, the more that balance costs you.
Eight task types and the smallest sample each needs
| Task type | What the model judges | Minimum sample structure | What single texts cannot supply |
|---|---|---|---|
| Retrieval | Whether this passage answers this query | Query plus positives plus negatives | Negatives; the query-to-passage length gap |
| Reranking | Which of several passages should rank first | Query plus an ordered candidate list | Ordering relations; separation of near-ties |
| STS | How close two sentences are in meaning | Sentence pair plus a graded score | Consistency of the annotation scale |
| Classification | Which class this text belongs to | Text plus a label | The label taxonomy; boundary cases |
| Clustering | Which texts belong together | Several texts inside one cluster | In-cluster variety; near-miss pairs |
| Pair classification | Whether this pair is the same type | Paired texts plus a binary label | Hard negative pairs |
| Bitext mining | Whether two sentences are translations | Cross-lingual sentence pairs | Domain coverage of the parallel text |
| Summarization | Whether this summary covers the source | Document plus summary | Gradations of summary quality |
The practical use of this table is to read it backwards: which row does your data fall into? If a corpus only fills the classification row, it cannot directly support the retrieval row, even though both look like text paired with text. That is a difference in type, not in quality.
Hard negatives: how to mine them and how many to use
A declaration first: MTEB is an evaluation benchmark and does not study negative construction. What follows is my own reasoning from the shape of the contrastive objective, an engineering inference rather than a published finding. The starting point is small: a contrastive loss only pushes apart what appears together in a batch. If every negative is a random document, the model can lower the loss by learning a coarse distinction such as support tickets versus encyclopedia articles.
- Mine with an existing model. Index the corpus you intend to train on, retrieve the top fifty passages for each query with the current checkpoint, drop the labelled positives, and keep the rest as candidates. Re-mine whenever the model changes, because hard is defined relative to the current model.
- Bucket by similarity instead of taking only the hardest. Use ranks five through fifty as the bulk, and keep a small separate slice of ranks one through four. The very top of the list is often exactly where false negatives live: another phrasing of the same answer, or another section of the same document.
- Deduplicate before treating anything as a negative. Run near-duplicate removal inside the candidate pool and drop items that overlap heavily with the positive. This removes a large share of false negatives at a fraction of the cost of later human review.
- Keep some easy negatives. An all-hard diet pushes the model into fine-grained discrimination and can make it worse at rejecting obviously irrelevant passages. In practice you want a spread, with proportions tuned on validation rather than fixed by intuition.
- Hand-check a sample. Draw one hundred items from the hardest bucket and count how many are actually relevant. That rate is the quality ceiling of the batch and it sets how far you can push difficulty.
Step five is the one most often skipped and the one that matters most. A false negative does not merely slow learning; it teaches the wrong thing. The model is told explicitly that a relevant passage is irrelevant, and that direction gets suppressed in a way the training loss will never reveal.
What one record should look like
{
"query": "how many days for a refund to arrive",
"positive": "Once the refund is approved, the amount returns to the original payment method in three to five business days.",
"negatives": [
{"text": "How to request a refund", "source": "same_doc", "band": "hard"},
{"text": "Invoice issuance process", "source": "bm25", "band": "mid"},
{"text": "Membership tier benefits", "source": "random", "band": "easy"}
],
"query_len": 8,
"lang": "en",
"domain": "customer_support"
}This record is a fictional illustration of the fields, not real data. Only three details matter. Each negative carries source and band, so you can later compute metrics per bucket instead of knowing only that negatives exist. Query length is stored separately because short queries are the most fragile slice in retrieval, and without that field you cannot locate the failure on a validation set. Domain lets you report per-domain numbers rather than one blended average.
If a vendor delivers records without these fields, you can still buy, but you will have to add them. Recovering them from raw logs is cheap. The real cost is that you cannot audit which checkpoint mined the negatives, so you cannot explain later metric swings.
Where this account breaks down
The second limit is task shape. Everything above assumes queries are natural, short, and answerable. If your scenario is retrieving similar contracts from a full contract as the query, the query is itself a long document, the difficulty distribution of negatives is completely different, and a mixture tuned for short queries will be off.
The third limit is evaluation. MTEB's layering tells you to read metrics per task type, but it does not give you a threshold. What nDCG your retrieval task needs can only be derived from a business measure: how many of the top ten results actually answer the question, estimated by a human reading two hundred cases. That number beats any leaderboard.
One thing to do immediately: slice your current training set twice, once by query length and once by negative source, and find the bucket where validation is worst. If that bucket is also your highest-traffic slice in production, you do not need more data. You need to re-mine the negatives for that slice.
