TL;DR
Typhoon 2 is a state-of-the-art family of open-weights large language models explicitly optimized for the Thai language, spanning text, vision, and audio modalities. Ranging from 1B to 70B parameters, these models significantly bridge the performance gap for Thai language tasks while successfully preserving the core capabilities of their English-centric base models.
What Problem Does This Paper Address?
While open foundation models like Llama 3 and Qwen 2.5 boast impressive multilingual capabilities, they remain fundamentally English-centric. For low-resource and linguistically distinct languages like Thai, these models frequently suffer from high hallucination rates, poor cultural alignment, and a tendency to inappropriately mix languages (known as "code-switching").
Existing efforts to build Thai-specific models often lack scale, struggle with advanced capabilities like long-context windows and function calling, or miss out entirely on multimodal extensions. The authors introduce Typhoon 2 to provide a comprehensive, open, and culturally aware text and multimodal ecosystem tailored specifically to the Thai language.
Methods
The Typhoon 2 series builds upon top-tier open models (Llama 3/3.1/3.2 and Qwen 2.5/Qwen2-VL) using a multi-stage adaptation pipeline:
- Continual Pre-training (CPT): The base models undergo further pre-training on a 50/50 mixture of English and Thai data. Notably, the authors chose not to extend the tokenizer for Thai characters, citing recent findings that expanding tokenizers can degrade a base model's original capabilities.
- Supervised Fine-Tuning (SFT): Models are aligned using a curated blend of general instruction, domain-specific (math/coding), and long-context datasets.
- Advanced Post-Training Techniques:
- Knowledge Distillation: Smaller models (1B and 3B) are boosted using top-k logits distillation from larger 8B and 70B teacher models.
- Model Merging: The 70B model utilizes a DARE + linear merge strategy to combine Typhoon’s Thai SFT weights with Llama 3.3 Instruct, maximizing instruction-following performance.
- Multimodal Architecture:
- Vision: Built on Qwen2-VL-7B, utilizing an agentic data curation framework to refine ground-truth text and generate high-quality Thai Visual Question Answering (VQA) data.
- Audio: Employs an end-to-end speech-to-speech architecture (SALMONN encoder paired with a Llama-Omni speech generation module) capable of processing and generating text and speech in parallel.
Datasets
The authors curated a massive pipeline of Thai-centric data for both training and evaluation:
- Pre-training Corpus: A base web corpus of 44B tokens extracted from Common Crawl using Trafilatura and strictly deduplicated via MinHash/LSH. This was augmented with 12B high-quality tokens covering culturally relevant Thai text, synthetic textbooks, educational content, and Thai Wikipedia.
- Post-training Data: Includes TyphoonIF (a new dataset based on AutoIF containing 150,000 instruction pairs translated and cross-aligned between English and Thai) alongside math and code datasets like Dart-math and OpenCoder-Instruct.
- Multimodal Data: The vision model leverages a translated and distilled version of Cambrian-737K, alongside newly curated Thai financial reports and books. The audio model utilizes datasets like CommonVoice-Th, Fleurs-Th, and AudioCaps.
Key Insights and Ideas
- The Tokenizer Expansion Pitfall: Avoiding tokenizer expansion prevents the degradation of the base model's native reasoning capabilities, proving that data quality and training recipes matter more than raw token efficiency for low-resource languages.
- The 3:7 SFT Sweet Spot: Through empirical trials, the authors discovered that a 3:7 Thai-to-English data ratio during SFT yields the optimal balance—enabling fluent Thai generation without sacrificing English comprehension.
- The Cross-Lingual Math Gap: Models with strong English math capabilities show a severe performance drop when evaluated on Thai math tasks. Reasoning does not automatically transfer across language barriers without targeted multilingual SFT.
- Data Composition for Long Contexts: To achieve robust long-context performance, a dataset composition of 15% long-context data (with a 20:80 Thai-to-English ratio) and 85% short-context data yielded the best overall results.
Key Results
- Text Benchmarks: Typhoon 2 models consistently outperform their base counterparts on Thai benchmarks. For example, Typhoon2-Llama-8B-Base scored 51.20 on ThaiExam, compared to Llama3.1-8B's 45.80.
- Function Calling: On the Thai Berkeley Function-Calling Benchmark (BFCL), Typhoon2-Qwen-7B-Instruct achieved an overall accuracy of 75.12%, vastly outperforming the baseline Llama3.1-8B-Instruct (36.92%).
- Vision & OCR: Typhoon2-Qwen2VL-7B-Vision-Instruct excelled in Thai document understanding, scoring 63.11% accuracy on Thai OCR tasks and 75.71 ROUGE-L on ChartQA.
- Audio Processing: Typhoon2-Audio achieved a Word Error Rate (WER) of 14.04 on Thai Automated Speech Recognition (ASR), performing competitively with proprietary giants like Gemini 1.5 Pro (13.56).
Limitations and Future Work
- Llama-Based Context Windows: While Qwen-based models successfully extrapolated to a 128k context window, Llama-based Typhoon 2 models capped out at ~90k tokens. This limitation stems from the 8k context length restriction enforced during the continual pre-training phase.
- Audio Hallucinations: Typhoon2-Audio still faces challenges with speech instruction following, occasionally failing to respond to nested or highly complex spoken commands.
- Single-Speaker Speech Synthesis: Due to a scarcity of diverse, high-quality Thai text-to-speech (TTS) data, the speech generation module is currently limited to a single-speaker profile. Expanding this to a multi-speaker system remains a goal for future iterations.
Summary updated