Manuscript Offprint

arXiv:2609.04609

CIERA: Cross-Iteration Exponent Reuse for Lossless Allgather in Sharded MoE Training

Ali Zafar Sadiq, Haiying Shen, Masahiro Tanaka

Abstract

In training Mixture-of-Experts (MoE) models, sharded data parallelism partitions each expert's parameters across GPUs, requiring an Allgather operation to reconstruct the full weight matrix before each layer executes. This communication often dominates iteration time. Prior work often reduces this overhead using lossy compression methods that sacrifice numerical fidelity, while existing lossless methods do not exploit cross-iteration exponent stability. In this paper, we propose Cross-Iteration Exponent Reuse Allgather (CIERA), a lossless, system-aware communication method for sharded MoE training. We observe that after a brief warmup phase, the exponent values of most weights remain unchanged across iterations. Based on this, we cache exponents locally and transmit only the sign and mantissa when exponents are unchanged. The receiver reconstructs the original weights exactly by combining the cached exponents with the received data. Since parameter matrices vary in shape across layers, compression is applied only when it yields net time savings. Moreover, the compression operation is overlapped with both Allgather communication and computation. Our real experiments and large-scale trace-driven simulator show that on OLMoE-1B-7B at 16 GPUs, CIERA achieves a 3.70× speedup over the lossless baseline and 3.68× over the lossy baseline, projected to reach 4.28× and 4.42× respectively at 128 GPUs, while preserving bitwise-exact parameter reconstruction in all evaluated runs.

1 Introduction

Large Language Models (LLMs) [1, 2] have become increasingly popular for natural language processing applications such as universal chatbots. As model sizes scale, training these models imposes substantial computational demands.

Mixture-of-Experts (MoE) architectures alleviate this overhead by introducing sparsity, activating only a small subset of specialized sub-models (experts) per input token while maintaining model quality [2]. Recent fine-grained MoE designs, such as the DeepSeek series, push this idea further by employing many smaller experts, enabling near-trillion-parameter training without a proportional increase in computational overhead [3, 4].

However, while sparsity reduces computation and improves scalability, it introduces additional communication overhead during training. To distribute a large MoE model across multiple GPUs, sharded data parallelism [5, 6] partitions each expert's parameters across GPUs. This design keeps tokens local but requires Allgather communication to reassemble weights before computation in the forward pass and aggregates gradients in the backward pass. However, Allgather communication becomes a critical bottleneck in MoE because of its low computation-to-communication ratio, which leaves insufficient computation to overlap and hide communication latency.

To reduce communication overhead in sharded data parallelism, methods such as ZeRO++ [7] compress weights using block-based quantization, where a block is a small subset of a parameter tensor [8]. Each block is quantized independently with its own scale and rounding factors, making the quantization inherently lossy. gZCCL [9] compresses data by approximating values within a chosen error bound and encoding the approximated values more compactly before transfer, followed by decompression upon receipt. However, these lossy compression methods introduce numerical error between the original values and the re-constructed ones, degrading training accuracy. On the other hand, lossless methods [10] insert compression and decompression into communication operations, which can slow training [11].

To address these problems, we propose Cross-Iteration Exponent Reuse Allgather (CIERA), a lossless Allgather method for sharded MoE training, motivated by our observations below:

O1: Allgather accounts for 51.8–69.0% of communication time.

O2: At least 99% of weights retain unchanged exponents across iterations after a brief warmup.

O3: Block change rates vary substantially across shard types (attention and routing-gate shards change nearly every iteration, layer norm is consistently stable, and expert Feed-Forward Network (FFN) is stable for some models such as OLMoE but less so for others), and synchronous exponent checking on the critical path costs 25–30% of iteration time.

CIERA consists of three components. First, exponent reuse based compression splits each weight into exponent, sign, and mantissa, caches the exponent, and sends only sign and mantissa when the exponent is unchanged. Second, benefit-driven selective compression compresses weights only for shard types where the expected communication savings exceed the compression overhead. Third, computation-communication pipelining schedules exponent checking and compression early so they run during preceding compute or communication, and overlaps receiver-side decompression with Allgather.

We implement CIERA on top of ZeRO-3 [12] and evaluate it on up to 16

A100 GPUs across six MoE models in BF16 and FP16, achieving 3.70× speedup over ZeRO-3 (lossless) and 3.68× over ZeRO++ (lossy) on OLMoE-1B-7B at 16 GPUs while preserving bitwise-exact parameter reconstruction in all evaluated runs.

Contributions. First, we empirically characterize the Allgather bottleneck and exponent stability in sharded MoE training across multiple MoE models. Second, we present CIERA, a lossless, system-aware communication method that selectively compresses only profitable shards and overlaps most compress/decompress work with compute and communication via FX-graph scheduling, leaving only a short decompress on the critical path. Third, we evaluate CIERA against ZeRO-3, FSDP, and ZeRO++ on six MoE models in BF16 and FP16, and verify bitwise-exact parameter reconstruction on OLMoE-1B-7B.

References (41)