TAH-QUANT: Effective Activation Quantization in Pipeline Parallelism over Slow Network

Guangxin He, Yuan Cao, Yutong He, Tianyi Bai, Kun Yuan, Binhang Yuan · DOI

Abstract

Decentralized training of Large Language Models (LLMs) is frequently bottlenecked by the communication of intermediate activations across slow network links. We propose TAH-QUANT (Tile-wise Adaptive Hadamard Quantization), a framework designed to compress activations to 3-4 bits without the prohibitive memory overhead of traditional error-compensation techniques. By combining fine-grained tile-wise grouping, entropy-guided bit allocation, and Hadamard transforms with a novel pivot-swapping heuristic, TAH-QUANT achieves up to a 4.3x end-to-end training speedup. Our evaluations across fine-tuning, instruction tuning, and pretraining tasks show that TAH-QUANT maintains convergence rates and model quality comparable to full-precision baselines.

Introduction

Pipeline parallelism is a cornerstone of distributed LLM training, yet its efficiency is tethered to the bandwidth of the interconnects between pipeline stages. In decentralized environments—such as collaborative training over the internet—the transfer of activations and gradients becomes a critical bottleneck. While quantization offers a path to reduce communication volume, standard methods often introduce errors that lead to training divergence. Existing error-compensation methods like AQ-SGD mitigate this but require storing historical activations, leading to massive memory costs that hinder scalability. TAH-QUANT addresses these challenges by providing high-fidelity, memory-free activation compression.

The TAH-QUANT Framework

TAH-QUANT employs three synergistic techniques to minimize quantization error while maximizing compression:

  1. Tile-Wise Group Quantization: Activations are partitioned into small tiles. This localized approach ensures that outliers do not disproportionately affect the quantization scale of the entire tensor.
  2. Entropy-Guided Bit Allocation: The system dynamically switches between 3-bit and 4-bit precision. Tokens with high entropy (uniform distributions) receive 4 bits, while low-entropy "spiky" distributions are compressed to 3 bits.
  3. Hadamard Transform with Pivot Swap: To handle extreme outliers, TAH-QUANT identifies outlier-prone tiles, swaps the maximum value to a pivot position, and applies a Hadamard transform. This redistributes the outlier's energy, making the distribution more amenable to quantization.
Distribution of relative quantization errors across different experimental tasks, demonstrating the effectiveness of the TAH-QUANT compression scheme.

Experimental Results

We evaluated TAH-QUANT using GPT-2XL and Qwen2.5-3B models across various datasets, including WikiText-2, ArXiv21, and the C4 corpus.

Convergence and Accuracy

A primary advantage of TAH-QUANT is its ability to match the convergence of full-precision (FP16/FP32) training. As shown in the training loss curves, TAH-QUANT closely tracks the baselines across multiple tasks, including language modeling and pretraining.

Training loss curves for five distinct tasks (i-v), comparing TAH-QUANT against FP baselines and the memory-intensive AQ-SGD method.

Efficiency and Speedup

In simulated slow-network environments (100 Mbps to 1 Gbps), TAH-QUANT delivered up to a 4.3x end-to-end speedup. Crucially, unlike AQ-SGD, TAH-QUANT incurred zero additional memory overhead, preventing out-of-memory (OOM) errors on large-scale datasets.

Conclusion

TAH-QUANT represents a significant step toward making decentralized LLM training practical. By eliminating the need for historical activation storage while maintaining high compression ratios and convergence stability, it enables the training of massive models over commodity networks. Future work will focus on verifying these results over full-scale pretraining runs to further validate the robustness of the framework.

Summary updated

BibTeX
@misc{he2025tah,
  author = {Guangxin He and Yuan Cao and Yutong He and Tianyi Bai and Kun Yuan and Binhang Yuan},
  title = {{TAH-QUANT: Effective Activation Quantization in Pipeline Parallelism over Slow Network}},
  year = {2025},
  eprint = {2506.01352},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2506.01352},
}
Figure