MathTrace
收藏资源简介:
MathTrace是一个包含37B token的数学推理轨迹数据集,由DeepSeek-V4-Flash模型生成,覆盖竞赛、奥赛、证明和数学应用题等多种数学问题。数据来源于多个公开数学数据集,包括NuminaMath-1.5、MathNet、AOPS_WEB等。经过筛选和去重后,共包含243,534个唯一问题,每个问题最多采样四次,生成974,136个样本,总生成响应token数为37,024,348,313。数据集旨在为研究如何使用推理数据对较小模型进行后训练或监督微调提供资源。生成时使用了特定设置(如温度1、最大token数78,000),并采用提示模板要求模型以严谨、全面的方式解决问题。数据集包含id、prompt、problem、source、solution、is_completed、reasoning、final、response_len等字段。需要注意的是,生成未验证答案正确性,且使用时应利用source字段进行去污染处理,许可证遵循原始源数据集的条款。
MathTrace is a mathematical reasoning trace dataset comprising 37B tokens, generated by the DeepSeek-V4-Flash model, covering a wide range of mathematical problems including competition problems, Olympiad problems, formal proofs, and mathematical word problems. The dataset is derived from multiple publicly available mathematical datasets, including NuminaMath-1.5, MathNet, AOPS_WEB, among others. After filtering and deduplication, it contains 243,534 unique problems, with each problem sampled up to four times, yielding a total of 974,136 samples, and the total number of tokens in the generated responses is 37,024,348,313. This dataset is intended to serve as a resource for researching approaches to perform post-training or supervised fine-tuning on smaller models using reasoning data. Specific generation settings were employed, including a temperature of 1 and a maximum token limit of 78,000, and a prompt template was used to instruct the model to solve problems in a rigorous and comprehensive manner. The dataset includes fields such as id, prompt, problem, source, solution, is_completed, reasoning, final, and response_len. It is important to note that the correctness of the generated answers was not verified, and the source field should be utilized for decontamination processing when using the dataset. The licensing terms follow those of the original source datasets.
数据集概览:MathTrace
MathTrace 是一个由 DeepSeek-V4-Flash 模型生成的数学推理轨迹数据集,总计包含 37B tokens,覆盖了 974K 数学推理样本。该数据集专为研究如何利用推理数据对小模型进行后训练(SFT)而设计。
核心统计
- 问题总数: 243,534 个独特问题
- 生成样本数: 974,136 个
- 完成样本数: 789,522 个
- 未完成样本数: 184,614 个
- 生成的总响应 Token 数: 37,024,348,313 个
- 平均响应长度: 38,007 tokens
数据来源与分布
问题来源于8个公开数学数据集和基准。每个问题最多被采样4次。
| 来源 | 独特问题数 | 样本总数 | 完成率 | 生成Token数 |
|---|---|---|---|---|
| NuminaMath-1.5 | 204,578 | 818,312 | 82.5% | 30.02B |
| MathNet | 19,379 | 77,516 | 78.1% | 3.15B |
| AOPS_WEB | 15,462 | 61,848 | 67.0% | 3.16B |
| Omni-MATH | 2,441 | 9,764 | 83.9% | 0.32B |
| RIMO | 518 | 2,072 | 44.8% | 0.13B |
| AnswerBench | 396 | 1,584 | 50.8% | 0.10B |
| MOBench | 334 | 1,336 | 60.5% | 0.07B |
| PutnamBench | 326 | 1,304 | 87.5% | 0.05B |
| BeyondAIME | 100 | 400 | 56.8% | 0.02B |
数据字段
每个样本包含以下字段:
| 字段 | 类型 | 描述 |
|---|---|---|
id |
字符串 | 原始生成ID,格式为 {base_id}_1 至 {base_id}_4 |
prompt |
字符串 | 发送给模型的完整提示词 |
problem |
字符串 | 源数据集中的问题文本 |
source |
字符串 | 数据集名称及子来源位置,用于基准去污染 |
solution |
字符串或空 | 源数据集提供的解答(如果存在) |
is_completed |
布尔值 | 指示生成是否正常完成(finish_reason == "stop") |
reasoning |
字符串 | 模型在 </think> 标记前的推理过程文本 |
final |
字符串或空 | 模型在 </think> 标记后的最终答案(仅完成样本) |
response_len |
int64 | 响应总长度的token数 |
生成设置
- 模型:
deepseek-ai/DeepSeek-V4-Flash - 温度 (Temperature): 1
- 推理努力 (Reasoning effort):
max - 最大 Token 数 (Max tokens): 78,000
- 每问题采样次数: 4
用途与注意事项
- 研究目的: 旨在为使用推理数据对小模型进行后训练(SFT)提供研究素材。
- 答案正确性: 数据集未验证生成最终答案的正确性。用户可利用
solution字段自行验证。 - 基准污染风险: 该数据集由现有公开数学数据集生成。若在相关基准上进行评估,需先使用
source字段过滤本数据集,以避免污染。 - 许可协议: 未添加额外许可,用户需遵守原始数据集的许可、条款及基准使用限制。




