[Paper Review] PanGu-Σ: Towards Trillion Parameter Language Model with Sparse Heterogeneous Computing
PanGu-Σ is a 1.085 trillion-parameter sparse Mixture-of-Experts (MoE) language model trained on 329 billion tokens using 512 Ascend 910 AI accelerators. It introduces Random Routed Experts (RRE) for efficient expert routing and Expert Computation and Storage Separation (ECSS) to achieve 6.3x higher training throughput, outperforming prior models on zero-shot Chinese NLP tasks and fine-tuned applications.
The scaling of large language models has greatly improved natural language understanding, generation, and reasoning. In this work, we develop a system that trained a trillion-parameter language model on a cluster of Ascend 910 AI processors and MindSpore framework, and present the language model with 1.085T parameters named PanGu-Σ. With parameter inherent from PanGu-α, we extend the dense Transformer model to sparse one with Random Routed Experts (RRE), and efficiently train the model over 329B tokens by using Expert Computation and Storage Separation(ECSS). This resulted in a 6.3x increase in training throughput through heterogeneous computing. Our experimental findings show that PanGu-Σ provides state-of-the-art performance in zero-shot learning of various Chinese NLP downstream tasks. Moreover, it demonstrates strong abilities when fine-tuned in application data of open-domain dialogue, question answering, machine translation and code generation.
Motivation & Objective
- To scale large language models to over one trillion parameters while maintaining high training efficiency and system throughput.
- To address the challenges of unbalanced workloads and high communication latency in sparse MoE models through a novel routing mechanism.
- To reduce host-device communication and optimizer overhead in distributed training via a system-level separation of expert computation and storage.
- To achieve state-of-the-art performance on zero-shot and fine-tuned downstream NLP tasks, particularly in Chinese and multimodal applications.
- To enable efficient, scalable, and cost-effective training of trillion-parameter models using heterogeneous computing with limited hardware resources.
Proposed method
- Proposes Random Routed Experts (RRE), a two-level routing mechanism: first grouping experts by domain/task, then randomly and uniformly assigning tokens to experts within each group without learnable gating functions.
- Introduces Expert Computation and Storage Separation (ECSS), decoupling expert computation from storage to reduce host-to-device and device-to-host communication and optimizer computation overhead.
- Employs a hybrid parallelism strategy combining tensor, pipeline, and data parallelism within the MindSpore deep learning framework to scale training across 512 Ascend 910 accelerators.
- Extends the dense PanGu-α model into a sparse MoE architecture by reusing its parameters and fine-tuning with 329B tokens across 40+ languages.
- Uses a combination of model parallelism and system-level optimizations to maintain high training throughput despite the large model size.
- Applies a zero-shot evaluation protocol across SuperGLUE and Chinese NLP benchmarks to assess generalization and reasoning capabilities.
Experimental results
Research questions
- RQ1Can a trillion-parameter sparse MoE model be efficiently trained on a limited cluster of 512 Ascend 910 accelerators with high throughput and low communication overhead?
- RQ2How does the Random Routed Experts (RRE) mechanism compare to conventional MoE with learnable gating in terms of training efficiency and model performance?
- RQ3To what extent does Expert Computation and Storage Separation (ECSS) reduce system-level bottlenecks such as host-device communication and optimizer updates?
- RQ4What is the zero-shot and few-shot performance of PanGu-Σ on diverse NLP tasks, particularly in low-resource or low-shot settings?
- RQ5Can a sparse MoE model with parameter sharing from a dense base model achieve state-of-the-art results across multiple downstream tasks including dialogue, translation, and code generation?
Key findings
- PanGu-Σ achieves a training throughput of 69,905 tokens/second on 512 Ascend 910 accelerators, representing a 6.3x improvement over a MoE model with the same hyperparameters.
- The model demonstrates state-of-the-art zero-shot performance on Chinese NLP benchmarks, outperforming previous SOTA models on multiple tasks including text classification and question answering.
- The English sub-model of PanGu-Σ with 38B parameters achieves an average SuperGLUE score of 64.62 in zero-shot setup, closely matching the GPT-3 13B model’s 57.2 average despite using only 112B English tokens.
- Fine-tuned applications of PanGu-Σ show strong performance in open-domain dialogue, machine translation, question answering, and code generation, indicating strong transferability.
- The RRE mechanism enables effective sub-model extraction for specialized tasks such as dialogue or code generation, enhancing model adaptability without retraining.
- ECSS significantly reduces host-device communication and optimizer computation, contributing to the 6.3x throughput gain and enabling efficient training on a constrained hardware cluster.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.