Skip to content

Image-text pairs: scale up the data, scale up the noise

THE ARGUMENT

A CLIP score measures image-text similarity, not the training value of a sample, and the gap between the two grows with scale. Split the filter into compliance, alignment and usefulness layers, estimate each by its own sample — otherwise you buy a handsome score attached to a pile of near-duplicates.

On this page

Suppose the quote says one hundred million image-text pairs. You sample 200: every CLIP score is above 0.30, and it looks clean. Then you keep reading. Seventeen pairs are the same product shot from twelve angles. Nine are screenshots with a wall of text. Twenty-three are captioned "product image, high resolution, free download" — keyword strings. Their scores are not low, because the image and the text really are related. The problem is that these samples teach a model nothing.

A high score means "it matches", not "it helps"

Contrastive training pulls matched pairs together and pushes unmatched ones apart within a batch. What the model needs is therefore that a pair be distinguishable relative to the rest of the batch, not that the text describe the image accurately and richly. Those two things correlate without being the same. Filter on the first and you will keep a set of samples with high scores and low information.

"Correct but useless" takes at least three forms. The first is a redundant caption: it repeats only the most salient object, as in a photo of a cat captioned "a cat". Nothing is wrong, but the text says nothing the image did not already say, and points at nothing inconspicuous. The second is template and keyword text: "high resolution stock photo, free download", "product image on white background" — related to the image, but produced by page structure rather than by describing the picture. The third is near-duplication: the same image at different sizes, the same copy paired with dozens of similar images. These do not lower the average score, and they do reshape the negatives inside a batch.

The first two cannot be filtered by similarity, because their similarity is not low. The third is hard to find by random sampling, because random sampling is diluted by large clusters. That is the mechanism behind "scale up the data and the noise scales with it": wrong samples grow proportionally, while homogeneous samples grow in clusters, and clusters are harder to see.

What LAION-5B did, and what it never promised

LAION-5B is 5.85 billion CLIP-filtered image-text pairs, 2.32 billion of them with English text[1]. The pipeline is roughly: crawl alt-text and image links from the web, score image-text similarity with CLIP and filter at a threshold, additionally provide detection scores for watermark, NSFW and toxic content, deduplicate at the link level, and finally release only URLs and metadata rather than images, along with nearest-neighbour indices for exploration and subset creation[1]. The paper is explicit about its aim: make large-scale multimodal research accessible, and replicate and fine-tune foundation models such as CLIP, GLIDE and Stable Diffusion[1].

Its "filtering" is a scalar threshold applied to a similarity score. That threshold raises the share of pairs whose text really does relate to the image. It has no opinion on three other things: whether the text carries information, whether the data covers your domain, and what the licensing status of the image is. That follows from the design goal rather than from carelessness — releasing watermark, NSFW and toxicity scores alongside the data hands the judgment to the user, and hands over the risk with it.

One practical consequence deserves its own paragraph: URL-only release means the download success rate decays over time. Dead links, site redesigns and deleted images all push the number you can actually obtain below the headline size. Your acceptance checklist therefore needs a "sampled download success rate" item, and it needs the sampling date attached, because the number moves.

DataComp handed "usefulness" to the downstream task

DataComp is a testbed for dataset experiments: given a pool of 12.8 billion web image-text pairs, participants design new filtering methods or bring new sources, train with standardized CLIP code, and evaluate on 38 downstream test sets; the benchmark spans multiple compute scales across four orders of magnitude so that scaling trends can be studied[2]. Its strongest baseline, DataComp-1B, trains a CLIP ViT-L/14 from scratch to 79.2% zero-shot on ImageNet, 3.7 points above OpenAI's CLIP ViT-L/14 with the same training procedure and compute[2].

The significance is not that 79.2 beats 75.5. It is the demonstration that if you fix the model and the compute and change only the data, the gain is measurable. That is exactly the experimental structure procurement needs. You do not have to believe anyone's filtering method; you need to reproduce the structure on your own task — same recipe, with this data and without it, how much difference.

The boundary matters as much. The 79.2% was obtained under their training recipe on their 38 test sets; swap in industrial inspection, medical imaging or Chinese e-commerce product shots and the ranking can change. The fact that the paper presents several compute scales side by side is itself an admission that conclusions depend on scale: the filter strength that wins at a small budget need not win at a large one. So do not treat any single threshold as a universal answer, including this benchmark's own baseline.

Split the filter into four layers

LayerWhat it judgesSignals you can automateWhat it lets through
L0 complianceParsability, provenance and licensing, NSFW, watermarks, sensitive peopleFile hashes, classifier scores, EXIF, source domain listsLicensing itself; a classifier gives a probability, not a legal conclusion
L1 alignmentWhether the text is about this imageCLIP-style similarity, object detection coverage, OCR text share"Correct but useless": templates and redundant captions score fine
L2 usefulnessWhether the pair adds informationPredictability of the caption without the image, near-duplicate cluster sizeLong-tail value: low-scoring but rare samples get killed
L3 distributionWhether the whole covers your domainCounts by scene, language, subject and time of dayQuality inside a stratum: stratification counts, it does not grade

The L2 signal deserves unpacking. "Predictability of the caption without the image" means: take a caption and let a small language model predict it with no access to the picture. If the prediction is easy, the text is probably boilerplate — it carries nothing specific to this image. The signal needs no multimodal model, costs little, and is nearly orthogonal to CLIP score: one governs matching, the other governs whether there is anything to say. Used together they suppress both mismatch and emptiness.

L2 has a second cheap test: image-to-text retrieval inside a batch of a thousand pairs, looking at top-1 hit rate. If that rate is suspiciously high, the usual cause is not good data but homogeneity — lots of near-duplicates, so the model can pair successfully with its eyes closed. It is an inverse indicator, and it is easy to misread as good news.

A sampling check you can actually run

The numbers below are invented to illustrate the method. Suppose the vendor claims a pool of one hundred million pairs and gives you 5,000 as a sample. Do not draw 200 at random for human review, because random draws are dominated by the largest cluster. Do two things first: group by source domain, then cluster images by perceptual hash. Stratify by cluster size, draw 200, taking more from bigger clusters but with a cap.

Write the definition of "usable" into the annotation sheet: the text must add something beyond the image — a count, a relation, a material, a use, a style, a state — or describe a part of the image that is not salient. Naming only the main object does not count. Then cross-tabulate against CLIP score in five bands. The invented result: the band above 0.35 has a 0.71 usable rate, 0.30 to 0.35 gives 0.44, and 0.25 to 0.30 gives 0.22.

Two things follow. First, the score is monotone and can serve as a coarse filter. Second, the top band is still nearly thirty percent unusable, and near-duplicates are the main component of that remainder — so raising the threshold does not get you out of homogeneity. Convert that into price: a quote of one million for one hundred million pairs is about one cent per pair; at a 0.55 usable rate the real cost is close to two cents per usable pair. That conversion is more persuasive than any discount conversation.

  1. Cluster before you sample: group by source domain and perceptual hash, stratify by cluster size, and cap the draw from any single cluster.
  2. Fix the definition: write "usable" as a decidable sentence, and have two people label 20 pairs each before the main pass; agreement below eighty percent means the definition needs work.
  3. Cross-tabulate by score band: report the usable rate per band, not an overall rate. An overall figure averages away exactly the problem in the top band.
  4. Report three numbers together: usable rate, near-duplicate rate, sampled download success rate. Without all three, the batch cannot be priced.

What this method cannot prove

The first limit is time. The 5.85 billion and 2.32 billion figures are the counts at release[1]; links die, so what you can download today is less than that. This is not a flaw in the paper. It is an item you must measure yourself, on every batch.

The second limit is interpretation. DataComp is often cited to argue that data decides everything, but the experiment fixed the training recipe and the compute and varied only the data[2]. What it shows is that under a fixed recipe, data selection yields a measurable gain — not that the model no longer matters. Saying the second when the paper shows the first understates your model-side investment and removes the reference point for a vendor's asking price.

One thing you can do today: take 200 pairs from the sample, label them binary on whether the text adds information beyond the image, and cross-tabulate with CLIP score bands. If the top band is under seventy percent usable, negotiate rework or per-usable-pair pricing first. Only when the top band approaches ninety percent is it worth discussing discounts and delivery cadence.

References

  1. LAION-5B: An open large-scale dataset for training next generation image-text models
  2. DataComp: In search of the next generation of multimodal datasets

Read next

All articles

Sign in to Padda

A code in your inbox. No password to remember.

Connecting to sign-in…