Use this skill when you want to curate CLIP training data using metadata from an existing high-quality dataset rather than model-based filtering. Avoid it when you do not have a reference metadata set or prefer model-based scoring over metadata matching.
Skill metadata
Skill type: metadata-curated-data-filtering
Paper kind: operational-method
Actionability: high
Evidence quality: full_paper
Goal
Curate CLIP training data by aligning a large candidate pool's metadata distribution with that of a high-quality reference dataset (CLIP's WIT), using substring matching on text rather than model-based scoring.
Problem signature
Modality: image-text pairs from web crawl, filtered via text metadata alignment.
Data state: large raw web-crawled pool (CommonCrawl) that needs filtering to match a target data distribution.
Scale regime: 400M curated pairs from billions of CommonCrawl candidates.
Model requirement: No model needed for filtering; only metadata matching. CLIP ViT-B/32 or ViT-L/14 for training.
Use when
You have a large raw data pool and a reference high-quality dataset whose metadata distribution you want to match.
You want to avoid using a pretrained CLIP model for scoring (avoiding circular dependency).
You need a principled, reproducible data curation strategy.
Do not use when
You do not have access to metadata from a high-quality reference dataset.
Your candidate pool's text format is very different from the reference set.
You prefer model-based quality scoring over metadata distribution matching.
Required inputs
candidate_pool: Large web-crawled image-text pairs (e.g., CommonCrawl).
reference_metadata: Metadata (text entries) from a high-quality dataset like CLIP's WIT.
substring_matching_rules: Rules for matching candidate text against reference metadata entries.
Optional inputs
balancing_strategy: Strategy to balance selected data across concepts (e.g., cap per entry at 20K).
additional_filters: Language detection, length filtering, or NSFW removal.
Outputs
metaclip_dataset: Curated dataset (400M pairs) matching the reference metadata distribution.
trained_clip: CLIP model trained on MetaCLIP data achieving competitive or superior performance.
Assumptions and prerequisites
The metadata distribution of a high-quality dataset encodes useful curation decisions.
Substring matching on text is a sufficient proxy for semantic alignment with the reference distribution.
Matching distributions avoids the circular dependency of using a CLIP model to filter CLIP training data.
Procedure
Extract reference metadata
Action: Collect text entries from the reference dataset (e.g., CLIP's WIT 500K queries).
Why: These entries define the target data distribution.
Note: See paper for details.
Substring match candidates
Action: For each candidate pair, check whether its text contains any reference metadata entry as a substring.
Why: Selects candidates whose text aligns with the reference distribution.
Note: See paper for details.
Balance across entries
Action: Cap the number of matches per metadata entry (e.g., 20K) to prevent dominant entries from skewing the distribution.
Why: Ensures concept diversity in the curated dataset.
Note: See paper for details.
Train CLIP on curated data
Action: Train a CLIP model on the curated MetaCLIP dataset.
Why: Validates that the curation strategy produces high-quality training data.
Note: See paper for details.
Benchmark against baselines
Action: Compare to OpenAI CLIP and OpenCLIP trained on other datasets.
Why: Demonstrates the effectiveness of metadata-curated data.
Note: See paper for details.
Parameters to set
entry_cap — Role: Maximum pairs per metadata entry for balancing. How to set: 20K provides good balance at 400M scale. Default/range: 20K. Effect: Lower caps increase diversity but reduce total dataset size.
metadata_source — Role: Reference dataset whose distribution to match. How to set: Use CLIP's WIT query set or equivalent. Default/range: 500K entries from WIT. Effect: The reference set defines what concepts are covered.
total_budget — Role: Target number of curated pairs. How to set: 400M to match CLIP's WIT scale. Default/range: 400M. Effect: Larger budgets allow more pairs per entry.
Validation checks
The curated dataset's concept distribution should align with the reference metadata.
CLIP trained on MetaCLIP should match or exceed CLIP trained on WIT.
Zero-shot ImageNet accuracy should reach ~79-80% with ViT-L/14.
Failure modes
Substring matching may admit false positives with ambiguous text.
The reference metadata may not cover domain-specific or emerging concepts.
Aggressive balancing may discard high-quality pairs from popular entries.
Adaptation notes for VLM training
Apply metadata curation to any VLM pretraining pipeline as an alternative to CLIP score filtering.
The metadata distribution matching principle can be extended to domain-specific reference sets.
Combine with model-based filtering for a hybrid curation strategy.
Implementation notes
Implement substring matching efficiently with inverted indices or tries.
Cache match results to avoid redundant processing on reruns.
Monitor the distribution of selected pairs across metadata entries.
Evidence from the paper
MetaCLIP reveals that CLIP's curation can be approximated by metadata-driven substring matching and balancing.
MetaCLIP ViT-L/14 achieves 79.2% zero-shot ImageNet accuracy, matching or exceeding OpenAI CLIP with fully transparent curation.
The approach curates 400M high-quality image-text pairs from CommonCrawl without using a pretrained CLIP model for scoring.
Curation is the key factor; algorithm + data distribution matters more than raw data size.
1---2name: demystifying-clip-data-arxiv-2309-16671v43description: Demystifying CLIP Data4---5# Demystifying CLIP Data67## One-line decision8Use this skill when you want to curate CLIP training data using metadata from an existing high-quality dataset rather than model-based filtering. Avoid it when you do not have a reference metadata set or prefer model-based scoring over metadata matching.910## Skill metadata11- **Skill type**: metadata-curated-data-filtering12- **Paper kind**: operational-method13- **Actionability**: high14- **Evidence quality**: full_paper1516## Goal17Curate CLIP training data by aligning a large candidate pool's metadata distribution with that of a high-quality reference dataset (CLIP's WIT), using substring matching on text rather than model-based scoring.1819## Problem signature20- Modality: image-text pairs from web crawl, filtered via text metadata alignment.21- Data state: large raw web-crawled pool (CommonCrawl) that needs filtering to match a target data distribution.22- Scale regime: 400M curated pairs from billions of CommonCrawl candidates.23- Model requirement: No model needed for filtering; only metadata matching. CLIP ViT-B/32 or ViT-L/14 for training.2425## Use when26- You have a large raw data pool and a reference high-quality dataset whose metadata distribution you want to match.27- You want to avoid using a pretrained CLIP model for scoring (avoiding circular dependency).28- You need a principled, reproducible data curation strategy.2930## Do not use when31- You do not have access to metadata from a high-quality reference dataset.32- Your candidate pool's text format is very different from the reference set.33- You prefer model-based quality scoring over metadata distribution matching.3435## Required inputs36- **candidate_pool**: Large web-crawled image-text pairs (e.g., CommonCrawl).37- **reference_metadata**: Metadata (text entries) from a high-quality dataset like CLIP's WIT.38- **substring_matching_rules**: Rules for matching candidate text against reference metadata entries.3940## Optional inputs41- **balancing_strategy**: Strategy to balance selected data across concepts (e.g., cap per entry at 20K).42- **additional_filters**: Language detection, length filtering, or NSFW removal.4344## Outputs45- **metaclip_dataset**: Curated dataset (400M pairs) matching the reference metadata distribution.46- **trained_clip**: CLIP model trained on MetaCLIP data achieving competitive or superior performance.4748## Assumptions and prerequisites49- The metadata distribution of a high-quality dataset encodes useful curation decisions.50- Substring matching on text is a sufficient proxy for semantic alignment with the reference distribution.51- Matching distributions avoids the circular dependency of using a CLIP model to filter CLIP training data.5253## Procedure541. **Extract reference metadata**55 Action: Collect text entries from the reference dataset (e.g., CLIP's WIT 500K queries).56 Why: These entries define the target data distribution.57 Note: See paper for details.582. **Substring match candidates**59 Action: For each candidate pair, check whether its text contains any reference metadata entry as a substring.60 Why: Selects candidates whose text aligns with the reference distribution.61 Note: See paper for details.623. **Balance across entries**63 Action: Cap the number of matches per metadata entry (e.g., 20K) to prevent dominant entries from skewing the distribution.64 Why: Ensures concept diversity in the curated dataset.65 Note: See paper for details.664. **Train CLIP on curated data**67 Action: Train a CLIP model on the curated MetaCLIP dataset.68 Why: Validates that the curation strategy produces high-quality training data.69 Note: See paper for details.705. **Benchmark against baselines**71 Action: Compare to OpenAI CLIP and OpenCLIP trained on other datasets.72 Why: Demonstrates the effectiveness of metadata-curated data.73 Note: See paper for details.7475## Parameters to set76- **entry_cap** — Role: Maximum pairs per metadata entry for balancing. How to set: 20K provides good balance at 400M scale. Default/range: 20K. Effect: Lower caps increase diversity but reduce total dataset size.77- **metadata_source** — Role: Reference dataset whose distribution to match. How to set: Use CLIP's WIT query set or equivalent. Default/range: 500K entries from WIT. Effect: The reference set defines what concepts are covered.78- **total_budget** — Role: Target number of curated pairs. How to set: 400M to match CLIP's WIT scale. Default/range: 400M. Effect: Larger budgets allow more pairs per entry.7980## Validation checks81- The curated dataset's concept distribution should align with the reference metadata.82- CLIP trained on MetaCLIP should match or exceed CLIP trained on WIT.83- Zero-shot ImageNet accuracy should reach ~79-80% with ViT-L/14.8485## Failure modes86- Substring matching may admit false positives with ambiguous text.87- The reference metadata may not cover domain-specific or emerging concepts.88- Aggressive balancing may discard high-quality pairs from popular entries.8990## Adaptation notes for VLM training91- Apply metadata curation to any VLM pretraining pipeline as an alternative to CLIP score filtering.92- The metadata distribution matching principle can be extended to domain-specific reference sets.93- Combine with model-based filtering for a hybrid curation strategy.9495## Implementation notes96- Implement substring matching efficiently with inverted indices or tries.97- Cache match results to avoid redundant processing on reruns.98- Monitor the distribution of selected pairs across metadata entries.99100## Evidence from the paper101- MetaCLIP reveals that CLIP's curation can be approximated by metadata-driven substring matching and balancing.102- MetaCLIP ViT-L/14 achieves 79.2% zero-shot ImageNet accuracy, matching or exceeding OpenAI CLIP with fully transparent curation.103- The approach curates 400M high-quality image-text pairs from CommonCrawl without using a pretrained CLIP model for scoring.104- Curation is the key factor; algorithm + data distribution matters more than raw data size.105106## Source paper107- **Title**: Demystifying CLIP Data108- **Year**: 2023109- **Venue**: ICLR110- **Paper ID**: arxiv-2309.16671v4111- **URL**: http://arxiv.org/abs/2309.16671v4112- **arXiv ID**: 2309.16671v4
Run npx skillmds@latest add jiachen-t-wang/demystifying-clip-data-arxiv-2309-16671v4 in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
Demystifying CLIP Data It is listed under Coding & Dev Tools on SkillMD.
SkillMD's automated safety review verdict for this skill is PASS. Independent scanners report: SkillSpector: PASS, Skill Scanner: PASS. Capability flags: makes network calls. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
Jiachen-T-Wang (@jiachen-t-wang) published this skill. Their other Agent Skills are listed on their SkillMD profile.