Introduction
Large Language Models (LLMs) have revolutionized natural language processing, yet their massive resource requirements hinder deployment on edge devices. While "tiny" models (around 1B parameters) offer a solution, they are often trained using scaled-down versions of recipes designed for 70B+ parameter models. Researchers from Huawei Noah’s Ark Lab argue that these recipes do not scale linearly. In this work, they propose a specialized pipeline for Tiny Language Models (TLMs), resulting in the PanGu-π-1.5B Pro, which outperforms significantly larger competitors.
Methodology: A Tailored Recipe for TLMs
Neural Architecture: The Compact Tokenizer
Standard multilingual tokenizers often contain over 100k tokens. In massive models, this vocabulary accounts for a negligible fraction of parameters. However, in a 1B model, it can consume nearly 40% of the parameter budget. By trimming the vocabulary to 48k high-frequency tokens, the researchers reduced the embedding and head layer footprint from ~38% to ~18%, reallocating capacity to the transformer's "main body."
Parameter Inheritance and Layer Importance
Rather than training from scratch, the "Pro" models inherit weights from a 7B teacher model (PanGu-π-7B). Using learnable binary masks, the team identified critical neurons. Their analysis revealed a "U-shaped" importance curve: the first and last layers are vital for performance, while middle layers are more redundant and can be pruned.
Optimization Strategy: Multi-Round Training
To combat "catastrophic forgetting" in small models, the authors introduced a multi-round training strategy. Instead of uniform data sampling, they focused subsequent training rounds on "hard examples"—data points where the model exhibited high loss—to reinforce weak knowledge areas.
Results and Discussion
The cumulative effect of these optimizations is substantial. PanGu-π-1B Pro achieved an 8.87-point improvement over its baseline. More impressively, PanGu-π-1.5B Pro reached an average benchmark score of 60.64, surpassing Qwen-1.8B (55.04) and even outperforming larger models like Gemma-2.5B and Phi-2 (2.7B) in specific reasoning tasks.
Conclusion
The success of PanGu-π-1.5B Pro demonstrates that TLMs require distinct architectural and optimization strategies. By prioritizing model depth over width and aggressively managing "tokenizer bloat," researchers can create highly efficient models that punch well above their weight class. Future work will explore hardware-friendly attention mechanisms to further optimize inference speed.
Summary updated