TL;DR
Typhoon is a new series of 7-billion-parameter Thai Large Language Models (LLMs) developed by SCB 10X to address the severe scarcity of high-quality Thai language resources. By executing continual pretraining on a strong English-centric base model (Mistral-7B) with a expanded Thai vocabulary, Typhoon achieves state-of-the-art performance among open-source Thai models, performing on par with GPT-3.5 on Thai cultural and academic benchmarks.
What Problem Does This Paper Address?
Most state-of-the-art LLMs are trained predominantly on English-centric corpora. Low-resource languages like Thai suffer immensely from this imbalance; Thai text accounts for less than 0.5% of standard web crawl datasets like Common Crawl. Consequently, existing multilingual models often lack deep linguistic proficiency, cultural awareness, and stylistic nuance in Thai.
Furthermore, standard tokenizers are highly inefficient for Thai script, frequently breaking down words into excessive bytes or characters. This drastically increases the token count for Thai text, leading to slower generation speeds, higher computational costs, and shorter effective context windows. Typhoon tackles these data scarcity and tokenization inefficiencies head-on.
Methods
Instead of training a model from scratch—which is computationally prohibitive for low-resource languages—the authors utilize continual pretraining to transfer world knowledge from a powerful base model, Mistral-7B.
Key methodological innovations include:
- Vocabulary Expansion: The authors trained a specialized SentencePiece subword tokenizer with 5,000 Thai tokens using the MC4 dataset and integrated it into the base Mistral tokenizer. This optimization strikes a balance between token efficiency and the ease of learning new embedding weights.
- Catastrophic Forgetting Mitigation: To ensure the model did not lose its underlying reasoning and English capabilities, the pretraining corpus was constructed as a strict 50/50 mix of curated Thai web text (3 TB total) and English data from Falcon RefinedWeb.
- Targeted Training Strategy: Initial experiments revealed that full-weight training introduced instability. The final model was trained using Low-Rank Adaptation (LoRA) applied specifically to the extended embeddings and the language modeling head, stabilized by a large batch size of 2 million tokens.
- Instruction Tuning: The base Typhoon model was fine-tuned via Supervised Fine-Tuning (SFT) using a combination of translated English instruction datasets (Alpaca, Dolly, UltraChat) and native Thai datasets generated via the Self-Instruct method.
Datasets
The authors utilized several datasets for both training and evaluation, including a newly introduced benchmark:
Training Datasets
- Pretraining: A massive 3 TB corpus of Thai web text extracted from 40 Common Crawl packages, heavily filtered via MinHash and LSH deduplication pipelines, paired with the English Falcon RefinedWeb dataset.
- Instruction Tuning: Thai AlpacaEval, Thai OASST, Translated MT-Bench, and the Thai subset of Sea-bench.
Evaluation Datasets
- ThaiExam (New Benchmark): A newly introduced multiple-choice evaluation suite compiled from real-world Thai examinations. It includes the Ordinary National Educational Test (ONET for grade-12 students), the Investment Consultant (IC professional licensing exam), the Thai General Aptitude Test (TGAT), the Thai Professional Aptitude Test (TPAT-1 for medical schools), and the academic A-Level exam.
- Standard NLP Benchmarks: M3Exam, XNLI (cross-lingual entailment), XCOPA (causal reasoning), FLORES-200 (translation), XLSum, and CrossSum (summarization).
Key Insights and Ideas
- Continual Pretraining is Superior to Scratch: The paper demonstrates that low-resource languages can successfully "piggyback" on the structural and logical capabilities of advanced English models through targeted vocabulary expansion and continual training.
- The 50/50 Language Mix Rule: Keeping a high ratio of English data during the adaptation phase is crucial. It acts as an anchor that prevents the model from degrading into chaotic outputs while it absorbs the new language's syntax.
- Tokenizer Optimization Matters: Standard English tokenizers process Thai text at a massive disadvantage. By adding a modest 5,000 language-specific tokens, Typhoon significantly reduces the token footprint compared to other open-source Thai models like OpenThaiGPT and WangChanGLM.
Key Results
Typhoon-7B establishes a new state-of-the-art for open-source Thai LLMs across virtually all evaluated benchmarks.
As shown in the performance charts, Typhoon consistently outperforms its open-source peers (such as SeaLLM-7B and OpenThaiGPT) and even surpasses average human benchmarks on ONET, TGAT, and TPAT-1 exams:
Quantitatively, on the ThaiExam benchmark, Typhoon-7B achieves an average score of 0.442, closely trailing the proprietary GPT-3.5-turbo (0.460) while operating with significantly fewer parameters:
For instruction-following tasks judged by GPT-4, Typhoon-7B-Instruct achieves a 55.52% win rate against GPT-3.5 on the Translated MT-Bench, demonstrating highly competitive conversational capabilities.
Limitations and Future Work
Despite its strong performance, the authors note that Typhoon is still susceptible to standard LLM limitations, including hallucinations, repetitive text generation, and the potential to output harmful content.
Future work will focus on scaling Typhoon to larger base architectures (such as 34B, 70B, or Mixture-of-Experts models) to unlock emergent reasoning capabilities, alongside exploring advanced alignment techniques like Direct Preference Optimization (DPO) to improve instruction following.
Summary updated