atlas

Research map / Architectures and efficiency / Quantization

SDP4Bit: Toward 4-bit Communication Quantization in Sharded Data Parallelism for LLM Training

NeurIPS 2024 · Architectures and efficiency › Quantization · approach: Post-training quantization of LLMs · 5 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 SDP4Bit, which compresses weight and gradient communication in sharded data parallelism (Megatron-LM distributed optimizer) to nearly 4 bits via quantized weight differences and two-level Hadamard-smoothed gradient quantization, with a convergence proof and up to 4.08x E2E speedup on 128 GPUs.

Problem

Communication of weights and gradients in sharded data parallelism (ShardedDP) for LLM training is a bottleneck, and existing 4-bit approaches (ZeRO++, QSDP) degrade training loss.

Approach

Quantize the difference between main weights and communicated weights rather than the weights themselves (enabling biased compressors with convergence guarantees), and use a two-level gradient scheme (INT8 intra-node, INT4 inter-node) with a fused Hadamard transform to smooth outliers.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use SDP4Bit communication quantization rather than full-precision communicationShardedDP training · GPT pre-training, Pile validationvalidation loss: 2.29392 -> 2.29590; 2.08719 -> 2.08964; 1.92774 -> 1.93238No clear effect
Use SDP4Bit communication quantization rather than the baselineShardedDP training · GPT-18B, 8xH800, 16 nodesE2E throughput (TFLOPs): 14.5 $\pm$0.07 -> 59.2 $\pm$1.37Helped
Replace direct 4-bit weight quantization with 4-bit weight-difference quantization (ablation)SDP4Bit · GPT-125M Pile validationvalidation loss: 2.57312 -> 2.29274Helped
Use direct 4-bit weight quantization instead of weight-difference quantization (ablation)SDP4Bit · GPT-125M Pile validationvalidation loss: 2.29274 -> 2.57312Hurt
Add a Hadamard smoother to two-level gradient quantization (ablation)TLq · GPT-125M Pile validationvalidation loss: 2.30479 -> 2.29528Helped
Increase TLq-HS gradient quantization group size from 128 to 512 (ablation)SDP4Bit · GPT-125M Pile validationvalidation loss: 2.29528 -> 2.29670Hurt
Use qWD group size 2048 instead of 1024 (ablation)SDP4Bit · GPT-125M Pile validationvalidation loss: 2.29338 -> 2.29274No clear effect
Fuse the Hadamard transform kernel with quantization (ablation)SDP4Bit · GPT-1.3B over 32 A100E2E throughput (TFLOPs): 55.2 $\pm$0.07 -> 58.5 $\pm$0.07Helped

Surprising findings

Limitations

Experimental setup

Datasets: The Pile

Benchmarks: The Pile (validation loss)

Metrics: validation loss E2E training throughput (TFLOPs) speedup

Baselines: Megatron-LM mixed precision baseline ZeRO++ (qW + ULq) QSDP ULq qW

Builds on: ZeRO++ QSDP Megatron-LM group-wise quantization

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