[Paper Review] PolyLM: An Open Source Polyglot Large Language Model
PolyLM presents an open-source multilingual LLM in 1.7B and 13B sizes trained on 640B tokens with curriculum learning and multilingual self-instruction, achieving strong non-English performance while preserving English capabilities.
Large language models (LLMs) demonstrate remarkable ability to comprehend, reason, and generate following nature language instructions. However, the development of LLMs has been primarily focused on high-resource languages, such as English, thereby limiting their applicability and research in other languages. Consequently, we present PolyLM, a multilingual LLM trained on 640 billion (B) tokens, avaliable in two model sizes: 1.7B and 13B. To enhance its multilingual capabilities, we 1) integrate bilingual data into training data; and 2) adopt a curriculum learning strategy that increases the proportion of non-English data from 30% in the first stage to 60% in the final stage during pre-training. Further, we propose a multilingual self-instruct method which automatically generates 132.7K diverse multilingual instructions for model fine-tuning. To assess the model's performance, we collect several existing multilingual tasks, including multilingual understanding, question answering, generation, and translation. Extensive experiments show that PolyLM surpasses other open-source models such as LLaMA and BLOOM on multilingual tasks while maintaining comparable performance in English. Our models, alone with the instruction data and multilingual benchmark, are available at: \url{https://modelscope.cn/models/damo/nlp_polylm_13b_text_generation}.
Motivation & Objective
- Address the gap in open-source multilingual LLMs by creating PolyLM in 13B and 1.7B sizes.
- Leverage a 640B-token multilingual pre-training corpus with 18 languages and 32% non-English data.
- Introduce curriculum learning to transfer English knowledge to low-resource languages.
- Develop multilingual instruction data via MultiAlpaca to improve multilingual SFT.
- Create a multilingual benchmark to evaluate understanding, generation, and translation capabilities.
Proposed method
- Assemble a 640B-token pre-training corpus with 68% English and 32% multilingual data, plus 7.5B code data and 1B parallel multilingual data.
- Use a decoder-only Transformer with 24/40 layers for 1.7B/13B models, RoPE integration, and Pre-LN stabilization.
- Apply a data preprocessing pipeline with language identification, rule-based and ML-based quality filtering, and deduplication.
- Employ curriculum learning by starting with English-heavy data and ramping up high-quality multilingual data in a second phase.
- Create MultiAlpaca, a multilingual self-instruction dataset with 132,701 tasks across 11 languages for SFT.
- Construct a multilingual benchmark spanning NLU, knowledge, NLG, and MT tasks across 15 languages.
Experimental results
Research questions
- RQ1Can PolyLM achieve strong multilingual capabilities across 18 languages while maintaining English performance?
- RQ2Does curriculum learning improve cross-lingual transfer and multilingual instruction-following?
- RQ3How does multilingual self-instruction data (MultiAlpaca) affect zero-shot and few-shot multilingual tasks?
- RQ4How does PolyLM compare to open-source models like BLOOM and LLaMA on multilingual benchmarks?
- RQ5What is the effect of dataset composition and tokenizer design on multilingual compression and coverage?
Key findings
- PolyLM-13B and PolyLM-1.7B outperform open-source models of similar size on multilingual tasks.
- Curriculum learning significantly boosts multilingual performance while preserving English proficiency.
- Multilingual instruction data enhances multilingual zero-shot capabilities.
- PolyLM achieves better token compression than several baselines across covered languages, with English compression comparable to BLOOM/LLaMA.
- The model, instruction data, and multilingual benchmark are publicly available at the provided ModelScope link.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.