TensorX
返回文献探索

Paper · arXiv 2405.18047

2BP: 2-Stage Backpropagation

Christopher Rae, Joseph K. L. Lee, James Richings

25 upvotesMay 28, 2024arXiv 预印本
AI 摘要

Introducing 2-stage backpropagation enhances the throughput of pipeline parallelism in training large DNNs by reducing idle compute time.

Deep Neural Networks (DNNs)pipeline parallelismbackward propagation2-stage backpropagation (2BP)throughputLLaMa-like transformer

Abstract

As Deep Neural Networks (DNNs) grow in size and complexity, they often exceed the memory capacity of a single accelerator, necessitating the sharding of model parameters across multiple accelerators. Pipeline parallelism is a commonly used sharding strategy for training large DNNs. However, current implementations of pipeline parallelism are being unintentionally bottlenecked by the automatic differentiation tools provided by ML frameworks. This paper introduces 2-stage backpropagation (2BP). By splitting the backward propagation step into two separate stages, we can reduce idle compute time. We tested 2BP on various model architectures and pipelining schedules, achieving increases in throughput in all cases. Using 2BP, we were able to achieve a 1.70x increase in throughput compared to traditional methods when training a LLaMa-like transformer with 7 billion parameters across 4 GPUs.

北京市昌平区探索星信息技术及软件开发工作室

京ICP备2026059466号
2BP: 2-Stage Backpropagation | TensorX