mlsanityData to 7 Oct 2026

2BP: 2-Stage Backpropagation

arXiv 2405.18047 ↗First posted 28 May 2024cs.LG cs.AI cs.DCcited by 0

Not on the map. Why?

Abstract (arXiv)

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.

Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 22 of its 36 references that are in the map. First posted on arXiv 28 May 2024.

Builds on

22 of 36 references.

References · 22

  1. 2017Attention Is All You Needcited by 59,932
  2. 2015Deep Residual Learning for Image Recognitioncited by 51,809
  3. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
  4. 2015Batch Normalization: Accelerating Deep Network Training by Reducing Internal Covariate Shiftcited by 6,979
  5. 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,304
  6. 2023Mamba: Linear-Time Sequence Modeling with Selective State Spacescited by 4,616
  7. 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,581
  8. 2019Megatron-LM: Training Multi-Billion Parameter Language Models Using Model Parallelismcited by 1,829
  9. 2020GLU Variants Improve Transformercited by 1,724
  10. 2019Root Mean Square Layer Normalizationcited by 1,425
  11. 2019ZeRO: Memory Optimizations Toward Training Trillion Parameter Modelscited by 1,278
  12. 2021ZeRO-Offload: Democratizing Billion-Scale Model Trainingcited by 339
10 more
  1. 2021ZeRO-Infinity: Breaking the GPU Memory Wall for Extreme Scale Deep Learningcited by 253
  2. 2018PipeDream: Fast and Efficient Pipeline Parallel DNN Trainingcited by 116
  3. 2020DAPPLE: A Pipelined Data Parallel Approach for Training Large Modelscited by 100
  4. 2021Colossal-AI: A Unified Deep Learning System For Large-Scale Parallel Trainingcited by 96
  5. 2021Chimera: Efficiently Training Large-Scale Neural Networks with Bidirectional Pipelinescited by 68
  6. 2019PipeMare: Asynchronous Pipeline Parallel DNN Trainingcited by 54
  7. 2023Zero Bubble Pipeline Parallelismcited by 39
  8. 2023Hanayo: Harnessing Wave-like Pipeline Parallelism for Enhanced Large Model Training Efficiencycited by 20
  9. 2021PatrickStar: Parallel Training of Pre-trained Models via Chunk-based Memory Managementcited by 15
  10. 2022Elixir: Train a Large Language Model on a Small GPU Clustercited by 2

Built on by

Not cited yet.