Introduction
As deep learning models evolve from basic neural networks to massive Transformers and Mixture-of-Experts (MoE) architectures, the infrastructure required for training has become a significant bottleneck. While industry-standard frameworks like TensorFlow and PyTorch are widely used, they often struggle with distributed scalability. Specifically, these systems face challenges in functionality (limited communication architectures), complexity (tightly coupled logic), and usability (the need for manual expert partitioning).
To address these issues, researchers at Peking University developed Hetu, an open-source distributed deep learning framework designed to bridge the gap between academic innovation and industrial-scale performance.
System Architecture
Hetu is built on a modular, four-layer architecture that decouples model definition from hardware execution. This design allows for high performance while maintaining ease of use for researchers.
The architecture consists of the following layers:
- Application Tool Layer: Provides specialized modules such as HetuML for traditional machine learning, HET-GMP for massive embedding models, and HetuMoE for large-scale pre-training.
- Interface Layer: Offers a "single-device" programming abstraction. Developers define models logically, and the system handles distributed deployment automatically.
- Runtime Layer: The core engine featuring a Graph Compiler and a Unified Intermediate Representation (IR). It uses cost-estimation to generate physical execution plans, automatically partitioning operators and tensors.
- Library Layer: Separates computation kernels (e.g., cuDNN, Intel MKL) from communication primitives (e.g., NCCL, RDMA), enabling independent hardware-level optimizations.
Automatic Parallelization
The standout feature of Hetu is its Automatic Parallelization engine. Unlike traditional frameworks that require manual definition of data or model parallel strategies, Hetu’s compiler analyzes the logical graph to find an efficient, semantically equivalent parallel execution plan. By treating different strategies through a unified IR, the system makes automatic optimization mathematically feasible.
Industrial Adoption and Impact
Hetu is the first distributed deep learning system developed by a Chinese academic group to see significant industrial adoption. It has been validated in high-stakes environments, including:
- Tencent: Large-scale advertising recommendation systems.
- Alibaba: Commodity recommendation and "City Brain" transportation forecasting.
- Kuaishou: AutoML services.
The system's performance has been recognized with several awards, including the highest outstanding award at the 2021 CCF Big Data & Computing Intelligence Contest.
Conclusion and Future Work
Hetu provides a robust foundation for distributed deep learning by decoupling logical model definitions from physical hardware deployment. Future development will focus on expanding the ecosystem of supported models, refining cost models for heterogeneous hardware, and optimizing large-scale distributed inference.
The source code for Hetu is available under the MulanPSL 2.0 license at github.com/PKU-DAIR/Hetu.
Summary updated