Skip to main content
QUICK REVIEW

[논문 리뷰] Hunyuan-Large: An Open-Source MoE Model with 52 Billion Activated Parameters by Tencent

Xingwu Sun, Yanfeng Chen|arXiv (Cornell University)|2024. 11. 04.
Age of Information OptimizationComputer Science인용 수 5
한 줄 요약

Hunyuan-Large는 52B 활성 매개변수(389B 총)와 256K 컨텍스트를 가진 가장 큰 오픈 소스 Transformer 기반 혼합 전문가(MoE) 모델로, 유사 규모의 오픈 소스 모델 중 최첨단 성능을 달성하고 훨씬 더 큰 밀집(Dense) 모델에 비해 경쟁력 있는 결과를 보인다.

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

연구 동기 및 목표

  • 초대형 활성 매개변수 수를 가진 대규모 오픈 소스 MoE 모델링을 촉진하고 가능하게 한다.
  • Hunyuan-Large가 NLP 작업, 코딩, 수학, 그리고 장문 맥락 벤치마크에서 우수한 성능을 달성함을 입증한다.
  • 효율적인 MoE 확장과 학습 안정성을 가능하게 하는 데이터 합성, 모델 아키텍처 혁신, 학습 레시피를 제시한다.
  • 향후 MoE 개발을 안내하기 위한 MoE 확장 법칙과 학습률 전략에 대한 통찰을 제공한다.

제안 방법

  • 토큰당 1개의 공유 전문가와 16개의 특화 전문가가 활성화되는 Transformer 기반 Mixture-of-Experts(MoE) 모델을 제안한다.
  • Grouped-Query Attention(GQA)와 Cross-Layer Attention(CLA)을 결합한 KV 캐시 압축을 도입하여 KV 캐시 메모리(약 95%)를 대폭 감소시킨다.
  • 학습 중 부하를 균형화하고 과부하된 전문가에서 회복하기 위한 재활용 라우팅 메커니즘을 가진 혼합 라우팅 전략을 채택한다.
  • 공유 전문가와 특화 전문가 간의 유효 배치 크기를 맞추기 위한 전문가별 학습률 스케일링을 적용한다.
  • 7조 토큰 규모의 고품질 합성 데이터(지시문 합성 및 자기 일관성 필터링 포함)와 함께 선학습하며, 256K 토큰까지의 장문 맥락 사전 학습도 수행한다.
  • SFT 및 RLHF(DPO를 통해)로 후속 학습을 수행하여 작업별 능력을 미세 조정하고 인간의 선호도에 맞춘다.

실험 결과

연구 질문

  • RQ1훈련 효율성과 안정성을 유지하면서 매우 큰 활성 매개변수로 MoE 모델을 확장하는 효과적인 기법은 무엇인가?
  • RQ2데이터 합성, KV 캐시 압축, 전문가 라우팅 전략이 다국어 및 장문 맥 context 작업에서 MoE 모델의 성능에 어떤 영향을 미치는가?
  • RQ3공유/전문가 혼합 MoE 아키텍처에서 전문가별 학습률 스케줄링이 학습 역학 및 최종 성능을 향상시킬 수 있는가?
  • RQ4활성 매개변수, 데이터, 계산량 측면에서 MoE 모델의 확장 법칙은 무엇이며, 이것이 향후 MoE 설계에 어떻게 가이드를 제공하는가?

주요 결과

  • Hunyuan-Large는 유사한 활성 매개변수 크기의 오픈 소스 모델들 가운데 다수의 영어 및 중국어 벤치마크에서 전반적으로 가장 우수한 성능을 달성한다.
  • MMLU와 같은 집계형 벤치마크에서 활성 매개변수가 더 적은(52B 대 405B) LLama3.1-405B를 능가한다.
  • 수학(GSM8K, MATH, 중국어 CMATH) 및 코딩(HumanEval, MBPP)에서 최상위 결과를 달성한다.
  • 장문 맥락 256K까지의 능력이 장문 맥락 사전 학습으로 시연되며, 7T 토큰의 사전 학습과 7T 데이터 규모를 포함한다.
  • 고품질 합성 데이터, KV 캐시 압축(GQA+CLA) 및 전문가별 학습률 스케일링의 조합이 성능 향상의 핵심 기여 요인으로 확인된다.

이 논문 읽기

누빈트 뷰어에서 원문을 열고, 읽으면서 궁금한 곳을 바로 물어보세요.

누빈트에서 이 논문 읽기

이 리뷰는 AI가 논문 원문을 바탕으로 만들었습니다. 인용하기 전에 원문을 확인해 주세요.