Mathematical Reasoning Rollouts Dataset
11
178 commits
2 linked in READMEs
updated Aug 25, 2025
This dataset contains step-by-step reasoning rollouts generated with DeepSeek R1-Distill language models solving mathematical problems from the MATH dataset. The dataset is designed for analyzing reasoning patterns, branching factors, planning strategies, and the effectiveness of different reasoning approaches in mathematical problem-solving.
math_rollouts/
βββ deepseek-r1-distill-llama-8b/
βββ temperature_0.6_top_p_0.95/
βββ correct_base_solution/
βββ incorrect_base_solution/
βββ correct_base_solution_forced_answer/
βββ incorrect_base_solution_forced_answer/
βββ correct_base_solution_sanity/
βββ deepseek-r1-distill-qwen-14b/
βββ temperature_0.6_top_p_0.95/
βββ correct_base_solution/
βββ incorrect_base_solution/
βββ correct_base_solution_forced_answer/
βββ incorrect_base_solution_forced_answer/
βββ correct_base_solution_sanity/
| Model | Size | Architecture | Description |
|---|---|---|---|
deepseek-r1-distill-llama-8b | 8B | LLaMA-based | DeepSeek R1 distilled into LLaMA 8B model |
deepseek-r1-distill-qwen-14b | 14B | Qwen-based | DeepSeek R1 distilled into Qwen 14B model |
Currently available configuration:
| Type | Description |
|---|---|
correct_base_solution | Problems where the model reached the correct answer through reasoning |
incorrect_base_solution | Problems where the model reached an incorrect answer through reasoning |
correct_base_solution_forced_answer | Problems with correct answers where the final answer was forced |
incorrect_base_solution_forced_answer | Problems with incorrect answers where the final answer was forced |
correct_base_solution_sanity | Sanity check problems with correct answers (NOTE: you can ignore these) |
Each problem is stored in a directory named problem_X/ where X is the problem ID:
problem_330/
βββ problem.json # Problem statement and metadata
βββ chunks_labeled.json # Importance and analysis data for each reasoning step
βββ chunk_0/
β βββ solutions.json # Multiple solution attempts for chunk 0
βββ chunk_1/
β βββ solutions.json # Multiple solution attempts for chunk 1
βββ ...
βββ chunk_N/
βββ solutions.json # Multiple solution attempts for chunk N
problem.json){
"problem": "Compute $3(1+3(1+3(1+3(1+3(1+3(1+3(1+3(1+3(1+3)))))))))$",
"level": "Level 5",
"type": "Algebra",
"gt_solution": "Not to be tricked by the excess of parentheses...",
"gt_answer": "88572",
"nickname": "Nested Multiplication"
}
Fields:
problem: The mathematical problem statement (often in LaTeX)level: Difficulty level (e.g., "Level 1" to "Level 5")type: Mathematical domain (e.g., "Algebra", "Geometry", "Number Theory")gt_solution: Ground truth solution methodgt_answer: Correct numerical answernickname: Human-readable problem identifierchunks_labeled.json)Each reasoning step (chunk) contains detailed analysis:
{
"chunk": "First, I notice that the expression is a nested set of terms...",
"chunk_idx": 6,
"function_tags": ["fact_retrieval"],
"depends_on": ["3"],
"accuracy": 0.7448979591836735,
"resampling_importance_accuracy": 0.14399092970521532,
"resampling_importance_kl": 1.986370430176875,
"counterfactual_importance_accuracy": -0.09941520467836251,
"counterfactual_importance_kl": 1.19399334472036,
"forced_importance_accuracy": 0.0,
"forced_importance_kl": 1.666184462112768,
"different_trajectories_fraction": 0.7021276595744681,
"overdeterminedness": 0.5,
"summary": "identify nested expression"
}
Key Metrics:
accuracy: Success rate when this chunk is includedresampling_importance_*: Importance measured via resamplingcounterfactual_importance_*: Importance measured via counterfactualforced_importance_*: Importance when forcing specific completionsdifferent_trajectories_fraction: Diversity of reasoning paths at this pointoverdeterminedness: How overdetermined the current step is (i.e., how similar the resampled sentences are to the original sentence)function_tags: Reasoning type classification labeled via auto-LLM (e.g., "plan_generation", "active_computation")depends_on: Dependencies on previous chunkschunk_X/solutions.json)Each chunk directory contains multiple solution attempts:
[
{
"chunk_resampled": "Let me work from the innermost expression outward...",
"is_correct": true,
"answer": "88572",
"full_cot": "Complete chain of thought reasoning...",
"completion_tokens": 150,
"reasoning_type": "step_by_step"
}
]
Fields:
chunk_resampled: The specific reasoning step (i.e., sentence) generatedis_correct: Whether this leads to a correct final answeranswer: Final numerical answer producedfull_cot: Complete chain-of-thought reasoningThe dataset does not contain any personal, sensitive, or private data.
Reasoning Pattern Analysis
Model Comparison
Interpretability Research
Training Data Insights
BibTeX:
@misc{bogdan2025thoughtanchorsllmreasoning,
title={Thought Anchors: Which LLM Reasoning Steps Matter?},
author={Paul C. Bogdan and Uzay Macar and Neel Nanda and Arthur Conmy},
year={2025},
eprint={2506.19143},
archivePrefix={arXiv},
primaryClass={cs.LG},
url={https://arxiv.org/abs/2506.19143},
}
Please find our paper here: https://www.arxiv.org/abs/2506.19143. Please find an interactive demo for our paper and dataset here: https://www.thought-anchors.com. Please find our code here: https://github.com/interp-reasoning/principled-attribution
Please contact [email protected] for any questions or issues about the dataset.
Mathematical Reasoning Rollouts Dataset
11
178 commits
2 linked in READMEs
updated Aug 25, 2025
This dataset contains step-by-step reasoning rollouts generated with DeepSeek R1-Distill language models solving mathematical problems from the MATH dataset. The dataset is designed for analyzing reasoning patterns, branching factors, planning strategies, and the effectiveness of different reasoning approaches in mathematical problem-solving.
math_rollouts/
βββ deepseek-r1-distill-llama-8b/
βββ temperature_0.6_top_p_0.95/
βββ correct_base_solution/
βββ incorrect_base_solution/
βββ correct_base_solution_forced_answer/
βββ incorrect_base_solution_forced_answer/
βββ correct_base_solution_sanity/
βββ deepseek-r1-distill-qwen-14b/
βββ temperature_0.6_top_p_0.95/
βββ correct_base_solution/
βββ incorrect_base_solution/
βββ correct_base_solution_forced_answer/
βββ incorrect_base_solution_forced_answer/
βββ correct_base_solution_sanity/
| Model | Size | Architecture | Description |
|---|---|---|---|
deepseek-r1-distill-llama-8b | 8B | LLaMA-based | DeepSeek R1 distilled into LLaMA 8B model |
deepseek-r1-distill-qwen-14b | 14B | Qwen-based | DeepSeek R1 distilled into Qwen 14B model |
Currently available configuration:
| Type | Description |
|---|---|
correct_base_solution | Problems where the model reached the correct answer through reasoning |
incorrect_base_solution | Problems where the model reached an incorrect answer through reasoning |
correct_base_solution_forced_answer | Problems with correct answers where the final answer was forced |
incorrect_base_solution_forced_answer | Problems with incorrect answers where the final answer was forced |
correct_base_solution_sanity | Sanity check problems with correct answers (NOTE: you can ignore these) |
Each problem is stored in a directory named problem_X/ where X is the problem ID:
problem_330/
βββ problem.json # Problem statement and metadata
βββ chunks_labeled.json # Importance and analysis data for each reasoning step
βββ chunk_0/
β βββ solutions.json # Multiple solution attempts for chunk 0
βββ chunk_1/
β βββ solutions.json # Multiple solution attempts for chunk 1
βββ ...
βββ chunk_N/
βββ solutions.json # Multiple solution attempts for chunk N
problem.json){
"problem": "Compute $3(1+3(1+3(1+3(1+3(1+3(1+3(1+3(1+3(1+3)))))))))$",
"level": "Level 5",
"type": "Algebra",
"gt_solution": "Not to be tricked by the excess of parentheses...",
"gt_answer": "88572",
"nickname": "Nested Multiplication"
}
Fields:
problem: The mathematical problem statement (often in LaTeX)level: Difficulty level (e.g., "Level 1" to "Level 5")type: Mathematical domain (e.g., "Algebra", "Geometry", "Number Theory")gt_solution: Ground truth solution methodgt_answer: Correct numerical answernickname: Human-readable problem identifierchunks_labeled.json)Each reasoning step (chunk) contains detailed analysis:
{
"chunk": "First, I notice that the expression is a nested set of terms...",
"chunk_idx": 6,
"function_tags": ["fact_retrieval"],
"depends_on": ["3"],
"accuracy": 0.7448979591836735,
"resampling_importance_accuracy": 0.14399092970521532,
"resampling_importance_kl": 1.986370430176875,
"counterfactual_importance_accuracy": -0.09941520467836251,
"counterfactual_importance_kl": 1.19399334472036,
"forced_importance_accuracy": 0.0,
"forced_importance_kl": 1.666184462112768,
"different_trajectories_fraction": 0.7021276595744681,
"overdeterminedness": 0.5,
"summary": "identify nested expression"
}
Key Metrics:
accuracy: Success rate when this chunk is includedresampling_importance_*: Importance measured via resamplingcounterfactual_importance_*: Importance measured via counterfactualforced_importance_*: Importance when forcing specific completionsdifferent_trajectories_fraction: Diversity of reasoning paths at this pointoverdeterminedness: How overdetermined the current step is (i.e., how similar the resampled sentences are to the original sentence)function_tags: Reasoning type classification labeled via auto-LLM (e.g., "plan_generation", "active_computation")depends_on: Dependencies on previous chunkschunk_X/solutions.json)Each chunk directory contains multiple solution attempts:
[
{
"chunk_resampled": "Let me work from the innermost expression outward...",
"is_correct": true,
"answer": "88572",
"full_cot": "Complete chain of thought reasoning...",
"completion_tokens": 150,
"reasoning_type": "step_by_step"
}
]
Fields:
chunk_resampled: The specific reasoning step (i.e., sentence) generatedis_correct: Whether this leads to a correct final answeranswer: Final numerical answer producedfull_cot: Complete chain-of-thought reasoningThe dataset does not contain any personal, sensitive, or private data.
Reasoning Pattern Analysis
Model Comparison
Interpretability Research
Training Data Insights
BibTeX:
@misc{bogdan2025thoughtanchorsllmreasoning,
title={Thought Anchors: Which LLM Reasoning Steps Matter?},
author={Paul C. Bogdan and Uzay Macar and Neel Nanda and Arthur Conmy},
year={2025},
eprint={2506.19143},
archivePrefix={arXiv},
primaryClass={cs.LG},
url={https://arxiv.org/abs/2506.19143},
}
Please find our paper here: https://www.arxiv.org/abs/2506.19143. Please find an interactive demo for our paper and dataset here: https://www.thought-anchors.com. Please find our code here: https://github.com/interp-reasoning/principled-attribution
Please contact [email protected] for any questions or issues about the dataset.