EUVIMEDEUVIMED entdecken
Open Access · CC BY 4.0

PipeMesh: Achieving Memory-Efficient Computation-Communication Overlap for Training Large Language Models

Fanxin Li, Shixiong Zhao, Yuhao Qing, Jianyu Jiang, Xusheng Chen, Heming Cui

IEEE Transactions on Parallel and Distributed Systems · 2025-09 · 36 (9) · 1872-1889

DOI: 10.1109/tpds.2025.3583983 ↗

Kurz gefasst

Fachartikel in der Zeitschrift IEEE Transactions on Parallel and Distributed Systems, 2025-09. Verfasst von Fanxin Li und 5 weiteren Autor:innen. Die Arbeit wurde bisher 4-mal zitiert (Crossref) und nennt 64 Literaturangaben. Der Volltext ist frei zugänglich (Open Access, CC BY 4.0). Gefördert von: National Key R&D Program of China, HK RGC RIF, HK RGC GRF.

AbstractBibliografische AngabenZitierenVerwandte Studien

Abstract (Originalsprache)

Efficiently training large language models (LLMs) on commodity cloud resources remains challenging due to limitations in network bandwidth and accelerator memory capacity. Existing training systems can be categorized based on their pipeline schedules. Depth-first scheduling, employed by systems like Megatron, prioritizes memory efficiency but restricts the overlap between communication and computation, causing accelerators to remain idle for over 20% of the training time. Conversely, breadth-first scheduling maximizes communication overlap but generates excessive intermediate activations, exceeding memory capacity and slowing computation by more than 34%. To address these limitations, we propose a novel elastic pipeline schedule that enables fine-grained control over the trade-off between communication overlap and memory consumption. Our approach determines the number of micro-batches scheduled together according to the communication time and the memory available. Furthermore, we introduce a mixed sharding strategy and a pipeline-aware selective recomputation technique to reduce memory usage. Experimental results demonstrate that our system eliminates most of the 28% all-accelerator idle time caused by communication, with recomputation accounting for less than 1.9% of the training time. Compared to existing baselines, PipeMesh improves training throughput on commodity clouds by 20.1% to 33.8%.

Förderung

  • National Key R&D Program of China
  • HK RGC RIF
  • HK RGC GRF
  • Huawei flagship research
  • HKU-CAS Joint Laboratory for Intelligent System Software

Zitieren

APA

Li, F., Zhao, S., Qing, Y., Jiang, J., Chen, X., & Cui, H. (2025). PipeMesh: Achieving Memory-Efficient Computation-Communication Overlap for Training Large Language Models. IEEE Transactions on Parallel and Distributed Systems, 36(9), 1872-1889. https://doi.org/10.1109/tpds.2025.3583983

Vancouver

Li F, Zhao S, Qing Y, Jiang J, Chen X, Cui H. PipeMesh: Achieving Memory-Efficient Computation-Communication Overlap for Training Large Language Models. IEEE Transactions on Parallel and Distributed Systems. 2025;36(9):1872-1889. doi:10.1109/tpds.2025.3583983

BibTeX
@article{Li2025,
  author = {Li, Fanxin and Zhao, Shixiong and Qing, Yuhao and Jiang, Jianyu and Chen, Xusheng and Cui, Heming},
  title = {PipeMesh: Achieving Memory-Efficient Computation-Communication Overlap for Training Large Language Models},
  journal = {IEEE Transactions on Parallel and Distributed Systems},
  year = {2025},
  volume = {36},
  number = {9},
  pages = {1872--1889},
  doi = {10.1109/tpds.2025.3583983}
}
Kostenlos starten →