Multimodal Training Data › Data Quality and Curation
Language AI HandbookAll chapters Multimodal Training Data › Data Quality and CurationOne section · Sections in this chapter5 / 9 ↓
Reading tools Definitions & inline links
Choose your expertise level to adjust how many terms are explained. Beginners see more tooltips, experts see fewer to maintain reading flow. Hover over underlined terms for instant definitions.
Article links
Make inline references clickable
The success of multimodal training depends less on raw scale than on careful curation. Poor data quality manifests as specific, predictable failure modes. Models may fail to recognize uncommon orientations because training images are always upright, or generate stereotypical captions because the dataset contains demographic biases, or hallucinate objects that are commonly mentioned in captions but absent from images. Each of these failure modes traces directly to a specific data quality problem that curation should address.
Quality curation requires systematic evaluation across multiple dimensions, balancing the need for scale against the risk of noise. The challenge is that each dimension of quality involves trade-offs: improving aesthetic quality may reduce cultural diversity; improving text-image alignment may favor simple, obvious captions over fine-grained descriptions; improving content safety may inadvertently filter legitimate educational or documentary content.
Filtering Dimensions
Aesthetic and technical quality assessment filters low-quality images that impair feature learning by teaching the model to recognize artifacts rather than content. Automated filters assess several properties. Resolution and aspect ratio filters remove tiny images or those with extreme aspect ratios that would be distorted during resizing. Compression artifact detection identifies blocky regions or mosquito noise around edges that indicate heavy JPEG compression. Watermark detection uses specialized classifiers trained to detect stock photo overlays, as watermarked images often indicate placeholder or preview content without full visual information. Aesthetic scoring, trained on human preference data, predicts whether an image shows competent photography, though this risks encoding subjective cultural standards of beauty that systematically undervalue certain styles or genres.
The tension in aesthetic filtering is that beauty standards are culturally specific. A model trained on an aesthetic classifier that favors sharp focus, good lighting, and rule-of-thirds composition will filter out intentionally blurry photographs used for artistic effect, overexposed images used to create specific moods, and unconventionally composed photographs from photographic traditions that prioritize different values. This risks encoding a narrow aesthetic vocabulary while training the model, limiting its ability to understand the full range of visual expression.
Content safety removes NSFW and toxic content that is necessary for deployment safety. This employs classifiers trained on labeled unsafe content categories (adult imagery, violence, hate symbols), text-based filtering of captions containing slurs, adult terminology, or toxic language, and face detection and blurring for privacy protection. However, safety filtering introduces its own complexities. Overly aggressive safety filters may remove legitimate educational content (medical imagery, historical documentation of violence) along with harmful content. The threshold between "educational" and "harmful" is context-dependent and cannot be resolved by content alone.
Text-image alignment ensures captions describe the image content rather than being incidental text from the webpage. Methods include CLIP similarity scores (filtering pairs with cosine similarity below a threshold, typically 0.2 to 0.3), caption length heuristics (removing "image.jpg," single-word captions, or file extensions), and language detection (removing non-English or multilingual noise for English-centric models, though this perpetuates English-language dominance in AI systems). Each of these heuristics has failure modes: CLIP similarity filters may remove valid captions for visual concepts underrepresented in CLIP's own training; caption length filters may remove legitimately brief but accurate captions; language filters remove non-English content that would be useful for multilingual models.

Deduplication
Duplicate images and near-duplicates (resized, cropped, or filtered versions of the same source) create subtle overfitting and inflate performance metrics artificially. If a test image appears in training, the model may memorize the answer rather than learning to generalize. This is not a theoretical concern: large web-scraped datasets regularly contain thousands of copies of the same popular photographs, viral images, and stock photos that appear across many websites. Training on these duplicates wastes compute and creates false confidence in the model's breadth of experience.
Exact deduplication uses perceptual hashing (pHash), which generates fingerprints reliable to minor modifications such as resizing, re-encoding, or slight cropping. Two images with identical pHash values are almost certainly the same image, even if their file sizes or metadata differ. This catches obvious duplicates at low computational cost.
Approximate deduplication employs more advanced methods. CLIP embedding clustering groups semantically similar images by projecting them into the same embedding space and identifying tight clusters. URL deduplication removes cases where the same image is hosted at multiple URLs, which is extremely common on the web as images propagate through social media shares and content aggregators. Near-duplicate detection uses vision model features to find visually similar but not identical images, catching cases like the same photograph with different color grading or slight crops.
Deduplication is particularly important for evaluation integrity. If benchmark images appear in the training set, the model memorizes answers rather than generalizing. Unlike text, where n-gram overlap detection can identify contamination, image deduplication requires perceptual hashing that misses semantic duplicates: the same scene photographed from slightly different angles. A human photographing the Eiffel Tower from slightly different positions on two different days produces two non-duplicate images that stand for the same visual scene. If one appears in training and the other in evaluation, the model may use memorized associations rather than real visual understanding. This kind of subtle contamination is nearly impossible to fully eliminate at scale.
Balancing and Stratification
Raw web data exhibits extreme distributional bias that can severely limit model capabilities. Object bias means that certain objects (phones, cats, cars) appear orders of magnitude more frequently than others (axolotls, astrolabes, specific scientific instruments). Style bias means that photographs dominate over paintings, diagrams, medical imagery, and synthetic renders. Demographic bias means that Western and urban subjects, along with youthful ones, are overrepresented, while elderly individuals, non-Western contexts, and rural environments are underrepresented.
Stratified sampling attempts to balance these distributions by explicitly sampling from underrepresented categories. For object categories, this might mean capping the number of examples per category and oversampling rare categories to reach a more uniform distribution. For visual styles, this might mean explicitly including painting and diagram datasets alongside medical imaging and photographic sources. For demographic coverage, this might mean curating datasets from specific geographic regions or cultural contexts.
However, perfect balance is impossible without manual curation, and aggressive balancing may discard high-quality data from overrepresented categories. A model trained on a perfectly balanced dataset where each object category appears exactly once is less capable on common objects (because it sees each only once) and better on rare objects (because it sees each relative to its original frequency). The optimal balance depends on the target application: a general assistant needs broad but uneven coverage, while a specialized medical imaging tool might deliberately oversample pathological imagery even though it is rare in the general population.
Some datasets employ a "quality versus diversity" trade-off, maintaining high-quality subsets for pre-training convergence while adding diverse tail examples for resilience to rare inputs. The intuition is that the model needs clean, reliable examples to establish strong representations early in training, but needs exposure to diverse edge cases to generalize well at deployment time. This staged approach mirrors curriculum learning strategies from text-only pre-training, where models often train on progressively more challenging or diverse data as they mature.
The Bootstrap Problem
The highest-quality image-text pairs are often those filtered by existing strong models (CLIP, GPT-4V). This creates a feedback loop where early model biases perpetuate in subsequent training data. If CLIP associates "doctor" with images of men due to training data biases, filtering with CLIP scores may inadvertently retain gender-biased examples and filter counter-stereotypical ones (such as images of female doctors).
This bootstrap problem is insidious because it is difficult to detect. The filtered dataset appears high-quality by automated metrics, yet systematically excludes valid but counter-stereotypical examples. Breaking this cycle requires human oversight, demographic diversity in validation sets, and careful auditing of filtering decisions to ensure they do not reinforce existing biases. Some research groups maintain "bias auditing" datasets: carefully curated test sets designed to reveal demographic biases in model outputs, which can be used to detect when filtering has amplified problematic associations.

Curation Pipelines in Practice
Modern multimodal datasets are not filtered once and then frozen; they are maintained as living pipelines that evolve as better filtering tools and quality signals become available. DataComp, an academic benchmark for multimodal data curation, allows researchers to compare different curation strategies on a fixed pool of candidate pairs, isolating the effect of curation from the effect of model architecture. This kind of systematic comparison has revealed important insights: simple heuristics like filtering for captions with at least five words and images with resolutions above 200 pixels often outperform complex learned filters, suggesting that basic quality signals are more reliable than model-dependent quality assessments.
The filtering threshold for CLIP similarity is a basic policy decision. Setting the threshold at 0.2 retains many noisy pairs but ensures broad coverage of visual domains. Setting it at 0.3 removes more noise but also removes many valid pairs involving visual concepts that CLIP itself is poorly. Operators typically tune this threshold on small validation sets, measuring downstream model performance on targeted benchmarks for specific capabilities rather than optimizing a single aggregate metric.