Nebula-I: A General Framework for Collaboratively Training Deep Learning Models on Low-Bandwidth Cloud Clusters

Yang Xiang, Zhihua Wu, Weibao Gong, Siyu Ding, Xianjie Mo, Yuang Liu, Shuohuan Wang, Peng Liu, Yongshuai Hou, Long Li, Bin Wang, Shaohuai Shi, Yaqian Han, Yue Yu, Ge Li, Yu Sun, Yanjun Ma, Dianhai YuarXiv 2022 · DOI

Abstract

Nebula-I is a general-purpose framework designed to train massive deep learning models across geographically distributed, heterogeneous cloud clusters connected by low-bandwidth Wide Area Networks (WANs). By jointly optimizing training strategies, parallel computing, and aggressive communication compression, it enables collaborative large-scale training that overcomes significant network bottlenecks previously considered prohibitive for giant model development.

Introduction

As deep learning models scale toward trillions of parameters, the compute requirements often exceed the capacity of a single data center. While cloud resources are abundant, they are frequently fragmented across different locations. Training across these locations faces two primary hurdles: the bandwidth bottleneck of Wide Area Networks (WANs), which can be 100x slower than internal data center networks, and hardware heterogeneity, where remote clusters may utilize different architectures (e.g., NVIDIA GPUs vs. Huawei Ascend NPUs).

The Nebula-I Architecture

Nebula-I, built upon the PaddlePaddle framework, addresses these challenges through its core engine, the Nebula-Optimizer. This optimizer operates across four distinct layers to ensure efficient and secure distributed training.

The multi-layered architecture of the Nebula-I framework, spanning from task management to cloud hardware.
  • Training Optimization Layer: Decouples models into components for dispatch to different clusters. For instance, in an ELECTRA-style setup, the Generator and Discriminator can reside on separate clouds.
  • Parallelization Layer: Adaptively applies hybrid parallelism (data, model, and pipeline). It employs a synchronization method to handle hardware speed variances, ensuring faster clusters do not remain idle while waiting for slower ones.
  • Communication Optimization Layer: Reduces data volume via Singular Value Decomposition (SVD) to factorize gradient/activation matrices, followed by FP16 or INT8 quantization. This can reduce bandwidth usage by over 80% with negligible impact on accuracy.
  • Security Layer: Implements a "Switch Server" gateway architecture with TLS v1.2 encryption and strict identity authentication to protect data traveling over the public internet.

Cross-Cluster Training Strategies

A key innovation in Nebula-I is the modularity of its training strategies, particularly the "Teacher-Student" cloud model. In pre-training scenarios like ERNIE-M, different language-specific generators act as "multi-teachers" distributed across clusters, feeding a central discriminator. This allows the framework to leverage fragmented resources effectively.

Cross-cluster pre-training architecture for ERNIE-M, illustrating the separation of generators and discriminators across low-bandwidth links.

Furthermore, Nebula-I supports "hot-starting," allowing training to begin on a high-bandwidth local cluster and resume on a distributed WAN setup without compromising model convergence. Load balancing is achieved by pairing multiple slower nodes (e.g., NPUs) with fewer fast nodes (e.g., GPUs) to maintain a consistent training pace.

Experimental Results

The researchers validated Nebula-I using two primary NLP scenarios: the pre-training of ERNIE-M Extra and machine translation tasks (ABNet-Cloud).

  • State-of-the-Art Performance: ERNIE-M Extra (550M parameters) achieved a new SoTA average score of 82.2 on the XNLI (Cross-lingual Natural Language Inference) benchmark, outperforming baselines like XLM-R.
  • Training Efficiency: In machine translation tasks using the IWSLT’14 datasets, Nebula-I achieved a 3x speedup compared to standard methods by utilizing SVD and INT8 compression. Inter-cluster training throughput reached 85% of the speed of local training in homogeneous setups.

Conclusion and Future Work

Nebula-I demonstrates that high-performance large-scale training is possible even over low-bandwidth WANs. While currently focused on NLP, future work aims to extend the framework to Computer Vision (CV), implement more advanced zero-trust security protocols, and automate the resource allocation process between heterogeneous hardware clusters.

Summary updated

BibTeX
@misc{xiang2022nebula,
  author = {Yang Xiang and Zhihua Wu and Weibao Gong and Siyu Ding and Xianjie Mo and Yuang Liu and Shuohuan Wang and Peng Liu and Yongshuai Hou and Long Li and Bin Wang and Shaohuai Shi and Yaqian Han and Yue Yu and Ge Li and Yu Sun and Yanjun Ma and Dianhai Yu},
  title = {{Nebula-I: A General Framework for Collaboratively Training Deep Learning Models on Low-Bandwidth Cloud Clusters}},
  year = {2022},
  eprint = {2205.09470},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2205.09470},
}
Figure