Back to blog

分布式并行训练必读经典论文

覆盖并行策略、序列并行、MoE并行、内存优化、通信优化、容错与系统框架

分布式并行训练必读经典论文

一、并行策略基础

#论文会议/年份核心贡献
1GPipe: Efficient Training of Giant Neural Networks using Pipeline ParallelismNeurIPS 2019流水线并行,微批次调度
2PipeDream: Generalized Pipeline Parallelism for DNN TrainingSOSP 2019异步流水线并行,1F1B调度
3Megatron-LM: Training Multi-Billion Parameter Language Models Using Model Parallelism2019张量并行(TP),行/列切分
4Efficient Large-Scale Language Model Training on GPU Clusters Using Megatron-LMSC 20213D并行(TP+PP+DP),通信优化
5ZeRO: Memory Optimizations Toward Training Trillion Parameter ModelsSC 2020ZeRO-1/2/3,分片优化器/梯度/参数
6PyTorch FSDP: Experiences on Scaling Fully Sharded Data ParallelVLDB 2023PyTorch原生FSDP实现

二、序列并行与长上下文

#论文会议/年份核心贡献
7Ring Attention with Blockwise Transformers for Near-Infinite ContextICLR 2024环形注意力,近无限上下文
8Sequence Parallelism for Long-Range Vision Transformers2021序列维度并行
9DeepSpeed Ulysses: System Optimizations for Enabling Training of Extreme Long Sequence Transformer Models2023注意力头维度序列并行
10Context Parallelism for Scalable Million-Token Inference2025上下文并行推理

三、混合专家(MoE)并行

#论文会议/年份核心贡献
11GShard: Scaling Giant Models with Conditional Computation and Automatic ShardingICLR 2021MoE专家并行,Top-2路由
12Switch Transformers: Scaling to Trillion Parameter Models with Simple and Efficient SparsityJMLR 2022Top-1路由,简化MoE
13MegaScale: Scaling Large Language Model Training to More Than 10,000 GPUsNSDI 2024万卡MoE训练,通信/容错优化
14DeepSeek-V2: A Strong, Economical, and Efficient Mixture-of-Experts Language Model2024MLA+MoE,236B参数/21B激活

四、优化器与内存优化

#论文会议/年份核心贡献
15ZeRO-Offload: Democratizing Billion-Scale Model TrainingUSENIX ATC 2021CPU offload优化器状态
16ZeRO-Infinity: Breaking the GPU Memory Wall for Extreme Scale Deep LearningSC 2021NVMe/CPU/GPU统一内存
17Mixed Precision TrainingICLR 2018FP16/BF16混合精度训练
18Training Deep Nets with Sublinear Memory Cost2016梯度检查点(Activation Checkpointing)
19ALMOST-ZERO MEMORY COST OPTIMIZERS FOR LARGE MODEL TRAINING20248-bit优化器

五、通信优化

#论文会议/年份核心贡献
20BAMBU: Communication-Efficient Large Model Training2022梯度压缩+异步通信
21FLUX: Fast Software-based Communication Overlap on GPUs through Kernel Fusion2024计算-通信重叠
22ZeRO++: Extremely Efficient Collective Communication for Giant Model Training2023分层AllGather/ReduceScatter
23Tesseract: Parallelize 100B-scale Model within a Few Minutes20232D并行减少通信量

六、容错与弹性训练

#论文会议/年份核心贡献
24Varuna: Scalable, Low-cost Training of Massive Deep Learning ModelsEuroSys 2022弹性流水线并行
25Oobleck: Resilient Distributed Training on Heterogeneous ClustersSOSP 2023异构集群弹性训练
26FTPipe: Fault-Tolerant Pipeline Parallelism2020流水线容错

七、系统框架

#论文会议/年份核心贡献
27PyTorch 2: Faster Machine Learning Through Dynamic Python Bytecode Transformation and Graph CompilationMLSys 2024torch.compile,FSDP2
28Alpa: Automating Inter- and Intra-Operator Parallelism for Distributed Deep LearningOSDI 2022自动并行策略搜索
29GSPMD: General and Scalable Parallelization for ML Computation Graphs2021JAX/XLA自动分片
30COLA: Communication-Efficient Distributed Linear Algebra2022通信高效线性代数

八、推荐阅读路径

入门

  1. GPipe - 流水线并行基础
  2. PipeDream - 异步流水线
  3. Megatron-LM - 张量并行基础
  4. Mixed Precision Training - 混合精度基础

进阶

  1. Megatron-LM (2021) - 3D并行完整方案
  2. ZeRO - 内存优化核心
  3. PyTorch FSDP - 工业级FSDP
  4. Ring Attention - 长上下文并行
  5. GShard - MoE并行
  6. Switch Transformers - 简化MoE

前沿

  1. DeepSpeed Ulysses - 极端长序列
  2. MegaScale - 万卡训练
  3. DeepSeek-V2 - MLA+MoE架构
  4. ZeRO++ - 通信优化
  5. Alpa - 自动并行

按技术栈

  • Megatron系:3 → 4 → 22 → 23
  • DeepSpeed系:5 → 15 → 16 → 19 → 22
  • PyTorch系:6 → 27
  • MoE系:11 → 12 → 13 → 14
  • 长上下文系:7 → 8 → 9 → 10