atlas

Research map / Large language models / Reasoning and chain of thought

Rethinking Memory and Communication Costs for Efficient Data Parallel Training of Large Language Models

NeurIPS 2024 · Large language models › Reasoning and chain of thought · approach: Efficient LLM serving · 3 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes PaRO, a set of partially redundant data-parallel partitioning strategies (PaRO-DP) plus a topology-aware collective (PaRO-CC) and a cost-model guideline for choosing strategies, reporting up to 266% speedup over ZeRO-3 on heterogeneous GPU clusters.

Problem

Distributed data-parallel training of LLMs is bottlenecked by slow inter-group (inter-node/switch) communication, and existing basic strategies (ZeRO, MiCS, FSDP HYBRID_SHARD) offer limited memory-communication trade-off options, especially for partial-parameter and PEFT training.

Approach

Partition parameters, gradients and optimizer states at three granularities (none, intra-group, global) so that frequent collectives stay within fast intra-group links while accepting limited memory redundancy; pair this with a ring-of-rings collective (PaRO-CC) that separates intra- and inter-group traffic, and a throughput-prediction formula to pick the partition scheme.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use PaRO strategy NII instead of ZeRO-2LLaMA-7B full-parameter training · LLaMA-7B full-parameter trainingthroughput: 67%Helped
Use PaRO strategy PIIG instead of ZeRO-3LLaMA-7B full-parameter training · LLaMA-7B full-parameter trainingthroughput: 128%Helped
Use PaRO strategy PIIG instead of ZeRO-3LLaMA-65B full-parameter training · LLaMA-65B full-parameter trainingthroughput: 86%Helped
Use PaRO strategy PNIG instead of ZeRO-2LLaMA-7B partial-parameter training · LLaMA-7B partial-parameter training (Ψ′ = Ψ/16)throughput: 15%Helped
Use PaRO strategy PNII instead of ZeRO-2LLaMA-7B partial-parameter training · LLaMA-7B partial-parameter training (Ψ′ = Ψ/16)throughput: 21%Helped
Use PaRO strategy PIII (MiCS) instead of ZeRO-3LLaMA-65B partial-parameter training · LLaMA-65B partial-parameter training (Ψ′ = Ψ/16)throughput: 264%Helped
Use PaRO strategy PIIG instead of ZeRO-3LLaMA-65B partial-parameter training · LLaMA-65B partial-parameter training (Ψ′ = Ψ/16)throughput: 266%Helped
Use PaRO strategy PING instead of ZeRO-3LLaMA-65B PEFT · LLaMA-65B PEFT (Ψ′ = 3Ψ/1000)throughput: 44%Helped
Add PaRO-CC to Ring collective communicationCollective all-gather · Communication volume 1GB, 16–128 GPUscommunication time: 25.2%-39.7%Helped
Add PaRO-CCMegatron-TP end-to-end training · 4 DGX nodesthroughput: from 129 to 152 samples/secondHelped
Increase PaRO group/ring scale from 16 to 128 GPUsPaRO-DP on LLaMA-7B · LLaMA-7B scalabilityspeedup ratio: 0.92Helped
Increase ZeRO scale from 16 to 128 GPUsZeRO-2 and ZeRO-3 on LLaMA-7B · LLaMA-7B scalabilityspeedup ratio: 0.63Mixed

Surprising findings

Limitations

Experimental setup

Datasets: C4 (RedPajama)

Metrics: training throughput (samples/sec) peak GPU memory (GB) collective communication time (ms) loss convergence

Baselines: ZeRO-1 ZeRO-2 ZeRO-3 MiCS ZeRO++ FSDP HYBRID_SHARD (FSDP-hsz) Megatron-TP Ring all-gather

Builds on: ZeRO MiCS ZeRO++ FSDP Megatron-LM

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy