|
Download README.md from PoZhang/MathLake: direct link, hf CLI and curl.
- Browser
- Download file 9.63 kB
-
https://huggingface.co/datasets/PoZhang/MathLake/resolve/main/README.md
- Command line
-
hf download hf://datasets/PoZhang/MathLake/README.md
-
curl -L -o README.md https://huggingface.co/datasets/PoZhang/MathLake/resolve/main/README.md
9.63 kB
| license: cc-by-nc-4.0 | |
| task_categories: | |
| - question-answering | |
| - text-generation | |
| language: | |
| - en | |
| tags: | |
| - math | |
| - reasoning | |
| pretty_name: mathlake | |
| size_categories: | |
| - 1M<n<10M | |
| # MathLake: A Large-Scale Mathematics Dataset | |
| MathLake is a massive collection of **8.3 million** mathematical problems aggregated from over **50 open-source datasets**. Unlike datasets focused on filtering for the highest quality solutions immediately, MathLake prioritizes **query comprehensiveness**, serving as a universal "raw ore" for researchers to curate, distill, or annotate further. The dataset provides annotations for **Difficulty**, **Format**, and **Subject**, covering diverse mathematical fields from basic arithmetic to advanced topics. | |
| <div align="center"> | |
| <img src="conceptual.png" alt="mathlake" width="1200" /> | |
| </div> | |
| ## Motivation | |
| MathLake aims to provide a comprehensive foundation for LLM researchers on mathematical reasoning. | |
| * **Query-Centric Focus**: We prioritize collecting massive queries from current datasets (over 50 sources), so researchers don't need to re-collect them. | |
| * **Base for Distillation**: By focusing on the comprehensiveness of questions rather than just the perfection of existing answers, MathLake serves as an ideal starting point for **data curation and distillation**. Researchers can use these queries to generate new, higher-quality synthetic reasoning traces without worrying about data scarcity. | |
| --- | |
| ## Data Construction & Processing | |
| To ensure MathLake serves as a robust foundation, we employed a rigorous multi-stage construction pipeline involving strict source selection and data cleaning. | |
| ### 1. Dataset Selection Criteria | |
| We applied a rigorous screening process to select high-quality datasets updated after Jan 2023, prioritizing those with significant community impact, SFT-compatible formats, and balanced sizes to ensure a robust and modern training foundation. | |
| ### 2. Query Deduplication | |
| Given that MathLake aggregates over 50 sources, overlapping problems are inevitable. We performed **query-level deduplication** to consolidate redundant queries to maintain a unique and diverse problem set. | |
| ### 3. Query Cleaning | |
| Since some aggregated datasets are general reasoning collections containing mixed domains (e.g., code, science), we applied strict filtering to ensure domain purity. We specifically retained only queries belonging to the **mathematics domain**. Additionally, to ensure language consistency, we filtered out non-English queries, preserving only those written in **English**. | |
| ### 4. Answer Extraction | |
| We also perform **final answer extraction** from the original response of each problem. The answers are extracted by LLM with a carefully designed prompt. Only valid answers are extracted. For problems with truncated responses, ill-formed answers or proof statements, empty answers are given. Note that since we do not verify the correctness of each response, further verification or selection is needed for RL training. | |
| --- | |
| ## Dataset Composition | |
| The dataset is composed of more than 50 different sources. It combines synthetic data, human-annotated competition problems, and variants of standard benchmarks. The top contributors include: | |
| | Source | Count | | |
| | :--- | :--- | | |
| | ScaleQuest-Math | 1,001,915 | | |
| | MathGradeSchool | 966,513 | | |
| | Maths-College | 956,620 | | |
| | NuminaMath-CoT | 801,161 | | |
| | OpenMathInstruct-2 | 592,460 | | |
| | MegaScience | 413,842 | | |
| | GSM8K-Aug | 378,553 | | |
| | NuminaMath1.5 | 323,307 | | |
| | Orca-AgentInstruct-Shuffle | 302,264 | | |
| | OpenMathReasoning-CoT | 278,784 | | |
| | MathPlus | 246,755 | | |
| | MagpieV2-250k-R1Llama70B | 235,652 | | |
| | MathInstruct | 209,589 | | |
| | MiroMind-M1-SFT-719K | 205,942 | | |
| | SCP116K | 157,210 | | |
| --- | |
| ## Data Structure | |
| Each record in the dataset is standardized to the following schema. We have unified differing column names (e.g., `prompt`, `instruction`, `problem`) into a single `question` field. Each entry contains: | |
| ```json | |
| { | |
| "id": "Unique identifier for the problem", | |
| "source": "The original source dataset", | |
| "question": "The mathematical problem statement", | |
| "response": "The original solution or reasoning trace provided by the source dataset", | |
| "extracted_answer": "The final answer extracted from the response (numeric or short text)", | |
| "subject": "The mathematical field", | |
| "format": "The format of the question", | |
| "difficulty": "Estimated difficulty level of the problem" | |
| } | |
| ``` | |
| --- | |
| ## Metadata Annotation | |
| To make this massive dataset actionable, we developed a specialized LLM-based annotation pipeline. Each problem was processed by three distinct "Expert Personas" to generate consistent metadata. | |
| > [!WARNING] | |
| > **Annotation Method:** All tags were generated by LLMs using the specific taxonomies and decision rules outlined below. While we employed strong prompts to ensure high accuracy, edge cases may still exist. | |
| ### Statistics & Distributions | |
| #### Subject Distribution | |
| We employed an "Expert Curriculum Designer" persona to classify queries based purely on text content (without solving). The schema consists of **12 distinct subjects**: | |
| * **Arithmetic** (Whole numbers, basic operations) | |
| * **Pre-Algebra** (Ratios, order of operations) | |
| * **Algebra** (Polynomials, functions, systems) | |
| * **Geometry** (Shapes, coordinates, area/volume) | |
| * **Trigonometry** (Identities, unit circle) | |
| * **Calculus** (Limits, derivatives, integrals) | |
| * **Linear Algebra** (Matrices, vectors, eigenvalues) | |
| * **Probability & Statistics** (Distributions, inference) | |
| * **Combinatorics** (Counting, permutations, pigeonhole) | |
| * **Number Theory** (Primes, modular arithmetic) | |
| * **Logic & Discrete Math** (Boolean algebra, graph theory, proofs) | |
| * **Other** | |
| <img src="plot_subject_distribution.png" alt="Subject Distribution" width="1200" /> | |
| <img src="plot_subject_distribution_pie.png" alt="Subject Distribution" width="800" /> | |
| #### Difficulty Distribution | |
| Difficulty is estimated on a **1-10 scale**, explicitly mapped to the [AoPS ratings](https://artofproblemsolving.com/wiki/index.php/AoPS_Wiki:Competition_ratings). This allows for precise curriculum learning (e.g., training on Level 1-3 before attempting Level 8). | |
| | Level | Equivalent Competition Tier | Description | | |
| | :--- | :--- | :--- | | |
| | **1** | **Elementary / Middle School** | MOEMS, AMC 8 (Early Qs). Standard word problems. | | |
| | **2** | **Junior High** | AMC 8 (Hard), AMC 10 (Early). Complex word problems. | | |
| | **3** | **High School Beginner** | AMC 10 (Mid), AMC 12 (Early). Requires creative thinking. | | |
| | **4** | **High School Intermediate** | AMC 12 (Mid), AIME (Early). Intermediate complexity. | | |
| | **5** | **Advanced High School** | AIME (Mid), JBMO. Simple proof-based Olympiad style. | | |
| | **6** | **Pre-Olympiad** | AIME (Hard), USAJMO. Introductory Olympiad level. | | |
| | **7** | **Olympiad (Entry)** | IMO (Easy/Medium), USAMO. Requires technical knowledge. | | |
| | **8** | **Olympiad (Medium)** | IMO (Medium/Hard). High-level competition problems. | | |
| | **9** | **Olympiad (Expert)** | IMO (Hard). Expert-level constructions/proofs. | | |
| | **10** | **Historically Hard** | Outliers. Exceedingly tedious or difficult even for Olympians. | | |
| <img src="plot_difficulty_distribution_curve.png" alt="Difficulty Distribution" width="600" /> | |
| #### Format Distribution | |
| We classify the *structure* of the question to aid in evaluation setup. The classification follows a strict **hierarchical decision tree**: | |
| 1. **Multiple Choice:** (Highest Priority) Contains explicit options (A/B/C/D) or "Select all that apply." | |
| 2. **Proof:** Explicitly asks to "prove," "show," "justify," or "verify." | |
| 3. **Fill-in-the-Blank:** Contains blank indicators (`__`, `[blank]`) or explicit formatting requests. | |
| 4. **Problem Solving:** (Default) Standard open-ended computation, word problems, or derivations. | |
| <img src="plot_format_distribution.png" alt="Format Distribution" width="600" /> | |
| --- | |
| ## Future Work | |
| We are continuously: | |
| * Expanding the dataset with more high-quality mathematical sources. | |
| * Refining the difficulty and subject classification models for higher accuracy. | |
| * Adding more fine-grained annotations for solution steps and reasoning types. | |
| --- | |
| ## About OpenDataArena | |
| [OpenDataArena](https://arena.opendatalab.org.cn/) is an open research platform dedicated to **discovering, evaluating, and advancing high-quality datasets for AI post-training**. It provides a transparent, data-centric ecosystem to support reproducible dataset evaluation and sharing. | |
| **Key Features:** | |
| * 🏆 **Dataset Leaderboard** — helps researchers identify **the most valuable and high-quality datasets across different domains**. | |
| * 📊 **Detailed Evaluation Scores** — provides **comprehensive metrics** to assess data quality, complexity, difficulty etc. | |
| * 🧰 **Data Processing Toolkit** — [OpenDataArena-Tool](https://github.com/OpenDataArena/OpenDataArena-Tool) offers an open-source pipeline for dataset curation and scoring. | |
| If you find our work helpful, please consider **⭐ starring and subscribing** to support our research. | |
| --- | |
| ## Citation | |
| ```bibtex | |
| @dataset{opendataarena_mathlake_2025, | |
| author = {OpenDataArena}, | |
| title = {MathLake: A Large-Scale Mathematics Dataset}, | |
| year = {2025}, | |
| publisher = {Hugging Face} | |
| } | |
| ``` | |
| ```bibtex | |
| @article{cai2025opendataarena, | |
| title={OpenDataArena: A Fair and Open Arena for Benchmarking Post-Training Dataset Value}, | |
| author={Cai, Mengzhang and Gao, Xin and Li, Yu and Lin, Honglin and Liu, Zheng and Pan, Zhuoshi and Pei, Qizhi and Shang, Xiaoran and Sun, Mengyuan and Tang, Zinan and others}, | |
| journal={arXiv preprint arXiv:2512.14051}, | |
| year={2025} | |
| } | |
| ``` |