DynamiQ: Accelerating Gradient Synchronization using Compressed Multi-hop All-reduce
Wenchen Han, Shay Vargaftik, Michael Mitzenmacher, Ran Ben Basat
TL;DR
DynamiQ addresses the gradient synchronization bottleneck in multi-hop all-reduce for large-scale LLM training by introducing a grouped, non-uniform quantization framework with a decompress-accumulate-recompress fused kernel. It combines per-super-group statistics, variable bitwidth allocation, hierarchical scaling, and correlated rounding, implemented as fused CUDA kernels within a PyTorch DDP and NCCL-based back-end. Across ring and butterfly topologies and diverse workloads, it achieves up to $34.2\%$ faster time-to-accuracy while maintaining near BF16 final accuracy (e.g., $99.9\%$ of BF16) and demonstrates robustness under network contention and scaling up to dozens of workers. The work provides a practical, hardware-conscious solution for efficient gradient compression in multi-hop all-reduce, with open-source plans and broad applicability to LLM training at scale.
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 reducing the volume of transmitted data. Accordingly, recent systems 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. This paper presents 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, co-designed with a decompress-accumulate-recompress fused kernel to facilitate fast execution. We extended 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.
