Datasets:
Initial release
Browse files- README.md +106 -0
- test.parquet +3 -0
- train.parquet +3 -0
README.md
ADDED
|
@@ -0,0 +1,106 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
language:
|
| 4 |
+
- en
|
| 5 |
+
- zh
|
| 6 |
+
- es
|
| 7 |
+
- fr
|
| 8 |
+
- ar
|
| 9 |
+
- ru
|
| 10 |
+
task_categories:
|
| 11 |
+
- text-generation
|
| 12 |
+
tags:
|
| 13 |
+
- math
|
| 14 |
+
- reasoning
|
| 15 |
+
- multilingual
|
| 16 |
+
- multilingual-reasoning
|
| 17 |
+
- chain-of-thought
|
| 18 |
+
- supervised-fine-tuning
|
| 19 |
+
- competition-math
|
| 20 |
+
size_categories:
|
| 21 |
+
- 10K<n<100K
|
| 22 |
+
source_datasets:
|
| 23 |
+
- open-r1/OpenR1-Math-220k
|
| 24 |
+
configs:
|
| 25 |
+
- config_name: default
|
| 26 |
+
data_files:
|
| 27 |
+
- split: train
|
| 28 |
+
path: train.parquet
|
| 29 |
+
- split: test
|
| 30 |
+
path: test.parquet
|
| 31 |
+
---
|
| 32 |
+
|
| 33 |
+
# SFT-Math-Multilingual-56k: long chain-of-thought math traces in six languages
|
| 34 |
+
|
| 35 |
+
**56,307 mathematics problems, each with a full chain-of-thought solution written in one of six languages** (English, Chinese, Spanish, French, Arabic, Russian). The problem and the whole reasoning trace share one language, so a model fine-tuned on this corpus learns to reason in the language of the problem instead of switching to English.
|
| 36 |
+
|
| 37 |
+
This is the supervised fine-tuning corpus behind [`96kevinli29/Qwen3-8B-SFT-Math-Multilingual`](https://huggingface.co/96kevinli29/Qwen3-8B-SFT-Math-Multilingual) (Qwen3-8B, epoch 1) in the paper *What Does Post-Training Change in Multilingual Reasoning?* ([arXiv:2609.37104](https://arxiv.org/abs/2609.37104)). It was constructed separately from the 43,218-trace corpus used at 4B ([`96kevinli29/SFT-Math-Multilingual-43k`](https://huggingface.co/datasets/96kevinli29/SFT-Math-Multilingual-43k)), with the same pipeline.
|
| 38 |
+
|
| 39 |
+
## Contents
|
| 40 |
+
|
| 41 |
+
| Language | train | test (held-out loss) |
|
| 42 |
+
| :--- | ---: | ---: |
|
| 43 |
+
| English (`en`) | 9,760 | 40 |
|
| 44 |
+
| Chinese (`zh`) | 9,294 | 40 |
|
| 45 |
+
| Spanish (`es`) | 9,451 | 40 |
|
| 46 |
+
| French (`fr`) | 9,357 | 40 |
|
| 47 |
+
| Arabic (`ar`) | 9,306 | 40 |
|
| 48 |
+
| Russian (`ru`) | 9,139 | 40 |
|
| 49 |
+
| **Total** | **56,307** | **240** |
|
| 50 |
+
|
| 51 |
+
Every source problem appears in exactly one language.
|
| 52 |
+
|
| 53 |
+
## Schema
|
| 54 |
+
|
| 55 |
+
| Field | Description |
|
| 56 |
+
| :--- | :--- |
|
| 57 |
+
| `messages` | chat list: `[{"role": "user", "content": <problem>}, {"role": "assistant", "content": "<think> … </think> <solution with \\boxed{answer}>"}]` |
|
| 58 |
+
| `data_source` | `"openr1_math"` |
|
| 59 |
+
| `category` | `"math_competition"` |
|
| 60 |
+
| `language` | one of `en, zh, es, fr, ar, ru` |
|
| 61 |
+
|
| 62 |
+
```python
|
| 63 |
+
from datasets import load_dataset
|
| 64 |
+
ds = load_dataset("96kevinli29/SFT-Math-Multilingual-56k")
|
| 65 |
+
print(ds["train"][0]["language"], ds["train"][0]["messages"][1]["content"][:300])
|
| 66 |
+
```
|
| 67 |
+
|
| 68 |
+
## How it was built
|
| 69 |
+
|
| 70 |
+
1. **Source.** English long chain-of-thought traces from [`open-r1/OpenR1-Math-220k`](https://huggingface.co/datasets/open-r1/OpenR1-Math-220k).
|
| 71 |
+
2. **Assign.** Each trace is assigned one of the six languages in round-robin order by its index.
|
| 72 |
+
3. **Translate.** English-assigned traces are kept unchanged. The others are translated by a locally served Qwen3-14B, chunk by chunk: formulas, figures and display environments are detached before translation and reattached afterwards, and the `<think>` tags are preserved. (Translating a long trace in one pass makes the translator re-solve the problem instead of translating it.)
|
| 73 |
+
4. **Filter.** A trace is dropped if any chunk was truncated or the `\boxed` answer changed, and then by seven further gates: exactly one `<think>` and one `</think>`; a recoverable boxed answer; an even number of dollar signs; matched braces; a bounded translated-to-source length ratio; no repetition (zlib compresses the trace by more than 70%); and target-language fidelity (share of prose characters in the target script above 0.5 for Chinese, Arabic and Russian; share of English function words below 0.15 for Spanish and French).
|
| 74 |
+
|
| 75 |
+
## Quality audit
|
| 76 |
+
|
| 77 |
+
An audit of 250 sampled traces per language from the 43K corpus. Coherence and target-language fidelity are independent judge scores on a five-point scale; the last column is the share of traces free of moderate or severe English residue. The English row is the untranslated source, the reference these scores are read against.
|
| 78 |
+
|
| 79 |
+
| Language | Coherence | Target-language fidelity | Reaches the boxed answer | Math preserved | No major English residue |
|
| 80 |
+
| :--- | :---: | :---: | :---: | :---: | :---: |
|
| 81 |
+
| Chinese | 4.90 | 4.62 | 99.6% | 100.0% | 96.0% |
|
| 82 |
+
| Spanish | 4.78 | 4.40 | 99.6% | 100.0% | 94.0% |
|
| 83 |
+
| French | 4.81 | 4.32 | 99.6% | 100.0% | 95.6% |
|
| 84 |
+
| Arabic | 4.47 | 3.54 | 99.6% | 99.6% | 84.0% |
|
| 85 |
+
| Russian | 4.76 | 4.40 | 100.0% | 98.8% | 94.4% |
|
| 86 |
+
| English (untranslated) | 4.88 | n/a | 100.0% | 100.0% | n/a |
|
| 87 |
+
|
| 88 |
+
## Limitations
|
| 89 |
+
|
| 90 |
+
- **Machine translation.** Translated traces can contain a stray word in English or in another language (for example a discourse marker such as "Okay," at the start of the reasoning). Arabic is the weakest language in the audit.
|
| 91 |
+
- **Answers are not verified.** The source traces were filtered structurally, not for answer correctness; the translation step only checks that the boxed answer is unchanged.
|
| 92 |
+
- **What fine-tuning on it does.** In the paper, models fine-tuned on this corpus reason in the requested language almost always, but lose some accuracy and loop on about a fifth of non-English prompts until an RL stage removes the looping. See the model cards for numbers.
|
| 93 |
+
- Mathematics only.
|
| 94 |
+
|
| 95 |
+
## Citation
|
| 96 |
+
|
| 97 |
+
```bibtex
|
| 98 |
+
@article{li2026posttraining,
|
| 99 |
+
title = {What Does Post-Training Change in Multilingual Reasoning?},
|
| 100 |
+
author = {Li, Hongyang and Li, Xiao and Wu, Caesar and Danoy, Gr{\'e}goire and Bouvry, Pascal},
|
| 101 |
+
journal = {arXiv preprint arXiv:2609.37104},
|
| 102 |
+
year = {2026}
|
| 103 |
+
}
|
| 104 |
+
```
|
| 105 |
+
|
| 106 |
+
Please also cite [OpenR1-Math-220k](https://huggingface.co/datasets/open-r1/OpenR1-Math-220k), the source of the English traces.
|
test.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cd4700538d6545352702ceff6c4d7c38e298ad06b8b8b5a2564582ed2fe121f7
|
| 3 |
+
size 1933095
|
train.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:90aec9221220d24188661ed022c179b4f4a90b0468641f090c261f4e1596c9ac
|
| 3 |
+
size 478058444
|