Skip to main content
QUICK REVIEW

[Paper Review] Hunyuan-Large: An Open-Source MoE Model with 52 Billion Activated Parameters by Tencent

Xingwu Sun, Yanfeng Chen|arXiv (Cornell University)|Nov 4, 2024
Age of Information OptimizationComputer Science5 citations
TL;DR

Hunyuan-Large is the largest open-source Transformer-based mixture-of-experts model with 52B activated parameters (389B total) and 256K context, achieving state-of-the-art performance among open-source models of similar scale and competitive results to much larger dense models.

ABSTRACT

In this paper, we introduce Hunyuan-Large, which is currently the largest open-source Transformer-based mixture of experts model, with a total of 389 billion parameters and 52 billion activation parameters, capable of handling up to 256K tokens. We conduct a thorough evaluation of Hunyuan-Large's superior performance across various benchmarks including language understanding and generation, logical reasoning, mathematical problem-solving, coding, long-context, and aggregated tasks, where it outperforms LLama3.1-70B and exhibits comparable performance when compared to the significantly larger LLama3.1-405B model. Key practice of Hunyuan-Large include large-scale synthetic data that is orders larger than in previous literature, a mixed expert routing strategy, a key-value cache compression technique, and an expert-specific learning rate strategy. Additionally, we also investigate the scaling laws and learning rate schedule of mixture of experts models, providing valuable insights and guidances for future model development and optimization. The code and checkpoints of Hunyuan-Large are released to facilitate future innovations and applications. Codes: https://github.com/Tencent/Hunyuan-Large Models: https://huggingface.co/tencent/Tencent-Hunyuan-Large

Motivation & Objective

  • Motivate and enable large-scale open-source MoE modeling with an ultra-large activated parameter count.
  • Demonstrate that Hunyuan-Large achieves superior performance across NLP tasks, coding, math, and long-context benchmarks.
  • Present data synthesis, model architecture innovations, and training recipes that enable efficient MoE scaling and training stability.
  • Provide insights into MoE scaling laws and learning rate strategies to guide future MoE development.

Proposed method

  • Propose a Transformer-based Mixture-of-Experts (MoE) model with 1 shared expert and 16 specialized experts activated per token.
  • Introduce KV cache compression combining Grouped-Query Attention (GQA) and Cross-Layer Attention (CLA) to dramatically reduce KV cache memory (~95%).
  • Adopt a mixed routing strategy with a recycle routing mechanism to balance load and recover from overloaded experts during training.
  • Apply expert-specific learning rate scaling to match effective batch sizes across shared and specialized experts for efficient training.
  • Pre-train on 7 trillion tokens with high-quality synthetic data (including instruction synthesis and self-consistency filtering), plus long-context pre-training up to 256K tokens.
  • Post-train with SFT and RLHF (via DPO) to refine task-specific capabilities and align with human preferences.

Experimental results

Research questions

  • RQ1What are the effective techniques to scale MoE models to very large activation parameters while maintaining training efficiency and stability?
  • RQ2How do data synthesis, KV cache compression, and expert routing strategies impact MoE model performance on multilingual and long-context tasks?
  • RQ3Can expert-specific learning rate scheduling improve training dynamics and final performance for mixed shared/specialized MoE architectures?
  • RQ4What are the scaling laws for MoE models in terms of activated parameters, data, and compute, and how can they inform future MoE design?

Key findings

  • Hunyuan-Large achieves the best overall performance among open-source models of similar activated parameter size across multiple English and Chinese benchmarks.
  • On aggregated benchmarks like MMLU, it surpasses LLama3.1-405B with fewer activated parameters (52B vs 405B).
  • It attains top results in mathematics (GSM8K, MATH, CMATH in Chinese) and coding (HumanEval, MBPP).
  • Long-context capabilities up to 256K context are demonstrated due to long-context pre-training, with 7T pre-training tokens and 7T data scale.
  • The combination of high-quality synthetic data, KV cache compression (GQA+CLA), and expert-specific learning rate scaling is identified as key contributors to performance gains.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.