The AWS team conducted fine-tuning experiments on the open-source large model GPT‑OSS‑20B (20 billion parameters) using Amazon SageMaker HyperPod, aiming to enable it to perform chain-of-thought reasoning in five languages—English, French, German, Spanish, and Italian—and to output the final answer in the specified language. The baseline model performed well only in English reasoning (100%), while its accuracy in the other four languages was extremely low (French: 0%, German: 10%, Spanish: 0%, Italian: 0%), resulting in an overall multilingual reasoning accuracy of just 22%.
By combining Supervised Fine-Tuning (SFT) with LoRA (r=8, α=16), the model’s reasoning language accuracy across all five languages surged to 100%, demonstrating that SFT can effectively acquire new behaviors whose original probabilities were close to zero; however, answer-language accuracy reached only 62% (100% for English, 60% for French/German/Italian, and 30% for Spanish), indicating a decoupling between the reasoning process and answer generation. Subsequently, Group Relative Policy Optimization (GRPO) was applied to further optimize the policy, raising answer-language accuracy to 70% (+8 percentage points) without compromising reasoning-language performance—but this improvement was highly language-dependent: German improved by +20 pp, Spanish by +30 pp, while Italian actually declined by 20 pp.
The experiment reveals key methodological principles: SFT is suitable for building capabilities “from scratch” (such as cross‑language reasoning), whereas GRPO yields observable gains only when the SFT output already exhibits a random distribution of target behaviors—that is, when there is sufficient headroom for pass@k to exceed pass@1. For example, on the GSM8K benchmark, Qwen2.5‑7B‑Instruct showed no improvement after GRPO, because its initial pass@1 score was already 90.5%, lacking the diversity signal needed for optimization. All training and evaluation were conducted using the HuggingFaceH4/Multilingual-Thinking dataset (949 training examples, 50 validation examples, and 50 test examples), with metrics based on binary judgments: “correct reasoning language” (using the instruction language in the chain‑of‑thought) and “correct answer language” (using the instruction language in the final answer). Both criteria must be met simultaneously to count as fully correct.
The tech stack includes an EKS cluster, FSx for Lustre high‑performance storage, EFA 100 Gbps networking, FSDP distributed training, bf16 precision, and the veRL v0.6.1 framework; SFT runs on four ml.g6e.12xlarge instances (totaling 16 L40S GPUs), while GRPO uses a single-node configuration. GRPO’s reward function weights answer language (±5.0), reasoning language (±1.5), and conciseness (+0.5/−1.0); each prompt generates K=8 responses, with a learning rate of 1e-6 and 10 training epochs. The authors emphasize that all results are confined to controlled experimental conditions and do not constitute claims about deployment performance, safety, or generalization in real-world scenarios; this project is an internal experiment, and the associated codebase has not yet been made public; cloud resource cleanup instructions are provided at the end of the paper to prevent ongoing charges.