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

Guangxin He, Yuan Cao, Yutong He, Tianyi Bai, Kun Yuan, Binhang Yuan · Submission to ICLR 2026 · Rejected

TL;DR

Decentralized LLM training across geo-distributed, slow networks faces severe communication bottlenecks during pipeline-parallel activation exchanges. TAH-Quant (Tile-wise Adaptive Hadamard Quantization) enables aggressive 3-to-4-bit activation quantization with zero auxiliary memory overhead, achieving up to 4.3× end-to-end training speedups while theoretically and empirically preserving the $\mathcal{O}(1/\sqrt{T})$ convergence rate of standard SGD.

What Problem Does This Paper Address?

Training multi-billion-parameter LLMs across decentralized, heterogeneous hardware requires pipeline parallelism, which splits layers across different physical machines. However, adjacent pipeline stages must continuously exchange intermediate forward activations and backward gradients. Over slow, throttled, or commodity networks (e.g., 100 Mbps–1 Gbps), communication latency quickly overwhelms computation.

Unlike gradient quantization—which typically behaves as zero-mean, unbiased noise—quantizing activations alters the forward pass directly, injecting biased distortions into the backward pass and leading to training divergence. While prior work like AQ-SGD addressed this via error compensation, it required caching activations across entire epochs for the whole dataset. This introduces prohibitive storage footprints and renders the technique unusable for large datasets or single-epoch pre-training.

Methods

TAH-Quant introduces three complementary mechanisms to quantize forward activations down to an average of ~3–4 bits without requiring past activation caching:

  1. Fine-Grained Tile-Wise Grouping: Rather than quantizing an entire tensor at once, activation tensors ($B \times S \times C$) are partitioned along the channel dimension into small tiles (e.g., groups of 32 or 64 contiguous channels per token). Each tile receives dedicated scaling and zero-point parameters.
  2. Entropy-Guided Token-Level Bit Allocation: The token activation's magnitude distribution is evaluated using normalized entropy. Tokens with evenly distributed energy across channels (high entropy) are sensitive to aggressive compression and receive 4 bits (INT4). Tokens dominated by a few large spikes (low entropy) are quantized aggressively to 3 bits (INT3) because their structure can be handled via outlier transforms.
  3. Adaptive Hadamard Transform with Pivot Element Swapping: Outliers severely stretch quantization bins. When the ratio of the largest absolute value to the second largest exceeds a threshold ($\tau = 2.0$), the tile swaps its maximum element into the first index (pivot swapping) and applies an orthogonal Walsh-Hadamard transform matrix ($H_G$). This redistributes outlier energy evenly across the tile, shrinking the dynamic range before uniform asymmetric quantization.
  4. Backward Path: The backward gradient pass uses standard low-bit quantization (6-bit or 8-bit), exploiting the natural slack in backward compute schedules.

Datasets

The authors evaluate their method across three distinct regimes using both pre-existing training corpora and evaluation benchmarks:

  • Fine-Tuning (GPT-2XL, 1.5B): Evaluated on WikiText-2 and ArXiv21.
  • Instruction Tuning (Qwen2.5-3B): Supervised fine-tuning on Magicoder-Evol-Instruct-110K (code tasks) and Open-Platypus (multi-domain reasoning).
  • Pre-Training (Qwen2.5-3B): Pre-trained on C4 (Common Crawl) for 6,000 steps.
  • Evaluation Benchmarks: Downstream zero-shot evaluation on ARC-Challenge, TruthfulQA, WinoGrande, and HumanEval (with MMLU reported in ablations).

Key Insights and Ideas

  • Low Entropy Equals Compressible Structure: High-entropy tokens need more bits because their information is distributed across all dimensions. Conversely, low-entropy tokens look vulnerable to quantization at first glance due to extreme peaks, but those peaks are precisely what structured transforms can diffuse.
  • Pivot Swapping Unlocks Hadamard Efficiency: Naive Hadamard transforms can leave residual peaks depending on where an outlier lands. Permuting the largest absolute value to coordinate 0 aligns the outlier directly with the matrix structure, maximizing energy diffusion.
  • Theoretical Parity with Full Precision: Under mild stochastic optimization assumptions and bounded quantization error, TAH-Quant converges at $\mathcal{O}(1/\sqrt{T})$, matching full-precision momentum SGD without requiring error-history buffers.

Key Results

  • End-to-End Speedup: Under restricted network conditions (100 Mbps), TAH-Quant achieves up to 4.3× end-to-end training speedup over FP16/FP32 baselines to reach the same loss.
  • High Throughput: On GPT-2XL over a 100 Mbps link, TAH-Quant reaches 4,045 tokens/second, compared to 3,310 tokens/second for AQ-SGD and 751 tokens/second for uncompressed FP32 (a 5.4× throughput improvement over baseline).
  • Downstream Accuracy Retention: On Qwen2.5-3B instruction tuning, TAH-Quant achieved an average benchmark score of 59.32%, virtually identical to (and slightly exceeding) full FP16 fine-tuning (59.08%), matching performance across HumanEval (67.68% vs. 66.46%) and ARC (49.91% vs. 50.00%).
  • Zero History Footprint: Unlike AQ-SGD, which fails or runs out of disk when scaling to large instruction datasets or streaming web corpora, TAH-Quant trains smoothly on C4 and Magicoder without auxiliary memory.

Limitations and Future Work

  • Limited Pre-Training Horizon: Evaluation on pre-training was limited to the initial 6,000 steps of Qwen2.5-3B on C4 due to compute constraints. Long-term training dynamics, loss stability across trillions of tokens, and scaling laws remain to be demonstrated.
  • Decentralized Heterogeneity: While tested under synthetic network throttling (Linux tc), evaluations were run on uniform hardware (RTX 3090 GPUs) rather than truly heterogeneous, geographically dispersed nodes with asymmetric compute and dynamic node dropouts.

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