TL;DR
UCCL-Zip introduces a unified design that integrates lossless compression directly into GPU communication primitives (both point-to-point and collective) without modifying user-facing APIs. By co-designing compression pipelines with GPU execution models, it accelerates reinforcement learning weight synchronization by up to 47.5% and reduces end-to-end LLM inference latency by up to 10% while maintaining perfect numerical correctness.
What Problem Does This Paper Address?
As Large Language Models (LLMs) scale, the massive volume of data exchanged between GPUs during training and inference creates a severe communication bottleneck. While prior works use quantization or lossy compression to reduce data volume, these techniques introduce numerical errors that can degrade model accuracy, slow down training convergence, or cause stability issues.
Lossless compression avoids these errors but introduces a major system challenge: compression overhead. On modern GPUs, compression latency scales sub-linearly with data size—meaning compressing small chunks takes almost as long as compressing large ones. Conventional communication libraries (like NCCL) break data into fine-grained chunks to pipeline transfers, which destroys GPU compression efficiency. Furthermore, standard lossless compression algorithms require global data passes to build frequency tables, making them fundamentally incompatible with NCCL's independent, multi-channel execution model.
Methods
The authors propose UCCL-Zip, which splits into two tailored architectures to handle different communication patterns seamlessly:
- Uzip-P2P (for Point-to-Point communication): Instead of traditional chunk-based pipelining, Uzip-P2P uses a split-send pipeline. It exploits the structure of floating-point compression algorithms, which first split a tensor into an uncompressed part (sign and fraction bits) and a compressed part (exponent bits). Uzip-P2P immediately transmits the large uncompressed portion over the network while concurrently running the compute-heavy compression stages on the remaining exponent data, effectively hiding the compression latency.
- Uzip-NCCL (for Collective communication): To integrate with collective operations like
AllReduce, the authors eliminate the need for global data coordination by introducing localized frequency tables. Each thread block independently samples a small subset of its data to build a local entropy model. This allows the compression and decompression stages to be fully fused directly into NCCL’s persistent execution kernel (CopyReducePacks), eliminating extra kernel launch overheads and redundant memory copies.
Datasets
The system was evaluated using representative tensors and workloads from real-world LLM applications:
- GLM4-9B: Tensors collected during reinforcement learning (RL) training, evaluating weight synchronization.
- Qwen3.5-35B-A3B: A Mixture-of-Experts (MoE) model used to test performance under sparse expert activations.
- Qwen-7B-Chat: Evaluated within the vLLM inference framework using a Prefill-Decode Disaggregation (P1D3) multi-GPU configuration to measure KV cache transfer latency.
Key Insights and Ideas
- The Sub-linear Latency Trap: Splitting tensors into small chunks to pipeline compression with network transfer actually hurts performance on GPUs. Because of massive inner parallelism, a 4 MB chunk takes nearly as long to compress (~70 $\mu$s) as a 16 MB chunk (~90 $\mu$s).
- Early Data Exposure: Floating-point compression naturally separates data into components. The uncompressed sign/fraction bits represent over half of the tensor size for
bfloat16and require zero computation after the initial split, making them perfect candidates for immediate network transmission. - Locality in Exponent Distributions: You don't need a global pass to build an optimal compression table. Because neural network weights and gradients have highly concentrated exponent distributions, localized block-level sampling achieves compression ratios within 4.5% of a global table while enabling complete kernel fusion.
Key Results
- P2P Throughput: On an AWS cluster with NVIDIA H200 GPUs, Uzip-P2P improved point-to-point communication throughput by up to 52.9% for 1 GB tensors. For real RL workloads, it boosted weight synchronization throughput by up to 47.5% on the dense GLM4-9B model and up to 28.8% on the MoE Qwen3.5 model.
- Inference Speedups: Integrated into vLLM, Uzip-NCCL reduced KV cache transfer latency by up to 30.1%, translating to a 10% reduction in end-to-end inference latency for long-context inputs (7,680 tokens).
- Hardware Portability: The implementation proved robust across hardware ecosystems, achieving up to a 45.3% throughput improvement on an AMD cluster utilizing MI355X GPUs and Pensando SmartNICs over RoCEv2.
Limitations and Future Work
A key limitation identified is NVLink interconnects. When communicating intra-node over ultra-high-bandwidth NVLink, the network is so fast that even highly optimized compression overhead cannot be amortized, leading to negative performance gains. This is exacerbated by NCCL's ring-based AllReduce algorithm, which forces data through repeated, inefficient compression-decompression cycles at every hop.
As future work, the authors plan to design a completely "compression-friendly" collective communication library from scratch. This includes moving away from ring topologies toward coarse-grained, two-shot collective algorithms and exploring hardware-accelerated compression primitives using GPU Tensor Cores.
Summary updated