Skip to main content
QUICK REVIEW

[Paper Review] LAION-400M: Open Dataset of CLIP-Filtered 400 Million Image-Text Pairs

Christoph Schuhmann, Richard Vencu|arXiv (Cornell University)|Nov 3, 2021
Multimodal Machine Learning ApplicationsComputer Science11 references367 citations
TL;DR

The paper presents LAION-400M, an openly released dataset of 400 million CLIP-filtered image-text pairs, along with embeddings, kNN indices, and tools, enabling large-scale training of multi-modal models and a DALL-E-like demonstration.

ABSTRACT

Multi-modal language-vision models trained on hundreds of millions of image-text pairs (e.g. CLIP, DALL-E) gained a recent surge, showing remarkable capability to perform zero- or few-shot learning and transfer even in absence of per-sample labels on target image data. Despite this trend, to date there has been no publicly available datasets of sufficient scale for training such models from scratch. To address this issue, in a community effort we build and release for public LAION-400M, a dataset with CLIP-filtered 400 million image-text pairs, their CLIP embeddings and kNN indices that allow efficient similarity search.

Motivation & Objective

  • Motivate the need for publicly available, large-scale image-text datasets to train state-of-the-art multi-modal models without per-sample labels.
  • Describe the end-to-end process to build and release LAION-400M from Common Crawl data.
  • Provide tooling and benchmarks (embeddings, kNN indices, and a web demo) to facilitate research and training.
  • Demonstrate the dataset’s usability through a DALL-E style training example and qualitative results.

Proposed method

  • Distributed processing of petabyte-scale Common Crawl data to extract image URLs and captions.
  • Filtering pipeline using alt-text length, image size, duplicate removal, and CLIP-based cosine similarity thresholds.
  • CLIP-based filtering to remove illegal content and to compute image/text embeddings.
  • Development of the img2dataset library to efficiently crawl, resize, and store images and metadata in webdataset format.
  • Provision of CLIP embeddings and kNN indices to enable fast similarity search.
  • Web demo enabling image-text search using precomputed embeddings and indices.

Experimental results

Research questions

  • RQ1Can a publicly released, large-scale image-text dataset at 400M pairs support training of multi-modal models with competitive quality?
  • RQ2How effective is CLIP-based filtering at ensuring data quality and safety at scale?
  • RQ3What tooling and data representations (embeddings, kNN indices) are needed to enable efficient research with such a dataset?
  • RQ4Can a subset of LAION-400M support training of DALL-E style text-to-image generation and yield qualitative results?

Key findings

  • LAION-400M provides 400 million image-text pairs, their CLIP embeddings, and kNN indices for efficient similarity search.
  • Less than 1% of images were detected as NSFW, enabling user-side filtering if needed.
  • A web demo demonstrates diverse and semantically relevant image-text associations in the dataset.
  • A DALL-E style model trained on a subset (7.2M images for 1 epoch) shows fast convergence and reasonably high-quality samples.
  • Subsets of LAION-400M (e.g., 3M, 7.2M) can be used to train text-to-image models with observable progress and coherent outputs.
  • The dataset includes image size distributions enabling the creation of training subsets at various resolutions.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.