NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

YuLan-Mini: An Open Data-efficient Language Model

Yiwen Hu, Huatong Song, Jia Deng, Jiapeng Wang, Jie Chen, Kun Zhou, Yutao Zhu, Jinhao Jiang, Zican Dong, Wayne Xin Zhao, Ji-Rong WenarXiv 2024 · DOI

Introduction

Pre-training large language models (LLMs) remains a resource-intensive endeavor, often dominated by industry giants with massive compute budgets. For the broader research community, the "secret sauce" of successful training—specific data mixtures, cleaning heuristics, and optimization tricks—often remains undisclosed. YuLan-Mini, a 2.42B parameter language model, addresses this gap by demonstrating how academic-scale resources can produce models that rival industry leaders through extreme data efficiency and advanced optimization.

Technical Architecture and Optimization

YuLan-Mini utilizes a decoder-only Transformer architecture with a "tall and narrow" configuration, consisting of 56 layers and a hidden size of 1920. To ensure training stability and hyperparameter transferability, the authors implemented several key innovations:

  • Maximal Update Parametrization (µP): This technique allows for the transfer of optimal hyperparameters from small proxy models to the full-scale model, reducing the need for expensive tuning.
  • WeSaR (Weight Scale and Rate): A novel re-parametrization method that decouples the update of the gradient norm from the gradient direction. This effectively mitigates the "exploding hidden states" that often lead to catastrophic loss spikes in deep models.
  • Warmup-Stable-Decay (WSD) Scheduler: Unlike the standard cosine decay, the WSD schedule maintains a long "stable" phase at a constant learning rate, followed by a high-quality "annealing" phase. This approach allows the model to absorb a vast amount of general knowledge before specializing.
The training process for YuLan-Mini remained remarkably stable, with smooth loss and gradient norm curves across 1.08T tokens.

Data Strategy and Annealing

The model was pre-trained on a total of 1.08 trillion tokens. The dataset mixture includes high-quality web data (FineWeb-Edu, DCLM), code (The-stack-v2), and mathematics (OpenWebMath).

A critical component of YuLan-Mini's success is the Strategic Annealing phase. In the final 80 billion tokens (roughly 8% of the total), the authors pivoted to a mixture of ultra-high-quality data. This included synthetic "o1-like" long-thought reasoning data and formal mathematics (Lean). During this phase, the context window was also extended from 4K to 28K tokens by adjusting the base frequency of the Rotary Positional Embeddings (RoPE).

Performance Evaluation

Despite its modest parameter count, YuLan-Mini achieves industry-leading performance across a variety of benchmarks. It is particularly strong in reasoning-heavy tasks, scoring 37.80 on MATH-500 (4-shot) and 64.00 on HumanEval (0-shot). These results place it ahead of many models with significantly larger compute budgets.

Performance comparison of YuLan-Mini against other base models, showing its superior efficiency relative to approximate FLOPs.

Key insights from the evaluation include:

  • Hidden States as Early Warning: Monitoring the variance of hidden states across layers proved to be a more sensitive indicator of instability than training loss, allowing for proactive adjustments.
  • The Annealing Boost: The final annealing stage was transformative, causing a significant jump in reasoning capabilities without requiring a massive increase in total tokens.

Conclusion

YuLan-Mini serves as a blueprint for data-efficient LLM development. By combining sophisticated optimization techniques like µP and WeSaR with a high-quality data curriculum and strategic annealing, the authors demonstrate that "small" models can achieve "large" model intelligence. Future work will focus on releasing an instruction-tuned version and further extending the context window capabilities.

Summary updated

BibTeX
@misc{hu2024yulan,
  author = {Yiwen Hu and Huatong Song and Jia Deng and Jiapeng Wang and Jie Chen and Kun Zhou and Yutao Zhu and Jinhao Jiang and Zican Dong and Wayne Xin Zhao and Ji-Rong Wen},
  title = {{YuLan-Mini: An Open Data-efficient Language Model}},
  year = {2024},
  eprint = {2412.17743},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2412.17743},
}
Figure