Introduction
In the rapidly evolving landscape of Multimodal Large Language Models (MLLMs), the quality and structure of training data are paramount. While traditional datasets like LAION rely on simple image-caption pairs, this format fails to capture the complexity of human information consumption. Real-world data is inherently interleaved, with images and text providing mutual context within long-form articles and tutorials. OmniCorpus addresses this gap by introducing a massive, unified multimodal corpus featuring 8.6 billion images interleaved with 1.7 trillion text tokens, providing a "natural" document format that preserves linguistic reasoning while enhancing few-shot visual capabilities.
The Interleaved Data Challenge
Existing interleaved datasets, such as MMC4 and OBELICS, demonstrated that this format allows models to learn "in-context," enabling them to solve novel tasks through a few provided examples. However, these datasets are relatively small and predominantly English-centric. As model sizes scale, the research community has encountered a "data wall" where high-quality interleaved sources are nearly exhausted. OmniCorpus overcomes this by scaling the collection process by an order of magnitude while maintaining rigorous quality standards.
The OmniCorpus Data Engine
To achieve this scale, the researchers developed an automated, high-efficiency data engine. The pipeline is designed to transform raw web crawls into high-quality interleaved documents through five distinct stages:
- Main Body Extraction: Utilizing an optimized version of the Trafilatura library to extract primary content while maintaining the original HTML document structure.
- Preliminary Text Filtering: Removing low-quality web noise, including "lorem ipsum" filler and documents with extreme lengths.
- Document Deduplication: Implementing MinHash to prevent the model from over-training on redundant content.
- Image Downloading & Filtering: Discarding low-resolution images, poor aspect ratios, and those with low aesthetic scores.
- Detailed Text Filtering: A sophisticated final step using BERT-based models and human-feedback rules to scrub advertisements, toxic content, and nonsensical text.
Dataset Scale and Composition
OmniCorpus represents a significant leap in dataset availability, containing 8.6 billion images, 1,696 billion text tokens, and 2.2 billion documents. This makes it approximately 15 times larger than previous interleaved datasets. A key innovation is the "streaming data format," which unifies diverse sources—including standard web crawls, Chinese-language websites, and video-derived "storyboards"—into a single, flexible structure that can generalize into pure text or image-text pairs as needed.
Key Insights and Results
Evaluation across standard benchmarks (OKVQA, TextVQA, VQAv2, COCO) revealed several critical insights:
- Interleaved Superiority: Training on interleaved data helps MLLMs retain the intelligence of the underlying LLM, whereas models trained solely on image-caption pairs often experience a decline in linguistic performance.
- Natural Layouts: The study found that "natural" layouts—where images remain in their original positions—outperform retrieval-based layouts for modern autoregressive models.
- Quality at Scale: Statistical analysis confirms that OmniCorpus-CC maintains a higher density of high-quality text scores compared to MMC4 and OBELICS, despite its massive size.
- Bilingual Performance: The inclusion of a massive Chinese corpus (OmniCorpus-CW) resulted in a +2.7 point improvement on Chinese-specific benchmarks like MMBench-CN.
Conclusion and Future Work
OmniCorpus provides a robust foundation for training the next generation of MLLMs. While the authors acknowledge challenges such as the computational cost of processing 10 billion images and the inherent biases of web-scale data, the corpus significantly pushes the boundaries of open-source multimodal research. Future work will focus on refining filtering techniques to avoid data homogenization and further addressing ethical concerns in large-scale data collection.
Summary updated