TL;DR
TACO introduces a robust FP8-based communication compression framework specifically designed for the high-frequency intermediate tensor exchanges in Tensor-Parallel (TP) LLM training. By combining an Adaptive Scale-Hadamard Transform with dual-scale quantization, TACO achieves up to a 1.87× training throughput speedup with virtually zero loss in model convergence accuracy.
What Problem Does This Paper Address?
Distributed training of Large Language Models (LLMs) relies heavily on 3D parallelism—a combination of Data Parallelism (DP), Pipeline Parallelism (PP), and Tensor Parallelism (TP). While communication compression has been successfully applied to DP (gradients) and PP (inter-stage activations), compressing communication within Tensor Parallelism has remained an unsolved challenge.
As shown above, TP requires frequent, tightly synchronized communication (like AllReduce) to exchange sharded activations and gradients within every single Transformer block. This communication sits directly on the critical execution path and can account for over 50–60% of total communication time.
Standard quantization methods like INT8 fail catastrophically in this setting. TP intermediate tensors exhibit highly concentrated, zero-centered distributions with long tails. Uniform quantization maps these tiny values to the same integer levels, causing massive information loss ("Zero-Collapse"). Over thousands of training iterations, these minor errors amplify during backpropagation, leading to training instability or catastrophic divergence.
Methods
The authors propose TACO (Tensor-parallel Adaptive COmmunication compression), an FP8-based framework designed to safely compress TP intermediate tensors. TACO consists of three core components:
- Adaptive Scale–Hadamard (ASH) Transform: Standard Hadamard transforms rotate data to spread out outliers but fail to disperse dense, near-zero clusters because they preserve the vector's overall energy. ASH solves this by introducing block-wise adaptive energy rescaling (using the root-mean-square amplitude) before applying an orthogonal Walsh-Hadamard rotation. This flattens the distribution into a Gaussian-like shape that perfectly matches FP8's representational capacity.
- Dual-Scale Quantization: To ensure numerical stability across all training stages, TACO tracks two distinct scalars per block: the pre-rotation adaptive rescaling factor ($\alpha_k$) and a post-rotation quantization scale ($s_k$) based on the maximum absolute value. This dual-scale mechanism prevents underflow for tiny values and overflow for long-tail outliers.
- System-Level Kernel Fusion: To prevent the computational overhead of compression from wiping out communication savings, the authors developed a highly fused GPU operator. This single kernel coalesces variance computation, the ASH transform, and dual-scale quantization using warp-level primitives and shared memory. TACO integrates with a compressible collective communication library (COCCL) using a two-shot AllReduce algorithm to maximize computation-communication overlap.
Datasets
The framework was evaluated using the following datasets:
- The Pile: Used for training and evaluating GPT-350M and GPT-6.7B models from scratch.
- Open-Web-Math: Used for training and evaluating a Qwen2.5-7B model to demonstrate cross-architecture generalization.
Key Insights and Ideas
- Why FP8 Beats INT8 for TP: INT8 uses uniform step sizes, which forces the same resolution on high-density and low-density regions, causing zero-centered values to collide. FP8's exponent-based structure naturally provides exponentially finer precision closer to zero, making it mathematically superior for tracking the subtle numerical variations in TP tensors.
- The Energy Rescaling Secret: Simply rotating data isn't enough. Because TP tensors are zero-centered, block-wise energy rescaling must happen before rotation to effectively push dense clusters into FP8's high-precision dynamic range.
- Two-Shot AllReduce Alignment: Traditional ring- or tree-based communication algorithms trigger frequent, small compression steps. Decomposing AllReduce into a two-shot process (Reduce-Scatter followed by AllGather) increases the compression block granularity, drastically reducing kernel launch overhead.
Key Results
- Throughput Speedups: TACO achieves up to 1.87× end-to-end throughput improvement for TP communication on a GPT-6.7B model at TP=8. When integrated into a full 3D-parallel setup (combining TACO with SDP4bit for DP and TahQuant for PP), it delivers up to 1.53× speedups.
- Near-Lossless Convergence: While baseline compression techniques cause training loss to spike or plateau, TACO closely tracks full-precision training. It incurs a marginal validation loss degradation of only +0.70% on GPT-6.7B and an exceptionally low +0.03% on Qwen2.5-7B.
Limitations and Future Work
- Hardware Dependencies: Although TACO includes a software-assisted fallback mechanism that degrades gracefully to INT8 on older hardware, its maximum performance gains rely on modern AI accelerators with native FP8 support (such as NVIDIA H100 GPUs).
- Future Extensions: The authors plan to extend TACO's adaptive compression strategies to encompass gradient and optimizer state communications within 3D-parallel training stacks. They also intend to investigate layer-wise sensitivity to dynamically adjust quantization precision throughout the network.
Summary updated