Megrez2 Technical Report
Boxun Li, Yadong Li, Zhiyuan Li, Congyi Liu, Weilin Liu, Guowei Niu, Zheyue Tan, Haiyang Xu, Zhuyu Yao, Tao Yuan, Dong Zhou, Yueqing Zhuang, Bo Zhao, Guohao Dai, Yu Wang

TL;DR
Megrez2 is a lightweight, high-performance language model architecture optimized for device deployment, featuring cross-layer expert sharing and pre-gated routing, achieving competitive results with fewer parameters.
Contribution
Introduction of Megrez2 architecture with cross-layer expert sharing and pre-gated routing, enabling efficient deployment and high performance in resource-constrained environments.
Findings
Megrez2-Preview trained on 5-trillion tokens shows strong performance.
Achieves competitive results with only 3B active parameters.
Demonstrates effectiveness across language understanding, reasoning, and code tasks.
Abstract
We present Megrez2, a novel lightweight and high-performance language model architecture optimized for device native deployment. Megrez2 introduces a novel cross-layer expert sharing mechanism, which significantly reduces total parameter count by reusing expert modules across adjacent transformer layers while maintaining most of the model's capacity. It also incorporates pre-gated routing, enabling memory-efficient expert loading and faster inference. As the first instantiation of the Megrez2 architecture, we introduce the Megrez2-Preview model, which is pre-trained on a 5-trillion-token corpus and further enhanced through supervised fine-tuning and reinforcement learning with verifiable rewards. With only 3B activated and 7.5B stored parameters, Megrez2-Preview demonstrates competitive or superior performance compared to larger models on a wide range of tasks, including language…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsSoftware System Performance and Reliability · Advanced Neural Network Applications · Big Data and Digital Economy
