🧠 Reasoning Math Advanced 1M
📖 Dataset Summary
Reasoning Math Advanced 1M is a large-scale, synthetic dataset designed to enhance the reasoning capabilities of Large Language Models (LLMs). Comprising 1,000,000 unique samples, this dataset focuses on Math, Logic, and Common Sense reasoning tasks.
A unique feature of this dataset is its adaptive reasoning structure, where the presence of Chain-of-Thought (CoT) reasoning scales with difficulty. All reasoning traces are encapsulated within specific <thinking> tags to facilitate distinct internal monologue training.
⚙️ Dataset Structure
Each data point contains the following fields:
| Field | Type | Description |
|---|---|---|
serial_number |
int | Unique identifier for the sample. |
difficulty |
str | The complexity level: Easy, Medium, or Hard. |
question |
str | The input query or problem statement. |
reasoning |
str | The internal thought process (CoT). Wrapped in <thinking>...</thinking>. |
final_answer |
str | The concise final conclusion or solution. |
Data Instance Example
{
"serial_number": 4052,
"difficulty": "Hard",
"question": "Solve for x and y: 1) 3x + 2y = 12, 2) 5x - y = 7",
"reasoning": "<thinking>Step 1: Multiply Eq 2 by 2 to align y coefficients: 10x - 2y = 14.\nStep 2: Add modified Eq 2 to Eq 1: (3x + 10x) + (2y - 2y) = 12 + 14 -> 13x = 26.\nStep 3: Solve for x: x = 2.\nStep 4: Substitute x back into Eq 2: 5(2) - y = 7 -> 10 - 7 = y -> y = 3.</thinking>",
"final_answer": "x=2, y=3"
}
🧠 Difficulty & Reasoning Logic
The dataset is engineered to teach models when to think, not just how to think. The reasoning field behavior is strictly determined by the difficulty classification:
| Difficulty | Reasoning Presence | Description |
|---|---|---|
| Easy | 0% (Empty) | Direct Q&A. The model learns to answer simple queries immediately without over-thinking. |
| Medium | 50% | Mixed behavior. The model learns that intermediate difficulty sometimes requires thought, sometimes does not. |
| Hard | 100% | Full CoT. The reasoning field is always populated and wrapped in <thinking> tags. |
💻 How to Use
You can load this dataset directly using the Hugging Face datasets library:
from datasets import load_dataset
# Replace with your actual repo name
dataset = load_dataset("naimulislam/reasoning-math-advanced-1m")
# Inspect a sample
print(dataset['train'][0])
Training Prompt Format
To utilize the <thinking> tags effectively during fine-tuning, we recommend a prompt format that encourages the model to generate the opening tag.
Input Template:
Question: {question}
Answer:
Target Output (Hard):
<thinking>
...reasoning steps...
</thinking>
{final_answer}
🛠️ Dataset Creation
This dataset was synthetically generated using a specialized logic engine that creates diverse problem sets across:
- Linear Algebra (Systems of equations)
- Polynomial Expansion (FOIL method)
- Logic Puzzles (Transitive properties, Truth tables)
- Arithmetic Sequences
- Probability Theory
📜 License
This dataset is released under the MIT License.
🤝 Citation
If you use this dataset in your research, please credit:
@dataset{massive_reasoning_1m,
author = Naimul Islam Nahid,
title = Reasoning Math Advanced 1M,
year = 2025,
publisher = Hugging Face,
journal = naimulislam/reasoning-math-advanced-1m,
}
- Total size
- 81.1 GB
- Files
- 546
- Last updated
- Nov 26
- Pre-warmed CDN
- US EU US EU