InfiMM-WebMath-40B: Advancing Multimodal Pre-Training for Enhanced Mathematical Reasoning
About
Pre-training on large-scale, high-quality datasets is crucial for enhancing the reasoning capabilities of Large Language Models (LLMs), especially in specialized domains such as mathematics. Despite the recognized importance, the Multimodal LLMs (MLLMs) field currently lacks a comprehensive open-source pre-training dataset specifically designed for mathematical reasoning. To address this gap, we introduce InfiMM-WebMath-40B, a high-quality dataset of interleaved image-text documents. It comprises 24 million web pages, 85 million associated image URLs, and 40 billion text tokens, all meticulously extracted and filtered from CommonCrawl. We provide a detailed overview of our data collection and processing pipeline. To demonstrate the robustness of InfiMM-WebMath-40B, we conducted evaluations in both text-only and multimodal settings. Our evaluations on text-only benchmarks show that, despite utilizing only 40 billion tokens, our dataset significantly enhances the performance of our 1.3B model, delivering results comparable to DeepSeekMath-1.3B, which uses 120 billion tokens for the same model size. Nevertheless, with the introduction of our multi-modal math pre-training dataset, our models set a new state-of-the-art among open-source models on multi-modal math benchmarks such as MathVerse and We-Math. We release our data at https://huggingface.co/datasets/Infi-MM/InfiMM-WebMath-40B.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Multimodal Mathematical Reasoning | MathVerse | Average Score34.5 | 66 | |
| Multimodal Mathematical Reasoning | FlowVerse Text Centric | CoT Error43.8 | 38 | |
| Geometry Problem Solving | MathVista GPS | Accuracy34.5 | 38 | |
| Mathematical Reasoning | MathVerse mini (test) | Accuracy46.7 | 26 | |
| Mathematical Reasoning | MathVerse vision-only (testmini) | -- | 22 | |
| Visual Mathematical Reasoning | FlowVerse DI+RP+EI+OQ (All) | CoT Error36.5 | 20 | |
| Visual Mathematical Reasoning | FlowVerse Vision Dense EI+OQ | CoT-E28.8 | 20 | |
| Visual Mathematical Reasoning | FlowVerse Vision Centric RP+EI+OQ | CoT Error39.6 | 20 | |
| Visual Mathematical Reasoning | FlowVerse Text Limited RP+EI+OQ | CoT Error40.6 | 20 | |
| Multi-modal Mathematical Reasoning | FlowVerse raw | Performance47.1 | 20 |