arXiv:2610.22035cs.DCOct 2026

Manuscript Offprint

arXiv:2610.22035

ETH: Data-Balanced Heterogeneous Pipeline Parallelism for Training Large Models

Mianjie Yu, Zhongmin Zhao, Zizhao Mo, Jianxiong Liao, Wenxuan Li, Yulin Qiao, Huanle Xu, Wenquan Yang, Yongqiang Yang, Zeren Li, Ruifeng Tang, Chengzhong Xu

Abstract

Current heterogeneity-aware training systems for large models balance workloads by assigning unequal numbers of layers across pipeline stages—a strategy aimed at equalizing execution time through a unique pipeline configuration. However, this approach fails to address critical memory constraints and suffers from inherently coarse balancing granularity.

In this paper, we propose Heterogeneous Pipeline Parallelism (HPP), a novel approach enabling efficient and fine-grained data balance across heterogeneous pipelines. To address HPP's key challenges—prohibitive search overhead for optimal configurations and high communication overhead from asymmetric All-Reduce—we design the ETH training system. ETH employs a hierarchical workload balance framework that jointly optimizes balance across heterogeneous pipelines and within individual pipeline stages. To mitigate asymmetric communication costs, ETH implements blockwise gradient aggregation. Furthermore, it integrates specialized optimizations that dramatically reduce HPP configuration search overhead. Evaluations demonstrate ETH achieves up to 2×2\times training speedup while reducing configuration generation overhead by up to 56×56\times compared to state-of-the-art systems. The code is available at https://github.com/YuMJie/ETH.

1 Introduction

Training large-scale models [1–3, 12, 14, 40, 58] on massive datasets requires extensive parallelism across numerous accelerators. Selecting optimal parallelism configurations is critical, as distribution strategies significantly impact training efficiency. Meanwhile, accelerator hardware advances rapidly but at increasing cost [44], creating economic and practical challenges: the exclusive use of cutting-edge accelerators leaves older hardware underutilized, inflating costs and reducing resource efficiency. Supply constraints further limit the availability of the latest accelerators for large-scale training [49]. Consequently, effectively leveraging heterogeneous accelerators has become essential for scalable and cost-efficient large model training.

Several heterogeneity-aware training systems have been proposed, including SDPipe [29], AMP [25], Asteroid [59], HexiScale [57], and Metis [51]. These systems primarily balance workloads through pipeline parallelism (PP) by assign-

Figure

(a) Layer Balanced Hetero-Stages

(b) Data Balanced Hetero-Pipelines

Figure 1: Layer-balancing versus data-balancing.

ing different numbers of layers to stages while maintaining unique pipeline configurations as demonstrated in Fig. 1(a). Although this approach permits stages to employ distinct parallelization strategies such as tensor parallelism (TP) or data parallelism (DP), our analysis reveals significant device underutilization in heterogeneous clusters. Specifically, computation latency varies substantially across devices—with the slowest device taking up to 1.92×1.92\times longer than others (detailed in § 2.2). This imbalance severely degrades training efficiency, as the synchronized nature of distributed training forces all devices to wait for the slowest one to complete computation.

Our analysis identifies the root cause of device underutilization: workload balancing via layer partitioning inherently struggles with memory and granularity constraints, making an optimal balance across heterogeneous devices difficult to achieve. First, implementing layer balancing—where in more computational layers are allocated to high-power devices to optimize throughput—inevitably increases memory overhead. Ideally, layer balancing achieves optimal resource utilization when the disparity in computational capability across heterogeneous devices aligns with the disparity in their memory capacities. However, recent hardware trends exhibit a pronounced imbalance between the growth of compute and memory: over the past five years, computation power has increased by approximately 16×16\times, whereas memory capacity has grown by less than 5×5\times. This divergence results in a fundamental mismatch between compute capability and memory capacity in modern accelerators. For instance, Ascend 910B2 roughly 1.2×1.2\times higher computational throughput than 910B3 while offering the same memory capacity. As a consequence, conventional layer-balancing strategies fail to fully utilize the computational potential of high-performed but memory-constrained devices, leaving up to 32% of their computation power idle, as demonstrated in § 2.2. Second, the limited

∗^{*}Work done while Zizhao Mo was at the University of Macau.

†^{\dagger}Corresponding authors: Huanle Xu and Chengzhong Xu.

Figure

Figure 2: An example of HPP configuration. HPP not only supports the training configuration with independent pipelines that have different local batch size, micro-batch size, but also supports the unique stage configurations that have different devices, layers and parallelism strategies.

number of model layers leads to inherently coarse-grained workload distribution across devices. For example, training GPT3-13B model requires approximately 64 devices using 8-way pipeline parallelism (PP), where each pipeline stage is assigned only 5 layers. Under such a configuration, adding or removing a single layer changes the per-device workload by 20%. As a result, this coarse-grained layer assignment makes it difficult to achieve fine-grained workload balance, introducing an additional 16% pipeline bubbles in PP (§ 2.2).

Fortunately, we observe that data balancing is more effective than layer balancing for harnessing heterogeneous devices. As illustrated in Fig. 1, by exploiting the large global batch size commonly used in training, data balancing partitions the global batch into uneven local batches across pipelines to achieve finer-grained workload assignment, thereby effectively improving the resource utilization. This approach eliminates the need to align memory capacity with computational throughput across heterogeneous devices, since memory consumption is determined solely by the micro-batch size within each pipeline. To realize this idea, we propose a novel heterogeneous training paradigm—data-balanced heterogeneous pipeline parallelism (HPP), which exposes a broader space of independently configured heterogeneous pipelines and local-batch allocations. This paradigm employs multiple independent, heterogeneous pipelines for data parallel training, with each pipeline assigned distinct local batch sizes to balance workloads and equalize the ending time, as shown in Fig. 2. Within each pipeline, different stages may adopt distinct DP/TP configurations, while workload balance is achieved through appropriate layer assignment.

However, efficiently training large-scale models using HPP presents significant challenges. First, HPP enables independent pipelines to adopt distinct parallelization strategies, introducing a new optimization dimension beyond existing training systems. The combinatorial explosion of heterogeneous-pipeline configurations, coupled with the complexity of balancing stages within each pipeline, yields a extremely huge search space. Exploring this space for optimal configurations incurs prohibitively long optimization times, even exceeding model training duration. Second, HPP introduces asymmetric All-Reduce requirements, which increase communication overhead. Specifically, devices sharing the same model parameters must perform gradient All-Reduce to ensure correct parameter updates. However, these gradients may reside at different memory addresses and have mismatched tensor sizes across devices due to heterogeneous pipeline configurations. Resolving these discrepancies requires additional padding and multi-stream synchronization to ensure address and size consistency, creating a bottleneck that significantly degrades communication performance as illustrated in § 3.

This paper proposes ETH, a heterogeneity-aware system built upon HPP with high efficiency on heterogeneous clusters. ETH incorporates a joint workload balancing framework that optimizes configurations at two levels: dynamically adjusting local batch sizes across pipelines while rebalancing stage workloads within each pipeline using these updated batch sizes to derive optimal configurations. To minimize communication overhead, ETH implements block-wise gradient aggregation, eliminating address/size inconsistencies through gradient partitioning and combining, while merging gradients within communication groups for optimized stream scheduling. For configuration search acceleration, ETH employs pipeline caching to avoid redundant computations, throughput prediction to early skip searching low-performance device groups, priority-based search ordering to evaluate high-throughput candidate device groups first, and dynamic programming to reduce device group combinations.

We implement ETH by extending Megatron-LM [45]—and conduct comprehensive experiments across diverse accelerators and scales. Our evaluation shows that ETH achieves up to 2×2\times faster training and reduces the configuration generation time by up to 56×56\times compared to existing training systems.

References (56)