ConceptioArchivearXiv CS
arXiv CSopen access

AMDP: Asynchronous Multi-Directional Pipeline Parallelism for Large-Scale Models Training

Unknown · 2026 · arxiv_cs
arXiv CS · Papers · License: Open Access · 2026
Open Source ↗Direct PDF ↓
clouddistributedcomputingparallelcomputing
distributed computing, parallel computing, cloud

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



0HPRU\)RRWSULQW 0L%

0HPRU\)RRWSULQW 0L%

    '$33/( ,QWHU)% 33R33  6& 

&KLPHUD 6& 

  

=%9 3LSH'UHDP ;3LSH 3LSH'UHDP%: $0'3 ,&/5  6263  &R55  ,&0/  2XUV

'$33/( ,QWHU)% 33R33  6& 

  

=%9 3LSH'UHDP ;3LSH 3LSH'UHDP%: $0'3 ,&/5  6263  &R55  ,&0/  2XUV

(b) Training GPT-style model with d=8 0HPRU\)RRWSULQW 0L%

0HPRU\)RRWSULQW 0L%

(a) Training GPT-style model with d=4

&KLPHUD 6& 



   

'$33/( ,QWHU)% 33R33  6& 

&KLPHUD 6& 

=%9 3LSH'UHDP ;3LSH 3LSH'UHDP%: $0'3 ,&/5  6263  &R55  ,&0/  2XUV

'$33/( ,QWHU)% 33R33  6& 

(c) Training BERT-style model with d=4

&KLPHUD 6& 

=%9 3LSH'UHDP ;3LSH 3LSH'UHDP%: $0'3 ,&/5  6263  &R55  ,&0/  2XUV

(d) Training BERT-style model with d=8

Figure 6. Memory footprint comparison. Table 4. Throughput of training GPT-style model on 16 GPUs with NVLink and InfiniBand connections. The best and second-best results are bolded and underlined

partitioning (e.g., large embeddings in first/last stages), creating imbalance-induced bubbles that AMDP mitigates via multi-directional scheduling, reducing bubble time to 2/d. (2) The relative advantage of AMDP grows with pipeline depth and update batch size. Larger d exacerbates stage imbalance, while larger b reduces update frequency, both amplifying AMDP’s efficiency. (3) Among asynchronous baselines, PipeDream-2BW delivers the strongest throughput, consistently outperforming XPipe and PipeDream. This aligns with its design of double-buffered updates, which eliminate bubbles without additional computation.

d

b

DAPPLE

Inter-1F1B

XPipe

PipeDream-2BW

AMDP

16 8

128 128

69.4 81.2

64.5 83.0

107.4 136.5

110.1 140.9

124.3 159.8

Memory Footprint. Figure 6 illustrates the memory footprint distribution of training the GPT- and BERT-style models on 8 GPUs under two pipeline depths. We summarize the following observations: (1) AMDP achieves more balanced per-GPU memory utilization, which is a direct consequence of its multi-directional scheduling that spreads the workload more evenly across devices. (2) Inter-1F1B exhibits the largest peak memory footprint, as the first GPU must retain additional activations, amounting to 1.5 microbatches for d = 4 and 3.5 microbatches for d = 8 compared with other approaches. While asynchronous methods generally maintain multiple parameter versions, prior work (Lin et al., 2025) shows that activation storage dominates the memory footprint in modern Transformers. This explains why Inter-

Table 4 further reports results on the GPT-style model using a 2-node (16 GPUs) setup, including both pure pipeline parallelism and hybrid pipeline+data parallelism configurations. Key findings are: (1) AMDP continues to outperform all baselines in these larger distributed settings, demonstrating that its benefits extend beyond single-node execution. (2) The throughput advantage of AMDP becomes increasingly apparent on 16 GPUs, potentially because cross-node communication further amplifies the pipeline inefficiencies of baseline approaches. 7

AMDP: Asynchronous Multi-Directional Pipeline Parallelism





 















 







  ,WHUDWLRQ





,QWHU)% 6&  3LSH'UHDP 6263  ;3LSH &R55  3LSH'UHDP%: ,&0/  $0'3 2XUV

/RVV

 /RVV



6\QFKURQRXV3LSHOLQH 3LSH'UHDP 6263  ;3LSH &R55  3LSH'UHDP%: ,&0/  $0'3 2XUV







(a) Loss versus iterations (GPT)



 













  ,WHUDWLRQ





'$33/( 33R33  3LSH'UHDP 6263  ;3LSH &R55  3LSH'UHDP%: ,&0/  $0'3 2XUV

















 7LPH V

/RVV

/RVV





(b) Loss versus time (GPT)

6\QFKURQRXV3LSHOLQH 3LSH'UHDP 6263  ;3LSH &R55  3LSH'UHDP%: ,&0/  $0'3 2XUV





 



(c) Loss versus iterations (BERT)





  7LPH V









(d) Loss versus time (BERT)

Figure 7. Training convergence comparison. Table 5. Perplexity scores on the validation set at 40k iterations. The best and second-best results are bolded and underlined

1F1B suffers from significantly higher peak memory. (3) AMDP incurs slightly a higher peak memory footprint than PipeDream-2BW and XPipe due to the need to temporarily retain additional parameters and gradients. However, this overhead is minor relative to the improvements in convergence stability and does not hinder scalability to larger clusters.

Model GPT-style BERT-style

PipeDream

XPipe

PipeDream-2BW

DAPPLE

AMDP

109.0 400.1

22.9 184.8

21.7 65.7

2.04 8.3

2.06 1.7

ter 40k iterations, AMDP reaches a training loss of 2.90 on the GPT-style model (vs. 2.88 for Inter-1F1B) and 2.36 on the BERT-style model (matching DAPPLE), confirming the effectiveness of the one-step mismatch bound. (2) AMDP significantly shortens the time to reach target losses: 23% faster than Inter-1F1B on GPT-style model at loss 2.9, and 22% faster than DAPPLE on BERT-style model at loss 2.4. These gains stem from AMDP’s higher throughput while maintaining convergence, highlighting its practical value for efficient large-scale models training.

Training Convergence. Figure 7 presents the convergence results under d = 8, b = 128, and a learning rate of 1.5×10−4 over 40k iterations for all methods. Synchronous approaches (e.g., DAPPLE, Inter-1F1B, Chimera, and ZBV) exhibit nearly identical behavior and are collectively reported as “Synchronous Pipeline”. For the loss–time comparisons, we highlight the best synchronous baseline: Inter1F1B for GPT-style model and DAPPLE for BERT-style model. Importantly, the global batch size b (i.e., samples per update) is kept identical across all methods in each configuration. Consequently, convergence measured in terms of loss versus iterations is equivalent to convergence measured in terms of loss versus processed tokens. This ensures that the comparisons isolate the effect of pipeline scheduling and update semantics, rather than differences in optimization hyperparameters or effective training workload.

For completeness, Table 5 reports the validation perplexity (PPL) at 40k iterations. AMDP achieves PPL values comparable to those of synchronous baselines at similar training losses, indicating that the bounded asynchrony introduced by AMDP does not cause noticeable degradation in model quality or downstream generalization performance. Together with the loss curves in Figure 7, these results show that AMDP not only preserves near-synchronous optimization behavior during training, but also maintains comparable validation performance after convergence. This observation is consistent with the theoretical analysis in Section 3.1, which shows that AMDP introduces only a second-order

Key observations are: (1) AMDP closely tracks the convergence trajectory of synchronous baselines. The small early gap is expected, as the first few iterations accumulate gradients under mild mismatch; once gradients stabilize, AMDP’s higher utilization enables it to catch up rapidly. Af8

AMDP: Asynchronous Multi-Directional Pipeline Parallelism 

Model GPT-style BERT-style

1 (b = 32)

2 (b = 64)

4 (b = 128)

8 (b = 256)

75.5 78.5

78.9 81.0

83.7 86.1

83.3 84.6

0HPRU\)RRWSULQW 0L%

Table 6. Throughput of training the GPT-style and BERT-style models on 8 GPUs with different gradient-accumulation thresholds. The best results are bolded.

     

d ZLWKRXW=H52

d ZLWK=H52

d ZLWKRXW=H52

d ZLWK=H52

(a) Training GPT-style model 0HPRU\)RRWSULQW 0L%



perturbation relative to synchronous optimization. 4.3. Gradient-Accumulation Threshold Study To investigate the impact of the gradient-accumulation threshold in AMDP, we train both GPT-style and BERTstyle models on 8 GPUs under varying update batch sizes b. Table 6 summarizes the resulting throughput in kilo tokens/s. The results show that a moderate accumulation threshold achieves the best throughput, while further increasing b yields diminishing returns. This behavior reflects the trade-off between update frequency and pipeline utilization. Increasing the accumulation threshold amortizes synchronization and optimizer-update overhead across more minibatches, thereby reducing pipeline bubbles and improving hardware utilization. However, once the pipeline approaches near-full utilization, additional accumulation provides limited further benefit.

   

d ZLWKRXW=H52

d ZLWK=H52

d ZLWKRXW=H52

d ZLWK=H52

(b) Training BERT-style model Figure 8. Memory footprint results of ablation study.

Table 7. Throughput results of ablation study. The best results are bolded.

The accumulation threshold also affects optimization dynamics. Importantly, AMDP maintains a strict one-step bound on parameter mismatch regardless of the accumulation size, ensuring that gradient staleness remains controlled. As a result, moderate accumulation thresholds are expected to have only limited impact on convergence and may even improve training stability by reducing gradient variance across updates. In contrast, excessively large accumulation behaves similarly to large-batch training, where less frequent parameter updates can slow optimization progress despite improved throughput. This trade-off suggests that a moderate accumulation threshold provides the best balance between training efficiency and convergence behavior.

Configuration

GPT-style model

BERT-style model

without ZeRO with ZeRO

80.3 (-4.1%) 83.7

82.7 (-3.9%) 86.1

crucial component of AMDP’s scalability.

5. Conclusions In this paper, we propose AMDP, an asynchronous multidirectional pipeline-parallel training scheme that achieves state-of-the-art throughput among asynchronous pipeline approaches while maintaining near-synchronous convergence with only marginal additional memory overhead. By structurally bounding forward–backward parameter mismatch and integrating multi-directional scheduling with ZeRObased state partitioning, AMDP substantially improves hardware utilization without compromising optimization stability. Extensive experiments demonstrate that explicitly limiting pipeline staleness is critical for convergence, while multidirectional execution and ZeRO-based partitioning jointly enable high throughput and low memory footprint. As future work, we plan to explore mismatch-aware learning-rate adaptation technique to further enhance optimization robustness under mild asynchrony.

4.4. Ablation Study To verify the impact of zero redundancy optimizer on memory footprint, we remove it from AMDP and conduct experiment under the same configuration as the training convergence study. Figure 8 shows memory results, from which we observe: without ZeRO, average GPU memory usage rises by 11.4% and 19.4% for GPT-style model (at d = 4 and d = 8), and by 9.7% and 15.4% for BERT-style model, respectively. Table 7 further indicates that enabling ZeRO improves throughput by approximately 4%, as optimizer state sharding reduces redundant computations. These findings confirm that ZeRO not only alleviates memory pressure but also delivers modest performance gains, making it a

Impact Statement This paper presents work whose goal is to advance the field of Machine Learning. There are many potential societal consequences of our work, none which we feel must be specifically highlighted here. 9

AMDP: Asynchronous Multi-Directional Pipeline Parallelism

References

Li, S., Zhao, Y., Varma, R., Salpekar, O., Noordhuis, P., et al. PyTorch distributed: Experiences on accelerating data parallel training. arXiv preprint arXiv:2006.15704, 2020.

Ajanthan, T., Ramasinghe, S., Zuo, Y., Avraham, G., and Long, A. Nesterov method for asynchronous pipeline parallel optimization. In Proceedings of the International Conference on Machine Learning, 2025.

Lian, X., Huang, Y., Li, Y., and Liu, J. Asynchronous parallel stochastic gradient for nonconvex optimization. Advances in Neural Information Processing Systems, 28, 2015.

Bertsekas, D. P. and Tsitsiklis, J. N. Parallel and distributed computation:numerical methods. Prentice Hall, 1989. Brown, T., Mann, B., Ryder, N., Subbiah, M., Kaplan, J. D., et al. Language models are few-shot learners. Advances in Neural Information Processing Systems, 33:1877–1901, 2020.

Lin, J., Liu, Z., You, Y., Wang, J., Zhang, W., and Zhao, R. WeiPipe: Weight pipeline parallelism for communicationeffective long-context large model training. In Proceedings of the ACM SIGPLAN Annual Symposium on Principles and Practice of Parallel Programming, pp. 225–238, 2025.

Chen, C.-C., Yang, C.-L., and Cheng, H.-Y. Efficient and robust parallel DNN training through model parallelism on multi-GPU platform. arXiv preprint arXiv:1809.02839, 2018.

Loshchilov, I. Decoupled weight decay regularization. arXiv preprint arXiv:1711.05101, 2017.

Devlin, J., Chang, M., Lee, K., and Toutanova, K. BERT: Pre-training of deep bidirectional transformers for language understanding. In Proceedings of the Annual Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, pp. 4171–4186, 2019.

Narayanan, D., Harlap, A., Phanishayee, A., Seshadri, V., Devanur, N. R., et al. PipeDream: Generalized pipeline parallelism for DNN training. In Proceedings of the ACM Symposium on Operating Systems Principles, pp. 1–15, 2019. Narayanan, D., Phanishayee, A., Shi, K., Chen, X., and Zaharia, M. Memory-efficient pipeline-parallel DNN training. In Proceedings of the International Conference on Machine Learning, pp. 7937–7947, 2021a.

Fan, S., Rong, Y., Meng, C., Cao, Z., Wang, S., et al. DAPPLE: A pipelined data parallel approach for training large models. In Proceedings of the ACM SIGPLAN Annual Symposium on Principles and Practice of Parallel Programming, pp. 431–445, 2021.

Narayanan, D., Shoeybi, M., Casper, J., LeGresley, P., Patwary, M., et al. Efficient large-scale language model training on GPU clusters using Megatron-LM. In Proceedings of the International Conference for High Performance Computing, Networking, Storage and Analysis, pp. 1–15, 2021b.

Guan, L., Yin, W., Li, D., and Lu, X. XPipe: Efficient pipeline model parallelism for multi-GPU DNN training. arXiv preprint arXiv:1911.04610, 2019. Guan, L., Li, D., Liang, J., Wang, W., Ge, K., et al. Advances of pipeline model parallelism for deep learning training: An overview. Journal of Computer Science and Technology, 39(3):567–584, 2024.

NVIDIA. Automatic mixed precision for deep learning. https://developer.nvidia.com/automatic-mixedprecision, 2019.

Hermans, J. R., Spanakis, G., and Möckel, R. Accumulated gradient normalization. In Proceedings of the Asian Conference on Machine Learning, pp. 439–454, 2017.

NVIDIA. Megatron-LM & Megatron-Core. https://github.com/NVIDIA/Megatron-LM, 2024. Peterson, J., Meylan, S., and Bourgin, D. OpenWebText dataset. https://github.com/jcpeterson/openwebtext, 2019.

Huang, Y., Cheng, Y., Bapna, A., Firat, O., Chen, D., et al. GPipe: Efficient training of giant neural networks using pipeline parallelism. Advances in Neural Information Processing Systems, 32, 2019. Kingma, D. P. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014.

Qi, P., Wan, X., Huang, G., and Lin, M. Zero bubble (almost) pipeline parallelism. In Proceedings of the The International Conference on Learning Representations, 2024.

Li, S. and Hoefler, T. Chimera: Efficiently training largescale neural networks with bidirectional pipelines. In Proceedings of the International Conference for High Performance Computing, Networking, Storage and Analysis, pp. 1–14, 2021.

Rajbhandari, S., Rasley, J., Ruwase, O., and He, Y. ZeRO: Memory optimizations toward training trillion parameter models. In Proceedings of the International Conference for High Performance Computing, Networking, Storage and Analysis, pp. 1–16, 2020. 10

AMDP: Asynchronous Multi-Directional Pipeline Parallelism

Tsitsiklis, J. N. Asynchronous stochastic approximation and Q-learning. Machine learning, 16(3):185–202, 1994. Vaswani, A., Shazeer, N., Parmar, N., Uszkoreit, J., Jones, L., Gomez, A. N., Kaiser, Ł., and Polosukhin, I. Attention is all you need. Advances in Neural Information Processing Systems, 30, 2017. Wu, H. and Chen, L. TawPipe: Topology-aware weight pipeline parallelism for accelerating long-context large models training. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 40, pp. 26894–26902, 2026. Wu, H., Chen, L., and Yu, W. BitPipe: Bidirectional interleaved pipeline parallelism for accelerating large models training. arXiv preprint arXiv:2410.19367, 2024. Zhao, Y., Gu, A., Varma, R., Luo, L., Huang, C.-C., Xu, M., Wright, L., Shojanazeri, H., Ott, M., Shleifer, S., et al. PyTorch FSDP: Experiences on scaling fully sharded data parallel. arXiv preprint arXiv:2304.11277, 2023. Zheng, S., Meng, Q., Wang, T., Chen, W., Yu, N., Ma, Z.-M., and Liu, T.-Y. Asynchronous stochastic gradient descent with delay compensation. In Proceedings of the International Conference on Machine Learning, pp. 4120–4129, 2017.

11

AMDP: Asynchronous Multi-Directional Pipeline Parallelism

A. Implementation Details A.1. Server and System Configuration All experiments are conducted on dedicated Linux servers running Ubuntu 20.04 with kernel 5.15. The compute node contains: • CPUs: Dual-socket AMD EPYC 7763 (128 physical cores in two socket). • Memory: 1 TB DDR4-3200, NUMA-balanced across both sockets. • GPUs: 8 NVIDIA A800 80GB SXM5 GPUs, connected via NVLink 3.0 in a hybrid cube-mesh topology, providing 400 GB/s bidirectional bandwidth. • Networking: Local experiments use NCCL’s NVLink transport; multi-node configuration supports dual 200 Gbps HDR InfiniBand. • Storage: Parallel NVMe scratch with 7.4 GB/s sequential read bandwidth for fast dataset preprocessing. The software stack is based on the NVIDIA PyTorch container with tag 24.03-py33 , consisting of: PyTorch 2.3.0, CUDA 12.4, cuDNN 9.0.0, NCCL 2.20, Apex, TransformerEngine 1.4.0, and Python 3.10. A.2. Code Modifications We summarize the key extensions made to Megatron-LM to support asynchronous multi-directional execution: • Pipeline Engine Extensions. We extend the Megatron pipeline engine to support asynchronous execution by enabling async op for gradient reductions and parameter updates and introducing an async schedules module. This module implements the scheduling logic for PipeDream, PipeDream-2BW, and AMDP, including forward/backward task queues, causal dependency enforcement, and multi-directional stage assignment. • Gradient-Accumulation Mechanism. AMDP adopts a window-based gradient accumulation mechanism that aligns with ZeRO partitioning. Gradients are accumulated only on the parameter-owner rank, while non-owner ranks store only the transient gradient tensors needed for the reduce operation. This avoids redundant memory usage, guarantees correct accumulation over the update window, and ensures that communication occurs exactly at the intended synchronization boundaries. • ZeRO Integration Logic. We modify the initialization and optimizer-step routines to support multi-directional pipelines under ZeRO. Optimizer states are materialized exclusively on the owner rank of each parameter shard. Each all-reduce is replaced by a reduce followed by a broadcast of identical communication complexity, triggered once per update window and aligned with AMDP’s scheduling. A.3. Experiment Workflow For reproducibility, we outline the common workflow used for all baselines and AMDP: • Data Preprocessing. Training data are first stored as loose JSON (one text record per line) and then converted into Megatron-LM’s binary format following the official preprocessing pipeline. All baselines use identical datasets. • Pretraining. Pretraining follows the standard Megatron-LM workflow with additional arguments (e.g., --enable-fourdirectional-pipeline). We provide pretrain gpt distributed async.sh for AMDP and analogous scripts for baseline methods in the examples directory. • Logging and Profiling. Throughput, per-GPU memory, and iteration-time breakdowns are collected using MegatronLM’s profiler with auxiliary custom hooks. Experiments across different depths (4–8) and model families (GPT, BERT) share the same workflow to ensure consistency. 3

nvcr.io/nvidia/pytorch:24.03-py3

12

AMDP: Asynchronous Multi-Directional Pipeline Parallelism

B. Convergence Analysis of AMDP This part presents a formal convergence analysis of AMDP, demonstrating that it achieves convergence behavior comparable to synchronous adaptive optimization under the bounded delay condition (τmax = 1). We further prove that this delay bound remains invariant under variations in pipeline depth, multi-node deployment, and multi-directional stage permutations. B.1. Problem Setup and Assumptions Consider the stochastic optimization problem min F (θ),

θ∈Rp

F (θ) = Eξ [f (θ; ξ)],

(5)

where θ ∈ Rp denotes the model parameters and ξ is a random minibatch sample. We adopt the following standard assumptions: A1. (L-smoothness) The objective function F is differentiable and satisfies ∥∇F (x) − ∇F (y)∥ ≤ L∥x − y∥,

∀x, y ∈ Rp .

(6)

A2. (Unbiased stochastic gradients) The stochastic gradient estimator g(θ; ξ) satisfies Eξ [g(θ; ξ)] = ∇F (θ),   Eξ ∥g(θ; ξ) − ∇F (θ)∥2 ≤ σ 2 . A3. (Bounded second moment) There exists G > 0 such that   E ∥g(θ; ξ)∥2 ≤ G2 ,

∀θ.

(7) (8)

(9)

A4. (Bounded adaptive preconditioner) The adaptive preconditioner Pt is a positive diagonal matrix satisfying 0 < cmin ≤ λmin (Pt ) ≤ λmax (Pt ) ≤ cmax .

(10)

A5. (Lipschitz adaptive mappings) The momentum estimator mt = Φt (g0 , g1 , . . . , gt ) and adaptive preconditioner Pt = Ψt (g0 , g1 , . . . , gt ) are Lipschitz with respect to the gradient history: ∥mt − m̃t ∥ ≤ LΦ max ∥gk − g̃k ∥,

(11)

∥Pt − P̃t ∥ ≤ LΨ max ∥gk − g̃k ∥.

(12)

k≤t

k≤t

General Adaptive Update Rule.

AMDP employs the generalized adaptive update θt+1 = θt − ηPt mt ,

(13)

where: • mt is a momentum or gradient estimator, • Pt is a positive diagonal preconditioner, • η > 0 is the learning rate. This formulation includes SGD, Momentum SGD, RMSProp, Adam, AdamW, and AMSGrad as special cases. For vanilla SGD: mt = g(θt−τ (t) ; ξt ), 13

Pt = I.

(14)

AMDP: Asynchronous Multi-Directional Pipeline Parallelism

For Adam-type optimizers: mt = β1 mt−1 + (1 − β1 )gt ,

(15)

vt = β2 vt−1 + (1 − β2 )gt2 ,

(16)

 Pt = diag

1 vt + ϵ

 .

(17)

The logical delay τ (t) ∈ {0, 1} denotes the number of parameter updates between the forward and backward passes associated with the same minibatch. For comparison, define the corresponding synchronous adaptive optimizer: sync θt+1 = θtsync − ηPtsync msync . t

(18)

∆t := θt − θtsync .

(19)

We further define the trajectory discrepancy:

B.2. Bounded Parameter Mismatch We first show that AMDP guarantees a uniformly bounded parameter mismatch. Lemma B.1 (Bounded Parameter Mismatch). Let d denote the pipeline depth and let n denote the number of minibatches that stage 0 may inject before receiving the first backward signal. For any pipeline stage i ∈ {0, . . . , d − 1}, the number of parameter updates between the forward and backward passes of the same minibatch at stage i satisfies mismatch(i) = min(n, d − i) − 1.

(20)

In AMDP, the scheduler enforces n = 2. Consequently, mismatch(i) ≤ 1,

∀i.

(21)

Proof. Consider a minibatch b entering the pipeline. Assume its forward pass reaches stage i at logical time t. Before the backward pass of b returns to stage i, the same stage may process forward passes of subsequent minibatches. The number of such additional forward executions is limited by two independent constraints: 1. (Pipeline injection limit) Stage 0 injects at most n minibatches before the first backward signal is received. Therefore, at most n − 1 subsequent minibatches may enter the pipeline after b. 2. (Pipeline propagation limit) The backward pass of b must traverse the downstream stages d − 1, d − 2, . . . , i + 1 before reaching stage i. During this interval, stage i can process at most one forward pass per downstream stage. Hence, at most d − i − 1 additional forward executions are possible. Combining both constraints yields mismatch(i) ≤ min(n − 1, d − i − 1) = min(n, d − i) − 1.

(22)

Under AMDP scheduling, n = 2. Thus, mismatch(i) = min(2, d − i) − 1 ≤ 1.

(23)

The significance of Lemma B.1 is fundamental: AMDP transforms pipeline parallelism into a bounded-delay stochastic optimization process with τmax = 1, which is substantially smaller than PipeDream-style training systems whose delay scales with pipeline depth. 14

AMDP: Asynchronous Multi-Directional Pipeline Parallelism

B.3. Near-Synchronous Convergence We now establish the main convergence theorem. Theorem B.2 (Near-Synchronous Convergence of AMDP). Under Assumptions A1–A5 and the bounded-delay condition τmax = 1, the AMDP iterates generated by θt+1 = θt − ηPt mt satisfy T −1  2(F (θ0 ) − F ⋆ ) 1 X  E ∥∇F (θt )∥2 ≤ + O(ησ 2 ) + O(η 2 ). T t=0 ηT

(24)

where: F ⋆ is a lower bound of F . In particular, AMDP preserves the convergence rate of synchronous adaptive optimization up to a second-order perturbation term O(η 2 ). Proof. Define the discrepancy between AMDP and synchronous trajectories: ∆t = θt − θtsync .

(25)

Since AMDP guarantees τ (t) ≤ 1, the stale gradient is evaluated at parameters differing by at most one optimization step: ∥θt − θt−τ (t) ∥ =

t−1 X

(θk+1 − θk )

k=t−τ (t) t−1 X

≤ ηcmax

∥mk ∥.

(26)

k=t−τ (t)

Using Assumptions A3–A4,   E ∥θt − θt−τ (t) ∥2 = O(η 2 ).

(27)

By L-smoothness, ∥∇F (θt ) − ∇F (θt−τ (t) )∥ ≤ L∥θt − θt−τ (t) ∥ = O(η).

(28)

From Assumption A5, the perturbations induced in the momentum estimator and adaptive preconditioner satisfy ∥mt − msync ∥ = O(η), t

(29)

∥Pt − Ptsync ∥ = O(η).

(30)

Subtracting the synchronous update from the AMDP update yields ∆t+1 = ∆t − η (Pt mt − Ptsync msync ) t = ∆t − η(Pt − Ptsync )mt − ηPtsync (mt − msync ). t Taking norms and expectations, and using Assumptions A3–A5, there exists a constant C > 0 such that     E ∥∆t+1 ∥2 ≤ (1 + Cη)E ∥∆t ∥2 + Cη 4 .

(31) (32)

(33)

Applying the discrete Grönwall inequality gives   E ∥∆t ∥2 = O(η 2 ). 15

(34)

AMDP: Asynchronous Multi-Directional Pipeline Parallelism

Again using L-smoothness,     E ∥∇F (θt ) − ∇F (θtsync )∥2 ≤ L2 E ∥∆t ∥2 = O(η 2 ).

(35)

Finally, combining this perturbation estimate with the standard convergence guarantee for synchronous adaptive optimization yields T −1  2(F (θ0 ) − F ⋆ ) 1 X  E ∥∇F (θt )∥2 ≤ + O(ησ 2 ) + O(η 2 ). (36) T t=0 ηT This completes the proof. Discussion. Choosing η = Θ(T −1/2 ) yields the standard nonconvex stochastic optimization rate O(T −1/2 ). Importantly, the additional perturbation introduced by AMDP scales only as O(η 2 ), which is asymptotically dominated by the intrinsic stochastic optimization error. This explains why AMDP empirically exhibits convergence behavior nearly identical to synchronous optimization even when combined with adaptive optimizers such as AdamW. B.4. Invariance of the Mismatch Bound We finally show that the mismatch bound is invariant to deployment topology and scheduling permutation. Proposition B.3 (Topology-Independent Mismatch Bound). Assume that AMDP preserves causal execution order through FIFO scheduling and does not permit logical reordering of updates. Then the mismatch bound in Lemma B.1 depends only on the pipeline injection limit n and the logical stage index i. Consequently, when n = 2, mismatch(i) ≤ 1 remains invariant under: • arbitrary pipeline depth d, • arbitrary mapping between logical stages and physical GPUs, • multi-node deployment with bounded communication latency, • arbitrary directional scheduling permutations. Proof. We formalize execution using a logical event sequence. Each event is represented as (i, j, type), where i is the stage index, j is the minibatch index, and type ∈ {forward, backward}. AMDP enforces the following causal constraints: 1. (Forward-backward dependency) forward(i, j) ≺ backward(i, j).

(37)

2. (Pipeline forward dependency) For i < d − 1, forward(i, j) ≺ forward(i + 1, j).

(38)

3. (Pipeline backward dependency) For i > 0, backward(i, j) ≺ backward(i − 1, j).

(39)

FIFO scheduling further guarantees that the processing order of minibatches is preserved at every stage. Crucially, none of the above constraints depend on physical GPU placement, network topology, communication direction,and multi-node deployment layout.These implementation details may alter wall-clock timing but cannot alter the logical partial order of events. Therefore, the number of forward executions that stage i may perform between forward(i, j) and backward(i, j) remains determined solely by: • the maximum number of injected minibatches n, 16

AMDP: Asynchronous Multi-Directional Pipeline Parallelism Table 8. Comparison with vNAG. 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

Model-1 8 8 Model-2 8 8 

Throughput (ktokens/s) Loss (over 50k iterations) Sync. PP vNAG AMDP Sync. PP vNAG AMDP 31.0 8.9

47.1 11.1

58.5 18.2

6\QFKURQRXV3LSHOLQH Y1$* ,&0/  $0'3 2XUV



5.12 4.93

4.09 3.69 6\QFKURQRXV3LSHOLQH Y1$* ,&0/  $0'3 2XUV

 



/RVV

/RVV

4.05 3.67



 







 

 



  ,WHUDWLRQ î







(a) Loss versus iterations (Model-1)



  ,WHUDWLRQ î





(b) Loss versus iterations (Model-2)

Figure 9. Training loss.

• the remaining logical pipeline distance d − i. Consequently, mismatch(i) = min(n, d − i) − 1 is invariant under all deployment and scheduling permutations satisfying the AMDP causal constraints. In particular, when n = 2, mismatch(i) ≤ 1.

C. Experiments C.1. Comparison with recent work Because the author-released implementation of vNAG (Ajanthan et al., 2025) does not run under our model configurations, we adapt both AMDP and synchronous pipeline approach (i.e., 1F1B implementation in Megatron-LM) to match the experimental setup used in vNAG. The configurations are detailed below: • Model-1. A GPT-style architecture with a context length of 512, an embedding dimension of 768, 12 attention heads, and 8 transformer layers (approximately 134M parameters), where each layer is treated as one pipeline stage. The minibatch size is set to 8, with a learning rate of 3e-4 and a weight decay of 0.01. • Model-2. A larger GPT variant that preserves the total number of stages (8) but increases the context length to 1024 and the embedding dimension to 2688, with 24 attention heads (approximately 1B parameters). A learning rate of 1e-4 is applied to all methods for this model. We train both models from scratch for 50k iterations on the OpenWebText dataset. All experiments are performed on the sever equipped with 8 A800 GPUs. Table 8 reports throughput as well as the final training loss. Figure 9 presents loss trajectories for the experiments. These results highlight two consistent trends: (1) AMDP delivers the highest throughput across both model scales, surpassing vNAG by 24.2% on Model-1 and by 64.0% on Model-2. (2) AMDP tracks the convergence behavior of synchronous baseline much more closely than vNAG, which shows a pronounced deviation. These findings reinforce the central advantage of AMDP, namely its structural one-step mismatch bound, which ensures both efficient utilization and stable optimization dynamics.

17

Record · ID 238565 · SHA-256 cbbcde795baf9740
Retrieved via Conceptio — every document is proof-bundled with source, license, and retrieval metadata.