Datasets:
Redesign card: figure, key results, quick start
Browse files- README.md +52 -38
- assets/sft_effect_4b.png +3 -0
README.md
CHANGED
|
@@ -30,68 +30,82 @@ configs:
|
|
| 30 |
path: test.parquet
|
| 31 |
---
|
| 32 |
|
| 33 |
-
|
| 34 |
|
| 35 |
-
|
| 36 |
|
| 37 |
-
|
| 38 |
|
| 39 |
-
|
| 40 |
|
| 41 |
-
|
| 42 |
-
| :--- | ---: | ---: |
|
| 43 |
-
| English (`en`) | 7,460 | 40 |
|
| 44 |
-
| Chinese (`zh`) | 7,214 | 40 |
|
| 45 |
-
| Spanish (`es`) | 7,212 | 40 |
|
| 46 |
-
| French (`fr`) | 7,146 | 40 |
|
| 47 |
-
| Arabic (`ar`) | 6,976 | 40 |
|
| 48 |
-
| Russian (`ru`) | 7,210 | 40 |
|
| 49 |
-
| **Total** | **43,218** | **240** |
|
| 50 |
|
| 51 |
-
|
| 52 |
|
| 53 |
-
|
| 54 |
|
| 55 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 56 |
| :--- | :--- |
|
| 57 |
-
|
|
| 58 |
-
|
|
| 59 |
-
|
|
| 60 |
-
|
|
| 61 |
-
|
|
|
|
|
|
|
|
|
|
|
| 62 |
|
| 63 |
```python
|
| 64 |
from datasets import load_dataset
|
| 65 |
-
|
| 66 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 67 |
```
|
| 68 |
|
| 69 |
-
|
|
|
|
|
|
|
|
|
|
| 70 |
|
| 71 |
-
1. **Source.** English long chain-of-thought traces from [
|
| 72 |
-
2. **Assign.** Each trace
|
| 73 |
-
3. **Translate.** English
|
| 74 |
-
4. **Filter.** A trace is dropped if
|
| 75 |
|
| 76 |
-
|
| 77 |
|
| 78 |
-
|
|
|
|
| 79 |
|
| 80 |
-
|
|
| 81 |
| :--- | :---: | :---: | :---: | :---: | :---: |
|
| 82 |
| Chinese | 4.90 | 4.62 | 99.6% | 100.0% | 96.0% |
|
| 83 |
| Spanish | 4.78 | 4.40 | 99.6% | 100.0% | 94.0% |
|
| 84 |
| French | 4.81 | 4.32 | 99.6% | 100.0% | 95.6% |
|
| 85 |
| Arabic | 4.47 | 3.54 | 99.6% | 99.6% | 84.0% |
|
| 86 |
| Russian | 4.76 | 4.40 | 100.0% | 98.8% | 94.4% |
|
| 87 |
-
| English
|
|
|
|
|
|
|
|
|
|
|
|
|
| 88 |
|
| 89 |
## Limitations
|
| 90 |
|
| 91 |
-
- **Machine
|
| 92 |
-
- **Answers are not verified.**
|
| 93 |
-
- **
|
| 94 |
-
- Mathematics only.
|
| 95 |
|
| 96 |
## Citation
|
| 97 |
|
|
@@ -104,7 +118,7 @@ An audit of 250 sampled traces per language from the 43K corpus. Coherence and t
|
|
| 104 |
}
|
| 105 |
|
| 106 |
@misc{sft-math-multilingual-43k-2026,
|
| 107 |
-
title = {{SFT-Math-Multilingual-43k}: long chain-of-thought math
|
| 108 |
author = {Li, Hongyang and Li, Xiao and Wu, Caesar and Danoy, Gr{\'e}goire and Bouvry, Pascal and {Sea-Fill Community}},
|
| 109 |
year = {2026},
|
| 110 |
publisher = {Hugging Face},
|
|
@@ -113,6 +127,6 @@ An audit of 250 sampled traces per language from the 43K corpus. Coherence and t
|
|
| 113 |
}
|
| 114 |
```
|
| 115 |
|
| 116 |
-
|
| 117 |
|
| 118 |
Please also cite [OpenR1-Math-220k](https://huggingface.co/datasets/open-r1/OpenR1-Math-220k), the source of the English traces.
|
|
|
|
| 30 |
path: test.parquet
|
| 31 |
---
|
| 32 |
|
| 33 |
+
<div align="center">
|
| 34 |
|
| 35 |
+
# SFT-Math-Multilingual-43k
|
| 36 |
|
| 37 |
+
**Long chain-of-thought math solutions, each written end to end in one of six languages**
|
| 38 |
|
| 39 |
+
<a href="https://arxiv.org/abs/2609.37104"><img alt="arXiv: 2609.37104" src="https://img.shields.io/badge/arXiv-2609.37104-b31b1b"></a> <img alt="traces: 43,218" src="https://img.shields.io/badge/traces-43,218-eb6834"> <img alt="languages: 6" src="https://img.shields.io/badge/languages-6-2a78d6"> <img alt="license: Apache 2.0" src="https://img.shields.io/badge/license-Apache_2.0-1baf7a">
|
| 40 |
|
| 41 |
+
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 42 |
|
| 43 |
+
<img src="https://huggingface.co/datasets/96kevinli29/SFT-Math-Multilingual-43k/resolve/main/assets/sft_effect_4b.png" alt="Bar chart per language of the share of responses reasoning in the requested language, before and after fine-tuning: English 100% to 100%, Chinese 100% to 100%, Spanish 0% to 100%, French 0% to 99%, Arabic 0% to 98%, Russian 99% to 100%" width="100%">
|
| 44 |
|
| 45 |
+
<p align="center"><sub>Share of responses whose reasoning is in the requested language, Qwen3-4B before and after fine-tuning on this dataset</sub></p>
|
| 46 |
|
| 47 |
+
Released reasoning models often think in English whatever language the user writes in. This dataset is **multilingual supervision for the reasoning itself**: in every example the problem, the full `<think>` trace and the final solution share one language.
|
| 48 |
+
|
| 49 |
+
- **Teach a model to reason in the user's language.** Fine-tuning Qwen3-4B on it moves target-language reasoning from 39.8% to **99.4%** across Chinese, Spanish, French, Arabic and Russian.
|
| 50 |
+
- **Warm-start multilingual RL.** It is the SFT stage before RL on [DAPO-Math-Multilingual-6Lang](https://huggingface.co/datasets/96kevinli29/DAPO-Math-Multilingual-6Lang).
|
| 51 |
+
- **Study multilingual reasoning.** One source distribution, six languages, every problem in exactly one of them.
|
| 52 |
+
|
| 53 |
+
## At a glance
|
| 54 |
+
|
| 55 |
+
| | |
|
| 56 |
| :--- | :--- |
|
| 57 |
+
| Examples | **43,218** train · 240 test (held-out loss, 40 per language) |
|
| 58 |
+
| Languages | English 7,460 · Chinese 7,214 · Spanish 7,212 · French 7,146 · Arabic 6,976 · Russian 7,210 |
|
| 59 |
+
| Length | median 12,038 characters per solution, reasoning included |
|
| 60 |
+
| Source | [OpenR1-Math-220k](https://huggingface.co/datasets/open-r1/OpenR1-Math-220k), translated by Qwen3-14B and filtered |
|
| 61 |
+
| Trained on it | [Qwen3-4B-SFT-Math-Multilingual](https://huggingface.co/96kevinli29/Qwen3-4B-SFT-Math-Multilingual) |
|
| 62 |
+
| Sibling | [SFT-Math-Multilingual-56k](https://huggingface.co/datasets/96kevinli29/SFT-Math-Multilingual-56k), a separately built 56K set used at 8B |
|
| 63 |
+
|
| 64 |
+
## Quick start
|
| 65 |
|
| 66 |
```python
|
| 67 |
from datasets import load_dataset
|
| 68 |
+
|
| 69 |
+
ds = load_dataset("96kevinli29/SFT-Math-Multilingual-43k", split="train")
|
| 70 |
+
ex = ds[0]
|
| 71 |
+
print(ex["language"]) # one of en, zh, es, fr, ar, ru
|
| 72 |
+
print(ex["messages"][0]["content"]) # the problem
|
| 73 |
+
print(ex["messages"][1]["content"]) # <think> … </think> + solution ending in \boxed{…}
|
| 74 |
```
|
| 75 |
|
| 76 |
+
Fields: `messages` (user problem, assistant solution), `language`, `data_source`, `category`. The 43K files also carry an unused `__index_level_0__` column.
|
| 77 |
+
|
| 78 |
+
<details>
|
| 79 |
+
<summary><b>How it was built</b></summary>
|
| 80 |
|
| 81 |
+
1. **Source.** English long chain-of-thought traces from [OpenR1-Math-220k](https://huggingface.co/datasets/open-r1/OpenR1-Math-220k).
|
| 82 |
+
2. **Assign.** Each trace gets one of the six languages in round-robin order, so every problem appears in exactly one language.
|
| 83 |
+
3. **Translate.** English traces stay as they are. The rest are translated chunk by chunk by a locally served Qwen3-14B; formulas and figures are detached first and reattached afterwards, and `<think>` tags are kept.
|
| 84 |
+
4. **Filter.** A trace is dropped if a chunk was truncated or the `\boxed` answer changed, then by seven gates: one `<think>` block, a recoverable boxed answer, balanced `$` and braces, a bounded length ratio, no repetition, and target-language fidelity.
|
| 85 |
|
| 86 |
+
</details>
|
| 87 |
|
| 88 |
+
<details>
|
| 89 |
+
<summary><b>Quality audit</b></summary>
|
| 90 |
|
| 91 |
+
| | Coherence (1–5) | Target-language fidelity (1–5) | Reaches the boxed answer | Math preserved | No major English residue |
|
| 92 |
| :--- | :---: | :---: | :---: | :---: | :---: |
|
| 93 |
| Chinese | 4.90 | 4.62 | 99.6% | 100.0% | 96.0% |
|
| 94 |
| Spanish | 4.78 | 4.40 | 99.6% | 100.0% | 94.0% |
|
| 95 |
| French | 4.81 | 4.32 | 99.6% | 100.0% | 95.6% |
|
| 96 |
| Arabic | 4.47 | 3.54 | 99.6% | 99.6% | 84.0% |
|
| 97 |
| Russian | 4.76 | 4.40 | 100.0% | 98.8% | 94.4% |
|
| 98 |
+
| English, untranslated | 4.88 | n/a | 100.0% | 100.0% | n/a |
|
| 99 |
+
|
| 100 |
+
250 sampled traces per language from the 43K corpus, scored by an independent judge.
|
| 101 |
+
|
| 102 |
+
</details>
|
| 103 |
|
| 104 |
## Limitations
|
| 105 |
|
| 106 |
+
- **Machine-translated.** A trace can contain a stray word in English or another language; Arabic is the weakest language in the audit.
|
| 107 |
+
- **Answers are not verified.** Translation only checks that the boxed answer is unchanged from the source.
|
| 108 |
+
- **Fine-tuning side effects.** Models trained on it lose some accuracy and loop on about a fifth of non-English prompts until an RL stage removes the looping; see [Qwen3-4B-SFT-Math-Multilingual](https://huggingface.co/96kevinli29/Qwen3-4B-SFT-Math-Multilingual).
|
|
|
|
| 109 |
|
| 110 |
## Citation
|
| 111 |
|
|
|
|
| 118 |
}
|
| 119 |
|
| 120 |
@misc{sft-math-multilingual-43k-2026,
|
| 121 |
+
title = {{SFT-Math-Multilingual-43k}: long chain-of-thought math solutions in six languages},
|
| 122 |
author = {Li, Hongyang and Li, Xiao and Wu, Caesar and Danoy, Gr{\'e}goire and Bouvry, Pascal and {Sea-Fill Community}},
|
| 123 |
year = {2026},
|
| 124 |
publisher = {Hugging Face},
|
|
|
|
| 127 |
}
|
| 128 |
```
|
| 129 |
|
| 130 |
+
Built and released by the authors together with the [Sea-Fill Community](https://huggingface.co/SeaFill2025), which maintains this release.
|
| 131 |
|
| 132 |
Please also cite [OpenR1-Math-220k](https://huggingface.co/datasets/open-r1/OpenR1-Math-220k), the source of the English traces.
|
assets/sft_effect_4b.png
ADDED
|
Git LFS Details
|