Commit ·
3a770d6
0
Parent(s):
Duplicate from OpenDataArena/MathLake
Browse filesCo-authored-by: xiaoyang wang <Xiaoyang318@users.noreply.huggingface.co>
Files changed (28)
- .gitattributesAdded+59
- README.mdAdded+191
- conceptual.pngAdded
- data/train-00000-of-00019.parquetAdded+3
- data/train-00001-of-00019.parquetAdded+3
- data/train-00002-of-00019.parquetAdded+3
- data/train-00003-of-00019.parquetAdded+3
- data/train-00004-of-00019.parquetAdded+3
- data/train-00005-of-00019.parquetAdded+3
- data/train-00006-of-00019.parquetAdded+3
- data/train-00007-of-00019.parquetAdded+3
- data/train-00008-of-00019.parquetAdded+3
- data/train-00009-of-00019.parquetAdded+3
- data/train-00010-of-00019.parquetAdded+3
- data/train-00011-of-00019.parquetAdded+3
- data/train-00012-of-00019.parquetAdded+3
- data/train-00013-of-00019.parquetAdded+3
- data/train-00014-of-00019.parquetAdded+3
- data/train-00015-of-00019.parquetAdded+3
- data/train-00016-of-00019.parquetAdded+3
- data/train-00017-of-00019.parquetAdded+3
- data/train-00018-of-00019.parquetAdded+3
- data/train-00019-of-00019.parquetAdded+3
- plot_difficulty_distribution.pngAdded
- plot_difficulty_distribution_curve.pngAdded
- plot_format_distribution.pngAdded
- plot_subject_distribution.pngAdded
- plot_subject_distribution_pie.pngAdded
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859*.7z filter=lfs diff=lfs merge=lfs -text*.arrow filter=lfs diff=lfs merge=lfs -text*.bin filter=lfs diff=lfs merge=lfs -text*.bz2 filter=lfs diff=lfs merge=lfs -text*.ckpt filter=lfs diff=lfs merge=lfs -text*.ftz filter=lfs diff=lfs merge=lfs -text*.gz filter=lfs diff=lfs merge=lfs -text*.h5 filter=lfs diff=lfs merge=lfs -text*.joblib filter=lfs diff=lfs merge=lfs -text*.lfs.* filter=lfs diff=lfs merge=lfs -text*.lz4 filter=lfs diff=lfs merge=lfs -text*.mds filter=lfs diff=lfs merge=lfs -text*.mlmodel filter=lfs diff=lfs merge=lfs -text*.model filter=lfs diff=lfs merge=lfs -text*.msgpack filter=lfs diff=lfs merge=lfs -text*.npy filter=lfs diff=lfs merge=lfs -text*.npz filter=lfs diff=lfs merge=lfs -text*.onnx filter=lfs diff=lfs merge=lfs -text*.ot filter=lfs diff=lfs merge=lfs -text*.parquet filter=lfs diff=lfs merge=lfs -text*.pb filter=lfs diff=lfs merge=lfs -text*.pickle filter=lfs diff=lfs merge=lfs -text*.pkl filter=lfs diff=lfs merge=lfs -text*.pt filter=lfs diff=lfs merge=lfs -text*.pth filter=lfs diff=lfs merge=lfs -text*.rar filter=lfs diff=lfs merge=lfs -text*.safetensors filter=lfs diff=lfs merge=lfs -textsaved_model/**/* filter=lfs diff=lfs merge=lfs -text*.tar.* filter=lfs diff=lfs merge=lfs -text*.tar filter=lfs diff=lfs merge=lfs -text*.tflite filter=lfs diff=lfs merge=lfs -text*.tgz filter=lfs diff=lfs merge=lfs -text*.wasm filter=lfs diff=lfs merge=lfs -text*.xz filter=lfs diff=lfs merge=lfs -text*.zip filter=lfs diff=lfs merge=lfs -text*.zst filter=lfs diff=lfs merge=lfs -text*tfevents* filter=lfs diff=lfs merge=lfs -text# Audio files - uncompressed*.pcm filter=lfs diff=lfs merge=lfs -text*.sam filter=lfs diff=lfs merge=lfs -text*.raw filter=lfs diff=lfs merge=lfs -text# Audio files - compressed*.aac filter=lfs diff=lfs merge=lfs -text*.flac filter=lfs diff=lfs merge=lfs -text*.mp3 filter=lfs diff=lfs merge=lfs -text*.ogg filter=lfs diff=lfs merge=lfs -text*.wav filter=lfs diff=lfs merge=lfs -text# Image files - uncompressed*.bmp filter=lfs diff=lfs merge=lfs -text*.gif filter=lfs diff=lfs merge=lfs -text*.png filter=lfs diff=lfs merge=lfs -text*.tiff filter=lfs diff=lfs merge=lfs -text# Image files - compressed*.jpg filter=lfs diff=lfs merge=lfs -text*.jpeg filter=lfs diff=lfs merge=lfs -text*.webp filter=lfs diff=lfs merge=lfs -text# Video files - compressed*.mp4 filter=lfs diff=lfs merge=lfs -text*.webm filter=lfs diff=lfs merge=lfs -text123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191---license: cc-by-nc-4.0task_categories:- question-answering- text-generationlanguage:- entags:- math- reasoningpretty_name: mathlakesize_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 CriteriaWe 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 DeduplicationGiven 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 CleaningSince 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 ExtractionWe 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 AnnotationTo 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 DistributionDifficulty 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 DistributionWe 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}}```123version https://git-lfs.github.com/spec/v1oid sha256:5d1e099c43507d55557b2119d9ce1d05c208fbb56da33c6ea505881d938ec277size 264581835123version https://git-lfs.github.com/spec/v1oid sha256:1f3bbf41b5d5da6eceae5b016804ee0b9a6f17d3266263374282de9e72a0429bsize 299204286123version https://git-lfs.github.com/spec/v1oid sha256:dbc291e691e29c2dec372711af39346b7f8e6ffc0e94604112a9b01adbabdcebsize 309508647123version https://git-lfs.github.com/spec/v1oid sha256:5dfdb7335c9e40ec3efd44cedd4913cdc6fb9f4651e42a4e504f0fe0151be7dasize 220131112123version https://git-lfs.github.com/spec/v1oid sha256:088fd54f7065c179df93a4509730a5bf487c3bcfa7478dd60ad0fd4c44e69bccsize 424930561123version https://git-lfs.github.com/spec/v1oid sha256:9432c9b875d2bce883d20bc24726565e5180d037225d6de7c59f1bddd483b713size 259386449123version https://git-lfs.github.com/spec/v1oid sha256:687ed7c825185633c6ebe02c5dbed5da31aa8434c61f1e097135d1d8496a8871size 274788056123version https://git-lfs.github.com/spec/v1oid sha256:c1392577b75ab0a13166e8b8b5373ba6e48bf6a4cf66a58dd5b9d559adbe4871size 1081646716123version https://git-lfs.github.com/spec/v1oid sha256:b9353ac89f6eb2b3633e627538940910703cdcea74592923024489d4fa67529dsize 1059916320123version https://git-lfs.github.com/spec/v1oid sha256:1216d6907ad1183529a150790b6c42104be421c67caa45e9c79ad56f63a75ffasize 1059236944123version https://git-lfs.github.com/spec/v1oid sha256:a123381eeecbe38dcdfd942f0c46942bb11a1eb48268abe80db824688154ee1csize 840585703123version https://git-lfs.github.com/spec/v1oid sha256:5ddea0e4c6dcd31250d92c12ddf5f6fed6ee4ef54c9425d5b95bfc1a616a7f31size 801406191123version https://git-lfs.github.com/spec/v1oid sha256:6c85a2b53de07bb018d6c190272ef42a65e5251f787968239b0ad2efc72fb388size 470763916123version https://git-lfs.github.com/spec/v1oid sha256:b263b7573785584b9ba61c0efaa47f38c52ca3ae72c76d6cb0e1425fd9517a92size 359571636123version https://git-lfs.github.com/spec/v1oid sha256:d69faa8f0dfa0b243ffeeed046319cb002daa771131bea24f23eeeb737bde2f9size 500792055123version https://git-lfs.github.com/spec/v1oid sha256:461ea8841497082606bf68fbed5e6d66af0de4444be77923ee4bfe55d06a164asize 1595825474123version https://git-lfs.github.com/spec/v1oid sha256:ea32ba985a0a171bb65aabee02eeb6aa5b15aa67215b3246dabd10fa208031d8size 497250764123version https://git-lfs.github.com/spec/v1oid sha256:dd6b8813b579ae53c9223044dee5bb908305c3dc6b970ecc6fc034802605f547size 1664074406123version https://git-lfs.github.com/spec/v1oid sha256:f23edae25c320fc7861879036ea221d6ef5ba9de9824119a118227c7e80d9d2esize 3855750661123version https://git-lfs.github.com/spec/v1oid sha256:c418b7b181e9c3170dd43fc44a6400c69618394388de228c3abb6576ff11b9a4size 624346821.gitattributesAdded+59
README.mdAdded+191
conceptual.pngAdded

Large File Pointer Details
- SHA256: 44e97acd74960ec9ae9d37a1b3aa7f97b775e58c1016e52770e2eb56010ad628
- Pointer size: 132 Bytes
- Size of remote file: 7.04 MB
data/train-00000-of-00019.parquetAdded+3
data/train-00001-of-00019.parquetAdded+3
data/train-00002-of-00019.parquetAdded+3
data/train-00003-of-00019.parquetAdded+3
data/train-00004-of-00019.parquetAdded+3
data/train-00005-of-00019.parquetAdded+3
data/train-00006-of-00019.parquetAdded+3
data/train-00007-of-00019.parquetAdded+3
data/train-00008-of-00019.parquetAdded+3
data/train-00009-of-00019.parquetAdded+3
data/train-00010-of-00019.parquetAdded+3
data/train-00011-of-00019.parquetAdded+3
data/train-00012-of-00019.parquetAdded+3
data/train-00013-of-00019.parquetAdded+3
data/train-00014-of-00019.parquetAdded+3
data/train-00015-of-00019.parquetAdded+3
data/train-00016-of-00019.parquetAdded+3
data/train-00017-of-00019.parquetAdded+3
data/train-00018-of-00019.parquetAdded+3
data/train-00019-of-00019.parquetAdded+3
plot_difficulty_distribution.pngAdded

Large File Pointer Details
- SHA256: 49f94cad66071fe96b97c73884b9983c2e7d8b744769f83e8be52bb48b5faf48
- Pointer size: 130 Bytes
- Size of remote file: 46.8 kB
plot_difficulty_distribution_curve.pngAdded

Large File Pointer Details
- SHA256: ea6f6ff77dd838e3354774a1eac6608559ef5ad9b4cc215b28e93873c4f6af32
- Pointer size: 130 Bytes
- Size of remote file: 39.2 kB
plot_format_distribution.pngAdded

Large File Pointer Details
- SHA256: 61f8445c7238f567154a2710b8a23422fa6e14123c0f78ce1830417ee97b91d8
- Pointer size: 130 Bytes
- Size of remote file: 39.7 kB
plot_subject_distribution.pngAdded

Large File Pointer Details
- SHA256: b303a103fe0df65b8916514a098968f839f47e55443cf60e2789856880718000
- Pointer size: 130 Bytes
- Size of remote file: 67.4 kB
plot_subject_distribution_pie.pngAdded

Large File Pointer Details
- SHA256: ffc0f7abb8992cef28b16458321de0265876e43378cf94f7365e5df2cf33a361
- Pointer size: 131 Bytes
- Size of remote file: 122 kB