# Identifying and Mitigating Errors in Gradient Aggregation of Distributed Data Parallel Training

PAFT averages parameters periodically to stop replicas drifting apart during training

Zhenheng Tang, Junlin Huang, Zichen Tang, Xueze Kang, Yuxin Wang, Peijie Dong and 3 more · International Conference on Machine Learning · 2026-9-29

- **Problem** Gradient aggregation errors make each worker's model copy drift apart, and the gap keeps growing during training. Syncing parameters after every update stops this but costs too much communication.
- **Method** PAFT averages model parameters every H iterations instead of after every update. It tunes H from an estimate of the gradient noise.
- **Results** PAFT keeps convergence close to the noise-free LLM runs at noise variance 0.001.

## Why noisy gradient aggregation splits the replicas

In data-parallel training, every worker holds a copy of the model, and the copies stay identical because they apply one shared averaged gradient. A gradient aggregation error breaks this: each worker receives the average plus its own Gaussian perturbation, so the copies start moving in different directions. This condition is called gradient inconsistency, and the perturbation is modeled with variance σ².

Once the copies differ, the gap between each replica and the averaged model keeps widening. Lemma 3.1 expresses the expected squared gap as the noise variance times a sum of squared learning rates over past steps. The authors read this as meaning that a gradient computed on a drifted replica carries little useful descent information.

The convergence bound in Theorem 3.3 contains a term that does not generally vanish. Under a constant learning rate, that term grows linearly with training time. Fast learning-rate decay could in principle stop this growth, yet practical schedules rarely decay that fast.

The experiments agree: with ResNet-18 on CIFAR-10 across 4 workers, even noise variance 0.001 led to failed convergence.

## How periodic averaging clears the drift

The simplest fix averages parameters after every update, which removes the divergence entirely. Its cost is high, because syncing the model each iteration adds communication equal to the gradient traffic itself.

PAFT-Sync keeps the local update and averages parameters only every H iterations. Between two synchronizations the replicas drift, and each synchronization resets them to a common point. Algorithm 1 shows this as a local step followed by averaging whenever the step index reaches the interval H.

The analysis assumes a gap condition, where the largest distance between synchronization points is at most H. Under that condition the divergence bound scales with H, the noise variance and the squared step size. So a smaller H tightens the bound but raises the communication cost.

Theorem 4.3 bounds the convergence error of a weighted average of the replicas' iterates, under Assumption 3.2 and an L-smooth, μ-strongly convex objective. Corollary 4.4 states that the resulting rate matches that of SGD for a stated choice of the parameter a.

## PAFT-Dyn: adaptive frequency and overlap

PAFT-Dyn sets H from the detected error degree rather than from a fixed value. Measuring the error directly would need an extra exchange like a synchronization, so the authors estimate it from the accumulated model divergence. The divergence already carries the history of past noise, so it doesn't have to be sent at every iteration.

The authors set H as the ratio of the gradient noise bound σg to the estimated noise σ, which balances two terms of the bound. This ratio also plays the role of a signal-to-noise ratio, a quantity used in other schemes that adjust hyperparameters.

PAFT-Dyn also hides synchronization cost by overlapping it with training. When a round needs synchronization, the averaging starts without waiting, and the next round runs its forward and backward pass during it. Workers wait for the earlier averaging only when they update the model, and this trades precise gradient estimation for overlap.

For SGD momentum and Adam, the momentum and preconditioning terms can diverge across workers as well. The authors suggest synchronizing these extra terms with the parameters, and they report supporting results in an appendix.

## Experimental setup and noise simulation

The authors used an 8-node cluster with 4 RTX2080Ti GPUs per node, plus a single machine with 8 A6000 GPUs. ResNet-18 was trained on CIFAR-10, ResNet-50 on CIFAR-100 for 120 epochs, and GPT-2 Small with 124M parameters on OpenWebText. LLaMA-2 and GPT-2 were fine-tuned on Alpaca with LoRA for one epoch.

ResNet models used SGDm with learning rate 0.1 and momentum 0.9. GPT-2 used Adam with learning rate 0.001, β1 of 0.9 and β2 of 0.99. The noise levels were 0.0001, 0.001, 0.01 and 0.1, which the figures plot as σ².

The authors treat the small levels as ordinary communication noise and the large levels as bit corruptions. They cite the LLaMA-3 405B report, where about 78% of unexpected interruptions were tied to hardware issues. They also cite Fire-Flyer observations of GPU errors that caused gradient norm spikes and loss explosions. Their evaluation therefore mixes small continuous noise with occasional large bursts.

## Convergence under continuous noise

On ResNet-18 and ResNet-50, accuracy fell as the noise rose in every case. PAFT defended against noise at variance 0.0001 and 0.001 on ResNet-18 with 4 workers and on ResNet-50 with 4 and 32 workers.

At noise variance 0.01 and above, a gap to Oracle remains. The authors attribute this to common-mode corruption, where all workers move the same wrong way, and synchronization can't undo that shared direction.

## Accidental large noise and replica traces

The authors used base noise of N(0, 0.0001) in each round, with a large draw from N(0, 0.1) or N(0, 1.0) after every 500 iterations. Each burst dropped ResNet-18 test accuracy sharply, and PAFT pulled it back. With variance 1.0 the authors report that recovery was hard. They also saw that late learning-rate decay helped the model absorb later bursts, which they link to Lemma 3.1 and Theorem 3.3.

Under noised DSGD the divergence accumulates, and PAFT keeps it from growing without limit. The authors read this as support for Lemma 3.1 and Theorem 4.3.

## Wall-clock cost of synchronization

At 4 workers, ResNet-50 averaged 0.237 seconds per iteration with PAFT, compared to 0.201 for DSGD. At 32 workers the figures were 0.373 seconds for PAFT and 0.333 for DSGD. PAFT-Sync was slower than PAFT at every worker count in the same table.

The text puts PAFT's efficiency gain over PAFT-Sync at up to 11.0% for 32 workers. It puts the extra cost of PAFT over DSGD at 18.9% for 32 workers. These timings come from ResNet-50 runs only, so they say nothing about the LLM settings.

## Limitations

A gap to Oracle remains at noise variance 0.01 and above. Synchronization doesn't correct corruption shared by all workers, and the authors propose combining PAFT with gradient clipping or robust aggregation. Overlapped synchronization gives up precise gradient estimation. PAFT doesn't fit fully sharded training such as FSDP, because that removes the replica redundancy PAFT relies on.

The authors also assume the infrequent synchronization runs on a more reliable channel than gradient aggregation. The validation uses simulated perturbations, and the authors call for tests on real fault traces.

## Paper info

- **Authors**: Zhenheng Tang, Junlin Huang, Zichen Tang, Xueze Kang, Yuxin Wang, Peijie Dong, Shaohuai Shi, Xiaowen Chu, Bo Li
- **Venue**: International Conference on Machine Learning · Published
- **First published**: 2026-9-29
- **Added**: 2026-11-26
- **Original paper terms**: [Check in the original ↗](https://proceedings.mlr.press/v306/tang26g.html)
- **What we show**: Paper info and commentary

[Original paper ↗](https://proceedings.mlr.press/v306/tang26g.html)

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

## Quote from the paper

Zhenheng Tang, Junlin Huang, Zichen Tang, Xueze Kang, Yuxin Wang, Peijie Dong, Shaohuai Shi, Xiaowen Chu, Bo Li (2026). Identifying and Mitigating Errors in Gradient Aggregation of Distributed Data Parallel Training. International Conference on Machine Learning. https://proceedings.mlr.press/v306/tang26g.html

**BibTeX**

```
@article{tang2026identifying,
  title = {{Identifying and Mitigating Errors in Gradient Aggregation of Distributed Data Parallel Training}},
  author = {Zhenheng Tang and Junlin Huang and Zichen Tang and Xueze Kang and Yuxin Wang and Peijie Dong and Shaohuai Shi and Xiaowen Chu and Bo Li},
  year = {2026},
  journal = {International Conference on Machine Learning},
  url = {https://proceedings.mlr.press/v306/tang26g.html}
}
```

## Other paper commentary

- [Beyond task diversity: provable representation transfer for sequential multitask linear bandits](https://refivu.com/en/papers/6f518ea7-2bdf-47ac-a17e-67345dad8aa7-beyond-task-diversity-provable-representation-transfer-for.md)
- [Escapingthe instruction blackhole of vision-language-action policies via optimal-transport wormholes](https://refivu.com/en/papers/177245e4-e8e1-4c15-9743-cffb0dddb3d3-escapingthe-instruction-blackhole-of-vision-language-action.md)
- [Puzzling-Bench: Evaluating Language Models on 23,777 Human-Written Puzzles with Community-Verified Answers](https://refivu.com/en/papers/1b9641d7-d6fa-4ead-8f16-7134498580d3-puzzling-bench-evaluating-language-models-on-23-777.md)
- [Evaluating Ukrainian Grammatical Competence in Language Models: Probability Versus Prompting](https://refivu.com/en/papers/b9da328b-a55a-404e-8dab-7573f504b062-evaluating-ukrainian-grammatical-competence-in-language.md)
- [Evidence-Aligned Benchmarking and Learning for Medical Video Language Models](https://refivu.com/en/papers/403144c2-124b-4deb-ae8e-ee18219c9fef-evidence-aligned-benchmarking-and-learning-for-medical-video.md)
- [Looped Models are Fast Multi-Token Predictors](https://refivu.com/en/papers/753aee4a-f281-45ed-9e03-84eb93c47b6d-looped-models-are-fast-multi-token-predictors.md)
- [CriticEval: Evaluating Large-scale Language Model as Critic](https://refivu.com/en/papers/49cb4d52-0b81-4cbd-9b74-dfe48638ac34-criticeval-evaluating-large-scale-language-model-as-critic.md)
- [Temporal Sentence Grounding with Relevance Feedback in Videos](https://refivu.com/en/papers/0a472c0a-d7da-44d3-87f9-2edc49bfa8bf-temporal-sentence-grounding-with-relevance-feedback-in.md)

## Terms in this paper

- [CIFAR-10](https://refivu.com/en/terms/19035a518d0a-cifar-10)
- [ADAM](https://refivu.com/en/terms/0e9ad0199e08-adam)
- [CIFAR-100](https://refivu.com/en/terms/5afa3b877d18-cifar-100)
- [ResNet-50](https://refivu.com/en/terms/eb2323a60a89-resnet-50)
- [GPT-2](https://refivu.com/en/terms/3c130f2029b4-gpt-2)
- [ResNet-18](https://refivu.com/en/terms/1cdf53b7347d-resnet-18)
- [Oracle](https://refivu.com/en/terms/3ff0e5f5c4ee-oracle)
- [Alpaca](https://refivu.com/en/terms/acd615a4ec0a-alpaca)
- [LLaMA-2](https://refivu.com/en/terms/86caf7cd440f-llama-2)
- [signal-to-noise ratio](https://refivu.com/en/terms/9b3a8b590fb6-signal-to-noise-ratio)
- [DSGD](https://refivu.com/en/terms/5d04a4a49c47-dsgd)

---

AI-written text can contain mistakes. [Refivu](https://refivu.com/en/papers/aea50068-a846-40ad-93b3-c639e4a4f4b9-identifying-and-mitigating-errors-in-gradient-aggregation-of)
