LAION-400M: Open Dataset of CLIP-Filtered 400 Million Image-Text Pairs
Written for the Research library (claude-opus-5-5) from the paper text. Original — arxiv.org/pdf/2111.02114
Summary
Language-vision models such as CLIP and DALL-E learn from hundreds of millions of image-caption pairs. Before this work, no openly available dataset came close to that size, so only groups with private data could train such models from scratch. The LAION community fills this gap with LAION-400M. The authors pulled HTML image tags that have alt-text out of Common Crawl WAT files and downloaded the images. They then removed pairs with very short captions or tiny files, and dropped duplicates using a bloom filter on URL and alt-text. They also discarded pairs whose CLIP image and text embeddings had cosine similarity below 0.3, and used CLIP to tag NSFW material and remove illegal content. The release contains metadata in parquet files, CLIP embeddings, kNN indices for similarity search, the img2dataset downloader and a web search demo. To show the data is usable, they trained a DALLE-pytorch model on roughly 7.2M samples for one epoch; it converged quickly and produced plausible images. With this release, research on large multimodal models is no longer limited to a few organisations.
Key points
- LAION-400M has about 413M unique image-text pairs collected from Common Crawl. Each pair has metadata: URL, Creative Commons license type, CLIP-based NSFW tag (under 1% flagged), similarity score and image size.
- Filtering steps: alt-text under 5 characters or image under 5 KB is dropped, duplicates are removed with a bloom filter, and pairs with CLIP cosine similarity below 0.3 are discarded (the cutoff was chosen by human inspection).
- About 26M images have height or width of at least 1024 px, and 211M have both sides of at least 256 px, so subsets at different resolutions are possible.
- With img2dataset, one machine (1 Gbps, 16-core i7, 32 GB RAM) can fetch about 100M images in 20 hours and save them in webdataset format.
- DALL-E check: DALLE-pytorch with an ImageNet-pretrained VQGAN, where CLIP ViT-B/16 picks the top 8 of 128 samples. It was also compared with runs on Conceptual Captions 3M/12M.
Cited by
- Yi: Open Foundation Models by 01.AI
- Flamingo: a Visual Language Model for Few-Shot Learning
- MiniGPT-v2: large language model as a unified interface for vision-language multi-task learning
- ShareGPT4V: Improving Large Multi-Modal Models with Better Captions
- ImageBind: One Embedding Space To Bind Them All
- Language Is Not All You Need: Aligning Perception with Language Models
- OBELICS: An Open Web-Scale Filtered Dataset of Interleaved Image-Text Documents
- What matters when building vision-language models?
- BLIP: Bootstrapping Language-Image Pre-training for Unified Vision-Language Understanding and Generation
- BLIP-2: Bootstrapping Language-Image Pre-training with Frozen Image Encoders and Large Language Models
- DINOv2: Learning Robust Visual Features without Supervision
- Photorealistic Text-to-Image Diffusion Models with Deep Language Understanding
- LAION-5B: An open large-scale dataset for training next generation image-text models
- OFA: Unifying Architectures, Tasks, and Modalities Through a Simple Sequence-to-Sequence Learning Framework
- mPLUG-Owl: Modularization Empowers Large Language Models with Multimodality
- MM-Vet: Evaluating Large Multimodal Models for Integrated Capabilities
- LLaMA-Adapter: Efficient Fine-tuning of Language Models with Zero-init Attention
- MiniGPT-4: Enhancing Vision-Language Understanding with Advanced Large Language Models
Cite
@misc{schuhmann2021laion,
title = {{LAION-400M: Open Dataset of CLIP-Filtered 400 Million Image-Text Pairs}},
author = {Schuhmann, Christoph and Vencu, Richard and Beaumont, Romain and Kaczmarczyk, Robert and Mullis, Clayton and Katta, Aarush and Coombes, Theo and Jitsev, Jenia and Komatsuzaki, Aran},
year = {2021},
doi = {10.48550/arxiv.2111.02114},
eprint = {2111.02114},
archivePrefix = {arXiv},
url = {https://doi.org/10.48550/arxiv.2111.02114}
}References
- Alec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh, Gabriel Goh, Sandhini Agarwal, Girish Sastry, Amanda Askell, Pamela Mishkin, Jack Clark, Gretchen Krueger, and Ilya Sutskever. Learning Transferable Visual Models From Natural Language Supervision. arXiv e-prints, page arXiv:2103.00020, Febr… find our card
- Aditya Ramesh, Mikhail Pavlov, Gabriel Goh, Scott Gray, Chelsea Voss, Alec Radford, Mark Chen, and Ilya Sutskever. Zero-Shot Text-to-Image Generation. arXiv e-prints, page arXiv:2102.12092, February 2021. find our card
- Chao Jia, Yinfei Yang, Ye Xia, Yi-Ting Chen, Zarana Parekh, Hieu Pham, Quoc V. Le, Yunhsuan Sung, Zhen Li, and Tom Duerig. Scaling Up Visual and Vision-Language Representation Learning With Noisy Text Supervision. arXiv e-prints, page arXiv:2102.05918, February 2021. find our card
- Aran Komatsuzaki. One Epoch Is All You Need. arXiv e-prints, page arXiv:1906.06669, Jun 2019. — [arXiv:1906.06669](https://arxiv.org/abs/1906.06669) find
- Jared Kaplan, Sam McCandlish, Tom Henighan, Tom B. Brown, Benjamin Chess, Rewon Child, Scott Gray, Alec Radford, Jeffrey Wu, and Dario Amodei. Scaling Laws for Neural Language Models. arXiv e-prints, page arXiv:2001.08361, Jan 2020. find
- Tom Henighan, Jared Kaplan, Mor Katz, Mark Chen, Christopher Hesse, Jacob Jackson, Heewoo Jun, Tom B. Brown, Prafulla Dhariwal, Scott Gray, Chris Hallacy, Benjamin Mann, Alec Radford, Aditya Ramesh, Nick Ryder, Daniel M. Ziegler, John Schulman, Dario Amodei, and Sam McCandlish. Scaling Laws for Auto… find
- Alexander Kolesnikov, Lucas Beyer, Xiaohua Zhai, Joan Puigcerver, Jessica Yung, Sylvain Gelly, and Neil Houlsby. Big transfer (bit): General visual representation learning. In Andrea Vedaldi, Horst Bischof, Thomas Brox, and Jan-Michael Frahm, editors, Computer Vision – ECCV 2020, pages 491–507, Cham… find
- Xiaohua Zhai, Alexander Kolesnikov, Neil Houlsby, and Lucas Beyer. Scaling vision transformers. arXiv preprint arXiv:2106.04560, 2021. — [arXiv:2106.04560](https://arxiv.org/abs/2106.04560) find
- Tom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah, Jared Kaplan, Prafulla Dhariwal, Arvind Neelakantan, Pranav Shyam, Girish Sastry, Amanda Askell, Sandhini Agarwal, Ariel Herbert-Voss, Gretchen Krueger, Tom Henighan, Rewon Child, Aditya Ramesh, Daniel M. Ziegler, Jeffrey Wu, Clemens Winter,… find
- Leo Gao, Stella Biderman, Sid Black, Laurence Golding, Travis Hoppe, Charles Foster, Jason Phang, Horace He, Anish Thite, Noa Nabeshima, Shawn Presser, and Connor Leahy. The Pile: An 800GB Dataset of Diverse Text for Language Modeling. arXiv e-prints, page arXiv:2101.00027, December 2020. find
- Phil Wang. Dall-e in pytorch: A text to image transformer, 2021. find
- Patrick Esser, Robin Rombach, and Björn Ommer. Taming transformers for high-resolution image synthesis, 2020. find