[Paper Review] FLUX: Fast Software-based Communication Overlap On GPUs Through Kernel Fusion
FLUX proposes a novel software-based communication overlap technique for GPUs that uses fine-grained kernel fusion to hide up to 96% of communication latency in tensor-parallel deep learning workloads. By over-decomposing communication and computation into small tiles and fusing them into a single kernel, FLUX achieves up to 1.24x speedup in training and up to 1.66x in inference across diverse GPU clusters.
Large deep learning models have demonstrated strong ability to solve many tasks across a wide range of applications. Those large models typically require training and inference to be distributed. Tensor parallelism is a common technique partitioning computation of an operation or layer across devices to overcome the memory capacity limitation of a single processor, and/or to accelerate computation to meet a certain latency requirement. However, this kind of parallelism introduces additional communication that might contribute a significant portion of overall runtime. Thus limits scalability of this technique within a group of devices with high speed interconnects, such as GPUs with NVLinks in a node. This paper proposes a novel method, Flux, to significantly hide communication latencies with dependent computations for GPUs. Flux over-decomposes communication and computation operations into much finer-grained operations and further fuses them into a larger kernel to effectively hide communication without compromising kernel efficiency. Flux can potentially overlap up to 96% of communication given a fused kernel. Overall, it can achieve up to 1.24x speedups for training over Megatron-LM on a cluster of 128 GPUs with various GPU generations and interconnects, and up to 1.66x and 1.30x speedups for prefill and decoding inference over vLLM on a cluster with 8 GPUs with various GPU generations and interconnects.
Motivation & Objective
- To address the poor performance of existing communication overlapping techniques on GPUs, especially under high-latency or high-bandwidth interconnects.
- To reduce exposed communication time in tensor-parallel deep learning workloads, which currently limits scalability on multi-GPU systems.
- To improve GPU utilization and FLOPS efficiency during communication-heavy operations in both training and inference.
- To design a modular, auto-tunable solution compatible with various GPU architectures (A100, H800) and interconnects (PCIe, NVLink).
- To enable high overlap efficiency across diverse hardware configurations without compromising kernel efficiency.
Proposed method
- Over-decomposes communication and computation operations into fine-grained tiles smaller than traditional chunk-based methods.
- Fuses each tiled computation and communication operation into a single, larger kernel to enable effective overlap.
- Maps each fused tile to a thread block, enabling coalesced memory access and efficient GPU occupancy.
- Applies architectural-aware optimizations including tile coordinate swizzling, GPU instruction selection, and communication order selection.
- Builds on NVIDIA CUTLASS for modularity and enables auto-tuning across GPU generations and interconnect types.
- Uses kernel fusion to reduce kernel launch overhead and improve memory access patterns, enhancing overall GPU utilization.
Experimental results
Research questions
- RQ1Can fine-grained decomposition and fusion of communication and computation operations significantly reduce exposed communication latency on modern GPUs?
- RQ2How does kernel fusion-based communication overlap compare to existing medium-grained overlapping techniques in terms of GPU utilization and performance?
- RQ3To what extent can communication overlap efficiency be maintained across diverse GPU architectures and interconnect technologies (e.g., PCIe vs. NVLink)?
- RQ4Can the proposed method achieve high performance gains in both training and inference workloads with minimal architectural assumptions?
- RQ5How effective is the auto-tuning capability of the framework across different hardware configurations?
Key findings
- FLUX achieves up to 96% communication overlap efficiency in fused kernels, significantly outperforming existing methods.
- On 128-GPU clusters, FLUX delivers up to 1.24x speedup over Megatron-LM in training workloads.
- For inference, FLUX achieves up to 1.66x speedup over vLLM on 8-GPU clusters, with 1.30x speedup in decoding.
- On A100 PCIe, FLUX achieves up to 3.25x speedup over TransformerEngine in operation-level evaluation, despite NCCL being the baseline.
- FLUX demonstrates robust performance across hardware variations, achieving 72% average overlap efficiency on H800 NVLink clusters, compared to only 20% for TransformerEngine.
- In some large-m-size cases on A100 PCIe, FLUX even runs faster than the non-overlapping baseline, indicating effective latency hiding.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.