AMDP: Asynchronous Multi-Directional Pipeline Parallelism for Large-Scale Models Training
Ling Chen 1 2 Houming Wu 1 2 Wenjie Yu 1 2
arXiv:2605.29664v1 [cs.DC] 28 May 2026
Abstract
GPU 0
0
GPU 1
1 0
GPU 2
Pipeline parallelism is essential for large-scale model training, but existing asynchronous approaches often degrade convergence due to parameter mismatch between forward and backward passes. We propose Asynchronous MultiDirectional Pipeline parallelism (AMDP) to mitigate this issue while sustaining high utilization. AMDP limits the first stage of each pipeline to process at most two minibatches before backpropagation, bounding the number of parameter updates between forward and backward passes. To alleviate the resulting pipeline bubbles, AMDP launches multiple concurrent pipelines and adapts their number according to pipeline depth. In addition, AMDP accumulates gradients across minibatches and applies them in a single update, ensuring that only a bounded number of minibatches experience parameter mismatch, limited to within one optimization step. Experiments on GPT- and BERT-style models demonstrate that AMDP significantly accelerates training while preserving convergence.
2 2
0
GPU 3
1 0
i
3
1 0
0
i-th microbatch forward
i
4
5
3
2
2
3
2
3
2
2
1
1
1
1
3
2
1
0
0
4
3
3
4
3
4
i-th microbatch backward
pipeline bubble
(a) Synchronous pipeline parallelism GPU 0
0
GPU 1
1 0
GPU 2
2 2
0
GPU 3
1 0
i
3
1 0
0 1
i-th minibatch forward
0
0 2 2 i
1
1
1
1
4
3 3 2
5
4 2 3
2
2 4 3
6
5 3 4
3
3 5 4
7
6 4 5
4
4 6 5
8
7
5
5 6
7 6
6 7
i-th minibatch backward
(b) Asynchronous pipeline parallelism Figure 1. Comparison of synchronous and asynchronous pipeline parallelism, with four model stages assigned to four devices. The backward pass duration is assumed to be twice that of the forward pass.
would take an estimated 288 years (Narayanan et al., 2021b). These prohibitive costs necessitate distributed parallel training across multi-GPU clusters. Pipeline parallelism (Guan et al., 2024) has emerged as a key strategy for distributed parallel training. By partitioning a model into sequential stages, each executed on a different GPU, pipeline parallelism reduces per-device memory requirements and increases throughput. Depending on how parameters are updated, pipeline parallelism can be classified into synchronous and asynchronous schemes. In synchronous pipeline parallelism (Huang et al., 2019), a minibatch is split into microbatches. Gradients from all microbatches are accumulated and applied only after all backward passes complete, and the next iteration begins once all parameters are updated. As shown in Figure 1a, this scheme is straightforward but leads to pipeline bubbles—idle periods caused by inter-stage dependencies.
1. Introduction Since the introduction of Transformers (Vaswani et al., 2017), scaling model size has become a primary driver of progress in deep learning, enabling remarkable advances across diverse applications. Larger models consistently deliver stronger performance, but their training poses formidable challenges. For example, GPT-3 (Brown et al., 2020) contains 175B parameters, requiring about 350 GB of memory in 16-bit precision. Even disregarding memory constraints, training GPT-3 on a single NVIDIA V100 GPU
Asynchronous pipeline parallelism (Narayanan et al., 2019) continuously feeds minibatches into the pipeline, updating parameters immediately after each backward pass. As shown in Figure 1b, this design eliminates bubbles once steady state is reached, but sacrifices convergence because parameter updates may occur between the forward and backward passes of a minibatch, resulting in parameter mismatch. To mitigate this mismatch, two techniques have been introduced: parameter stash and parameter prediction. Parameter stash (Narayanan et al., 2019) preserves the parameters used
1 State Key Laboratory of Blockchain and Data Security, Zhejiang University, Hangzhou, China 2 College of Computer Science and Technology, Zhejiang University, Hangzhou, China. Correspondence to: Ling Chen <[email protected]>.
Proceedings of the 43 rd International Conference on Machine Learning, Seoul, South Korea. PMLR 306, 2026. Copyright 2026 by the author(s).
1
AMDP: Asynchronous Multi-Directional Pipeline Parallelism
in the forward pass and reuses them in the corresponding backward pass to enforce consistency. Parameter prediction (Chen et al., 2018; Ajanthan et al., 2025) instead forecasts future parameter values using momentum-based optimizers (Kingma, 2014), thereby reducing mismatch by aligning computations with predicted parameters.
state-of-the-art baselines, with marginal additional memory overhead, significantly accelerating largescale language model training.
2. Related Work Synchronous Pipeline Parallelism. Synchronous pipeline methods launch a new minibatch only after completing the previous update. GPipe (Huang et al., 2019) firstly proposes microbatch-based pipeline training with an “all-forwardthen-all-backward” schedule, achieving stable convergence but incurring high activation memory overhead. DAPPLE (Fan et al., 2021) reduces memory cost by adopting a 1F1B schedule that releases activations earlier, and Interleaved 1F1B (Narayanan et al., 2021b) further decreases bubble size via finer stage partitioning. Chimera (Li & Hoefler, 2021) and BitPipe (Wu et al., 2024) improve utilization by running two counter-directed pipelines whose idle periods overlap, and zero-bubble pipeline parallelism (ZB-V) (Qi et al., 2024) theoretically eliminates bubbles by splitting backward computation. Recent weight-passing approaches (e.g. WeiPipe (Lin et al., 2025) and TawPipe (Wu & Chen, 2026)) reduce communication volume by transmitting model weights instead of activations, which can substantially improve bandwidth efficiency in long-context large models training. Despite these advances, synchronous schemes remain fundamentally constrained by sequential dependencies, leading to persistent bubbles and limited throughput.
Existing asynchronous pipeline parallelism approaches predominantly adopt a 1F1B schedule, where each device alternates between one forward and one backward passes. To fully eliminate pipeline bubbles, these approaches continuously read minibatches into the pipeline. However, this design causes the severity of parameter mismatch to increase with pipeline depth, ultimately degrading convergence. Parameter stash mitigates mismatch but introduces delayed gradients, while parameter prediction avoids delay but relies on simplified forecasting that often deviates from true parameter values. To address the aforementioned issues, we propose Asynchronous Multi-Directional Pipeline Parallelism (AMDP). AMDP builds upon the bidirectional scheduling concept introduced in Chimera (Li & Hoefler, 2021) for synchronous training, but extends it to a fully asynchronous and multi-directional setting with three components absent in Chimera: 1) a structural mismatch-control mechanism that bounds forward–backward inconsistency to one step; 2) a gradient-accumulation update scheme that confines mismatch effects to minibatches within a window sized by the pipeline depth; and 3) a zero-redundancy optimizer (ZeRO) that efficiently manages the memory overhead of concurrent pipelines. The contributions of AMDP are summarized as follows:
Asynchronous Pipeline Parallelism. Asynchronous methods remove bubbles by updating parameters immediately after each backward pass, at the cost of parameter mismatch. PipeDream (Narayanan et al., 2019) addresses this via parameter stashing, caching forward-pass weights for reuse during backpropagation; PipeDream-2BW (Narayanan et al., 2021a) reduces stash memory by maintaining two parameter versions per device. These approaches avoid mismatch but introduce delayed gradients. Parameter prediction offers an alternative: SpecTrain (Chen et al., 2018) predicts future parameters via momentum states, and XPipe (Guan et al., 2019) improves accuracy using Adam-based prediction. Recent work vNAG (Ajanthan et al., 2025) applies momentumbased extrapolation to alleviate staleness in PipeDream-like pipelines. Prediction-based methods mitigate delay but remain limited by the simplicity of their forecasting rules, which can produce large deviations between predicted and actual weights.
• We propose an asynchronous multi-directional pipeline schedule with a one-step mismatch bound, which limits stage 0 of each pipeline to read only two minibatches before initiating the first backward pass and instantiates multiple concurrent 1F1B pipelines with the optimal number determined analytically based on the pipeline depth. • We introduce a gradient accumulation update strategy that aggregates gradients across multiple minibatches and applies them in a single update. This reduces communication frequency and ensures that parameter mismatch is bounded to at most one step, affecting only a number of minibatches equal to the pipeline depth. • We incorporate ZeRO into the multi-directional schedule, ensuring that only one replica of each stage maintains the full optimizer state. This eliminates the redundant memory cost of naive pipeline replication while preserving efficiency.
Table 1 summarizes the trade-offs of representative pipeline approaches in terms of bubble ratio, memory overhead, convergence stability, and additional costs in memory, computation, and communication. Synchronous approaches (e.g., DAPPLE, Inter-1F1B, Chimera, and ZB-V) provide stable convergence but incur either high bubble ratios or substantial memory usage. Asynchronous approaches (e.g.,
• Extensive experiments demonstrate that AMDP achieves up to 17% higher throughput compared to 2
AMDP: Asynchronous Multi-Directional Pipeline Parallelism Table 1. Comparison of representative pipeline parallelism approaches. d denotes the pipeline depth, n denotes the number of microbatches per minibatch, and Mθ /Ma indicate the weight/activation memory footprint of a single stage. Approach DAPPLE Inter-1F1B Chimera ZB-V PipeDream PipeDream-2BW XPipe vNAG AMDP (ours)
Bubble Ratio
Weight Memory
Peak Activation Memory
Extra Mem., Comp., and Comm.
Convergence
(d − 1)/(n + d − 1) (d − 1)/(2n + d − 1) (d − 2)/(2n + d − 2) ≈ 0% ≈ 0% ≈ 0% ≈ 0% ≈ 0% ≈ 0%
Mθ Mθ 2Mθ Mθ [Mθ , d · Mθ ] 2Mθ Mθ [Mθ , d · Mθ ] Mθ
n · Ma d · Ma d · Ma (2d − 1) · Ma d · Ma d · Ma d · Ma d · Ma d · Ma
[×, ×, ×] [✓, ×, ✓] [✓, ×, ✓] [×, ✓, ×] [✓, ×, ×] [✓, ×, ×] [✓, ✓, ×] [✓, ×, ×] [✓, ×, ✓]
Stable Stable Stable Stable Unstable Moderate Moderate Moderate Near-stable
PipeDream, PipeDream-2BW, XPipe, and vNAG) eliminate bubbles but suffer from elevated memory requirements and unstable convergence due to parameter mismatch.
optimizer that minimizes redundant memory usage across pipelines.
Optimization and Memory Techniques. Gradient accumulation (Hermans et al., 2017; Li et al., 2020) is widely used in large-scale model training, particularly under pipeline parallelism, where gradients from multiple microbatches are aggregated into a single update. This enables large-batch training with manageable per-device memory, though under synchronous schedules it can exacerbate pipeline bubbles and reduce efficiency. While asynchronous PipeDream-style methods may increase the update interval to slow down parameter changes, this strategy does not impose any structural bound on forward–backward mismatch, which typically still grows with pipeline depth.
3.1. Parameter Mismatch Control In asynchronous pipeline parallelism, a minibatch always performs its forward pass at a stage before receiving the corresponding backward pass. As a result, the parameter mismatch at a given stage (i.e., the number of parameter updates occurring between a minibatch’s forward and backward passes) equals the number of minibatches that have completed forward passes but have not yet started backward passes when the current minibatch enters. In a steady 1F1B schedule, each stage issues a new forward only after completing the previous backward, so the mismatch is exactly “the number of minibatches read before the first backward minus one.”
Memory-reduction methods such as ZeRO (Rajbhandari et al., 2020; Zhao et al., 2023) partition optimizer states, gradients, and parameters across devices, substantially lowering memory overhead while preserving correctness. AMDP leverages these techniques in an asynchronous, multi-directional setting: gradient accumulation suppresses mismatch within each depth-sized window, and ZeRO eliminates redundant optimizer-state replication across pipelines. Together, these components allow AMDP to achieve both high throughput and near-stable convergence.
This quantity is determined by two structural limits. First, to maintain bubble-free execution during backward propagation, each stage must execute one additional forward relative to its successor before observing its first backward. Hence stage i can read at most d − i minibatches in this warm-up phase, where d is the pipeline depth. Second, the number of minibatches read at any stage cannot exceed the number read by stage 0, denoted by n. Combining both constraints yields the following structural bound: Lemma 3.1 (Mismatch Bound). For any stage i ∈ {0, . . . , d − 1}, the parameter mismatch satisfies:
3. Methodology As highlighted in Table 1, the limitations of existing pipeline parallelism approaches motivate the design of AMDP, an asynchronous multi-directional pipeline parallelism framework that addresses efficiency, memory usage, and convergence stability. AMDP comprises four interrelated components: (1) a parameter mismatch control strategy that structurally limits inconsistencies between forward and backward passes, (2) a multi-directional scheduling scheme that maximizes hardware utilization, (3) a gradient accumulation update strategy that reduces communication overhead and bounds parameter mismatch, and (4) a zero-redundancy
mismatch(i) = min(n, d − i) − 1.
(1)
This simple expression explains the instability of existing asynchronous pipelines. When prior work sets n = d to eliminate bubbles, the mismatch becomes mismatch(i) = d − i − 1, which grows linearly with depth and results in increasingly stale gradients. Figure 2 and Figure 1b illustrate this effect. With n = 1, mismatch is zero; with n = 2, mismatch becomes one step (e.g., a single update from minibatch 2 occurs between the 3
AMDP: Asynchronous Multi-Directional Pipeline Parallelism GPU 0
0
GPU 1
0 0
GPU 2
1
1
0 0
GPU 3
1
0 0
to ∆t+1 = ∆t − η g(θt−1 ) − g(θtsync ) . Combining the bounded delay perturbation with smoothness yields a recursion implying E ∥∆t ∥2 = O(η 2 ). The Lipschitz continuity of ∇F then gives E ∥∇F (θt ) − ∇F (θtsync )∥2 = O(η 2 ). (4)
2
1 1
1
0
1
1
(a) Read 1 minibatch GPU 0
0
GPU 1
1 0
GPU 2
0 1
0
0
GPU 3
1 0
0
2
1
1
0
2 3
1
1
3
2
2
2
3
1
2
2
4 3
2
3
3
3
(b) Read 2 minibatches GPU 0 GPU 1 GPU 2 GPU 3
0
1 0
2
0
1
2
0
1 0
0
0
0 1
1
1
2 1
3
1 2
3 2
2
4 2
2
5
3
4
5
3
4 3
3
3
3 4
4
5 4
Combining this perturbation bound with the standard synchronous SGD convergence result completes the proof. An extension to Adam-type optimizers is provided in Appendix B.3.
6
4 5
5 5
(c) Read 3 minibatches
3.2. Multi-Directional Scheduling
Figure 2. Parameter mismatch at stage 0 increases linearly with the number of minibatches read before the first backward pass. The case with the number set to 4 is shown in Figure 1b.
Reducing the number of minibatches read by stage 0 improves convergence but induces significant bubbles, as shown in Figure 2. AMDP avoids this overhead by employing multi-directional scheduling: multiple pipelines with complementary directions execute in parallel and fill one another’s idle periods. Figure 3 shows a 4-GPU example with two counter-directed pipelines, each GPU hosting two stages. Pipelines process distinct minibatches independently, and GPUs holding the same stage synchronize gradients via all-reduce before applying updates.
forward and backward of minibatch 3 at stage 0). As n increases, mismatch grows proportionally. To mitigate mismatch, one would ideally minimize n. However, using n = 1 requires launching many parallel pipelines to avoid large bubbles, substantially increasing memory usage. Instead, AMDP enforces n = 2 by design. From Lemma 1, this guarantees mismatch(i) ≤ 1 for all stages i, regardless of pipeline depth, multi-node deployment, or multi-directional stage placement (details provided in the Appendix B). A fixed one-step mismatch has important convergence implications:
AMDP constructs multi-directional schedules in three steps: (i) determining the number of pipelines according to pipeline depth, (ii) assigning their directions while avoiding device conflicts, and (iii) filling residual bubbles. A single bidirectional schedule is insufficient for large d, so the number of Theorem 3.2 (Near-Synchronous Convergence of AMDP). pipelines must scale inversely with the active ratio r—the Let F be an L-smooth objective bounded below by F ⋆ . fraction of time a single pipeline keeps a GPU busy. If stage Assume stochastic gradients satisfy E[g | θ ] = ∇F (θ ) t t t 0 reads only one minibatch, the pipeline is nearly serialized and E ∥gt − ∇F (θt )∥2 ≤ σ 2 . Suppose AMDP en(r = 1/d). With two minibatches, the number of concurforces a strict one-step mismatch bound τ (t) ≤ 1 for all t, rently active GPUs doubles while per-GPU work remains and choose a stepsize satisfying ηL ≤ 1. Then the AMDP unchanged, giving r = 2/d. Since AMDP fixes stage 0 to iterates satisfy read two minibatches, setting the number of pipelines to T −1 ⋆ X d/2 fully eliminates bubbles. Figure 4 shows this scheme 1 2(F (θ0 ) − F ) E ∥∇F (θt )∥2 ≤ + ηLσ 2 + O(η 2 ), for d = 8. T ηT t=0
(2)
(3)
Pipeline directions follow the Chimera-style mapping (Li & Hoefler, 2021): for pipeline j, if j is even, stage i maps to GPU (2j + i) mod d; if j is odd, to (2j − i + d + 1) mod d. For example, in Figure 4, pipeline 0 traverses GPUs [0, 1, 2, . . . , 7] while pipeline 1 traverses them in reverse order as [3, 2, 1, 0, 7, 6, 5, 4]. However, unlike Chimera, AMDP must handle the asymmetry between forward and backward costs, which can create conflicts when multiple pipelines submit work to the same GPU. AMDP resolves these via a simple FIFO rule: the earliest operation proceeds and the later one is deferred (e.g., the conflict between the two backward passes on GPU 2 in Figure 3).
Define the discrepancy between AMDP and synchronous SGD iterates ∆t = θt − θtsync that evolves according
After direction assignment, each block of d minibatches contains three types of bubbles. The middle bubble arises from inherent forward/backward imbalance and cannot be
preserving the convergence behavior of synchronous SGD up to a second-order perturbation. Proof. We follow the standard smooth nonconvex SGD analysis (Bertsekas & Tsitsiklis, 1989; Tsitsiklis, 1994; Lian et al., 2015; Zheng et al., 2017) while incorporating the bounded AMDP mismatch. Since AMDP guarantees τ (t) ≤ 1, the stale gradient is evaluated on parameters differing by at most one optimization step. By L-smoothness, ∥∇F (θt−1 ) − ∇F (θt )∥ ≤ L∥θt−1 − θt ∥ = O(η).
4
AMDP: Asynchronous Multi-Directional Pipeline Parallelism 0
2
0
2
0
2
1
0
1
2
3
1
1
0
3
2
3
0
3
3
0
1
0
3
2
2
0
1
2
3
2
1
GPU 0
Stage 0
GPU 1
Stage 1
GPU 2
Stage 2
GPU 3
Stage 3
GPU 0
Stage 3
GPU 1
Stage 2
GPU 2
Stage 1
GPU 3
Stage 0
1
GPU 0
Stage 0
Stage 3
2
1
3
0
7
4
8 10
GPU 1
Stage 1
Stage 2
0
1
2
3
1
0
3
2
4
5
6
7
5
4
7
6
8
9
GPU 2
Stage 2
Stage 1
1
0
3
2
0
1
2
3
5
4
7
6
4
5
6
7
9
8
GPU 3
Stage 3
Stage 0
3
0
2
1
6
5
9 11
i
0
2
0
0
2 0
0
1
1
0 2
3
1
2 2
3
1
2 1
3
4
1
3
3
1
3
3 0
1
1 1
3
0
2
3
i i-th minibatch forward on pipeline 0/1
i
6
5
7
i
2
5
7
6
5
4
5
6
7
5
4
7
6
7
4
4
5
7
5 4
0
2
5
3
4
4
3
7
4
5
4
7
6
4
5
6
7
6
5
6
6
6
7 6 ...
7
pipeline bubble
i-th minibatch backward on pipeline 0/1
Figure 3. Illustration of AMDP bidirectional schedule, with 4 model stages and 4 pipeline devices deployed. Both trailing bubbles from minibatches 0–3 and leading bubbles for minibatches 4–6 are eliminated.
2
1
6
5
0
8 12
4
GPU 0
7
6
1
0
5
4
8 9
GPU 1
2
3
6
7
0
1
4
5
9 8
6
3
0
7
4
1
9 13
5
5
0
3
4
7
2
10 14
6
1
0
5
4
3
2
7
6
10 11
0
1
4
5
2
3
6
7
11 10
4
4
1
2
5
6
3
11 15
7
GPU 0
i
i
i-th minibatch backward on pipeline 0~3
GPU 1
Stage 4
Stage 7
Stage 2
Stage 5
Stage 6
GPU 2
Stage 2
Stage 1
Stage 6
Stage 5
GPU 3
Stage 3
Stage 0
Stage 7
Stage 4
1
5 0 3 4 7 2
2
6
GPU 4
Stage 4
Stage 7
Stage 0
Stage 3
2
6 3 0 7 4 1
1
5
GPU 5
Stage 5
Stage 6
Stage 1
Stage 2
2 3 6 7 0 1 4 5
GPU 6
Stage 6
Stage 5
Stage 2
Stage 1
3 2 7 6 1 0 5 4
GPU 7
Stage 7
Stage 4
Stage 3
Stage 0
i
3
2
Stage 3
Stage 1
i
4 1 2 5 6 3
7
Stage 0
GPU 1
i
0
3
GPU 0
7
0 1 4 5 2 3 6 7 1 0 5 4 3 2 7 6
3
7 2 1 6 5 0
i i-th minibatch forward on pipeline 0~3
i
0 i
...
8 10
6
6
8
GPU 2
7
9
GPU 3
9 11
i
...
i
9
9
11 U
11
8
12 14
9
8
11
10
8
9
10
11
10 U
10
13
13 15
9 10 11 U 8 11 10 U 7
8
8
i
i-th minibatch forward on pipeline 0/1
i
10
13
13
12 13 14 15 U ... ... 13 12 15 14 U 11
12
12
i-th minibatch backward on pipeline 0/1
(a) d=4, threshold=4
Figure 4. Illustration of AMDP multi-directional scheduling for d=8. Four (i.e., d/2) pipelines with distinct directions is sufficient to filling bubbles.
8 10
6
6
8
GPU 2
7
9
GPU 3
9 11
...
9
9
9 10 11 U 8 11 10 U 7
pipeline bubble
8
8
11 U
11
8
12 14
9
8
11
10
8
9
10
11
10 U
10
13
13 15
10
13
13
12 13 14 15 ... ... ... 13 12 15 14 11
12
12
U gradient synchronization and parameter update
(b) d=4, threshold=8 Figure 5. Gradient accumulation update strategy in AMDP. (a) Each minibatch experiences a one-step parameter mismatch. (b) Only the first d minibatches in the window incur mismatch.
removed. It becomes dominant only when the imbalance is extreme or at very large d. The leading and trailing bubbles are scheduling gaps and are eliminated via controlled minibatch preloading. At the boundary of each d-minibatch segment, AMDP injects additional forward passes to fill idle slots. The number of minibatches inserted equals the floor of the backward-to-forward cost ratio. For instance, in Figure 3 (top-right), preloading minibatches 4 and 6 removes both the trailing bubble of minibatches 0˜3 and the leading bubble of minibatches 4˜6, yielding balanced and efficient pipeline execution.
backward pass, gradients are accumulated across multiple minibatches until a predefined threshold is reached. At that point, the accumulated gradients are reduced across devices and applied during the next bubble. This design lowers communication frequency, thereby mitigating communication overhead. Furthermore, it ensures that only the first d minibatches experience a bounded one-step mismatch per update, which enhances training convergence. In practice, the threshold is typically set much larger than d, rendering the effect of mismatch negligible. This makes AMDP fundamentally different from PipeDream-style methods, where mismatch typically grows with the number of pipeline stages.
3.3. Gradient Accumulation Updates Naively applying the asynchronous multi-directional schedule introduces two drawbacks: (i) an all-reduce after every backward pass, incurring heavy communication overhead, and (ii) disruption of the 1F1B schedule by bubble-filling, which can lead to multi-step mismatches. For example, as shown in Figure 3, two parameter updates (from minibatch 2 and minibatch 4) occur between the forward and backward passes of minibatch 6 on GPU 0.
Figure 5 illustrates the gradient accumulation update strategy in AMDP. For clarity, non-essential computation steps are omitted to highlight the effect of accumulation threshold on parameter updates. When the threshold equals the pipeline depth (Figure 5a), each minibatch is subject to a one-step parameter mismatch. With a larger threshold (Figure 5b), only the first d minibatches in each accumulation window are exposed to mismatch, while subsequent
To address these issues, AMDP introduces a gradient accumulation update strategy. Instead of updating after every 5
AMDP: Asynchronous Multi-Directional Pipeline Parallelism Table 2. Configurations of benchmark models.
minibatches use consistent parameters. For example, when accumulating gradients from minibatches 8 to 15, parameter updates occur between the forward and backward passes only for minibatches 8˜11. 3.4. Zero Redundancy Optimizer Deploying multiple pipelines increases memory usage, as each device must store parameters, gradients, and optimizer states (e.g., momentum and variance in Adam (Kingma, 2014; Loshchilov, 2017)) for multiple stages. To reduce optimizer-state memory usage without incurring the latency and contention of CPU offloading, AMDP incorporates ZeRO (Rajbhandari et al., 2020). In our design, GPU i is solely responsible for updating parameters of stage i, and the optimizer for stage i resides exclusively on GPU i. During updates, GPUs holding replicas of stage i send their gradients to GPU i for reduction, replacing the all-reduce used in naive designs; once the update is applied, the new parameters are broadcast back to all replicas. This scheme reduces optimizer state memory on each GPU to 2/d of the naive requirement, scaling inversely with the number of pipelines. Furthermore, the communication pattern becomes a reduce followed by a broadcast, which has the same total cost as all-reduce and therefore introduces no additional communication overhead. Synchronization occurs only once per update and does not grow with the number of pipelines.
GPT-style model
BERT-style model
# Layers # Attention Heads Hidden Size Sequence Length # Parameters
48 25 1600 1024 1557686400
32 32 1600 1024 1036179458
use the codes released by the authors. AMDP, Chimera, and other asynchronous approaches are implemented by us on top of Megatron-LM. The sourse code is released on GitHub2 . Models and Datasets. We test two representative architectures: a GPT-style autoregressive language model and a BERT-style bidirectional encoder, with detailed configurations in Table 2. The GPT-style model is trained on OpenWebText (Peterson et al., 2019), while the BERT-style model is trained on Wikipedia (Devlin et al., 2019). Metrics. We evaluate the performance of each approach using three key metrics: throughput, memory footprint, and training convergence. Throughput, defined as the number of tokens processed per second, reflects the computational efficiency and hardware utilization of each approach. Memory footprint is assessed in terms of both its distribution and peak consumption across devices. The training convergence is assessed by monitoring the training loss against both the number of iterations and the wall-clock time, along with the validation perplexity.
4. Experiments 4.1. Experimental Setup
Training Settings. Unless otherwise stated, we set the microbatch size to 4 for all approaches. All experiments employ AdamW (Loshchilov, 2017) with mixed-precision training (NVIDIA, 2019). Learning rates and other hyperparameters follow standard configurations commonly used in in GPT/BERT training to ensure fair comparability. Because the author-released implementation of vNAG does not run under our model settings, we adapt AMDP to match their configuration and report the results in Appendix C.
Hardware and Software. All experiments are conducted on Linux servers running Ubuntu 20.04 (kernel 5.15) equipped with 8 NVIDIA A800 80GB GPUs interconnected via NVLink 3.0 (400 GB/s), dual-socket 128-core CPUs, and 1 TB DDR4 memory. All methods use the NVIDIA PyTorch container with tag 24.03-py31 , ensuring a consistent software environment across baselines. A detailed description of the servers are provided in Appendix A. Baselines and Implementation. We evaluate AMDP against both synchronous and asynchronous baselines: synchronous approaches include DAPPLE (Fan et al., 2021), interleaved 1F1B (Inter-1F1B) (Narayanan et al., 2021b), Chimera (Li & Hoefler, 2021), and zero bubble pipeline parallelism (ZB-V) (Qi et al., 2024); asynchronous approaches include PipeDream (Narayanan et al., 2019), XPipe (Guan et al., 2019), PipeDream-2BW (Narayanan et al., 2021a), and vNAG (Ajanthan et al., 2025). For DAPPLE and Inter-1F1B, we adopt the open source implementation from Megatron-LM (NVIDIA, 2024); for ZB-V and vNAG, we 1
Configuration
4.2. Main Results Throughput. Table 3 summarizes throughput of training the GPT- and BERT-style models on 8 GPUs under varying pipeline depths d and update batch sizes b. Key findings are: (1) AMDP consistently achieves the highest throughput across both models and all configurations, outperforming PipeDream-2BW by up to 17%. On GPT-style models, AMDP yields relative gains of 1.01–1.17×, while on BERTstyle models, gains range from 1.02–1.13×. These improvements arise because language models exhibit uneven stage
nvcr.io/nvidia/pytorch:24.03-py3
2
6
https://github.com/Vinsmoke86/AMDP
AMDP: Asynchronous Multi-Directional Pipeline Parallelism Table 3. Throughput (in ktokens/s) of training the GPT- and BERT-style models on 8 GPUs with NVLink connection. The best and second-best results are bolded and underlined. d denotes the pipeline depth and b indicates the number of samples processed per update. Model
d
b
DAPPLE
Inter-1F1B
Chimera
ZB-V
PipeDream
XPipe
PipeDream-2BW
AMDP
GPT -style
4 4 8 8
16 64 32 128
25.2 36.3 44.0 61.9
35.4 39.8 57.0 67.5
25.3 30.1 46.3 56.0
26.3 30.9 45.2 54.4
34.5 34.5 61.0 61.0
38.5 40.7 66.0 69.7
38.6 41.0 70.3 71.6
39.1 42.1 75.5 83.7
BERT -style
4 4 8 8
16 64 32 128
26.0 37.1 45.2 64.8
34.7 41.0 37.5 58.8
29.3 34.5 52.8 63.8
28.9 33.8 40.4 54.1
37.2 37.2 65.0 65.0
37.8 41.7 73.6 75.6
41.0 42.9 74.3 75.8
41.6 43.6 78.5 86.1