Datasets:
File size: 6,442 Bytes
b146ea9 021fb1c b146ea9 a5f3933 b146ea9 021fb1c b146ea9 021fb1c b146ea9 021fb1c b146ea9 a5f3933 b146ea9 021fb1c b146ea9 021fb1c a5f3933 021fb1c b146ea9 021fb1c 311f639 a5f3933 021fb1c b146ea9 021fb1c a5f3933 021fb1c b146ea9 021fb1c b146ea9 021fb1c b146ea9 021fb1c b146ea9 021fb1c b146ea9 021fb1c b146ea9 021fb1c b146ea9 021fb1c 311f639 b146ea9 328c836 a5f3933 7c9ba52 328c836 a5f3933 328c836 b146ea9 021fb1c 328c836 b146ea9 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 | ---
license: apache-2.0
language:
- en
- zh
- es
- fr
- ar
- ru
task_categories:
- text-generation
tags:
- math
- reasoning
- multilingual
- multilingual-reasoning
- chain-of-thought
- supervised-fine-tuning
- competition-math
size_categories:
- 10K<n<100K
source_datasets:
- open-r1/OpenR1-Math-220k
configs:
- config_name: default
data_files:
- split: train
path: train.parquet
- split: test
path: test.parquet
---
<div align="center">
# OpenR1-Math-Multilingual-56k
**Long chain-of-thought math solutions, each written end to end in one of six languages**
<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: 56,307" src="https://img.shields.io/badge/traces-56,307-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">
</div>
<img src="https://huggingface.co/datasets/96kevinli29/OpenR1-Math-Multilingual-56k/resolve/main/assets/sft_effect_8b.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 100%, Russian 35% to 100%" width="100%">
<p align="center"><sub>Share of responses whose reasoning is in the requested language, Qwen3-8B before and after fine-tuning on this dataset</sub></p>
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.
- **Teach a model to reason in the user's language.** Fine-tuning Qwen3-8B on it moves target-language reasoning from 26.9% to **99.7%** across Chinese, Spanish, French, Arabic and Russian.
- **Warm-start multilingual RL.** It is the SFT stage before RL on [DAPO-Math-17K-Multilingual](https://huggingface.co/datasets/96kevinli29/DAPO-Math-17K-Multilingual).
- **Study multilingual reasoning.** One source distribution, six languages, every problem in exactly one of them.
## At a glance
| | |
| :--- | :--- |
| Examples | **56,307** train · 240 test (held-out loss, 40 per language) |
| Languages | English 9,760 · Chinese 9,294 · Spanish 9,451 · French 9,357 · Arabic 9,306 · Russian 9,139 |
| Length | median 12,305 characters per solution, reasoning included |
| Source | [OpenR1-Math-220k](https://huggingface.co/datasets/open-r1/OpenR1-Math-220k), translated by Qwen3-14B and filtered |
| Trained on it | [Qwen3-8B-Multilingual-Reasoning-SFT](https://huggingface.co/96kevinli29/Qwen3-8B-Multilingual-Reasoning-SFT) |
| Sibling | [OpenR1-Math-Multilingual-43k](https://huggingface.co/datasets/96kevinli29/OpenR1-Math-Multilingual-43k), the 43K set used at 4B |
## Quick start
```python
from datasets import load_dataset
ds = load_dataset("96kevinli29/OpenR1-Math-Multilingual-56k", split="train")
ex = ds[0]
print(ex["language"]) # one of en, zh, es, fr, ar, ru
print(ex["messages"][0]["content"]) # the problem
print(ex["messages"][1]["content"]) # <think> … </think> + solution ending in \boxed{…}
```
Fields: `messages` (user problem, assistant solution), `language`, `data_source`, `category`.
<details>
<summary><b>How it was built</b></summary>
1. **Source.** English long chain-of-thought traces from [OpenR1-Math-220k](https://huggingface.co/datasets/open-r1/OpenR1-Math-220k).
2. **Assign.** Each trace gets one of the six languages in round-robin order, so every problem appears in exactly one language.
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.
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.
</details>
<details>
<summary><b>Quality audit</b></summary>
| | Coherence (1–5) | Target-language fidelity (1–5) | Reaches the boxed answer | Math preserved | No major English residue |
| :--- | :---: | :---: | :---: | :---: | :---: |
| Chinese | 4.90 | 4.62 | 99.6% | 100.0% | 96.0% |
| Spanish | 4.78 | 4.40 | 99.6% | 100.0% | 94.0% |
| French | 4.81 | 4.32 | 99.6% | 100.0% | 95.6% |
| Arabic | 4.47 | 3.54 | 99.6% | 99.6% | 84.0% |
| Russian | 4.76 | 4.40 | 100.0% | 98.8% | 94.4% |
| English, untranslated | 4.88 | n/a | 100.0% | 100.0% | n/a |
250 sampled traces per language from the 43K corpus, scored by an independent judge.
</details>
## Limitations
- **Machine-translated.** A trace can contain a stray word in English or another language; Arabic is the weakest language in the audit.
- **Answers are not verified.** Translation only checks that the boxed answer is unchanged from the source.
- **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-8B-Multilingual-Reasoning-SFT](https://huggingface.co/96kevinli29/Qwen3-8B-Multilingual-Reasoning-SFT).
## Citation
```bibtex
@article{li2026posttraining,
title = {What Does Post-Training Change in Multilingual Reasoning?},
author = {Li, Hongyang and Li, Xiao and Wu, Caesar and Danoy, Gr{\'e}goire and Bouvry, Pascal},
journal = {arXiv preprint arXiv:2609.37104},
year = {2026}
}
@misc{sft-math-multilingual-56k-2026,
title = {{OpenR1-Math-Multilingual-56k}: long chain-of-thought math solutions in six languages},
author = {Li, Hongyang and Li, Xiao and Wu, Caesar and Danoy, Gr{\'e}goire and Bouvry, Pascal and {Sea-Fill Community}},
year = {2026},
publisher = {Hugging Face},
howpublished = {\url{https://huggingface.co/datasets/96kevinli29/OpenR1-Math-Multilingual-56k}},
note = {Maintained by Sea-Fill Community.}
}
```
Built and released by the authors together with the [Sea-Fill Community](https://huggingface.co/SeaFill2025), which maintains this release.
Please also cite [OpenR1-Math-220k](https://huggingface.co/datasets/open-r1/OpenR1-Math-220k), the source of the English traces.
|