SkipPipe: Partial and Reordered Pipelining Framework for Training LLMs in Heterogeneous Networks

Nikolay Blagoev, Lydia Yiyu Chen, Oguzhan Ersoy · DOI

Abstract

Training Large Language Models (LLMs) typically necessitates high-bandwidth, homogeneous GPU clusters. However, many real-world environments consist of heterogeneous networks with varying latencies and bandwidths. This paper introduces SkipPipe, a novel training framework that leverages the inherent robustness of transformer architectures to implement partial and reordered pipelining. By allowing microbatches to skip certain model stages or process them out of order, SkipPipe reduces communication bottlenecks and idle time, achieving training speedups of up to 55% without compromising model accuracy.

Introduction

Standard Pipeline Parallelism (PP) splits a model into sequential stages, requiring every microbatch to pass through every stage in a strict order. In heterogeneous networks—where nodes are connected by links of varying speeds—this rigid structure leads to significant communication bottlenecks and "bubbles" (idle time). SkipPipe addresses these inefficiencies by questioning the necessity of running every layer for every microbatch, proposing a flexible scheduling approach that fills idle periods with useful computation.

The SkipPipe Framework

SkipPipe optimizes training through two primary components:

  1. Node-to-Stage Allocation: This module maps physical GPUs to model stages based on network topology. By ensuring communication-intensive tasks occur over high-bandwidth links, it minimizes the impact of slow connections.
  2. Path Scheduling: Treating microbatches as agents in a Multi-Agent Path Finding (MAPF) problem, SkipPipe uses a modified Conflict-Based Search (CBS) algorithm to determine the optimal path for each microbatch through available nodes.
SkipPipe path scheduling for microbatches through heterogeneous nodes.

To maintain model convergence, the framework adheres to three Convergence Constraints (CC):

  • CC1: The first stage is never skipped to preserve critical feature extraction.
  • CC2: Reordering is limited to at most two consecutive stages.
  • CC3: Intermediate stages are skipped uniformly (round-robin) to ensure the model eventually processes all data across all layers.

Experimental Evaluation

The researchers evaluated SkipPipe using LLaMa-based models (500M to 8B parameters) on datasets including TinyStories, RedPajamas, TOPv2, and Arxiv.

Training Efficiency

SkipPipe demonstrates substantial performance gains in heterogeneous settings. By intelligently managing microbatch paths and filling idle "bubbles," it significantly reduces the time per training iteration.

Training speedup of SkipPipe compared to baselines across different microbatch sizes.

Convergence and Robustness

Despite skipping up to 33% of model stages per microbatch, SkipPipe achieves validation loss curves nearly identical to standard full-model training. This "stochastic depth" approach acts as a form of regularization, enhancing the model's resilience. Notably, models trained with SkipPipe maintain high performance during inference even when 50% of layers are skipped, whereas standard models suffer catastrophic performance degradation under similar conditions.

Key Insights

  • Transformer Robustness: The success of SkipPipe highlights the "stretchy" nature of transformers, which can tolerate missing or reordered layers during training.
  • Collision Management: In a reordered pipeline, the primary bottleneck shifts from idle "bubbles" to microbatch "collisions" (multiple batches requesting the same node). SkipPipe's scheduler effectively mitigates these collisions, providing an additional 10% speedup.

Limitations and Future Work

Current experiments focused on network heterogeneity while assuming homogeneous GPU compute power. Future research will explore clusters with mixed GPU generations (e.g., H100s and A100s). Additionally, the authors aim to refine the path-finding heuristics to scale to hundreds of nodes and investigate finer-grained skipping at the individual layer or attention-head level.

Summary updated

BibTeX
@misc{blagoev2025skippipe,
  author = {Nikolay Blagoev and Lydia Yiyu Chen and Oguzhan Ersoy},
  title = {{SkipPipe: Partial and Reordered Pipelining Framework for Training LLMs in Heterogeneous Networks}},
  year = {2025},
  eprint = {2502.19913},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2502.19913},
}
Figure