Weakly supervised pairs: where is the quality floor
The value of web-mined pairs is not average quality but whether one stratum is good enough for your use. Acceptance therefore has to compute precision per source stratum, because an aggregate number is diluted by whichever stratum is largest.
On this page
A quote sheet says one thing: twenty million Chinese query-document pairs, constructed automatically from web structure, at a fraction of the cost of human annotation. You need pairs to train a retrieval model and your budget does not stretch to two hundred thousand annotated items. The question is not whether it is cheap. It is which kinds of noise this batch contains, whether you can filter them, and whether what remains is enough. That question has an answer, and you can get it before paying.
Do the arithmetic first
The quote above is an invented scene and the numbers only indicate an order of magnitude, not a market price. There are three layers of arithmetic. First, what share of those twenty million pairs actually consist of a query plus a document that answers it? At one in ten, you bought two million. Second, of those, how many match your language, length and domain? Third, is the remainder enough to train what you need?
Multiply the three and you often get an awkward result: the cheap batch has a higher effective cost per usable pair. But the reverse happens too. If one stratum is good and that stratum is all you need, the deal is excellent. So the deciding number is not overall precision, it is precision per stratum.
This differs from image-text pairs. There the noise is mostly the object is not in the image, and you can judge it by looking. Here the noise is the two texts are not about the same thing even though they share vocabulary, and judging it requires reading. The first can be coarsely filtered by a model. The second requires a human to read a sample before you know what is wrong.
How E5 built its pairs: take them from web structure
E5 is a useful reference because it made weak supervision the main path rather than a supplement. It constructs large-scale training data from text that appears in pairs on the web, such as questions and answers on Q&A sites, thread titles and opening posts on forums, paper titles and abstracts, and other pairs with a stable structural relation, then applies a consistency filter to drop clear mismatches, runs contrastive pretraining, and only afterwards fine-tunes on human-labelled data.[1]
Two details get overlooked and both matter to a buyer. First, the training is asymmetric: queries and documents carry different prefixes, so the model learns to use the short side to find the long side rather than to judge whether two texts look alike.[1] Second, the pretraining data is entirely unlabelled, meaning scale comes from structure, not from annotation quality.[1]
Together those two facts imply something simple: the ceiling of this kind of data is set by how close the structure is to a real query, not by how clever the filter is. A web page title is not a user query; it is closer to a summary written by an editor. A question on a Q&A site is close to a query, but the answerer usually restates it. The further the structure sits from a query, the less you can recover.
Six structures, six fixed kinds of noise
The table is my own taxonomy, not one from the paper. Its purpose is to make you bucket by structure when sampling, instead of grabbing a random handful and reporting an average.
| Web structure | Pair extracted | Typical noise | Recoverable |
|---|---|---|---|
| Q&A site: question and accepted answer | Short question plus long answer | The answer corrects someone else; the accepted answer is just thanks | Partly: filter by length and presence of steps |
| Forum: thread title and opening post | Title plus body | The title is an emotional outburst, the body carries nothing reusable | Yes: drop very short or symbol-only titles |
| Paper: title and abstract | Title plus abstract | The first two abstract sentences give background weakly related to the title | Partly: take the later half only |
| Encyclopedia: section heading and paragraph | Heading plus paragraph | Headings are too generic, such as History or Overview | Hard: a generic heading has no query value |
| Page: anchor text and target page | Anchor plus full page | Anchor text is click here or read more | Yes: drop high-frequency generic anchors |
| Product: title and description | Title plus selling points | Selling points stuff keywords and repeat the title | Hard: overlap too high, little new signal |
The point is not which row is noisiest. It is that the noise is fixed. Random noise averages out with scale; fixed noise does not. Buy ten times more and the error rate inside a given structure stays exactly where it was. That is why acceptance has to be stratified: no amount of volume removes a systematic error in one stratum.
One more noise type is missing from the table and does the most damage: two chunks cut from the same document. They overlap heavily in vocabulary, they genuinely are about the same thing, and they look like clean positives. What they teach is adjacent means relevant, while your real query needs the passage in a different document that answers you. The higher the share of such pairs, the more the model treats lexical overlap as a relevance signal, and the worse it does on your short queries.
Five steps of stratified acceptance
- Ask for a stratified manifest: every pair tagged with source type, crawl date, and page type rather than a specific URL. Without those fields you cannot stratify, and the remaining four steps are impossible.
- Sample 200 pairs per stratum and have a human judge exactly one thing: can the left side serve as a query, and does the right side answer it. Do not also rate overall quality, or annotators drift into scoring by feel.
- Compute precision per stratum and record each stratum's share of the total. Overall precision is a share-weighted average, so one huge bad stratum drags it down and one small good stratum disappears inside it. You are looking for the small stratum that is good enough.
- Look at two distributions: the length ratio between the two sides, and lexical overlap such as the share of shared terms. A stratum near one-to-one in length with high overlap is usually same-document chunking and does not work as query-document pairs.
- Assign a use. A stratum with high precision, a short-to-long length ratio, and the right domain goes to fine-tuning. A stratum with middling precision but large volume is pretraining only. A stratum with low precision and fixed noise gets dropped, because filtering will not rescue it.
Step three is the core. It replaces an unanswerable question, whether this dataset is good, with three answerable ones: which stratum is best, how large is it, and is it enough. Those three decide whether the price is fair. An aggregate precision of sixty-two percent decides nothing.
What one pair record should carry
{
"pair_id": "sample-0001",
"source_type": "qa_site",
"query_side": "can I fix a wrong company name on an invoice",
"doc_side": "To correct the company name on an issued invoice, request a reversal within thirty days of issue.",
"query_len": 9,
"doc_len": 17,
"lexical_overlap": 0.21,
"same_document": false,
"crawl_month": "2026-03",
"qc_label": "usable"
}This is a fictional record illustrating the fields. Three deserve a note. Same-document lets you compute the share of same-document chunking in one pass. Lexical overlap is a cheap early warning, and strata with unusually high overlap need separate review. Crawl month fixes freshness and determines whether you can reproduce the same stratified result six months later.
If a vendor supplies only two columns, you can still reconstruct the first two fields during sampling, since URL structure usually reveals whether a page is a Q&A site or a forum. Same-document cannot be reconstructed, because document identifiers are typically stripped at delivery. That absence means you cannot exclude the most damaging noise type and must infer it indirectly from length ratio and overlap.
When it is genuinely cheaper than annotating
The second limit is diminishing returns on filtering. A consistency filter removes clear mismatches but not pairs that share vocabulary while discussing different things, and that second class is exactly where judgment is needed. Stop tuning the threshold at some point and handle the rest with stratification and use assignment.
The third limit is time. Web structure changes: Q&A sites become feeds, forums shut down, encyclopedias redesign. The same mining rules produce a different structure a year later. So recompute the stratification quarterly rather than pricing this year's batch with last year's proportions.
One thing to do now: ask for 300 samples, split them into three buckets by source, take fifty from each, and judge one question only, whether the right side answers the left. Half a day. If the best bucket is under fifty percent, the batch is pretraining text and nothing more. If the best bucket is above eighty percent and large enough, it is worth the money, but pay for that bucket's count rather than the total.
