Datasets:
Redesign card: figure, key results, quick start
Browse filesFiles changed (2)
- README.md+52-37
- assets/sft_effect_8b.pngAdded
29 unmodified lines303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495966 unmodified lines1031041051061071081092 unmodified lines11211311411511611729 unmodified linespath: test.parquet---# SFT-Math-Multilingual-56k: long chain-of-thought math traces in six languages**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.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.## Contents| Language | train | test (held-out loss) || :--- | ---: | ---: || English (`en`) | 9,760 | 40 || Chinese (`zh`) | 9,294 | 40 || Spanish (`es`) | 9,451 | 40 || French (`fr`) | 9,357 | 40 || Arabic (`ar`) | 9,306 | 40 || Russian (`ru`) | 9,139 | 40 || **Total** | **56,307** | **240** |Every source problem appears in exactly one language.## Schema| Field | Description || :--- | :--- || `messages` | chat list: `[{"role": "user", "content": <problem>}, {"role": "assistant", "content": "<think> … </think> <solution with \\boxed{answer}>"}]` || `data_source` | `"openr1_math"` || `category` | `"math_competition"` || `language` | one of `en, zh, es, fr, ar, ru` |```pythonfrom datasets import load_datasetds = load_dataset("96kevinli29/SFT-Math-Multilingual-56k")print(ds["train"][0]["language"], ds["train"][0]["messages"][1]["content"][:300])```## How it was built1. **Source.** English long chain-of-thought traces from [`open-r1/OpenR1-Math-220k`](https://huggingface.co/datasets/open-r1/OpenR1-Math-220k).2. **Assign.** Each trace is assigned one of the six languages in round-robin order by its index.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.)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).## Quality auditAn 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.| Language | Coherence | Target-language fidelity | 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 |## Limitations- **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.- **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.- **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.- Mathematics only.## Citation6 unmodified lines}@misc{sft-math-multilingual-56k-2026,title = {{SFT-Math-Multilingual-56k}: long chain-of-thought math traces 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},2 unmodified lines}```**Credits.** Built and released by the authors of the paper 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.29 unmodified lines303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101116 unmodified lines1181191201211221231242 unmodified lines12712812913013113229 unmodified linespath: test.parquet---<div align="center"># SFT-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/SFT-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-Multilingual-6Lang](https://huggingface.co/datasets/96kevinli29/DAPO-Math-Multilingual-6Lang).- **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-SFT-Math-Multilingual](https://huggingface.co/96kevinli29/Qwen3-8B-SFT-Math-Multilingual) || Sibling | [SFT-Math-Multilingual-43k](https://huggingface.co/datasets/96kevinli29/SFT-Math-Multilingual-43k), the 43K set used at 4B |## Quick start```pythonfrom datasets import load_datasetds = load_dataset("96kevinli29/SFT-Math-Multilingual-56k", split="train")ex = ds[0]print(ex["language"]) # one of en, zh, es, fr, ar, ruprint(ex["messages"][0]["content"]) # the problemprint(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-SFT-Math-Multilingual](https://huggingface.co/96kevinli29/Qwen3-8B-SFT-Math-Multilingual).## Citation6 unmodified lines}@misc{sft-math-multilingual-56k-2026,title = {{SFT-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},2 unmodified lines}```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.
README.md+52-37
assets/sft_effect_8b.pngAdded

Large File Pointer Details
- SHA256: 17878bef4aad84ba4a839dab0617e3ef1f76bc9781294fbb012bff69e6482190
- Pointer size: 130 Bytes
- Size of remote file: 70.8 kB