Skip to content
AI.info

Research

DynamiQ: Accelerating Gradient Synchronization using Compressed Multi-hop All-reduce

Overview Research area: Distributed machine learning systems — specifically gradient compression (quantization) for multi-hop all-reduce communication in data-parallel LLM training, published at ACM S

DynamiQ: Accelerating Gradient Synchronization using Compressed Multi-hop All-reduce
arXiv
2602.08923
Published
2026-02-09
Authors
Wenchen Han, Shay Vargaftik, Michael Mitzenmacher, Ran Ben Basat

AI summary

Overview

Research area: Distributed machine learning systems — specifically gradient compression (quantization) for multi-hop all-reduce communication in data-parallel LLM training, published at ACM SIGCOMM 2026.

Technical level: Advanced. The paper combines networking topology reasoning (ring, butterfly, in-arborescence reduce-scatter), quantization theory (unbiased stochastic quantization, non-uniform codebooks, correlated rounding), and CUDA kernel engineering (fused decompress-accumulate-recompress kernels, memory coalescing).

Scope: The paper introduces DynamiQ, a quantization framework co-designed with multi-hop all-reduce aggregation that minimizes partial-sum compression error under a per-coordinate bit budget, and evaluates it against OmniReduce, THC, and MXFP4/MXFP6/MXFP8 formats across four LLM fine-tuning workloads.

What This Paper Is About

Gradient synchronization in data-parallel LLM training uses multi-hop all-reduce, where gradients are partially summed repeatedly as they travel along the aggregation topology — and as model and cluster sizes grow, this communication becomes a bottleneck. Existing compression methods (quantization and sparsification) were designed for single-hop parameter-server aggregation, so at each intermediate hop they must either recompress partial sums (losing accuracy) or spend more bits (losing speed). DynamiQ aims to close this gap with a compression framework that is explicitly aware that entries get partially summed multiple times along the path.

Key Contributions

  1. A partial-sum-aware quantization framework. DynamiQ quantizes with variable bitwidths after accounting for the fact that intermediate nodes must aggregate and recompress, solving a bandwidth-partitioning problem that treats each super-group's summed squared ℓ2 norm (F_j) as a proxy for its contribution to overall means-squared error.

  2. Two-phase, metadata-driven bit allocation. Workers first exchange only per-super-group means and squared ℓ2 norms in a lightweight all-reduce (32/C_s bits per coordinate, typically less than 1% of the original gradient volume), then all workers agree on an identical bit allocation and locally reorder super-groups so that equal-bitwidth data is contiguous for the main all-reduce.

  3. Advanced quantization techniques combined with hierarchical scaling. Non-uniform quantization values from Einziger et al. (2018), hierarchical quantization (half-precision super-group scale plus UINT8 quantized per-group scales), and correlated rounding via shared randomness (u_i = (π_i + γ_i)/n) to encourage errors to cancel across workers, while preserving unbiasedness.

  4. A fused-kernel implementation integrated into PyTorch DDP. Four CUDA kernels — DynamiQ_compress, DynamiQ_decompress, DynamiQ_decompress_accumulate_recompress, and DynamiQ_decompress_accumulate — run over NCCL P2P, with an RDMA engine that overlaps compression with communication using blockwise pipelining (8 MB blocks).

Main Findings

  • End-to-end speedup: DynamiQ improves time-to-accuracy by up to 34.2% over the best among OmniReduce, THC, and MXFP4/MXFP6/MXFP8 across the evaluated LLMs, tasks, and scales.

  • Accuracy preservation: In several settings, DynamiQ is the only evaluated method that consistently reaches near-baseline accuracy — reported as 99.9% of the BF16 baseline — while accelerating training by 40.8% compared with BF16. Methods that did not reach the specified convergence target are omitted from the results.

  • Gradient skewness is exploitable: Comparing ℓ2 norm distributions of gradients against randomly shuffled versions, roughly 20% of super-groups in LLaMA 1B and 30% in Gemma 1B (super-groups of 256 entries, groups of 16) have norms orders of magnitude smaller than the median, which motivates variable bitwidth allocation.

  • Fewer bits can beat wider formats at scale: In simulated setups with a DP-dimension of 8192, DynamiQ at b̄ = 6 bits per coordinate is more accurate than MXFP8, which uses b̄ = 8.5 bits per coordinate, by a large margin.

  • Favorable bandwidth accounting: For b̄ = 5 and super-group size C_s = 256, the lightweight metadata stage consumes 32/256 = 0.125 bits per coordinate, leaving 4.875 bits; after subtracting group scale (8/C = 0.5 bits for C = 16) and super-group scale (16/C_s = 1/16 bits), 4.3125 bits per quantized coordinate remain, distributed across 2-, 4-, or 8-bit super-groups.

  • Correlated rounding reduces variance: With two workers each quantizing a value of 1/2 to one bit, independent randomness gives variance 1/2 while the negatively correlated scheme gives 0; more generally the correlated approach caps worst-case variance at 1/4, improving the worst case by a factor of 2.

  • Bitwidth granularity is deliberately constrained: Only power-of-two bitwidths (1, 2, 4, 8, 16) are permitted, with 16 bits acting as uncompressed; the implementation uses the set {2, 4, 8}. Threshold ratios derived from equal per-bit benefit are T_1,2 = 5/32 · T_2,4, T_2,4 = 17/512 · T_4,8, and T_4,8 = 257/2^17 · T_8,16.

  • Per-bit error intuition: Each additional bit of precision can reduce the worst-case mean squared error by roughly 4x, e.g., worst-case variance dropping from 1/4 (at x = 1/2 with two quantization values) to 1/16 (at x = 1/4) when doubling the codebook size.

  • Compute overhead is linear in gradient size: All DynamiQ operations use sequential HBM accesses, with the lightweight statistics stage needing one memory access per entry in a single kernel launch and the reorder stage a single read and write per entry. The paper states that fused kernels substantially reduce memory traffic (quantitative figures appear in a table whose values are not included in the provided content).

Not reported in the provided content: the detailed results from the shared-network experiments (Section 5.2) and the butterfly-all-reduce experiments (Section 5.3), as well as the specific memory-traffic numbers in Table 2.

Methodology in Plain English

The researchers start from an observation about how gradients behave: nearby entries tend to have similar magnitudes, and a small number of outlier coordinates are orders of magnitude larger than the rest. That means the optimal "resolution" for compression varies across the vector, and treating the whole gradient with one setting wastes bits.

Their approach splits the gradient into small groups (e.g., 16 entries) that share a scale, and bundles 16 such groups into a super-group (256 entries) that shares a bitwidth. Before any real compression happens, every worker computes two simple statistics per super-group — the mean and the sum of squared values — and sends only those in a small, preliminary all-reduce. Because every worker now sees the globally aggregated statistics, they all independently derive the same bit allocation, decide which super-groups get 2, 4, or 8 bits, and physically rearrange their data so that equal-bitwidth super-groups sit next to each other in memory. That reordering is what lets the GPU kernels read contiguous, uniformly-sized data efficiently.

During the main all-reduce, each intermediate node receives compressed partial sums, decompresses them, adds its own data, and recompresses — all inside a single fused kernel that keeps intermediate values in registers rather than writing them out to GPU memory. To keep errors small, the designers use a non-uniform set of quantization levels that is denser near zero (mimicking floating point), quantize the group's scale factor separately rather than spending 16 bits on every group, and use shared randomness so that when one worker rounds a value up, another is likely to round it down.

Finally, they implement this as a communication hook on PyTorch DDP using NCCL P2P and an RDMA engine, and test it on four servers (eight RTX A6000 GPUs) against OmniReduce, THC, and the MXFP4/MXFP6/MXFP8 formats, measuring time-to-accuracy rather than raw throughput.

Why This Matters

Research impact. The paper reframes gradient compression as a topology-aware problem rather than a purely statistical one. Prior quantization and sparsification work assumed single-hop aggregation where decompression and averaging can happen at high precision for free; DynamiQ shows that this assumption breaks in multi-hop all-reduce, and that partial-sum compression error deserves its own treatment. It also demonstrates that a lower average bit budget (b̄ = 6) can outperform a wider format (MXFP8 at b̄ = 8.5) at large DP-dimensions, which challenges the intuition that more bits per coordinate is always better.

Real-world applications.

  • Large-scale LLM pre-training and fine-tuning clusters, where gradient synchronization limits scaling efficiency.
  • Cloud GPU training services and multi-tenant clusters, where jobs compete for network bandwidth and every transmitted bit is contested.
  • Bandwidth-constrained deployments: the testbed uses 100 Gb/s NICs, and the compressed transfers could matter even more on slower interconnects.
  • Emerging low-precision infrastructure, since DynamiQ interoperates with and outperforms MXFP4/MXFP6/MXFP8 formats that hardware vendors are standardizing.

Industry relevance. The implementation is a PyTorch DDP communication hook over NCCL P2P combined with an RDMA engine, with code available on GitHub. That means it targets the exact stack (PyTorch + NCCL) that production training runs already use, and it supports topologies NCCL collectives do not natively offer, including butterfly.

Future Directions

  1. Wider empirical validation of the RDMA and topology paths. The provided content covers the ring-all-reduce testbed results and states that shared-network (Section 5.2) and butterfly (Section 5.3) experiments exist; how DynamiQ performs under network contention and in butterfly topologies that NCCL collectives do not natively support is a natural open area to examine in detail.

  2. Scaling beyond the 4-server testbed. The large-scale claim (DP-dimension 8192, b̄ = 6 beating MXFP8 at b̄ = 8.5) comes from simulated setups. Confirming this on real clusters with thousands of workers, where the lightweight metadata all-reduce and reordering costs may behave differently, is an open question.

  3. Relaxing the power-of-two bitwidth and three-level constraints. The design deliberately restricts bitwidths to {1, 2, 4, 8, 16} for byte alignment and fused-kernel efficiency, and the fast binary-search threshold solver handles up to three permissible bitwidths. Whether finer-grained or non-power-of-two allocations could improve the accuracy-bandwidth tradeoff without losing kernel efficiency remains unexplored.

  4. Combining DynamiQ with other compression or parallelism strategies. The paper positions variable bitwidth as generalizing approaches where outliers are encoded precisely while others use fewer bits. How this composes with sparsification schemes, other codebooks, or tensor/pipeline parallelism is not reported.

Target Audience

Systems and networking researchers working on collective communication and datacenter training infrastructure; distributed-training engineers who tune all-reduce performance in PyTorch/NCCL stacks; and machine learning researchers studying gradient quantization, compression, and the accuracy-bandwidth tradeoff in large-model training. Readers need familiarity with quantization basics (unbiasedness, group quantization, stochastic rounding) and distributed training topologies to follow the technical sections; the introduction and evaluation sections are accessible to a broader distributed-systems audience.

Authors’ abstract

Multi-hop all-reduce is the de facto backbone of large model training. As the training scale increases, the network often becomes a bottleneck, motivating the reduction of the volume of transmitted data. Accordingly, recent systems have demonstrated significant acceleration of the training process using gradient quantization. However, these systems are not optimized for multi-hop aggregation, where entries are partially summed multiple times along their aggregation topology. We present DynamiQ, a quantization framework that bridges the gap between quantization best practices and multi-hop aggregation. DynamiQ introduces novel techniques to better represent partial sums, codesigned with a decompress accumulate recompress fused kernel to facilitate fast execution. We extend PyTorch DDP to support DynamiQ over NCCL P2P, and across different LLMs, tasks, and scales, we demonstrate consistent improvement of up to 34.2% over the best among state-of-the-art methods such as Omni-Reduce, THC, and emerging standards such as MXFP4, MXFP6, and MXFP8. Further, DynamiQ is the only evaluated method that consistently reaches near-baseline accuracy (e.g., 99.9\% of the BF16 baseline) and does so while significantly accelerating the training.

Read the original paper