TL;DR
This paper introduces a highly efficient, open-source recipe to inject advanced reasoning capabilities (like those of DeepSeek R1) into language-specific LLMs in just one day for a computational budget of only $120. By combining bilingual supervised fine-tuning (SFT) for representation alignment with layer-wise, ability-aware model merging, the authors successfully upgrade a Thai-specific LLM to match DeepSeek R1's reasoning performance without sacrificing its native language fluency.
What Problem Does This Paper Address?
State-of-the-art reasoning models like OpenAI o1 and DeepSeek R1 have set new benchmarks for complex problem-solving. However, these models are predominantly optimized for high-resource languages like English and Chinese. When prompted in low-resource languages (such as Thai), they frequently suffer from severe linguistic degradation, including incorrect character usage, unnatural code-switching, or completely reverting to Chinese or English during their reasoning chain.
While regional initiatives have developed language-specific LLMs to preserve local linguistic fidelity, these models lack advanced reasoning capabilities. Upgrading them via traditional knowledge distillation from scratch is incredibly expensive, often requiring hundreds of thousands of examples and thousands of dollars in compute. This paper tackles the challenge of bridging the reasoning gap for low-resource languages quickly and affordably.
Methods
The authors propose a two-stage pipeline to merge a language-specific model with a reasoning-focused model of the same foundational architecture (Llama 3.1 70B family).
- Representation Alignment via SFT: Directly merging two models trained on different distributions can corrupt internal representations. To fix this, the language-specific model undergoes a brief SFT phase using a bilingual dataset. Crucially, the dataset pairs translated target-language questions and answers with the original English long-form reasoning traces, teaching the model to map local language queries to structured reasoning paths.
- Ability-Aware Model Merging: The aligned language model is then merged with the reasoning model (DeepSeek R1 70B Distill) using the DARE-linear method via Mergekit. Instead of applying a uniform merge ratio across all layers, the authors vary the weights based on layer functionality:
- Early to middle layers are assigned a higher weight from the reasoning model to preserve abstract thinking and comprehension.
- Later layers lean heavily toward the language-specific model to ensure fluent, native-language text generation.
Datasets
Training Datasets
- Bespoke-Stratos (Original): 17k English reasoning distillation examples generated by DeepSeek R1.
- Bespoke-Stratos TH Translate: A Thai translation of the questions and solutions from Bespoke-Stratos, retaining the original English reasoning traces (scaled from a 2k small set to a 6.5k large set).
- DeepSeek R1 Distill thai_instruction_sft: 500 general Thai prompts distilled using DeepSeek R1 with rejection sampling.
- General Instruction Data: 10k examples from Capybara (English) and 10k from
thai_instruction_sftto maintain general instruction-following capabilities.
Evaluation Benchmarks
- Reasoning: AIME 2024, MATH500, and LiveCodeBench (evaluated in both English and GPT-4o-translated Thai versions).
- Language & Alignment: IFEval (EN/TH) and MT-Bench (EN/TH).
- Custom Metrics:
- Language Accuracy (Lang-acc): Measures the model's ability to respond purely in the target language without unnatural code-switching.
- Think Accuracy: Verifies if the model correctly formats and utilizes non-empty
<think>tokens.
Key Insights and Ideas
- The Layer-Weight Tradeoff: Uniformly merging a reasoning model and a language model results in a broken compromise—either reasoning drops or language accuracy plummets. Tapering the reasoning model's influence down in the later layers (from 75% down to 12.5%) recovers target language accuracy by over 25% while keeping reasoning intact.
- SFT and Merging are Synergistic: Neither technique works in isolation. Direct merging without SFT alignment yields poor benchmark performance, and running SFT alone fails to capture the deep reasoning capabilities inherent in the distilled R1 weights.
- Cross-Model Transferability: The recipe isn't exclusive to the authors' proprietary model. They successfully applied the exact same pipeline to another regional model, Sealion v3 70B Instruct, proving the method is robust and transferable across different language-specific pre-training recipes.
Key Results
The final model, Typhoon2-R1-70B, achieved remarkable results, effectively combining the best of both worlds:
- Maintained Language Fidelity: It scored 87.6% on Thai Language Accuracy, a massive leap from the stock DeepSeek R1 70B Distill's abysmal 19.0%, and remained within 4% of the native Typhoon2 language model.
- Preserved Reasoning Power: On math and coding benchmarks (AIME, MATH500, LiveCodeBench), the merged model performed comparably to DeepSeek R1 70B Distill, while boosting Typhoon2's baseline reasoning performance by massive margins (e.g., jumping from 10.0% to 63.3% on English AIME).
- Overall Performance Boost: The recipe boosted average performance across all tasks by 41.6% over Typhoon2 70B Instruct and 12.8% over DeepSeek R1 70B Distill.
Limitations and Future Work
While highly effective, the authors note several limitations:
- Architecture Constraints: The method currently requires both models to share the same foundational architecture and size (e.g., Llama 3.1 70B).
- Merging Strategy: The study focused exclusively on the DARE-linear merging method within a simple two-model setup.
- Cultural Nuances: The reasoning traces remain fundamentally English-centric. The authors highlight the lack of culturally aware reasoning traces as an open challenge for the broader multilingual AI community.
Summary updated